3 # Fio configure script. Heavily influenced by the manual qemu configure
4 # script. Sad this this is easier than autoconf and enemies.
7 # set temporary file name
8 if test ! -z "$TMPDIR" ; then
10 elif test ! -z "$TEMPDIR" ; then
16 TMPC="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.c"
17 TMPO="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.o"
18 TMPE="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.exe"
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>
22 trap "rm -f $TMPC $TMPO $TMPE" EXIT INT QUIT TERM
26 config_host_mak="config-host.mak"
27 config_host_h="config-host.h"
29 rm -rf $config_host_mak
34 echo "Configure failed, check config.log and/or the above output"
35 rm -rf $config_host_mak
41 CFLAGS="-D_GNU_SOURCE -include config-host.h"
44 # Print a helpful header at the top of config.log
45 echo "# FIO configure log $(date)" >> config.log
46 printf "# Configured with:" >> config.log
47 printf " '%s'" "$0" "$@" >> config.log
49 echo "#" >> config.log
51 # Print configure header at the top of $config_host_h
52 echo "/*" > $config_host_h
53 echo " * Automatically generated by configure - do not modify" >> $config_host_h
54 printf " * Configured with:" >> $config_host_h
55 printf " * '%s'" "$0" "$@" >> $config_host_h
56 echo "" >> $config_host_h
57 echo " */" >> $config_host_h
60 # Run the compiler, capturing its output to the log.
61 echo $cc "$@" >> config.log
62 $cc "$@" >> config.log 2>&1 || return $?
63 # Test passed. If this is an --enable-werror build, rerun
64 # the test with -Werror and bail out if it fails. This
65 # makes warning-generating-errors in configure test code
66 # obvious to developers.
67 if test "$werror" != "yes"; then
70 # Don't bother rerunning the compile if we were already using -Werror
76 echo $cc -Werror "$@" >> config.log
77 $cc -Werror "$@" >> config.log 2>&1 && return $?
78 echo "ERROR: configure test passed without -Werror but failed with -Werror."
79 echo "This is probably a bug in the configure script. The failing command"
80 echo "will be at the bottom of config.log."
81 fatal "You can run configure with --disable-werror to bypass this check."
85 do_cc $CFLAGS -c -o $TMPO $TMPC
90 local_ldflags="$2 $LIBS"
91 echo "Compiling test case $3" >> config.log
92 do_cc $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
100 echo "ERROR: User requested feature $feature"
101 if test ! -z "$packages" ; then
102 echo "ERROR: That feature needs $packages installed"
104 echo "ERROR: configure was not able to find it"
109 type "$1" >/dev/null 2>&1
115 #error $1 not defined
126 echo "$1=y" >> $config_host_mak
127 echo "#define $1" >> $config_host_h
133 cross_prefix=${cross_prefix-${CROSS_COMPILE}}
134 cc="${CC-${cross_prefix}gcc}"
143 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
145 --cpu=*) cpu="$optarg"
149 --extra-cflags=*) CFLAGS="$CFLAGS $optarg"
151 --build-32bit-win) build_32bit_win="yes"
156 --disable-numa) disable_numa="yes"
162 echo "Bad option $opt"
168 if test "$show_help" = "yes" ; then
169 echo "--cpu= Specify target CPU if auto-detect fails"
170 echo "--cc= Specify compiler to use"
171 echo "--extra-cflags= Specify extra CFLAGS to pass to compiler"
172 echo "--build-32bit-win Enable 32-bit build on Windows"
173 echo "--enable-gfio Enable building of gtk gfio"
174 echo "--disable-numa Disable libnuma even if found"
178 if check_define __ANDROID__ ; then
180 elif check_define __linux__ ; then
182 elif check_define __OpenBSD__ ; then
184 elif check_define __sun__ ; then
190 echo "# Automatically generated by configure - do not modify" > $config_host_mak
191 printf "# Configured with:" >> $config_host_mak
192 printf " '%s'" "$0" "$@" >> $config_host_mak
193 echo >> $config_host_mak
194 echo "CONFIG_TARGET_OS=$targetos" >> $config_host_mak
196 # Some host OSes need non-standard checks for which CPU to use.
197 # Note that these checks are broken for cross-compilation: if you're
198 # cross-compiling to one of these OSes then you'll need to specify
199 # the correct CPU with the --cpu option.
202 # on Leopard most of the system is 32-bit, so we have to ask the kernel if
203 # we can run 64-bit userspace code.
204 # If the user didn't specify a CPU explicitly and the kernel says this is
205 # 64 bit hw, then assume x86_64. Otherwise fall through to the usual
207 if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
212 # `uname -m` returns i86pc even on an x86_64 box, so default based on isainfo
213 if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
216 LIBS="-lnsl -lsocket"
219 echo "Forcing known good options on Windows"
220 if test -z "$CC" ; then
221 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
222 CC="i686-w64-mingw32-gcc"
224 CC="x86_64-w64-mingw32-gcc"
227 output_sym "CONFIG_LITTLE_ENDIAN"
228 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
229 output_sym "CONFIG_32BIT"
231 output_sym "CONFIG_64BIT_LLP64"
233 output_sym "CONFIG_FADVISE"
234 output_sym "CONFIG_SOCKLEN_T"
235 output_sym "CONFIG_FADVISE"
236 output_sym "CONFIG_SFAA"
237 output_sym "CONFIG_RUSAGE_THREAD"
238 output_sym "CONFIG_WINDOWSAIO"
239 output_sym "CONFIG_FDATASYNC"
240 output_sym "CONFIG_CLOCK_MONOTONIC"
241 output_sym "CONFIG_GETTIMEOFDAY"
242 output_sym "CONFIG_CLOCK_GETTIME"
243 output_sym "CONFIG_SCHED_IDLE"
244 output_sym "CONFIG_TCP_NODELAY"
245 echo "CC=$CC" >> $config_host_mak
246 echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
251 if test ! -z "$cpu" ; then
252 # command line argument
254 elif check_define __i386__ ; then
256 elif check_define __x86_64__ ; then
258 elif check_define __sparc__ ; then
259 if check_define __arch64__ ; then
264 elif check_define _ARCH_PPC ; then
265 if check_define _ARCH_PPC64 ; then
270 elif check_define __mips__ ; then
272 elif check_define __ia64__ ; then
274 elif check_define __s390__ ; then
275 if check_define __s390x__ ; then
280 elif check_define __arm__ ; then
282 elif check_define __hppa__ ; then
288 # Normalise host CPU name and set ARCH.
290 ia64|ppc|ppc64|s390|s390x|sparc64)
293 i386|i486|i586|i686|i86pc|BePC)
302 hppa|parisc|parisc64)
316 if test -z "$CC" ; then
317 if test "$targetos" = "FreeBSD"; then
326 cc="${CC-${cross_prefix}gcc}"
328 ##########################################
329 # check cross compile
338 if compile_prog "" "" "cross"; then
339 $TMPE 2>/dev/null || cross_compile="yes"
341 fatal "compile test failed"
344 ##########################################
347 if test "$cross_compile" = "no" ; then
349 #include <inttypes.h>
352 volatile uint32_t i=0x01234567;
353 return (*((uint8_t*)(&i))) == 0x67;
356 if compile_prog "" "" "endian"; then
357 $TMPE && bigendian="yes"
360 # If we're cross compiling, try our best to work it out and rely on the
361 # run-time check to fail if we get it wrong.
366 #if __BYTE_ORDER != __BIG_ENDIAN
367 # error "Unknown endianness"
371 compile_prog "" "" "endian" && bigendian="yes"
372 check_define "__ARMEB__" && bigendian="yes"
373 check_define "__MIPSEB__" && bigendian="yes"
377 echo "Operating system $targetos"
379 echo "Big endian $bigendian"
381 echo "Cross compile $cross_compile"
384 ##########################################
389 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
392 BUILD_BUG_ON(sizeof(long)*CHAR_BIT != WORDSIZE);
396 if compile_prog "-DWORDSIZE=32" "" "wordsize"; then
398 elif compile_prog "-DWORDSIZE=64" "" "wordsize"; then
401 fatal "Unknown wordsize"
403 echo "Wordsize $wordsize"
405 ##########################################
413 if (inflateInit(&stream) != Z_OK)
418 if compile_prog "" "-lz" "zlib" ; then
424 ##########################################
436 if compile_prog "" "-laio" "libaio" ; then
440 if test "$libaio" = "yes" ; then
441 feature_not_found "linux AIO" "libaio-dev or libaio-devel"
445 echo "Linux AIO support $libaio"
447 ##########################################
460 if compile_prog "" "" "posixaio" ; then
462 elif compile_prog "" "-lrt" "posixaio"; then
467 echo "POSIX AIO support $posix_aio"
468 echo "POSIX AIO support needs -lrt $posix_aio_lrt"
470 ##########################################
471 # posix aio fsync probe
473 if test "$posix_aio" = "yes" ; then
480 return aio_fsync(O_SYNC, &cb);
484 if compile_prog "" "$LIBS" "posix_aio_fsync" ; then
488 echo "POSIX AIO fsync $posix_aio_fsync"
490 ##########################################
494 #include <sys/types.h>
495 #include <sys/asynch.h>
500 return aioread(0, NULL, 0, 0, SEEK_SET, &res);
504 if compile_prog "" "-laio" "solarisaio" ; then
508 echo "Solaris AIO support $solaris_aio"
510 ##########################################
511 # __sync_fetch_and_and test
514 static int sfaa(int *ptr)
516 return __sync_fetch_and_add(ptr, 0);
519 int main(int argc, char **argv)
526 if compile_prog "" "" "__sync_fetch_and_add()" ; then
529 echo "__sync_fetch_and_add $sfaa"
531 ##########################################
536 #include <infiniband/arch.h>
537 int main(int argc, char **argv)
539 struct ibv_pd *pd = ibv_alloc_pd(NULL);
543 if compile_prog "" "-libverbs" "libverbs" ; then
545 LIBS="-libverbs $LIBS"
547 echo "libverbs $libverbs"
549 ##########################################
554 #include <rdma/rdma_cma.h>
555 int main(int argc, char **argv)
557 rdma_destroy_qp(NULL);
561 if compile_prog "" "-lrdmacm" "rdma"; then
563 LIBS="-lrdmacm $LIBS"
565 echo "rdmacm $rdmacm"
567 ##########################################
568 # Linux fallocate probe
572 #include <linux/falloc.h>
573 int main(int argc, char **argv)
575 int r = fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 1024);
579 if compile_prog "" "" "linux_fallocate"; then
580 linux_fallocate="yes"
582 echo "Linux fallocate $linux_fallocate"
584 ##########################################
585 # POSIX fadvise probe
590 int main(int argc, char **argv)
592 int r = posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL);
596 if compile_prog "" "" "posix_fadvise"; then
599 echo "POSIX fadvise $posix_fadvise"
601 ##########################################
602 # POSIX fallocate probe
607 int main(int argc, char **argv)
609 int r = posix_fallocate(0, 0, 1024);
613 if compile_prog "" "" "posix_fallocate"; then
614 posix_fallocate="yes"
616 echo "POSIX fallocate $posix_fallocate"
618 ##########################################
619 # sched_set/getaffinity 2 or 3 argument test
620 linux_2arg_affinity="no"
621 linux_3arg_affinity="no"
624 int main(int argc, char **argv)
627 return sched_setaffinity(0, sizeof(mask), &mask);
630 if compile_prog "" "" "sched_setaffinity(,,)"; then
631 linux_3arg_affinity="yes"
635 int main(int argc, char **argv)
638 return sched_setaffinity(0, &mask);
641 if compile_prog "" "" "sched_setaffinity(,)"; then
642 linux_2arg_affinity="yes"
645 echo "sched_setaffinity(3 arg) $linux_3arg_affinity"
646 echo "sched_setaffinity(2 arg) $linux_2arg_affinity"
648 ##########################################
649 # clock_gettime probe
654 int main(int argc, char **argv)
656 return clock_gettime(0, NULL);
659 if compile_prog "" "" "clock_gettime"; then
661 elif compile_prog "" "-lrt" "clock_gettime"; then
665 echo "clock_gettime $clock_gettime"
667 ##########################################
668 # CLOCK_MONOTONIC probe
670 if test "$clock_gettime" = "yes" ; then
674 int main(int argc, char **argv)
676 return clock_gettime(CLOCK_MONOTONIC, NULL);
679 if compile_prog "" "$LIBS" "clock monotonic"; then
680 clock_monotonic="yes"
683 echo "CLOCK_MONOTONIC $clock_monotonic"
685 ##########################################
686 # CLOCK_MONOTONIC_PRECISE probe
687 clock_monotonic_precise="no"
688 if test "$clock_gettime" = "yes" ; then
692 int main(int argc, char **argv)
694 return clock_gettime(CLOCK_MONOTONIC_PRECISE, NULL);
697 if compile_prog "" "$LIBS" "clock monotonic precise"; then
698 clock_monotonic_precise="yes"
701 echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise"
703 ##########################################
704 # gettimeofday() probe
707 #include <sys/time.h>
709 int main(int argc, char **argv)
712 return gettimeofday(&tv, NULL);
715 if compile_prog "" "" "gettimeofday"; then
718 echo "gettimeofday $gettimeofday"
720 ##########################################
726 int main(int argc, char **argv)
731 if compile_prog "" "" "fdatasync"; then
734 echo "fdatasync $fdatasync"
736 ##########################################
737 # sync_file_range() probe
743 #include <linux/fs.h>
744 int main(int argc, char **argv)
746 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE | SYNC_FILE_RANGE_WRITE |
747 SYNC_FILE_RANGE_WAIT_AFTER;
748 return sync_file_range(0, 0, 0, flags);
751 if compile_prog "" "" "sync_file_range"; then
752 sync_file_range="yes"
754 echo "sync_file_range $sync_file_range"
756 ##########################################
757 # ext4 move extent probe
761 #include <sys/ioctl.h>
762 int main(int argc, char **argv)
764 struct move_extent me;
765 return ioctl(0, EXT4_IOC_MOVE_EXT, &me);
768 if compile_prog "" "" "ext4 move extent" ; then
770 elif test $targetos = "Linux" ; then
771 # On Linux, just default to it on and let it error at runtime if we really
772 # don't have it. None of my updated systems have it defined, but it does
773 # work. Takes a while to bubble back.
776 echo "EXT4 move extent $ext4_me"
778 ##########################################
784 int main(int argc, char **argv)
786 return splice(0, NULL, 0, NULL, 0, SPLICE_F_NONBLOCK);
789 if compile_prog "" "" "linux splice"; then
792 echo "Linux splice(2) $linux_splice"
794 ##########################################
799 #include <guasi_syscalls.h>
800 int main(int argc, char **argv)
802 guasi_t ctx = guasi_create(0, 0, 0);
806 if compile_prog "" "" "guasi"; then
811 ##########################################
815 #include <nvm/nvm_primitives.h>
816 int main(int argc, char **argv)
818 nvm_version_t ver_info;
821 handle = nvm_get_handle(0, &ver_info);
822 return nvm_atomic_write(handle, 0, 0, 0);
825 if compile_prog "" "-L/usr/lib/fio -L/usr/lib/nvm -lnvm-primitives -lvsl -ldl" "fusion-aw"; then
826 LIBS="-L/usr/lib/fio -L/usr/lib/nvm -lnvm-primitives -lvsl -ldl $LIBS"
829 echo "Fusion-io atomic engine $fusion_aw"
831 ##########################################
836 int main(int argc, char **argv)
838 return numa_available();
841 if test "$disable_numa" != "yes" && compile_prog "" "-lnuma" "libnuma"; then
845 echo "libnuma $libnuma"
847 ##########################################
848 # libnuma 2.x version API
849 if test "$libnuma" = "yes" ; then
853 int main(int argc, char **argv)
855 struct bitmask *mask = numa_parse_nodestring(NULL);
859 if compile_prog "" "" "libnuma api"; then
862 echo "libnuma v2 $libnuma_v2"
865 ##########################################
870 int main(int argc, char **argv)
876 if compile_prog "" "" "strsep"; then
879 echo "strsep $strsep"
881 ##########################################
886 int main(int argc, char **argv)
888 strcasestr(NULL, NULL);
892 if compile_prog "" "" "strcasestr"; then
895 echo "strcasestr $strcasestr"
897 ##########################################
898 # getopt_long_only() probe
899 getopt_long_only="no"
903 int main(int argc, char **argv)
905 int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
909 if compile_prog "" "" "getopt_long_only"; then
910 getopt_long_only="yes"
912 echo "getopt_long_only() $getopt_long_only"
914 ##########################################
918 #include <sys/socket.h>
919 #include <arpa/inet.h>
921 int main(int argc, char **argv)
924 return inet_aton(NULL, &in);
927 if compile_prog "" "" "inet_aton"; then
930 echo "inet_aton $inet_aton"
932 ##########################################
936 #include <sys/socket.h>
937 int main(int argc, char **argv)
943 if compile_prog "" "" "socklen_t"; then
946 echo "socklen_t $socklen_t"
948 ##########################################
949 # Whether or not __thread is supported for TLS
953 static int __thread ret;
954 int main(int argc, char **argv)
959 if compile_prog "" "" "__thread"; then
962 echo "__thread $tls_thread"
964 ##########################################
965 # Check if we have required gtk/glib support for gfio
966 if test "$gfio" = "yes" ; then
976 printf("%d", GTK_CHECK_VERSION(2, 18, 0));
979 GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0)
980 if test "$?" != "0" ; then
981 echo "configure: gtk and gthread not found"
984 GTK_LIBS=$(pkg-config --libs gtk+-2.0 gthread-2.0)
985 if test "$?" != "0" ; then
986 echo "configure: gtk and gthread not found"
989 if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then
991 if test "$r" != "0" ; then
993 LIBS="$LIBS $GTK_LIBS"
994 CFLAGS="$CFLAGS $GTK_CFLAGS"
996 echo "GTK found, but need version 2.18 or higher"
1000 echo "Please install gtk and gdk libraries"
1005 echo "gtk 2.18 or higher $gfio"
1007 # Check whether we have getrusage(RUSAGE_THREAD)
1010 #include <sys/time.h>
1011 #include <sys/resource.h>
1012 int main(int argc, char **argv)
1015 getrusage(RUSAGE_THREAD, &ru);
1019 if compile_prog "" "" "RUSAGE_THREAD"; then
1022 echo "RUSAGE_THREAD $rusage_thread"
1024 ##########################################
1025 # Check whether we have SCHED_IDLE
1029 int main(int argc, char **argv)
1031 struct sched_param p;
1032 return sched_setscheduler(0, SCHED_IDLE, &p);
1035 if compile_prog "" "" "SCHED_IDLE"; then
1038 echo "SCHED_IDLE $sched_idle"
1040 ##########################################
1041 # Check whether we have TCP_NODELAY
1045 #include <sys/types.h>
1046 #include <sys/socket.h>
1047 #include <netinet/tcp.h>
1048 int main(int argc, char **argv)
1050 return getsockopt(0, 0, TCP_NODELAY, NULL, NULL);
1053 if compile_prog "" "" "TCP_NODELAY"; then
1056 echo "TCP_NODELAY $tcp_nodelay"
1058 ##########################################
1059 # Check whether we have RLIMIT_MEMLOCK
1062 #include <sys/time.h>
1063 #include <sys/resource.h>
1064 int main(int argc, char **argv)
1067 return getrlimit(RLIMIT_MEMLOCK, &rl);
1070 if compile_prog "" "" "RLIMIT_MEMLOCK"; then
1071 rlimit_memlock="yes"
1073 echo "RLIMIT_MEMLOCK $rlimit_memlock"
1075 ##########################################
1076 # Check whether we have pwritev/preadv
1080 #include <sys/uio.h>
1081 int main(int argc, char **argv)
1083 return pwritev(0, NULL, 1, 0) + preadv(0, NULL, 1, 0);
1086 if compile_prog "" "" "pwritev"; then
1089 echo "pwritev/preadv $pwritev"
1092 #############################################################################
1094 if test "$wordsize" = "64" ; then
1095 output_sym "CONFIG_64BIT"
1096 elif test "$wordsize" = "32" ; then
1097 output_sym "CONFIG_32BIT"
1099 fatal "Unknown wordsize!"
1101 if test "$bigendian" = "yes" ; then
1102 output_sym "CONFIG_BIG_ENDIAN"
1104 output_sym "CONFIG_LITTLE_ENDIAN"
1106 if test "$zlib" = "yes" ; then
1107 output_sym "CONFIG_ZLIB"
1109 if test "$libaio" = "yes" ; then
1110 output_sym "CONFIG_LIBAIO"
1112 if test "$posix_aio" = "yes" ; then
1113 output_sym "CONFIG_POSIXAIO"
1115 if test "$posix_aio_fsync" = "yes" ; then
1116 output_sym "CONFIG_POSIXAIO_FSYNC"
1118 if test "$linux_fallocate" = "yes" ; then
1119 output_sym "CONFIG_LINUX_FALLOCATE"
1121 if test "$posix_fallocate" = "yes" ; then
1122 output_sym "CONFIG_POSIX_FALLOCATE"
1124 if test "$fdatasync" = "yes" ; then
1125 output_sym "CONFIG_FDATASYNC"
1127 if test "$sync_file_range" = "yes" ; then
1128 output_sym "CONFIG_SYNC_FILE_RANGE"
1130 if test "$sfaa" = "yes" ; then
1131 output_sym "CONFIG_SFAA"
1133 if test "$libverbs" = "yes" -a "$rdmacm" = "yes" ; then
1134 output_sym "CONFIG_RDMA"
1136 if test "$clock_gettime" = "yes" ; then
1137 output_sym "CONFIG_CLOCK_GETTIME"
1139 if test "$clock_monotonic" = "yes" ; then
1140 output_sym "CONFIG_CLOCK_MONOTONIC"
1142 if test "$clock_monotonic_precise" = "yes" ; then
1143 output_sym "CONFIG_CLOCK_MONOTONIC_PRECISE"
1145 if test "$gettimeofday" = "yes" ; then
1146 output_sym "CONFIG_GETTIMEOFDAY"
1148 if test "$posix_fadvise" = "yes" ; then
1149 output_sym "CONFIG_POSIX_FADVISE"
1151 if test "$linux_3arg_affinity" = "yes" ; then
1152 output_sym "CONFIG_3ARG_AFFINITY"
1153 elif test "$linux_2arg_affinity" = "yes" ; then
1154 output_sym "CONFIG_2ARG_AFFINITY"
1156 if test "$strsep" = "yes" ; then
1157 output_sym "CONFIG_STRSEP"
1159 if test "$strcasestr" = "yes" ; then
1160 output_sym "CONFIG_STRCASESTR"
1162 if test "$getopt_long_only" = "yes" ; then
1163 output_sym "CONFIG_GETOPT_LONG_ONLY"
1165 if test "$inet_aton" = "yes" ; then
1166 output_sym "CONFIG_INET_ATON"
1168 if test "$socklen_t" = "yes" ; then
1169 output_sym "CONFIG_SOCKLEN_T"
1171 if test "$ext4_me" = "yes" ; then
1172 output_sym "CONFIG_LINUX_EXT4_MOVE_EXTENT"
1174 if test "$linux_splice" = "yes" ; then
1175 output_sym "CONFIG_LINUX_SPLICE"
1177 if test "$guasi" = "yes" ; then
1178 output_sym "CONFIG_GUASI"
1180 if test "$fusion_aw" = "yes" ; then
1181 output_sym "CONFIG_FUSION_AW"
1183 if test "$libnuma_v2" = "yes" ; then
1184 output_sym "CONFIG_LIBNUMA"
1186 if test "$solaris_aio" = "yes" ; then
1187 output_sym "CONFIG_SOLARISAIO"
1189 if test "$tls_thread" = "yes" ; then
1190 output_sym "CONFIG_TLS_THREAD"
1192 if test "$rusage_thread" = "yes" ; then
1193 output_sym "CONFIG_RUSAGE_THREAD"
1195 if test "$gfio" = "yes" ; then
1196 echo "CONFIG_GFIO=y" >> $config_host_mak
1198 if test "$sched_idle" = "yes" ; then
1199 output_sym "CONFIG_SCHED_IDLE"
1201 if test "$tcp_nodelay" = "yes" ; then
1202 output_sym "CONFIG_TCP_NODELAY"
1204 if test "$rlimit_memlock" = "yes" ; then
1205 output_sym "CONFIG_RLIMIT_MEMLOCK"
1207 if test "$pwritev" = "yes" ; then
1208 output_sym "CONFIG_PWRITEV"
1211 echo "LIBS+=$LIBS" >> $config_host_mak
1212 echo "CFLAGS+=$CFLAGS" >> $config_host_mak
1213 echo "CC=$cc" >> $config_host_mak
1214 echo "BUILD_CFLAGS=$BUILD_CFLAGS $CFLAGS" >> $config_host_mak