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
99 echo "ERROR: User requested feature $feature"
100 echo "ERROR: configure was not able to find it"
105 type "$1" >/dev/null 2>&1
111 #error $1 not defined
122 echo "$1=y" >> $config_host_mak
123 echo "#define $1" >> $config_host_h
129 cross_prefix=${cross_prefix-${CROSS_COMPILE}}
130 cc="${CC-${cross_prefix}gcc}"
139 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
141 --cpu=*) cpu="$optarg"
145 --extra-cflags=*) CFLAGS="$CFLAGS $optarg"
147 --build-32bit-win=*) build_32bit_win="$optarg"
156 echo "Bad option $opt"
162 if test "$show_help" = "yes" ; then
163 echo "--cpu= Specify target CPU if auto-detect fails"
164 echo "--cc= Specify compiler to use"
165 echo "--extra-cflags= Specify extra CFLAGS to pass to compiler"
166 echo "--build-32bit-win= Specify yes for a 32-bit build on Windows"
167 echo "--enable-gfio Enable building of gtk gfio"
171 if check_define __ANDROID__ ; then
173 elif check_define __linux__ ; then
175 elif check_define __OpenBSD__ ; then
177 elif check_define __sun__ ; then
183 echo "# Automatically generated by configure - do not modify" > $config_host_mak
184 printf "# Configured with:" >> $config_host_mak
185 printf " '%s'" "$0" "$@" >> $config_host_mak
186 echo >> $config_host_mak
187 echo "CONFIG_TARGET_OS=$targetos" >> $config_host_mak
189 # Some host OSes need non-standard checks for which CPU to use.
190 # Note that these checks are broken for cross-compilation: if you're
191 # cross-compiling to one of these OSes then you'll need to specify
192 # the correct CPU with the --cpu option.
195 # on Leopard most of the system is 32-bit, so we have to ask the kernel if
196 # we can run 64-bit userspace code.
197 # If the user didn't specify a CPU explicitly and the kernel says this is
198 # 64 bit hw, then assume x86_64. Otherwise fall through to the usual
200 if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
205 # `uname -m` returns i86pc even on an x86_64 box, so default based on isainfo
206 if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
209 LIBS="-lnsl -lsocket"
212 echo "Forcing known good options on Windows"
213 if test -z "$CC" ; then
214 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
215 CC="i686-w64-mingw32-gcc"
217 CC="x86_64-w64-mingw32-gcc"
220 output_sym "CONFIG_LITTLE_ENDIAN"
221 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
222 output_sym "CONFIG_32BIT"
224 output_sym "CONFIG_64BIT_LLP64"
226 output_sym "CONFIG_FADVISE"
227 output_sym "CONFIG_SOCKLEN_T"
228 output_sym "CONFIG_FADVISE"
229 output_sym "CONFIG_SFAA"
230 output_sym "CONFIG_RUSAGE_THREAD"
231 output_sym "CONFIG_WINDOWSAIO"
232 output_sym "CONFIG_FDATASYNC"
233 output_sym "CONFIG_CLOCK_MONOTONIC"
234 output_sym "CONFIG_GETTIMEOFDAY"
235 output_sym "CONFIG_CLOCK_GETTIME"
236 output_sym "CONFIG_SCHED_IDLE"
237 output_sym "CONFIG_TCP_NODELAY"
238 echo "CC=$CC" >> $config_host_mak
239 echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
244 if test ! -z "$cpu" ; then
245 # command line argument
247 elif check_define __i386__ ; then
249 elif check_define __x86_64__ ; then
251 elif check_define __sparc__ ; then
252 if check_define __arch64__ ; then
257 elif check_define _ARCH_PPC ; then
258 if check_define _ARCH_PPC64 ; then
263 elif check_define __mips__ ; then
265 elif check_define __ia64__ ; then
267 elif check_define __s390__ ; then
268 if check_define __s390x__ ; then
273 elif check_define __arm__ ; then
275 elif check_define __hppa__ ; then
281 # Normalise host CPU name and set ARCH.
283 ia64|ppc|ppc64|s390|s390x|sparc64)
286 i386|i486|i586|i686|i86pc|BePC)
295 hppa|parisc|parisc64)
309 if test -z "$CC" ; then
310 if test "$targetos" = "FreeBSD"; then
319 cc="${CC-${cross_prefix}gcc}"
321 ##########################################
322 # check cross compile
331 if compile_prog "" "" "cross"; then
332 $TMPE 2>/dev/null || cross_compile="yes"
334 fatal "compile test failed"
337 ##########################################
340 if test "$cross_compile" = "no" ; then
342 #include <inttypes.h>
345 volatile uint32_t i=0x01234567;
346 return (*((uint8_t*)(&i))) == 0x67;
349 if compile_prog "" "" "endian"; then
350 $TMPE && bigendian="yes"
353 # If we're cross compiling, try our best to work it out and rely on the
354 # run-time check to fail if we get it wrong.
359 #if __BYTE_ORDER != __BIG_ENDIAN
360 # error "Unknown endianness"
364 compile_prog "" "" "endian" && bigendian="yes"
365 check_define "__ARMEB__" && bigendian="yes"
366 check_define "__MIPSEB__" && bigendian="yes"
370 echo "Operating system $targetos"
372 echo "Big endian $bigendian"
374 echo "Cross compile $cross_compile"
377 ##########################################
382 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
385 BUILD_BUG_ON(sizeof(long)*CHAR_BIT != WORDSIZE);
389 if compile_prog "-DWORDSIZE=32" "" "wordsize"; then
391 elif compile_prog "-DWORDSIZE=64" "" "wordsize"; then
394 fatal "Unknown wordsize"
396 echo "Wordsize $wordsize"
398 ##########################################
406 if (inflateInit(&stream) != Z_OK)
411 if compile_prog "" "-lz" "zlib" ; then
415 feature_not_found "zlib"
420 ##########################################
432 if compile_prog "" "-laio" "libaio" ; then
436 if test "$libaio" = "yes" ; then
437 feature_not_found "linux AIO"
441 echo "Linux AIO support $libaio"
443 ##########################################
456 if compile_prog "" "" "posixaio" ; then
458 elif compile_prog "" "-lrt" "posixaio"; then
463 echo "POSIX AIO support $posix_aio"
464 echo "POSIX AIO support needs -lrt $posix_aio_lrt"
466 ##########################################
467 # posix aio fsync probe
469 if test "$posix_aio" = "yes" ; then
476 return aio_fsync(O_SYNC, &cb);
480 if compile_prog "" "$LIBS" "posix_aio_fsync" ; then
484 echo "POSIX AIO fsync $posix_aio_fsync"
486 ##########################################
490 #include <sys/types.h>
491 #include <sys/asynch.h>
496 return aioread(0, NULL, 0, 0, SEEK_SET, &res);
500 if compile_prog "" "-laio" "solarisaio" ; then
504 echo "Solaris AIO support $solaris_aio"
506 ##########################################
507 # __sync_fetch_and_and test
510 static int sfaa(int *ptr)
512 return __sync_fetch_and_add(ptr, 0);
515 int main(int argc, char **argv)
522 if compile_prog "" "" "__sync_fetch_and_add()" ; then
525 echo "__sync_fetch_and_add $sfaa"
527 ##########################################
532 #include <infiniband/arch.h>
533 int main(int argc, char **argv)
535 struct ibv_pd *pd = ibv_alloc_pd(NULL);
539 if compile_prog "" "-libverbs" "libverbs" ; then
541 LIBS="-libverbs $LIBS"
543 echo "libverbs $libverbs"
545 ##########################################
550 #include <rdma/rdma_cma.h>
551 int main(int argc, char **argv)
553 rdma_destroy_qp(NULL);
557 if compile_prog "" "-lrdmacm" "rdma"; then
559 LIBS="-lrdmacm $LIBS"
561 echo "rdmacm $rdmacm"
563 ##########################################
564 # Linux fallocate probe
568 #include <linux/falloc.h>
569 int main(int argc, char **argv)
571 int r = fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 1024);
575 if compile_prog "" "" "linux_fallocate"; then
576 linux_fallocate="yes"
578 echo "Linux fallocate $linux_fallocate"
580 ##########################################
581 # POSIX fadvise probe
586 int main(int argc, char **argv)
588 int r = posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL);
592 if compile_prog "" "" "posix_fadvise"; then
595 echo "POSIX fadvise $posix_fadvise"
597 ##########################################
598 # POSIX fallocate probe
603 int main(int argc, char **argv)
605 int r = posix_fallocate(0, 0, 1024);
609 if compile_prog "" "" "posix_fallocate"; then
610 posix_fallocate="yes"
612 echo "POSIX fallocate $posix_fallocate"
614 ##########################################
615 # sched_set/getaffinity 2 or 3 argument test
616 linux_2arg_affinity="no"
617 linux_3arg_affinity="no"
620 int main(int argc, char **argv)
623 return sched_setaffinity(0, sizeof(mask), &mask);
626 if compile_prog "" "" "sched_setaffinity(,,)"; then
627 linux_3arg_affinity="yes"
631 int main(int argc, char **argv)
634 return sched_setaffinity(0, &mask);
637 if compile_prog "" "" "sched_setaffinity(,)"; then
638 linux_2arg_affinity="yes"
641 echo "sched_setaffinity(3 arg) $linux_3arg_affinity"
642 echo "sched_setaffinity(2 arg) $linux_2arg_affinity"
644 ##########################################
645 # clock_gettime probe
650 int main(int argc, char **argv)
652 return clock_gettime(0, NULL);
655 if compile_prog "" "" "clock_gettime"; then
657 elif compile_prog "" "-lrt" "clock_gettime"; then
661 echo "clock_gettime $clock_gettime"
663 ##########################################
664 # CLOCK_MONOTONIC probe
666 if test "$clock_gettime" = "yes" ; then
670 int main(int argc, char **argv)
672 return clock_gettime(CLOCK_MONOTONIC, NULL);
675 if compile_prog "" "$LIBS" "clock monotonic"; then
676 clock_monotonic="yes"
679 echo "CLOCK_MONOTONIC $clock_monotonic"
681 ##########################################
682 # CLOCK_MONOTONIC_PRECISE probe
683 clock_monotonic_precise="no"
684 if test "$clock_gettime" = "yes" ; then
688 int main(int argc, char **argv)
690 return clock_gettime(CLOCK_MONOTONIC_PRECISE, NULL);
693 if compile_prog "" "$LIBS" "clock monotonic precise"; then
694 clock_monotonic_precise="yes"
697 echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise"
699 ##########################################
700 # gettimeofday() probe
703 #include <sys/time.h>
705 int main(int argc, char **argv)
708 return gettimeofday(&tv, NULL);
711 if compile_prog "" "" "gettimeofday"; then
714 echo "gettimeofday $gettimeofday"
716 ##########################################
722 int main(int argc, char **argv)
727 if compile_prog "" "" "fdatasync"; then
730 echo "fdatasync $fdatasync"
732 ##########################################
733 # sync_file_range() probe
739 #include <linux/fs.h>
740 int main(int argc, char **argv)
742 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE | SYNC_FILE_RANGE_WRITE |
743 SYNC_FILE_RANGE_WAIT_AFTER;
744 return sync_file_range(0, 0, 0, flags);
747 if compile_prog "" "" "sync_file_range"; then
748 sync_file_range="yes"
750 echo "sync_file_range $sync_file_range"
752 ##########################################
753 # ext4 move extent probe
757 #include <sys/ioctl.h>
758 int main(int argc, char **argv)
760 struct move_extent me;
761 return ioctl(0, EXT4_IOC_MOVE_EXT, &me);
764 if compile_prog "" "" "ext4 move extent" ; then
766 elif test $targetos = "Linux" ; then
767 # On Linux, just default to it on and let it error at runtime if we really
768 # don't have it. None of my updated systems have it defined, but it does
769 # work. Takes a while to bubble back.
772 echo "EXT4 move extent $ext4_me"
774 ##########################################
780 int main(int argc, char **argv)
782 return splice(0, NULL, 0, NULL, 0, SPLICE_F_NONBLOCK);
785 if compile_prog "" "" "linux splice"; then
788 echo "Linux splice(2) $linux_splice"
790 ##########################################
795 #include <guasi_syscalls.h>
796 int main(int argc, char **argv)
798 guasi_t ctx = guasi_create(0, 0, 0);
802 if compile_prog "" "" "guasi"; then
807 ##########################################
811 #include <nvm/vectored_write.h>
812 int main(int argc, char **argv)
814 struct vsl_iovec iov;
815 return vsl_vectored_write(0, &iov, 0, O_ATOMIC);
818 if compile_prog "" "-L/usr/lib/fio -lnvm-primitives" "fusion-aw"; then
819 LIBS="-L/usr/lib/fio -lnvm-primitives $LIBS"
822 echo "Fusion-io atomic engine $fusion_aw"
824 ##########################################
829 int main(int argc, char **argv)
831 return numa_available();
834 if compile_prog "" "-lnuma" "libnuma"; then
838 echo "libnuma $libnuma"
840 ##########################################
841 # libnuma 2.x version API
842 if test "$libnuma" = "yes" ; then
846 int main(int argc, char **argv)
848 struct bitmask *mask = numa_parse_nodestring(NULL);
852 if compile_prog "" "" "libnuma api"; then
855 echo "libnuma v2 $libnuma_v2"
858 ##########################################
863 int main(int argc, char **argv)
869 if compile_prog "" "" "strsep"; then
872 echo "strsep $strsep"
874 ##########################################
879 int main(int argc, char **argv)
881 strcasestr(NULL, NULL);
885 if compile_prog "" "" "strcasestr"; then
888 echo "strcasestr $strcasestr"
890 ##########################################
891 # getopt_long_only() probe
892 getopt_long_only="no"
896 int main(int argc, char **argv)
898 int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
902 if compile_prog "" "" "getopt_long_only"; then
903 getopt_long_only="yes"
905 echo "getopt_long_only() $getopt_long_only"
907 ##########################################
911 #include <sys/socket.h>
912 #include <arpa/inet.h>
914 int main(int argc, char **argv)
917 return inet_aton(NULL, &in);
920 if compile_prog "" "" "inet_aton"; then
923 echo "inet_aton $inet_aton"
925 ##########################################
929 #include <sys/socket.h>
930 int main(int argc, char **argv)
936 if compile_prog "" "" "socklen_t"; then
939 echo "socklen_t $socklen_t"
941 ##########################################
942 # Whether or not __thread is supported for TLS
946 static int __thread ret;
947 int main(int argc, char **argv)
952 if compile_prog "" "" "__thread"; then
955 echo "__thread $tls_thread"
957 ##########################################
958 # Whether or not __thread is supported for TLS
959 if test "$gfio" = "yes" ; then
969 printf("%d", GTK_CHECK_VERSION(2, 18, 0));
972 GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0)
973 if test "$?" != "0" ; then
974 echo "configure: gtk and gthread not found"
977 GTK_LIBS=$(pkg-config --libs gtk+-2.0 gthread-2.0)
978 if test "$?" != "0" ; then
979 echo "configure: gtk and gthread not found"
982 if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then
984 if test "$r" != "0" ; then
986 LIBS="$LIBS $GTK_LIBS"
987 CFLAGS="$CFLAGS $GTK_CFLAGS"
989 echo "GTK found, but need version 2.18 or higher"
993 echo "Please install gtk and gdk libraries"
1000 # Check whether we have getrusage(RUSAGE_THREAD)
1003 #include <sys/time.h>
1004 #include <sys/resource.h>
1005 int main(int argc, char **argv)
1008 getrusage(RUSAGE_THREAD, &ru);
1012 if compile_prog "" "" "RUSAGE_THREAD"; then
1015 echo "RUSAGE_THREAD $rusage_thread"
1017 ##########################################
1018 # Check whether we have SCHED_IDLE
1022 int main(int argc, char **argv)
1024 struct sched_param p;
1025 return sched_setscheduler(0, SCHED_IDLE, &p);
1028 if compile_prog "" "" "SCHED_IDLE"; then
1031 echo "SCHED_IDLE $sched_idle"
1033 ##########################################
1034 # Check whether we have TCP_NODELAY
1038 #include <sys/types.h>
1039 #include <sys/socket.h>
1040 #include <netinet/tcp.h>
1041 int main(int argc, char **argv)
1043 return getsockopt(0, 0, TCP_NODELAY, NULL, NULL);
1046 if compile_prog "" "" "TCP_NODELAY"; then
1049 echo "TCP_NODELAY $tcp_nodelay"
1051 ##########################################
1052 # Check whether we have RLIMIT_MEMLOCK
1055 #include <sys/time.h>
1056 #include <sys/resource.h>
1057 int main(int argc, char **argv)
1060 return getrlimit(RLIMIT_MEMLOCK, &rl);
1063 if compile_prog "" "" "RLIMIT_MEMLOCK"; then
1064 rlimit_memlock="yes"
1066 echo "RLIMIT_MEMLOCK $rlimit_memlock"
1068 #############################################################################
1070 if test "$wordsize" = "64" ; then
1071 output_sym "CONFIG_64BIT"
1072 elif test "$wordsize" = "32" ; then
1073 output_sym "CONFIG_32BIT"
1075 fatal "Unknown wordsize!"
1077 if test "$bigendian" = "yes" ; then
1078 output_sym "CONFIG_BIG_ENDIAN"
1080 output_sym "CONFIG_LITTLE_ENDIAN"
1082 if test "$libaio" = "yes" ; then
1083 output_sym "CONFIG_LIBAIO"
1085 if test "$posix_aio" = "yes" ; then
1086 output_sym "CONFIG_POSIXAIO"
1088 if test "$posix_aio_fsync" = "yes" ; then
1089 output_sym "CONFIG_POSIXAIO_FSYNC"
1091 if test "$linux_fallocate" = "yes" ; then
1092 output_sym "CONFIG_LINUX_FALLOCATE"
1094 if test "$posix_fallocate" = "yes" ; then
1095 output_sym "CONFIG_POSIX_FALLOCATE"
1097 if test "$fdatasync" = "yes" ; then
1098 output_sym "CONFIG_FDATASYNC"
1100 if test "$sync_file_range" = "yes" ; then
1101 output_sym "CONFIG_SYNC_FILE_RANGE"
1103 if test "$sfaa" = "yes" ; then
1104 output_sym "CONFIG_SFAA"
1106 if test "$libverbs" = "yes" -a "rdmacm" = "yes" ; then
1107 output_sym "CONFIG_RDMA"
1109 if test "$clock_gettime" = "yes" ; then
1110 output_sym "CONFIG_CLOCK_GETTIME"
1112 if test "$clock_monotonic" = "yes" ; then
1113 output_sym "CONFIG_CLOCK_MONOTONIC"
1115 if test "$clock_monotonic_precise" = "yes" ; then
1116 output_sym "CONFIG_CLOCK_MONOTONIC_PRECISE"
1118 if test "$gettimeofday" = "yes" ; then
1119 output_sym "CONFIG_GETTIMEOFDAY"
1121 if test "$posix_fadvise" = "yes" ; then
1122 output_sym "CONFIG_POSIX_FADVISE"
1124 if test "$linux_3arg_affinity" = "yes" ; then
1125 output_sym "CONFIG_3ARG_AFFINITY"
1126 elif test "$linux_2arg_affinity" = "yes" ; then
1127 output_sym "CONFIG_2ARG_AFFINITY"
1129 if test "$strsep" = "yes" ; then
1130 output_sym "CONFIG_STRSEP"
1132 if test "$strcasestr" = "yes" ; then
1133 output_sym "CONFIG_STRCASESTR"
1135 if test "$getopt_long_only" = "yes" ; then
1136 output_sym "CONFIG_GETOPT_LONG_ONLY"
1138 if test "$inet_aton" = "yes" ; then
1139 output_sym "CONFIG_INET_ATON"
1141 if test "$socklen_t" = "yes" ; then
1142 output_sym "CONFIG_SOCKLEN_T"
1144 if test "$ext4_me" = "yes" ; then
1145 output_sym "CONFIG_LINUX_EXT4_MOVE_EXTENT"
1147 if test "$linux_splice" = "yes" ; then
1148 output_sym "CONFIG_LINUX_SPLICE"
1150 if test "$guasi" = "yes" ; then
1151 output_sym "CONFIG_GUASI"
1153 if test "$fusion_aw" = "yes" ; then
1154 output_sym "CONFIG_FUSION_AW"
1156 if test "$libnuma_v2" = "yes" ; then
1157 output_sym "CONFIG_LIBNUMA"
1159 if test "$solaris_aio" = "yes" ; then
1160 output_sym "CONFIG_SOLARISAIO"
1162 if test "$tls_thread" = "yes" ; then
1163 output_sym "CONFIG_TLS_THREAD"
1165 if test "$rusage_thread" = "yes" ; then
1166 output_sym "CONFIG_RUSAGE_THREAD"
1168 if test "$gfio" = "yes" ; then
1169 echo "CONFIG_GFIO=y" >> $config_host_mak
1171 if test "$sched_idle" = "yes" ; then
1172 output_sym "CONFIG_SCHED_IDLE"
1174 if test "$tcp_nodelay" = "yes" ; then
1175 output_sym "CONFIG_TCP_NODELAY"
1177 if test "$rlimit_memlock" = "yes" ; then
1178 output_sym "CONFIG_RLIMIT_MEMLOCK"
1181 echo "LIBS+=$LIBS" >> $config_host_mak
1182 echo "CFLAGS+=$CFLAGS" >> $config_host_mak
1183 echo "CC=$cc" >> $config_host_mak
1184 echo "BUILD_CFLAGS=$BUILD_CFLAGS $CFLAGS" >> $config_host_mak