configure: enable e4defrag engine regardless of MOVE_EXTENT compile test
[fio.git] / configure
CommitLineData
67bf9823
JA
1#!/bin/sh
2#
3# Fio configure script. Heavily influenced by the manual qemu configure
4# script. Sad this this is easier than autoconf and enemies.
5#
6
7# set temporary file name
8if test ! -z "$TMPDIR" ; then
9 TMPDIR1="${TMPDIR}"
10elif test ! -z "$TEMPDIR" ; then
11 TMPDIR1="${TEMPDIR}"
12else
13 TMPDIR1="/tmp"
14fi
15
16TMPC="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.c"
17TMPO="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.o"
18TMPE="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.exe"
19
20# NB: do not call "exit" in the trap handler; this is buggy with some shells;
21# see <1285349658-3122-1-git-send-email-loic.minier@linaro.org>
22trap "rm -f $TMPC $TMPO $TMPE" EXIT INT QUIT TERM
23
24rm -rf config.log
25
26config_host_mak="config-host.mak"
27config_host_ld="config-host.ld"
28
29# Print a helpful header at the top of config.log
30echo "# FIO configure log $(date)" >> config.log
31printf "# Configured with:" >> config.log
32printf " '%s'" "$0" "$@" >> config.log
33echo >> config.log
34echo "#" >> config.log
35
36do_cc() {
37 # Run the compiler, capturing its output to the log.
38 echo $cc "$@" >> config.log
39 $cc "$@" >> config.log 2>&1 || return $?
40 # Test passed. If this is an --enable-werror build, rerun
41 # the test with -Werror and bail out if it fails. This
42 # makes warning-generating-errors in configure test code
43 # obvious to developers.
44 if test "$werror" != "yes"; then
45 return 0
46 fi
47 # Don't bother rerunning the compile if we were already using -Werror
48 case "$*" in
49 *-Werror*)
50 return 0
51 ;;
52 esac
53 echo $cc -Werror "$@" >> config.log
54 $cc -Werror "$@" >> config.log 2>&1 && return $?
55 echo "ERROR: configure test passed without -Werror but failed with -Werror."
56 echo "This is probably a bug in the configure script. The failing command"
57 echo "will be at the bottom of config.log."
58 echo "You can run configure with --disable-werror to bypass this check."
59 exit 1
60}
61
62compile_object() {
63 do_cc $CFLAGS -c -o $TMPO $TMPC
64}
65
66compile_prog() {
67 local_cflags="$1"
68 local_ldflags="$2"
69 echo "Compiling test case $3" >> config.log
70 do_cc $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
71}
72
73feature_not_found() {
74 feature=$1
75
76 echo "ERROR"
77 echo "ERROR: User requested feature $feature"
78 echo "ERROR: configure was not able to find it"
79 echo "ERROR"
80 exit 1;
81}
82
83has() {
84 type "$1" >/dev/null 2>&1
85}
86
87check_define() {
88 cat > $TMPC <<EOF
89#if !defined($1)
90#error $1 not defined
91#endif
92int main(void)
93{
94 return 0;
95}
96EOF
97 compile_object
98}
99
100targetos=""
101cpu=""
102
103cc="${CC-${cross_prefix}gcc}"
104
105if check_define __linux__ ; then
106 targetos="Linux"
107elif check_define _WIN32 ; then
108 targetos='MINGW32'
109elif check_define __OpenBSD__ ; then
110 targetos='OpenBSD'
111elif check_define __sun__ ; then
112 targetos='SunOS'
113else
114 targetos=`uname -s`
115fi
116
117# Some host OSes need non-standard checks for which CPU to use.
118# Note that these checks are broken for cross-compilation: if you're
119# cross-compiling to one of these OSes then you'll need to specify
120# the correct CPU with the --cpu option.
121case $targetos in
122Darwin)
123 # on Leopard most of the system is 32-bit, so we have to ask the kernel if
124 # we can run 64-bit userspace code.
125 # If the user didn't specify a CPU explicitly and the kernel says this is
126 # 64 bit hw, then assume x86_64. Otherwise fall through to the usual
127 # detection code.
128 if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
129 cpu="x86_64"
130 fi
131 ;;
132SunOS)
133 # `uname -m` returns i86pc even on an x86_64 box, so default based on isainfo
134 if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
135 cpu="x86_64"
136 fi
137esac
138
139if test ! -z "$cpu" ; then
140 # command line argument
141 :
142elif check_define __i386__ ; then
143 cpu="i386"
144elif check_define __x86_64__ ; then
145 cpu="x86_64"
146elif check_define __sparc__ ; then
147 if check_define __arch64__ ; then
148 cpu="sparc64"
149 else
150 cpu="sparc"
151 fi
152elif check_define _ARCH_PPC ; then
153 if check_define _ARCH_PPC64 ; then
154 cpu="ppc64"
155 else
156 cpu="ppc"
157 fi
158elif check_define __mips__ ; then
159 cpu="mips"
160elif check_define __ia64__ ; then
161 cpu="ia64"
162elif check_define __s390__ ; then
163 if check_define __s390x__ ; then
164 cpu="s390x"
165 else
166 cpu="s390"
167 fi
168elif check_define __arm__ ; then
169 cpu="arm"
170elif check_define __hppa__ ; then
171 cpu="hppa"
172else
173 cpu=`uname -m`
174fi
175
176# Normalise host CPU name and set ARCH.
177case "$cpu" in
178 ia64|ppc|ppc64|s390|s390x|sparc64)
179 cpu="$cpu"
180 ;;
181 i386|i486|i586|i686|i86pc|BePC)
182 cpu="i386"
183 ;;
184 x86_64|amd64)
185 cpu="x86_64"
186 ;;
187 armv*b|armv*l|arm)
188 cpu="arm"
189 ;;
190 hppa|parisc|parisc64)
191 cpu="hppa"
192 ;;
193 mips*)
194 cpu="mips"
195 ;;
196 sparc|sun4[cdmuv])
197 cpu="sparc"
198 ;;
199 *)
200 echo "Unknown CPU"
201 exit 1;
202 ;;
203esac
204
205if test -z $CC; then
206 if test "$targetos" = "FreeBSD"; then
207 if has clang; then
208 CC=clang
209 else
210 CC=gcc
211 fi
212 elif test "$targetos" = "MINGW32"; then
213 CC=x86_64-w64-mingw32-gcc
214 fi
215fi
216
217cc="${CC-${cross_prefix}gcc}"
218
219echo "Operating system $targetos"
220echo "CPU $cpu"
221echo "Compiler $cc"
222echo
223
224##########################################
225# check for wordsize
226wordsize="0"
227cat > $TMPC <<EOF
228#include <stdio.h>
229int main(void)
230{
231 unsigned int wsize = sizeof(long) * 8;
232 printf("%d\n", wsize);
233 return 0;
234}
235EOF
236if compile_prog "" "" "wordsize"; then
237 wordsize=$($TMPE)
238fi
239echo "Wordsize $wordsize"
240
241##########################################
242# linux-aio probe
243libaio="no"
244cat > $TMPC <<EOF
245#include <libaio.h>
246#include <stddef.h>
247int main(void)
248{
249 io_setup(0, NULL);
250 return 0;
251}
252EOF
253if compile_prog "" "-laio" "libaio" ; then
254 libaio=yes
255 LIBS="-laio $LIBS"
256else
257 if test "$libaio" = "yes" ; then
258 feature_not_found "linux AIO"
259 fi
260 libaio=no
261fi
262echo "Linux AIO support $libaio"
263
264##########################################
265# posix aio probe
266posix_aio="no"
267posix_aio_lrt="no"
268cat > $TMPC <<EOF
269#include <aio.h>
270int main(void)
271{
272 struct aiocb cb;
273 aio_read(&cb);
274 return 0;
275}
276EOF
277if compile_prog "" "" "posixaio" ; then
278 posix_aio="yes"
279elif compile_prog "" "-lrt" "posixaio"; then
280 posix_aio="yes"
281 posix_aio_lrt="yes"
282 LIBS="-lrt $LIBS"
283fi
284echo "POSIX AIO support $posix_aio"
285echo "POSIX AIO support needs -lrt $posix_aio_lrt"
286
287##########################################
288# posix aio fsync probe
289posix_aio_fsync="no"
290if test "$posix_aio" = "yes" ; then
291 cat > $TMPC <<EOF
292#include <fcntl.h>
293#include <aio.h>
294int main(void)
295{
296 struct aiocb cb;
297 return aio_fsync(O_SYNC, &cb);
298 return 0;
299}
300EOF
301 if compile_prog "" "$LIBS" "posix_aio_fsync" ; then
302 posix_aio_fsync=yes
303 fi
304fi
305echo "POSIX AIO fsync $posix_aio_fsync"
306
307##########################################
308# solaris aio probe
309solaris_aio="no"
310cat > $TMPC <<EOF
311#include <sys/types.h>
312#include <sys/asynch.h>
313#include <unistd.h>
314int main(void)
315{
316 aio_result_t res;
317 return aioread(0, NULL, 0, 0, SEEK_SET, &res);
318 return 0;
319}
320EOF
321if compile_prog "" "-laio" "solarisaio" ; then
322 solaris_aio=yes
323 LIBS="-laio $LIBS"
324fi
325echo "Solaris AIO support $solaris_aio"
326
327##########################################
328# __sync_fetch_and_and test
329sfaa="no"
330cat > $TMPC << EOF
331static int sfaa(int *ptr)
332{
333 return __sync_fetch_and_and(ptr, 0);
334}
335
336int main(int argc, char **argv)
337{
338 int val = 42;
339 sfaa(&val);
340 return val;
341}
342EOF
343if compile_prog "" "" "__sync_fetch_and_add()" ; then
344 sfaa="yes"
345fi
346echo "__sync_fetch_and add $sfaa"
347
348##########################################
349# libverbs probe
350libverbs="no"
351cat > $TMPC << EOF
352#include <stdio.h>
353#include <infiniband/arch.h>
354int main(int argc, char **argv)
355{
356 struct ibv_pd *pd = ibv_alloc_pd(NULL);
357 return 0;
358}
359EOF
360if compile_prog "" "-libverbs" "libverbs" ; then
361 libverbs="yes"
362 LIBS="-libverbs $LIBS"
363fi
364echo "libverbs $libverbs"
365
366##########################################
367# rdmacm probe
368rdmacm="no"
369cat > $TMPC << EOF
370#include <stdio.h>
371#include <rdma/rdma_cma.h>
372int main(int argc, char **argv)
373{
374 rdma_destroy_qp(NULL);
375 return 0;
376}
377EOF
378if compile_prog "" "-lrdmacm" "rdma"; then
379 rdmacm="yes"
380 LIBS="-lrdmacm $LIBS"
381fi
382echo "rdmacm $rdmacm"
383
384##########################################
385# Linux fallocate probe
386linux_fallocate="no"
387cat > $TMPC << EOF
388#include <stdio.h>
389#include <linux/falloc.h>
390int main(int argc, char **argv)
391{
392 int r = fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 1024);
393 return r;
394}
395EOF
396if compile_prog "" "" "linux_fallocate"; then
397 linux_fallocate="yes"
398fi
399echo "Linux fallocate $linux_fallocate"
400
401##########################################
402# POSIX fadvise probe
403posix_fadvise="no"
404cat > $TMPC << EOF
405#include <stdio.h>
406#include <fcntl.h>
407int main(int argc, char **argv)
408{
409 int r = posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL);
410 return r;
411}
412EOF
413if compile_prog "" "" "posix_fadvise"; then
414 posix_fadvise="yes"
415fi
416echo "POSIX fadvise $posix_fadvise"
417
418##########################################
419# POSIX fallocate probe
420posix_fallocate="no"
421cat > $TMPC << EOF
422#include <stdio.h>
423#include <fcntl.h>
424int main(int argc, char **argv)
425{
426 int r = posix_fallocate(0, 0, 1024);
427 return r;
428}
429EOF
430if compile_prog "" "" "posix_fallocate"; then
431 posix_fallocate="yes"
432fi
433echo "POSIX fallocate $posix_fallocate"
434
435##########################################
436# sched_set/getaffinity 2 or 3 argument test
437linux_2arg_affinity="no"
438linux_3arg_affinity="no"
439cat > $TMPC << EOF
440#define _GNU_SOURCE
441#include <sched.h>
442int main(int argc, char **argv)
443{
444 cpu_set_t mask;
445 return sched_setaffinity(0, sizeof(mask), &mask);
446}
447EOF
448if compile_prog "" "" "sched_setaffinity(,,)"; then
449 linux_3arg_affinity="yes"
450else
451 cat > $TMPC << EOF
452#define _GNU_SOURCE
453#include <sched.h>
454int main(int argc, char **argv)
455{
456 cpu_set_t mask;
457 return sched_setaffinity(0, &mask);
458}
459EOF
460 if compile_prog "" "" "sched_setaffinity(,)"; then
461 linux_2arg_affinity="yes"
462 fi
463fi
464echo "sched_setaffinity(3 arg) $linux_3arg_affinity"
465echo "sched_setaffinity(2 arg) $linux_2arg_affinity"
466
467##########################################
468# clock_gettime probe
469clock_gettime="no"
470cat > $TMPC << EOF
471#include <stdio.h>
472#include <time.h>
473int main(int argc, char **argv)
474{
475 return clock_gettime(0, NULL);
476}
477EOF
478if compile_prog "" "" "clock_gettime"; then
479 clock_gettime="yes"
480elif compile_prog "" "-lrt" "clock_gettime"; then
481 clock_gettime="yes"
482 LIBS="-lrt $LIBS"
483fi
484echo "clock_gettime $clock_gettime"
485
486##########################################
487# CLOCK_MONOTONIC probe
488clock_monotonic="no"
489if test "$clock_gettime" = "yes" ; then
490 cat > $TMPC << EOF
491#include <stdio.h>
492#include <time.h>
493int main(int argc, char **argv)
494{
495 return clock_gettime(CLOCK_MONOTONIC, NULL);
496}
497EOF
498 if compile_prog "" "$LIBS" "clock monotonic"; then
499 clock_monotonic="yes"
500 fi
501fi
502echo "CLOCK_MONOTONIC $clock_monotonic"
503
504##########################################
505# CLOCK_MONOTONIC_PRECISE probe
506clock_monotonic_precise="no"
507if test "$clock_gettime" = "yes" ; then
508 cat > $TMPC << EOF
509#include <stdio.h>
510#include <time.h>
511int main(int argc, char **argv)
512{
513 return clock_gettime(CLOCK_MONOTONIC_PRECISE, NULL);
514}
515EOF
516 if compile_prog "" "$LIBS" "clock monotonic precise"; then
517 clock_monotonic_precise="yes"
518 fi
519fi
520echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise"
521
522##########################################
523# gettimeofday() probe
524gettimeofday="no"
525cat > $TMPC << EOF
526#include <sys/time.h>
527#include <stdio.h>
528int main(int argc, char **argv)
529{
530 struct timeval tv;
531 return gettimeofday(&tv, NULL);
532}
533EOF
534if compile_prog "" "" "gettimeofday"; then
535 gettimeofday="yes"
536fi
537echo "gettimeofday $gettimeofday"
538
539##########################################
540# fdatasync() probe
541fdatasync="no"
542cat > $TMPC << EOF
543#include <stdio.h>
544#include <unistd.h>
545int main(int argc, char **argv)
546{
547 return fdatasync(0);
548}
549EOF
550if compile_prog "" "" "fdatasync"; then
551 fdatasync="yes"
552fi
553echo "fdatasync $fdatasync"
554
555##########################################
556# sync_file_range() probe
557sync_file_range="no"
558cat > $TMPC << EOF
559#include <stdio.h>
560#include <unistd.h>
561#define _GNU_SOURCE
562#include <fcntl.h>
563#include <linux/fs.h>
564int main(int argc, char **argv)
565{
566 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE | SYNC_FILE_RANGE_WRITE |
567 SYNC_FILE_RANGE_WAIT_AFTER;
568 return sync_file_range(0, 0, 0, flags);
569}
570EOF
571if compile_prog "" "" "sync_file_range"; then
572 sync_file_range="yes"
573fi
574echo "sync_file_range $sync_file_range"
575
576##########################################
577# ext4 move extent probe
578ext4_me="no"
579cat > $TMPC << EOF
580#include <fcntl.h>
581#include <sys/ioctl.h>
582int main(int argc, char **argv)
583{
584 struct move_extent me;
585 return ioctl(0, EXT4_IOC_MOVE_EXT, &me);
586}
587EOF
c7165b8d
JA
588if compile_prog "" "" "ext4 move extent" ; then
589 ext4_me="yes"
590elif test $targetos = "Linux" ; then
591 # On Linux, just default to it on and let it error at runtime if we really
592 # don't have it. None of my updated systems have it defined, but it does
593 # work. Takes a while to bubble back.
67bf9823
JA
594 ext4_me="yes"
595fi
596echo "EXT4 move extent $ext4_me"
597
598##########################################
599# splice probe
600linux_splice="no"
601cat > $TMPC << EOF
602#define _GNU_SOURCE
603#include <stdio.h>
604#include <fcntl.h>
605int main(int argc, char **argv)
606{
607 return splice(0, NULL, 0, NULL, 0, SPLICE_F_NONBLOCK);
608}
609EOF
610if compile_prog "" "" "linux splice"; then
611 linux_splice="yes"
612fi
613echo "Linux splice(2) $linux_splice"
614
615##########################################
616# GUASI probe
617guasi="no"
618cat > $TMPC << EOF
619#include <guasi.h>
620#include <guasi_syscalls.h>
621int main(int argc, char **argv)
622{
623 guasi_t ctx = guasi_create(0, 0, 0);
624 return 0;
625}
626EOF
627if compile_prog "" "" "guasi"; then
628 guasi="yes"
629fi
630echo "GUASI $guasi"
631
632##########################################
633# fusion-aw probe
634fusion_aw="no"
635cat > $TMPC << EOF
636#include <vsl_dp_experimental/vectored_write.h>
637int main(int argc, char **argv)
638{
639 struct vsl_iovec iov;
640 return vsl_vectored_write(0, &iov, 0, O_ATOMIC);
641}
642EOF
643if compile_prog "" "" "fusion-aw"; then
644 fusion_aw="yes"
645fi
646echo "Fusion-io atomic engine $fusion_aw"
647
648##########################################
649# libnuma probe
650libnuma="no"
651cat > $TMPC << EOF
652#include <numa.h>
653int main(int argc, char **argv)
654{
655 return numa_available();
656}
657EOF
658if compile_prog "" "-lnuma" "libnuma"; then
659 libnuma="yes"
660 LIBS="-lnuma $LIBS"
661fi
662echo "libnuma $libnuma"
663
664##########################################
665# strsep() probe
666strsep="no"
667cat > $TMPC << EOF
668#include <string.h>
669int main(int argc, char **argv)
670{
671 strsep(NULL, NULL);
672 return 0;
673}
674EOF
675if compile_prog "" "" "strsep"; then
676 strsep="yes"
677fi
678echo "strsep $strsep"
679
680##########################################
681# getopt_long_only() probe
682getopt_long_only="no"
683cat > $TMPC << EOF
684#include <unistd.h>
685#include <stdio.h>
686int main(int argc, char **argv)
687{
688 int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
689 return c;
690}
691EOF
692if compile_prog "" "" "getopt_long_only"; then
693 getopt_long_only="yes"
694fi
695echo "getopt_long_only() $getopt_long_only"
696
697##########################################
698# inet_aton() probe
699inet_aton="no"
700cat > $TMPC << EOF
701#include <sys/socket.h>
702#include <arpa/inet.h>
703#include <stdio.h>
704int main(int argc, char **argv)
705{
706 struct in_addr in;
707 return inet_aton(NULL, &in);
708}
709EOF
710if compile_prog "" "" "inet_aton"; then
711 inet_aton="yes"
712fi
713echo "inet_aton $inet_aton"
714
715##########################################
716# socklen_t probe
717socklen_t="no"
718cat > $TMPC << EOF
719#include <string.h>
720#include <netinet/in.h>
721int main(int argc, char **argv)
722{
723 socklen_t len = 0;
724 return len;
725}
726EOF
727if compile_prog "" "" "socklen_t"; then
728 socklen_t="yes"
729fi
730echo "socklen_t $socklen_t"
731
732##########################################
733# Whether or not __thread is supported for TLS
734tls_thread="no"
735cat > $TMPC << EOF
736#include <stdio.h>
737static int __thread ret;
738int main(int argc, char **argv)
739{
740 return ret;
741}
742EOF
743if compile_prog "" "" "__thread"; then
744 tls_thread="yes"
745fi
746echo "__thread $tls_thread"
747
748#############################################################################
749
750echo "# Automatically generated by configure - do not modify" > $config_host_mak
751printf "# Configured with:" >> $config_host_mak
752printf " '%s'" "$0" "$@" >> $config_host_mak
753echo >> $config_host_mak
754
755if test "$wordsize" = "64" ; then
756 echo "CONFIG_64BIT=y" >> $config_host_mak
757elif test "$wordsize" = "32" ; then
758 echo "CONFIG_32BIT=y" >> $config_host_mak
759else
760 echo "Unknown wordsize!"
761 exit 1
762fi
763if test "$libaio" = "yes" ; then
764 echo "CONFIG_LIBAIO=y" >> $config_host_mak
765fi
766if test "$posix_aio" = "yes" ; then
767 echo "CONFIG_POSIXAIO=y" >> $config_host_mak
768fi
769if test "$posix_aio_fsync" = "yes" ; then
770 echo "CONFIG_POSIXAIO_FSYNC=y" >> $config_host_mak
771fi
772if test "$linux_fallocate" = "yes" ; then
773 echo "CONFIG_LINUX_FALLOCATE=y" >> $config_host_mak
774fi
775if test "$posix_fallocate" = "yes" ; then
776 echo "CONFIG_POSIX_FALLOCATE=y" >> $config_host_mak
777fi
778if test "$fdatasync" = "yes" ; then
779 echo "CONFIG_FDATASYNC=y" >> $config_host_mak
780fi
781if test "$sync_file_range" = "yes" ; then
782 echo "CONFIG_SYNC_FILE_RANGE=y" >> $config_host_mak
783fi
784if test "$sfaa" = "yes" ; then
785 echo "CONFIG_SFAA=y" >> $config_host_mak
786fi
787if test "$libverbs" = "yes" -o "rdmacm" = "yes" ; then
788 echo "CONFIG_RDMA=y" >> $config_host_mak
789fi
790if test "$clock_gettime" = "yes" ; then
791 echo "CONFIG_CLOCK_GETTIME=y" >> $config_host_mak
792fi
793if test "$clock_monotonic" = "yes" ; then
794 echo "CONFIG_CLOCK_MONOTONIC=y" >> $config_host_mak
795fi
796if test "$clock_monotonic_precise" = "yes" ; then
797 echo "CONFIG_CLOCK_MONOTONIC_PRECISE=y" >> $config_host_mak
798fi
799if test "$gettimeofday" = "yes" ; then
800 echo "CONFIG_GETTIMEOFDAY=y" >> $config_host_mak
801fi
802if test "$posix_fadvise" = "yes" ; then
803 echo "CONFIG_POSIX_FADVISE=y" >> $config_host_mak
804fi
805if test "$linux_3arg_affinity" = "yes" ; then
806 echo "CONFIG_3ARG_AFFINITY=y" >> $config_host_mak
807elif test "$linux_2arg_affinity" = "yes" ; then
808 echo "CONFIG_2ARG_AFFINITY=y" >> $config_host_mak
809fi
810if test "$strsep" = "yes" ; then
811 echo "CONFIG_STRSEP=y" >> $config_host_mak
812fi
813if test "$getopt_long_only" = "yes" ; then
814 echo "CONFIG_GETOPT_LONG_ONLY=y" >> $config_host_mak
815fi
816if test "$inet_aton" = "yes" ; then
817 echo "CONFIG_INET_ATON=y" >> $config_host_mak
818fi
819if test "$socklen_t" = "yes" ; then
820 echo "CONFIG_SOCKLEN_T=y" >> $config_host_mak
821fi
822if test "$ext4_me" = "yes" ; then
823 echo "CONFIG_LINUX_EXT4_MOVE_EXTENT=y" >> $config_host_mak
824fi
825if test "$linux_splice" = "yes" ; then
826 echo "CONFIG_LINUX_SPLICE=y" >> $config_host_mak
827fi
828if test "$guasi" = "yes" ; then
829 echo "CONFIG_GUASI=y" >> $config_host_mak
830fi
831if test "$fusion_aw" = "yes" ; then
832 echo "CONFIG_FUSION_AW=y" >> $config_host_mak
833fi
834if test "$libnuma" = "yes" ; then
835 echo "CONFIG_LIBNUMA=y" >> $config_host_mak
836fi
837if test "$solaris_aio" = "yes" ; then
838 echo "CONFIG_SOLARISAIO=y" >> $config_host_mak
839fi
840if test "$tls_thread" = "yes" ; then
841 echo "CONFIG_TLS_THREAD=y" >> $config_host_mak
842fi
843
844echo "LIBS+=$LIBS" >> $config_host_mak
845echo "CC=$cc" >> $config_host_mak