Lines Matching +full:libbsd +full:- +full:dev

2 # Guess values for system-dependent variables and create Makefiles.
5 # Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
14 ## -------------------- ##
16 ## -------------------- ##
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
32 set -o posix ;; #(
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
111 if test ! -f "$as_myself"; then
118 # into an infinite loop, continuously re-executing ourselves.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
155 set -o posix ;; #(
181 test -x / || exit 1"
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: unbound-bugs@nlnetlabs.nl or
289 SHELL=${CONFIG_SHELL-/bin/sh}
295 ## --------------------- ##
297 ## --------------------- ##
299 # ---------------
309 # -----------------------
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # ---------
335 # -------------
341 -*) as_dir=./$as_dir;;
343 test -d "$as_dir" || eval $as_mkdir_p || {
351 as_dir=`$as_dirname -- "$as_dir" ||
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
374 test -d "$as_dir" && break
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
383 # -----------------------
387 test -f "$1" && test -x "$1"
390 # ----------------------
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
409 # ------------------
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
422 as_val=`expr "$@" || test $? -eq 1`
427 # ---------
436 # ----------------------------------------
442 as_status=$1; test $as_status -eq 0 && as_status=1
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_me=`$as_basename -- "$0" ||
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
507 s/[$]LINENO.*/&-/
515 s/-\n.*//
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
537 case `echo -n x` in #(((((
538 -n*)
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
546 ECHO_N='-n';;
549 # For backward compatibility with old third-party macros, we provide
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
575 as_ln_s='cp -pR'
578 as_ln_s='cp -pR'
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
586 test -d ./-p && rmdir ./-p
590 as_test_x='test -x'
599 SHELL=${CONFIG_SHELL-/bin/sh}
602 test -n "$DJDIR" || exec 7<&0 </dev/null
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
627 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
973 cache_file=/dev/null
1020 if test -n "$ac_prev"; then
1033 --)
1036 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041 -build | --build | --buil | --bui | --bu)
1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046 -cache-file | --cache-file | --cache-fil | --cache-fi \
1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053 --config-cache | -C)
1056 -datadir | --datadir | --datadi | --datad)
1058 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062 | --dataroo | --dataro | --datar)
1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068 -disable-* | --disable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084 -docdir | --docdir | --docdi | --doc | --do)
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 -enable-* | --enable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1123 -help | --help | --hel | --he | -h)
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 -host | --host | --hos | --ho)
1132 -host=* | --host=* | --hos=* | --ho=*)
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 | --ht=*)
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 -libdir | --libdir | --libdi | --libd)
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1165 -localedir | --localedir | --localedi | --localed | --locale)
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 -psdir | --psdir | --psdi | --psd | --ps)
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1253 -runstatedir | --runstatedir | --runstatedi | --runstated \
1254 | --runstate | --runstat | --runsta | --runst | --runs \
1255 | --run | --ru | --r)
1257 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1258 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1259 | --run=* | --ru=* | --r=*)
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1279 -site | --site | --sit)
1281 -site=* | --site=* | --sit=*)
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 -version | --version | --versio | --versi | --vers | -V)
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1323 -without-* | --without-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1339 --x)
1340 # Obsolete; use --with-x.
1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344 | --x-incl | --x-inc | --x-in | --x-i)
1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1365 '' | [0-9]* | *[!_$as_cr_alnum]* )
1373 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 if test -n "$ac_prev"; then
1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 if test -n "$ac_unrecognized_opts"; then
1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 # used to hold the argument of --host etc.
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447 if test -z "$srcdir"; then
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1494 # mess up M-x gdb in Emacs.
1506 # Report the --help message.
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking ...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 if test -n "$ac_init_help"; then
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-checking Enable warnings, asserts, makefile-dependencies
1587 --enable-debug same as enable-checking
1588 --disable-flto Disable link-time optimization (gcc specific option)
1589 --enable-pie Enable Position-Independent Executable (eg. to fully
1591 --enable-relro-now Enable full relocation binding at load-time (RELRO
1593 --enable-shared[=PKGS] build shared libraries [default=yes]
1594 --enable-static[=PKGS] build static libraries [default=yes]
1595 --enable-fast-install[=PKGS]
1597 --disable-libtool-lock avoid locking (might break parallel builds)
1598 --disable-rpath disable hardcoded rpath (default=enabled)
1599 --disable-largefile omit support for large files
1600 --enable-systemd compile with systemd support (requires libsystemd,
1601 pkg-config)
1602 --enable-alloc-checks enable to memory allocation statistics, for debug
1604 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1606 --enable-alloc-nonregional
1610 --disable-swig-version-check
1613 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1615 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1616 --enable-subnet Enable client subnet
1617 --disable-gost Disable GOST support
1618 --disable-ecdsa Disable ECDSA support
1619 --disable-dsa Disable DSA support
1620 --disable-ed25519 Disable ED25519 support
1621 --disable-ed448 Disable ED448 support
1622 --enable-event-api Enable (experimental) pluggable event base
1623 libunbound API installed to unbound-event.h
1624 --enable-tfo-client Enable TCP Fast Open for client mode
1625 --enable-tfo-server Enable TCP Fast Open for server mode
1626 --enable-static-exe enable to compile executables statically against
1628 --enable-fully-static enable to compile fully static
1629 --enable-lock-checks enable to check lock and unlock calls, for debug
1631 --enable-allsymbols export all symbols from libunbound and link binaries
1634 --enable-dnstap Enable dnstap support (requires protobuf-c)
1635 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1636 --enable-cachedb enable cachedb module that can use external cache
1638 --enable-ipsecmod Enable ipsecmod module that facilitates
1640 --enable-ipset enable ipset module
1641 --disable-explicit-port-randomisation
1644 --enable-linux-ip-local-port-range
1653 distributions) the use of non-ephemeral ports.
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-conf-file=path Pathname to the Unbound configuration file
1659 --with-run-dir=path set default directory to chdir to (by default dir
1661 --with-chroot-dir=path set default directory to chroot to (by default same
1662 as run-dir)
1663 --with-share-dir=path set default directory with shared data (by default
1665 --with-pidfile=filename set default pathname to unbound pidfile (default
1666 run-dir/unbound.pid)
1667 --with-rootkey-file=filename
1669 run-dir/root.key). This file is read and written.
1670 --with-rootcert-file=filename
1672 (default run-dir/icannbundle.pem). This file need
1674 --with-username=user set default user that unbound changes to (default
1676 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1678 --with-aix-soname=aix|svr4|both
1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1682 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1684 --with-pthreads use pthreads library, or --without-pthreads to
1686 --with-solaris-threads use solaris native thread library.
1687 --with-syslog-facility=LOCAL0 - LOCAL7
1689 --with-dynlibmodule build dynamic library module, or
1690 --without-dynlibmodule to disable it. (default=no)
1691 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1693 --with-pythonmodule build Python module, or --without-pythonmodule to
1695 --with-nss=path use libnss instead of openssl, installed at path.
1696 --with-nettle=path use libnettle as crypto library, installed at path.
1697 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1700 --with-libbsd Use portable libbsd functions
1701 --with-deprecate-rsa-1024
1705 --with-libevent=pathname
1710 --with-libexpat=path specify explicit path for libexpat.
1711 --with-libhiredis=path specify explicit path for libhiredis.
1712 --with-libnghttp2=path specify explicit path for libnghttp2.
1713 --with-libngtcp2=path specify explicit path for libngtcp2, for QUIC.
1714 --with-dnstap-socket-path=pathname
1716 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1717 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1718 --with-libmnl=path specify explicit path for libmnl.
1719 --with-libunbound-only do not build daemon and tool programs
1724 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1726 LIBS libraries to pass to the linker, e.g. -l<library>
1727 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1730 Defaults to the first program found out of: `bison -y', `byacc',
1734 default value of `-d' given by some make applications.
1736 User-defined run-time library search path.
1737 PKG_CONFIG path to pkg-config utility
1739 directories to add to pkg-config's search path
1741 path overriding pkg-config's built-in search path
1744 C compiler flags for SYSTEMD, overriding pkg-config
1746 linker flags for SYSTEMD, overriding pkg-config
1748 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1750 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1756 C compiler flags for PROTOBUFC, overriding pkg-config
1758 linker flags for PROTOBUFC, overriding pkg-config
1763 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1769 # If there are subdirs, report their specific --help.
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1810 # Metaconfig's "Configure" on case-insensitive file systems.
1811 if test -f "$ac_srcdir/configure.gnu"; then
1813 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1814 elif test -f "$ac_srcdir/configure"; then
1816 $SHELL "$ac_srcdir/configure" --help=recursive
1824 test -n "$ac_init_help" && exit $ac_status
1837 ## ------------------------ ##
1839 ## ------------------------ ##
1842 # --------------------------
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest.beam
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1860 mv -f conftest.er1 conftest.err
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext
1881 # -------------------------------------------------------
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 # -----------------------
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1932 mv -f conftest.er1 conftest.err
1934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1940 test -x conftest$ac_exeext
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 # ----------------------------------
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 # -------------------------------------------
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 # ----------------------
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2097 mv -f conftest.er1 conftest.err
2099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2118 # ----------------------
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161 # --------------------------------------------
2162 # Tries to find the compile-time value of EXPR in a program that includes
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 static int test_array [1 - 2 * !(($2) >= 0)];
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 if test $ac_lo -le $ac_mid; then
2213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 static int test_array [1 - 2 * !(($2) < 0)];
2232 ac_hi=-1 ac_mid=-1
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253 if test $ac_mid -le $ac_hi; then
2259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2269 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2341 rm -f conftest.val
2349 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2350 # ------------------------------------------------------------------
2352 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2363 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 # ----------------------------------------------------
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 ## --------- ##
2495 ## --------- ##
2497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2504 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2506 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2509 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2510 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2511 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2512 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2534 ## ----------- ##
2536 ## ----------- ##
2542 # Strip out --no-create and --no-recursion so they do not pile up.
2543 # Strip out --silent because we don't want to record it for future runs.
2544 # Also quote any args containing shell meta-characters.
2545 # Make two passes to allow for proper duplicate-argument suppression.
2555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2557 | -silent | --silent | --silen | --sile | --sil)
2570 *=* | --config-cache | -C | -disable-* | --disable-* \
2571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2573 | -with-* | --with-* | -without-* | --without-* | --x)
2578 -* ) ac_must_keep_next=true ;;
2601 printf "%s\n" "## ---------------- ##
2603 ## ---------------- ##"
2607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2612 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2625 sed -n \
2630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2637 printf "%s\n" "## ----------------- ##
2639 ## ----------------- ##"
2651 if test -n "$ac_subst_files"; then
2652 printf "%s\n" "## ------------------- ##
2654 ## ------------------- ##"
2667 if test -s confdefs.h; then
2668 printf "%s\n" "## ----------- ##
2670 ## ----------- ##"
2679 rm -f core *.core core.conftest.* &&
2680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2689 rm -f -r conftest* confdefs.h
2710 if test -n "$CONFIG_SITE"; then
2726 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2731 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738 if test -r "$cache_file"; then
2739 # Some versions of bash will fail to source /dev/null (special files
2741 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2790 as an "x". The following induces an error, until -std is added to get
2793 that is true only with -std. */
2794 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2799 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2853 static long long int bignum = -9223372036854775807LL;
2873 // See if C++-style comments work.
2936 ia->datasize = 10;
2937 for (int i = 0; i < ia->datasize; ++i)
2938 ia->data[i] = i * 1.234;
2951 dynamic_array[ni.number - 1] = 543;
2955 || dynamic_array[ni.number - 1] != 543);
2978 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2992 // Check UTF-8 literals.
3001 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3085 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3109 # As a special case, if "install-sh" is required, that requirement
3110 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3112 if test x"$ac_aux" = x"install-sh"
3114 if test -f "${as_dir}install-sh"; then
3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3116 ac_install_sh="${as_dir}install-sh -c"
3117 elif test -f "${as_dir}install.sh"; then
3118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3119 ac_install_sh="${as_dir}install.sh -c"
3120 elif test -f "${as_dir}shtool"; then
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3122 ac_install_sh="${as_dir}shtool install -c"
3126 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3132 if test -f "${as_dir}${ac_aux}"; then
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3165 if test -f "${ac_aux_dir}config.guess"; then
3168 if test -f "${ac_aux_dir}config.sub"; then
3171 if test -f "$ac_aux_dir/configure"; then
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3230 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3233 ## -------------------- ##
3235 ## -------------------- ##
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
3266 # 1.4.0-snapshots had 1:5:0
3351 # Current -- the number of the binary API that we're implementing
3352 # Revision -- which iteration of the implementation of the binary
3354 # Age -- How many previous binary API versions do we also
3374 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 if test -n "$ac_tool_prefix"; then
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 if test -n "$CC"; then
3418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3428 if test -n "$CC"; then
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 if test -z "$ac_cv_prog_CC"; then
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 if test -n "$ac_ct_CC"; then
3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 if test -n "$ac_ct_CC"; then
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 if test -z "$CC"; then
3497 if test -n "$ac_tool_prefix"; then
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 if test -n "$CC"; then
3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 if test -z "$CC"; then
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 if test -n "$CC"; then
3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593 if test -n "$CC"; then
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 if test -n "$CC"; then
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640 if test -n "$CC"; then
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 test -n "$CC" && break
3652 if test -z "$CC"; then
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 if test -n "$ac_ct_CC"; then
3679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3689 if test -n "$ac_ct_CC"; then
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 test -n "$ac_ct_CC" && break
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 if test -z "$CC"; then
3716 if test -n "$ac_tool_prefix"; then
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 if test -n "$CC"; then
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3750 if test -n "$CC"; then
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 if test -z "$ac_cv_prog_CC"; then
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 if test -n "$ac_ct_CC"; then
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3795 if test -n "$ac_ct_CC"; then
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3830 for ac_option in --version -v -V -qversion -version; do
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 if test -s conftest.err; then
3846 rm -f conftest.er1 conftest.err
3847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 # Try to create an executable without -o first, disregard a.out.
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3869 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882 rm -f $ac_rmfiles
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3899 # so that the user can short-circuit this test for compilers unknown to
3903 test -f "$ac_file" || continue
3917 # safe: cross compilers may not add the suffix if given an `-o'
3931 if test -z "$ac_file"
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test -f "$ac_file" || continue
3982 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 rm -f conftest conftest$ac_cv_exeext
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3991 rm -f conftest.$ac_ext
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 If you meant to cross compile, use \`--host'.
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4051 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 rm -f conftest.o conftest.obj
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test -f "$ac_file" || continue;
4095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148 printf %s "checking whether $CC accepts -g... " >&6; }
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 CFLAGS="-g"
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 CFLAGS="-g -O2"
4220 CFLAGS="-g"
4224 CFLAGS="-O2"
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 for ac_arg in '' -std=gnu11
4251 rm -f core conftest.err conftest.$ac_objext conftest.beam
4254 rm -f conftest.$ac_ext
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4297 rm -f core conftest.err conftest.$ac_objext conftest.beam
4300 rm -f conftest.$ac_ext
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4343 rm -f core conftest.err conftest.$ac_objext conftest.beam
4346 rm -f conftest.$ac_ext
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4564 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4566 if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4585 # Check whether --with-conf_file was given.
4592 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4597 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4601 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4624 # Check whether --with-run-dir was given.
4638 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4645 # Check whether --with-chroot-dir was given.
4659 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4666 # Check whether --with-share-dir was given.
4680 # Check whether --with-pidfile was given.
4694 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4701 # Check whether --with-rootkey-file was given.
4715 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4722 # Check whether --with-rootcert-file was given.
4736 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4743 # Check whether --with-username was given.
4759 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4765 # Check for 'grep -e' program, here, since ACX_CHECK_FLTO needs that.
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4767 printf %s "checking for grep that handles long lines and -e... " >&6; }
4772 if test -z "$GREP"; then
4774 # Loop through the user's path and test for each of PROGNAME-LIST
4791 case `"$ac_path_GREP" --version 2>&1` in
4803 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4812 test $ac_count -gt 10 && break
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822 if test -z "$ac_cv_path_GREP"; then
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4838 printf %s "checking for an ANSI C-conforming const... " >&6; }
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 an arm of an if-expression whose if-part is not a constant
4865 pcpcc = &g + (g ? g-g : 0);
4878 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4883 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4889 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4891 struct s *b = &bx; b->j = 5;
4893 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 # allow user to override the -g -O2 flags.
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4932 printf %s "checking whether $CC supports -g... " >&6; }
4933 cache=`echo g | sed 'y%.=/+-%___p_%'`
4940 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4945 rm -f conftest conftest.o conftest.c
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 CFLAGS="$CFLAGS -g"
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4964 printf %s "checking whether $CC supports -O2... " >&6; }
4965 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4972 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4977 rm -f conftest conftest.o conftest.c
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4985 CFLAGS="$CFLAGS -O2"
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 if test -n "$ac_tool_prefix"; then
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 if test -n "$CC"; then
5024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5034 if test -n "$CC"; then
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 if test -z "$ac_cv_prog_CC"; then
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 if test -n "$ac_ct_CC"; then
5069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5079 if test -n "$ac_ct_CC"; then
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 if test -z "$CC"; then
5103 if test -n "$ac_tool_prefix"; then
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 if test -n "$CC"; then
5127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5137 if test -n "$CC"; then
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 if test -z "$CC"; then
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 if test -n "$CC"; then
5177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5199 if test -n "$CC"; then
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 if test -z "$CC"; then
5210 if test -n "$ac_tool_prefix"; then
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 if test -n "$CC"; then
5236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5246 if test -n "$CC"; then
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 test -n "$CC" && break
5258 if test -z "$CC"; then
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 if test -n "$ac_ct_CC"; then
5285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5295 if test -n "$ac_ct_CC"; then
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 test -n "$ac_ct_CC" && break
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321 if test -z "$CC"; then
5322 if test -n "$ac_tool_prefix"; then
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 if test -n "$CC"; then
5346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5356 if test -n "$CC"; then
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 if test -z "$ac_cv_prog_CC"; then
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 if test -n "$ac_ct_CC"; then
5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5401 if test -n "$ac_ct_CC"; then
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5436 for ac_option in --version -v -V -qversion -version; do
5442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5446 if test -s conftest.err; then
5452 rm -f conftest.er1 conftest.err
5453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5499 printf %s "checking whether $CC accepts -g... " >&6; }
5507 CFLAGS="-g"
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 CFLAGS="-g"
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5569 CFLAGS="-g -O2"
5571 CFLAGS="-g"
5575 CFLAGS="-O2"
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 for ac_arg in '' -std=gnu11
5602 rm -f core conftest.err conftest.$ac_objext conftest.beam
5605 rm -f conftest.$ac_ext
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5648 rm -f core conftest.err conftest.$ac_objext conftest.beam
5651 rm -f conftest.$ac_ext
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5694 rm -f core conftest.err conftest.$ac_objext conftest.beam
5697 rm -f conftest.$ac_ext
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5730 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5731 DEPFLAG="-MM"
5733 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5734 DEPFLAG="-xM1"
5736 DEPFLAG="-MM" # dunno do something
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5741 rm -f conftest.c
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5748 printf %s "checking whether $CC supports -Werror... " >&6; }
5749 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5756 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5761 rm -f conftest conftest.o conftest.c
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769 ERRFLAG="-Werror"
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 ERRFLAG="-errwarn"
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5780 printf %s "checking whether $CC supports -Wall... " >&6; }
5781 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5788 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5793 rm -f conftest conftest.o conftest.c
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5801 ERRFLAG="$ERRFLAG -Wall"
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 ERRFLAG="$ERRFLAG -errfmt"
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5814 printf %s "checking whether $CC supports -std=c99... " >&6; }
5815 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5822 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5827 rm -f conftest conftest.o conftest.c
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5835 C99FLAG="-std=c99"
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5846 printf %s "checking whether $CC supports -xc99... " >&6; }
5847 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5854 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5859 rm -f conftest conftest.o conftest.c
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5867 C99FLAG="-xc99"
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5896 printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5897 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5939 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5943 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5949 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5950 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5955 rm -f conftest conftest.c conftest.o
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5963 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5971 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5988 printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5989 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
6031 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6035 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
6041 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
6042 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
6047 rm -f conftest conftest.c conftest.o
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6055 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
6063 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
6096 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6100 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
6106 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
6107 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
6112 rm -f conftest conftest.c conftest.o
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
6128 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
6145 printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
6162 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6166 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
6172 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
6173 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
6178 rm -f conftest conftest.c conftest.o
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6186 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
6194 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
6211 printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
6228 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6232 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
6238 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
6239 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
6244 rm -f conftest conftest.c conftest.o
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6252 CFLAGS="$CFLAGS -D_GNU_SOURCE"
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
6260 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6274 # is not available at all. -D_FRSRESGID is to make this check unique.
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
6280 printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
6297 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6301 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
6307 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
6308 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
6313 rm -f conftest conftest.c conftest.o
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6321 CFLAGS="$CFLAGS -D_GNU_SOURCE"
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
6329 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
6346 printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
6374 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6378 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
6384 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
6385 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
6390 rm -f conftest conftest.c conftest.o
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6398 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
6406 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
6423 printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
6457 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6461 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
6467 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
6468 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
6473 rm -f conftest conftest.c conftest.o
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6481 CFLAGS="$CFLAGS -D__EXTENSIONS__"
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
6489 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6505 # Check whether --enable-checking was given.
6511 # Check whether --enable-debug was given.
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
6525 printf %s "checking whether $CC supports -W... " >&6; }
6526 cache=`echo W | sed 'y%.=/+-%___p_%'`
6533 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
6538 rm -f conftest conftest.o conftest.c
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6546 CFLAGS="$CFLAGS -W"
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
6557 printf %s "checking whether $CC supports -Wall... " >&6; }
6558 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
6565 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
6570 rm -f conftest conftest.o conftest.c
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6578 CFLAGS="$CFLAGS -Wall"
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
6589 printf %s "checking whether $CC supports -Wextra... " >&6; }
6590 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
6597 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
6602 rm -f conftest conftest.o conftest.c
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6610 CFLAGS="$CFLAGS -Wextra"
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
6621 printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
6622 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
6629 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
6634 rm -f conftest conftest.o conftest.c
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6642 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 # Check whether --enable-flto was given.
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6673 printf %s "checking if $CC supports -flto... " >&6; }
6675 CFLAGS="$CFLAGS -flto"
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6698 rm -f conftest conftest.c conftest.o
6701 CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6710 # Check whether --enable-pie was given.
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6723 LDFLAGS="$LDFLAGS -pie"
6724 CFLAGS="$CFLAGS -fPIE"
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6747 rm -f conftest conftest.c conftest.o
6750 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6759 # Check whether --enable-relro_now was given.
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6769 printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6771 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6794 rm -f conftest conftest.c conftest.o
6797 LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6853 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6896 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6942 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6993 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute" >&5
7044 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"fallthrough\" attribute... " >&6; }
7046 CFLAGS="$CFLAGS -Werror"
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fallthrough_attribute" >&5
7111 CPPFLAGS="$CPPFLAGS -I$srcdir"
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 if test -n "$LEX"; then
7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7153 if test -n "$LEX"; then
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 test -n "$LEX" && break
7164 test -n "$LEX" || LEX=":"
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
7216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 if test -f lex.yy.c; then
7224 elif test -f lexyy.c; then
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
7252 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7308 # default is implementation-dependent. Figure out which it is, since
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7333 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7336 if test "$LEX" != "" -a "$LEX" != ":"; then
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
7340 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 if test "$LEX" != "" -a "$LEX" != ":"; then
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
7356 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7362 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 if test "$LEX" = "" -o "$LEX" = ":"; then
7369 if test ! -f util/configlexer.c; then
7373 for ac_prog in 'bison -y' byacc
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 if test -n "$YACC"; then
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7408 if test -n "$YACC"; then
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 test -n "$YACC" && break
7419 test -n "$YACC" || YACC="yacc"
7421 if test "$YACC" = "" -o "$YACC" = ":"; then
7422 if test ! -f util/configparser.c; then
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 if test -n "$doxygen"; then
7449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7459 if test -n "$doxygen"; then
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 if test -n "$ac_tool_prefix"; then
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 if test -n "$STRIP"; then
7492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7502 if test -n "$STRIP"; then
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 if test -z "$ac_cv_prog_STRIP"; then
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 if test -n "$ac_ct_STRIP"; then
7537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7547 if test -n "$ac_ct_STRIP"; then
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7595 *-*-*) ;;
7599 ac_save_IFS=$IFS; IFS='-'
7609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7629 *-*-*) ;;
7633 ac_save_IFS=$IFS; IFS='-'
7643 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7657 if test -z "$libtool"; then
7663 if echo "$host_os" | grep "sunos4" >/dev/null; then
7666 if test -n "$ac_tool_prefix"; then
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7703 if test -n "$AR"; then
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 if test -z "$ac_cv_path_AR"; then
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7751 if test -n "$ac_pt_AR"; then
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7806 # double-quoted strings.
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7829 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7830 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7831 ECHO='print -r --'
7832 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7846 # Invoke $ECHO with all args, space-separated.
7853 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7855 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7856 printf "%s\n" "print -r" >&6; } ;;
7857 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7884 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7886 if test -z "$SED"; then
7888 # Loop through the user's path and test for each of PROGNAME-LIST
7905 case `"$ac_path_SED" --version 2>&1` in
7917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7920 if test $ac_count -gt ${ac_path_SED_max-0}; then
7926 test $ac_count -gt 10 && break
7928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7936 if test -z "$ac_cv_path_SED"; then
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7947 rm -f conftest.sed
7949 test -z "$SED" && SED=sed
7950 Xsed="$SED -e 1s/^X//"
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7968 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7969 then ac_cv_path_EGREP="$GREP -E"
7971 if test -z "$EGREP"; then
7973 # Loop through the user's path and test for each of PROGNAME-LIST
7990 case `"$ac_path_EGREP" --version 2>&1` in
8002 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8005 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8011 test $ac_count -gt 10 && break
8013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8021 if test -z "$ac_cv_path_EGREP"; then
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8041 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8042 then ac_cv_path_FGREP="$GREP -F"
8044 if test -z "$FGREP"; then
8046 # Loop through the user's path and test for each of PROGNAME-LIST
8063 case `"$ac_path_FGREP" --version 2>&1` in
8075 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8078 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8084 test $ac_count -gt 10 && break
8086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8094 if test -z "$ac_cv_path_FGREP"; then
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8108 test -z "$GREP" && GREP=grep
8128 # Check whether --with-gnu-ld was given.
8138 # Check if gcc -print-prog-name=ld gives a path.
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8142 *-*-mingw*)
8144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8154 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8157 test -z "$LD" && LD=$ac_prog
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8173 printf %s "checking for non-GNU ld... " >&6; }
8179 if test -z "$LD"; then
8183 test -z "$ac_dir" && ac_dir=.
8184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8186 # Check to see if the program is GNU ld. I'd rather use --version,
8187 # but apparently some variants of GNU ld only accept -v.
8188 # Break only if it was the GNU/non-GNU ld that we prefer.
8189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8206 if test -n "$LD"; then
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8220 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8221 case `$LD -v 2>&1 </dev/null` in
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8243 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8248 if test -n "$NM"; then
8253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8260 test -z "$ac_dir" && ac_dir=.
8262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8263 # Check to see if the nm accepts a BSD-compat flag.
8264 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8266 # Tru64's nm complains that /dev/null is an invalid object file
8267 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8270 *) lt_bad_file=/dev/null ;;
8272 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8274 lt_cv_path_NM="$tmp_nm -B"
8278 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8279 */dev/null*)
8280 lt_cv_path_NM="$tmp_nm -p"
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8303 if test -n "$DUMPBIN"; then :
8306 if test -n "$ac_tool_prefix"; then
8307 for ac_prog in dumpbin "link -dump"
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 if test -n "$DUMPBIN"; then
8332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8342 if test -n "$DUMPBIN"; then
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 test -n "$DUMPBIN" && break
8354 if test -z "$DUMPBIN"; then
8356 for ac_prog in dumpbin "link -dump"
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 if test -n "$ac_ct_DUMPBIN"; then
8381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8391 if test -n "$ac_ct_DUMPBIN"; then
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 test -n "$ac_ct_DUMPBIN" && break
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8416 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8418 DUMPBIN="$DUMPBIN -symbols -headers"
8430 test -z "$NM" && NM=nm
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8453 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8456 rm -f conftest*
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8462 printf %s "checking whether ln -s works... " >&6; }
8464 if test "$LN_S" = "ln -s"; then
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8494 # Libtool will interpret -1 as no limit whatsoever
8495 lt_cv_sys_max_cmd_len=-1;
8499 # On Win9x/ME, this test blows up -- it succeeds, but takes
8501 # Worse, since 9x/ME are not pre-emptively multitasking,
8522 if test -x /sbin/sysctl; then
8523 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8524 elif test -x /usr/sbin/sysctl; then
8525 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8551 if test -x /sbin/sysconfig; then
8552 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8553 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8561 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8562 if test -n "$kargmax"; then
8569 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8570 if test -n "$lt_cv_sys_max_cmd_len" && \
8580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8581 # If test is not a shell built-in, we'll probably end up computing a
8584 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8585 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8604 if test -n "$lt_cv_sys_max_cmd_len"; then
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8618 : ${CP="cp -f"}
8619 : ${MV="mv -f"}
8620 : ${RM="rm -f"}
8622 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8660 *-*-mingw* )
8662 *-*-mingw* ) # actually msys
8665 *-*-cygwin* )
8673 *-*-cygwin* )
8675 *-*-mingw* ) # actually msys
8678 *-*-cygwin* )
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8710 *-*-mingw* )
8712 *-*-mingw* ) # actually msys
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8735 lt_cv_ld_reload_flag='-r'
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8753 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8768 if test -n "$ac_tool_prefix"; then
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 if test -n "$OBJDUMP"; then
8792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8802 if test -n "$OBJDUMP"; then
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 if test -z "$ac_cv_prog_OBJDUMP"; then
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 if test -n "$ac_ct_OBJDUMP"; then
8837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8847 if test -n "$ac_ct_OBJDUMP"; then
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870 test -z "$OBJDUMP" && OBJDUMP=objdump
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8891 # 'none' -- dependencies not supported.
8892 # 'unknown' -- same as none, but documents that we really don't know.
8893 # 'pass_all' -- all dependencies passed with no checks.
8894 # 'test_compile' -- check by making test program.
8895 # 'file_magic [[regex]]' -- check by looking for files in library path
8901 aix[4-9]*)
8910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8911 lt_cv_file_magic_cmd='/usr/bin/file -L'
8924 # unless we find 'file', for example because we are cross-compiling.
8925 if ( file / ) >/dev/null 2>&1; then
8930 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8931 lt_cv_file_magic_cmd='$OBJDUMP -f'
8937 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8938 lt_cv_file_magic_cmd='$OBJDUMP -f'
8946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8977 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8983 interix[3-9]*)
8990 *-32|*"-32 ") libmagic=32-bit;;
8991 *-n32|*"-n32 ") libmagic=N32;;
8992 *-64|*"-64 ") libmagic=64-bit;;
8993 *) libmagic=never-match;;
8999 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9004 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9022 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9060 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9089 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9092 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9123 if test -n "$ac_tool_prefix"; then
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132 if test -n "$DLLTOOL"; then
9147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9157 if test -n "$DLLTOOL"; then
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 if test -z "$ac_cv_prog_DLLTOOL"; then
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 if test -n "$ac_ct_DLLTOOL"; then
9192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9202 if test -n "$ac_ct_DLLTOOL"; then
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9225 test -z "$DLLTOOL" && DLLTOOL=dlltool
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9248 case `$DLLTOOL --help 2>&1` in
9249 *--identify-strict*)
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9267 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9275 if test -n "$ac_tool_prefix"; then
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 if test -n "$AR"; then
9301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9311 if test -n "$AR"; then
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 test -n "$AR" && break
9323 if test -z "$AR"; then
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 if test -n "$ac_ct_AR"; then
9350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9360 if test -n "$ac_ct_AR"; then
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 test -n "$ac_ct_AR" && break
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9425 if test 0 -eq "$ac_status"; then
9427 rm -f conftest.$ac_objext libconftest.a
9428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9433 if test 0 -ne "$ac_status"; then
9437 rm -f conftest.* libconftest.a
9440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9458 if test -n "$ac_tool_prefix"; then
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 if test -n "$STRIP"; then
9482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9492 if test -n "$STRIP"; then
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 if test -z "$ac_cv_prog_STRIP"; then
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 if test -n "$ac_ct_STRIP"; then
9527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9537 if test -n "$ac_ct_STRIP"; then
9538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9560 test -z "$STRIP" && STRIP=:
9567 if test -n "$ac_tool_prefix"; then
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 if test -n "$RANLIB"; then
9591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9601 if test -n "$RANLIB"; then
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 if test -z "$ac_cv_prog_RANLIB"; then
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621 if test -n "$ac_ct_RANLIB"; then
9636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9646 if test -n "$ac_ct_RANLIB"; then
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9669 test -z "$RANLIB" && RANLIB=:
9676 # Determine commands to create old-style static archives.
9681 if test -n "$RANLIB"; then
9684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 if test -n "$AWK"; then
9745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9755 if test -n "$AWK"; then
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 test -n "$AWK" && break
9786 LTCC=${LTCC-"$CC"}
9789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9810 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9812 # Define system-specific variables.
9849 case `$NM -V 2>&1` in
9856 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9858 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9859 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9861 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9862 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9874 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9876 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9877 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9880 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9882 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9883 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9887 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9889 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9890 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9891 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9909 # Fake it for dumpbin and say T for any non-static function,
9929 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9936 rm -f conftest*
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9961 test $ac_status = 0; } && test -s "$nlist"; then
9964 mv -f "$nlist"T "$nlist"
9966 rm -f "$nlist"T
9970 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9971 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9976 relocations are performed -- see ld's documentation on pseudo-relocs. */
9991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10004 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10030 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10048 rm -rf conftest* conftst*
10060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10074 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10117 # Check whether --with-sysroot was given.
10130 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10134 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10146 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10161 if test -z "$lt_DD"; then
10163 # Loop through the user's path and test for each of PROGNAME-LIST
10178 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10179 cmp -s conftest.i conftest.out \
10187 if test -z "$ac_cv_path_lt_DD"; then
10194 rm -f conftest.i conftest2.i conftest.out
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10209 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10210 cmp -s conftest.i conftest.out \
10213 rm -f conftest.i conftest2.i conftest.out
10214 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10225 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10232 \-*) ;;
10236 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10239 # Check whether --enable-libtool-lock was given.
10250 ia64-*-hpux*)
10254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10260 *ELF-32*)
10263 *ELF-64*)
10268 rm -rf conftest*
10270 *-*-irix6*)
10274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281 *32-bit*)
10282 LD="${LD-ld} -melf32bsmip"
10285 LD="${LD-ld} -melf32bmipn32"
10287 *64-bit*)
10288 LD="${LD-ld} -melf64bmip"
10293 *32-bit*)
10294 LD="${LD-ld} -32"
10297 LD="${LD-ld} -n32"
10299 *64-bit*)
10300 LD="${LD-ld} -64"
10305 rm -rf conftest*
10308 mips64*-*linux*)
10312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319 *32-bit*)
10322 *64-bit*)
10339 LD="${LD-ld} -m $emul"
10341 rm -rf conftest*
10344 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10345 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10349 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359 *32-bit*)
10361 x86_64-*kfreebsd*-gnu)
10362 LD="${LD-ld} -m elf_i386_fbsd"
10364 x86_64-*linux*)
10366 *x86-64*)
10367 LD="${LD-ld} -m elf32_x86_64"
10370 LD="${LD-ld} -m elf_i386"
10374 powerpc64le-*linux*)
10375 LD="${LD-ld} -m elf32lppclinux"
10377 powerpc64-*linux*)
10378 LD="${LD-ld} -m elf32ppclinux"
10380 s390x-*linux*)
10381 LD="${LD-ld} -m elf_s390"
10383 sparc64-*linux*)
10384 LD="${LD-ld} -m elf32_sparc"
10388 *64-bit*)
10390 x86_64-*kfreebsd*-gnu)
10391 LD="${LD-ld} -m elf_x86_64_fbsd"
10393 x86_64-*linux*)
10394 LD="${LD-ld} -m elf_x86_64"
10396 powerpcle-*linux*)
10397 LD="${LD-ld} -m elf64lppc"
10399 powerpc-*linux*)
10400 LD="${LD-ld} -m elf64ppc"
10402 s390*-*linux*|s390*-*tpf*)
10403 LD="${LD-ld} -m elf64_s390"
10405 sparc*-*linux*)
10406 LD="${LD-ld} -m elf64_sparc"
10412 rm -rf conftest*
10415 *-*-sco3.2v5*)
10416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10418 CFLAGS="$CFLAGS -belf"
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10420 printf %s "checking whether the C compiler needs -belf... " >&6; }
10427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10460 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10464 *-*solaris*)
10468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10474 *64-bit*)
10478 i?86-*-solaris*|x86_64-*-solaris*)
10479 LD="${LD-ld} -m elf_x86_64"
10481 sparc*-*-solaris*)
10482 LD="${LD-ld} -m elf64_sparc"
10486 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10487 LD=${LD-ld}_sol2
10491 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10492 LD="${LD-ld} -64"
10499 rm -rf conftest*
10505 if test -n "$ac_tool_prefix"; then
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514 if test -n "$MANIFEST_TOOL"; then
10529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10539 if test -n "$MANIFEST_TOOL"; then
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 if test -n "$ac_ct_MANIFEST_TOOL"; then
10574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10584 if test -n "$ac_ct_MANIFEST_TOOL"; then
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10607 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10615 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10616 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10618 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10621 rm -f conftest*
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10636 if test -n "$ac_tool_prefix"; then
10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 if test -n "$DSYMUTIL"; then
10660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10670 if test -n "$DSYMUTIL"; then
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 if test -z "$ac_cv_prog_DSYMUTIL"; then
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 if test -n "$ac_ct_DSYMUTIL"; then
10705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10715 if test -n "$ac_ct_DSYMUTIL"; then
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10738 if test -n "$ac_tool_prefix"; then
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 if test -n "$NMEDIT"; then
10762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10772 if test -n "$NMEDIT"; then
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 if test -z "$ac_cv_prog_NMEDIT"; then
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 if test -n "$ac_ct_NMEDIT"; then
10807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10817 if test -n "$ac_ct_NMEDIT"; then
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10840 if test -n "$ac_tool_prefix"; then
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 if test -n "$LIPO"; then
10864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10874 if test -n "$LIPO"; then
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 if test -z "$ac_cv_prog_LIPO"; then
10888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 if test -n "$ac_ct_LIPO"; then
10909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10919 if test -n "$ac_ct_LIPO"; then
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10942 if test -n "$ac_tool_prefix"; then
10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951 if test -n "$OTOOL"; then
10966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10976 if test -n "$OTOOL"; then
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 if test -z "$ac_cv_prog_OTOOL"; then
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 if test -n "$ac_ct_OTOOL"; then
11011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11021 if test -n "$ac_ct_OTOOL"; then
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11044 if test -n "$ac_tool_prefix"; then
11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 if test -n "$OTOOL64"; then
11068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11078 if test -n "$OTOOL64"; then
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 if test -z "$ac_cv_prog_OTOOL64"; then
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 if test -n "$ac_ct_OTOOL64"; then
11113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11123 if test -n "$ac_ct_OTOOL64"; then
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11173 printf %s "checking for -single_module linker flag... " >&6; }
11179 if test -z "$LT_MULTI_MODULE"; then
11180 # By default we will add the -single_module flag. You can override
11182 # non-empty at configure time, or by adding -multi_module to the
11184 rm -rf libconftest.dylib*
11186 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11187 -dynamiclib -Wl,-single_module conftest.c" >&5
11188 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11189 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11191 # If there is a non-empty error log, and "single_module"
11193 if test -s conftest.err && $GREP single_module conftest.err; then
11197 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11202 rm -rf libconftest.dylib*
11203 rm -f conftest.*
11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11210 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11218 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11245 printf %s "checking for -force_load linker flag... " >&6; }
11254 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11255 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11263 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11264 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11266 if test -s conftest.err && $GREP force_load conftest.err; then
11268 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11273 rm -f conftest.err libconftest.a conftest conftest.c
11274 rm -rf conftest.dSYM
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11281 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11283 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11288 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11289 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11290 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11292 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11294 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11302 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11304 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11315 # -----------------------------------
11340 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11341 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11373 # Check whether --enable-shared was given.
11376 enableval=$enable_shared; p=${PACKAGE-default}
11405 # Check whether --enable-static was given.
11408 enableval=$enable_static; p=${PACKAGE-default}
11438 # Check whether --with-pic was given.
11441 withval=$with_pic; lt_p=${PACKAGE-default}
11468 # Check whether --enable-fast-install was given.
11471 enableval=$enable_fast_install; p=${PACKAGE-default}
11501 power*-*-aix[5-9]*,yes)
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11505 # Check whether --with-aix-soname was given.
11512 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11533 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11535 if test 64 = "${OBJECT_MODE-32}"; then
11591 test -z "$LN_S" && LN_S="ln -s"
11606 if test -n "${ZSH_VERSION+set}"; then
11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11616 rm -f .libs 2>/dev/null
11617 mkdir .libs 2>/dev/null
11618 if test -d .libs; then
11621 # MS-DOS does not allow filenames that begin with a dot.
11624 rmdir .libs 2>/dev/null
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11665 test -z "$CC" && CC=cc
11666 test -z "$LTCC" && LTCC=$CC
11667 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11668 test -z "$LD" && LD=ld
11669 test -z "$ac_objext" && ac_objext=o
11676 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11696 test -z "$ac_dir" && ac_dir=.
11697 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11699 if test -n "$file_magic_test_file"; then
11704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11705 $EGREP "$file_magic_regex" > /dev/null; then
11717 *** bug-libtool@gnu.org
11733 if test -n "$MAGIC_CMD"; then
11734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 if test -z "$lt_cv_path_MAGIC_CMD"; then
11746 if test -n "$ac_tool_prefix"; then
11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11763 test -z "$ac_dir" && ac_dir=.
11764 if test -f "$ac_dir/file"; then
11766 if test -n "$file_magic_test_file"; then
11771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11772 $EGREP "$file_magic_regex" > /dev/null; then
11784 *** bug-libtool@gnu.org
11800 if test -n "$MAGIC_CMD"; then
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11848 LTCC=${LTCC-"$CC"}
11851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11863 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11869 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11871 $RM -r conftest*
11874 if test -n "$compiler"; then
11881 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11883 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11887 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11895 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11904 -e 's:$: $lt_compiler_flag:'`
11910 if (exit $ac_status) && test -s "$ac_outfile"; then
11915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11926 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11944 lt_prog_compiler_wl='-Wl,'
11945 lt_prog_compiler_static='-static'
11952 lt_prog_compiler_static='-Bstatic'
11954 lt_prog_compiler_pic='-fPIC'
11961 lt_prog_compiler_pic='-fPIC'
11965 # adding the '-m68020' flag to GCC prevents building anything better,
11966 # like '-m68040'.
11967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11980 # (--disable-auto-import) libraries
11981 lt_prog_compiler_pic='-DDLL_EXPORT'
11984 lt_prog_compiler_static='$wl-static'
11992 lt_prog_compiler_pic='-fno-common'
11997 # The "-static" flag exists, but is broken.
12002 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12003 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12010 lt_prog_compiler_pic='-fPIC'
12015 interix[3-9]*)
12016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12028 # QNX uses GNU C++, but need to define -shared option too, otherwise
12030 lt_prog_compiler_pic='-fPIC -shared'
12034 if test -d /usr/nec; then
12035 lt_prog_compiler_pic=-Kconform_pic
12040 lt_prog_compiler_pic='-fPIC'
12046 lt_prog_compiler_wl='-Xlinker '
12047 if test -n "$lt_prog_compiler_pic"; then
12048 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12056 lt_prog_compiler_wl='-Wl,'
12059 lt_prog_compiler_static='-Bstatic'
12061 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12068 lt_prog_compiler_pic='-fno-common'
12072 lt_prog_compiler_wl='-Wl,-Wl,,'
12073 lt_prog_compiler_pic='-PIC'
12074 lt_prog_compiler_static='-Bstatic'
12082 lt_prog_compiler_pic='-DDLL_EXPORT'
12085 lt_prog_compiler_static='$wl-static'
12091 lt_prog_compiler_wl='-Wl,'
12092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12093 # not for PA HP-UX.
12103 lt_prog_compiler_static='$wl-a ${wl}archive'
12107 lt_prog_compiler_wl='-Wl,'
12108 # PIC (with -KPIC) is the default.
12109 lt_prog_compiler_static='-non_shared'
12112 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12114 # old Intel for x86_64, which still supported -KPIC.
12116 lt_prog_compiler_wl='-Wl,'
12117 lt_prog_compiler_pic='-KPIC'
12118 lt_prog_compiler_static='-static'
12121 # ICC 10 doesn't accept -KPIC any more.
12123 lt_prog_compiler_wl='-Wl,'
12124 lt_prog_compiler_pic='-fPIC'
12125 lt_prog_compiler_static='-static'
12129 lt_prog_compiler_wl='-Wl,'
12130 lt_prog_compiler_pic='--shared'
12131 lt_prog_compiler_static='--static'
12135 lt_prog_compiler_wl='-Wl,-Wl,,'
12136 lt_prog_compiler_pic='-PIC'
12137 lt_prog_compiler_static='-Bstatic'
12141 lt_prog_compiler_wl='-Wl,'
12142 lt_prog_compiler_pic='-fPIC'
12143 lt_prog_compiler_static='-static'
12148 lt_prog_compiler_wl='-Wl,'
12149 lt_prog_compiler_pic='-fpic'
12150 lt_prog_compiler_static='-Bstatic'
12153 lt_prog_compiler_wl='-Wl,'
12155 lt_prog_compiler_static='-non_shared'
12159 lt_prog_compiler_wl='-Wl,'
12160 lt_prog_compiler_pic='-qpic'
12161 lt_prog_compiler_static='-qstaticlink'
12164 case `$CC -V 2>&1 | sed 5q` in
12165 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12167 lt_prog_compiler_pic='-KPIC'
12168 lt_prog_compiler_static='-Bstatic'
12172 lt_prog_compiler_pic='-KPIC'
12173 lt_prog_compiler_static='-Bstatic'
12174 lt_prog_compiler_wl='-Qoption ld '
12178 lt_prog_compiler_pic='-KPIC'
12179 lt_prog_compiler_static='-Bstatic'
12180 lt_prog_compiler_wl='-Wl,'
12183 lt_prog_compiler_wl='-Wl,'
12184 lt_prog_compiler_pic='-fPIC'
12185 lt_prog_compiler_static='-static'
12188 lt_prog_compiler_wl='-Wl,'
12189 lt_prog_compiler_pic='-fpic'
12190 lt_prog_compiler_static='-Bstatic'
12198 lt_prog_compiler_pic='-KPIC'
12199 lt_prog_compiler_static='-Bstatic'
12203 # QNX uses GNU C++, but need to define -shared option too, otherwise
12205 lt_prog_compiler_pic='-fPIC -shared'
12209 lt_prog_compiler_wl='-Wl,'
12211 lt_prog_compiler_static='-non_shared'
12215 lt_prog_compiler_static='-non_shared'
12219 lt_prog_compiler_pic='-KPIC'
12220 lt_prog_compiler_static='-Bstatic'
12223 lt_prog_compiler_wl='-Qoption ld ';;
12225 lt_prog_compiler_wl='-Wl,';;
12230 lt_prog_compiler_wl='-Qoption ld '
12231 lt_prog_compiler_pic='-PIC'
12232 lt_prog_compiler_static='-Bstatic'
12236 lt_prog_compiler_wl='-Wl,'
12237 lt_prog_compiler_pic='-KPIC'
12238 lt_prog_compiler_static='-Bstatic'
12242 if test -d /usr/nec; then
12243 lt_prog_compiler_pic='-Kconform_pic'
12244 lt_prog_compiler_static='-Bstatic'
12249 lt_prog_compiler_wl='-Wl,'
12250 lt_prog_compiler_pic='-KPIC'
12251 lt_prog_compiler_static='-Bstatic'
12255 lt_prog_compiler_wl='-Wl,'
12260 lt_prog_compiler_pic='-pic'
12261 lt_prog_compiler_static='-Bstatic'
12271 # For platforms that do not support PIC, -DPIC is meaningless:
12276 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12295 if test -n "$lt_prog_compiler_pic"; then
12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12314 -e 's:$: $lt_compiler_flag:'`
12320 if (exit $ac_status) && test -s "$ac_outfile"; then
12325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12374 if test -s conftest.err; then
12379 if diff conftest.exp conftest.er2 >/dev/null; then
12386 $RM -r conftest*
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12406 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12412 $RM -r conftest 2>/dev/null
12418 lt_compiler_flag="-o out/conftest2.$ac_objext"
12424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12426 -e 's:$: $lt_compiler_flag:'`
12432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12449 $RM -r conftest
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12462 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12468 $RM -r conftest 2>/dev/null
12474 lt_compiler_flag="-o out/conftest2.$ac_objext"
12480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12482 -e 's:$: $lt_compiler_flag:'`
12488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12505 $RM -r conftest
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12530 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12569 # include_expsyms should be a list of space-separated symbols to be *always*
12615 case `$LD -v 2>&1` in
12617 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12618 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12639 export_dynamic_flag_spec='$wl--export-dynamic'
12640 # ancient GNU ld didn't support --whole-archive et. al.
12641 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12642 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12647 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12658 aix[3-9]*)
12668 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12683 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12684 hardcode_libdir_flag_spec='-L$libdir'
12691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12694 # support --undefined. This deserves some investigation. FIXME
12695 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12704 hardcode_libdir_flag_spec='-L$libdir'
12705 export_dynamic_flag_spec='$wl--export-all-symbols'
12709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12710 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12714 # If the export-symbols file already is a .def file, use it as
12716 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12734 hardcode_libdir_flag_spec='-L$libdir'
12743 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12744 emximp -o $lib $output_objdir/$libname.def'
12751 prefix_cmds="$prefix_cmds -e 1d";
12753 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12755 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12756 emximp -o $lib $output_objdir/$libname.def'
12757 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12761 interix[3-9]*)
12764 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12765 export_dynamic_flag_spec='$wl-E'
12770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12773 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12776 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12778 if test linux-dietlibc = "$host_os"; then
12780 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12783 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12787 tmp_sharedflag='-shared'
12790 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12795 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12796 tmp_addflag=' $pic_flag -Mnomain' ;;
12798 tmp_addflag=' -i_dynamic' ;;
12800 tmp_addflag=' -i_dynamic -nofor_main' ;;
12802 tmp_addflag=' -nofor_main' ;;
12805 tmp_sharedflag='--shared' ;;
12807 tmp_sharedflag='-Wl,-shared' ;;
12809 tmp_sharedflag='-qmkshrobj'
12812 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12816 case `$CC -V 2>&1 | sed 5q` in
12818 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12820 tmp_sharedflag='-G' ;;
12822 tmp_sharedflag='-G' ;;
12824 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12835 export_dynamic_flag_spec='-rdynamic'
12839 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12841 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12846 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12857 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12866 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12878 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12887 case `$LD -v 2>&1` in
12888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12927 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12946 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12948 # are no directories specified by -L.
12950 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12957 aix[4-9]*)
12962 exp_sym_flag='-Bexport'
12965 # If we're using GNU nm, then we don't want the "-C" option.
12966 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12967 # Without the "-l" option, or with the "-B" option, AIX nm treats
12971 # it in the Import File for the 'aix-soname' feature, so we have
12972 # to replace the "-B" option with "-P" for AIX nm.
12973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12974 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12976 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12984 # depending on the kind of the shared library created -
12995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12997 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13003 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13007 LDFLAGS="$LDFLAGS -Wl,-brtl"
13012 exp_sym_flag='-bexport'
13013 no_entry_flag='-bnoentry'
13018 # or program results in "error TOC overflow" add -mminimal-toc to
13020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027 file_list_spec='$wl-f,'
13041 collect2name=`$CC -print-prog-name=collect2`
13042 if test -f "$collect2name" &&
13043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13054 hardcode_libdir_flag_spec='-L$libdir'
13059 shared_flag='-shared'
13061 shared_flag="$shared_flag "'$wl-G'
13065 # /with/ Import File - we do not want to mix them.
13066 shared_flag_aix='-shared'
13067 shared_flag_svr4='-shared $wl-G'
13071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13072 # chokes on -Wl,-G. The following line is correct:
13073 shared_flag='-G'
13076 shared_flag='$wl-G'
13078 shared_flag='$wl-bM:SRE'
13080 shared_flag_aix='$wl-bM:SRE'
13081 shared_flag_svr4='$wl-G'
13085 export_dynamic_flag_spec='$wl-bexpall'
13086 # It seems that -bexpall does not export symbols beginning with
13090 # Warning - without using the other runtime loading flags (-brtl),
13091 # -berok will link without error, but may produce a broken library.
13092 allow_undefined_flag='-berok'
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13124 # Check for a 64-bit object if we didn't find anything.
13125 if test -z "$lt_cv_aix_libpath_"; then
13126 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13131 if test -z "$lt_cv_aix_libpath_"; then
13140 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13141 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13144 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13145 allow_undefined_flag="-z nodefs"
13146 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179 # Check for a 64-bit object if we didn't find anything.
13180 if test -z "$lt_cv_aix_libpath_"; then
13181 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13186 if test -z "$lt_cv_aix_libpath_"; then
13195 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13196 # Warning - without using the other run time loading flags,
13197 # -berok will link without error, but may produce a broken library.
13198 no_undefined_flag=' $wl-bernotok'
13199 allow_undefined_flag=' $wl-berok'
13201 # We only use this code for GNU lds that support --whole-archive.
13202 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13208 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13209 # -brtl affects multiple linker settings, -berok does not and is overridden later
13210 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13213 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13216 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13218 # used by -dlpreopen to get the symbols
13221 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13234 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13235 hardcode_libdir_flag_spec='-L$libdir'
13242 export_dynamic_flag_spec=-rdynamic
13262 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13263 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13267 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13269 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13287 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13288 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13305 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13319 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13332 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13333 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13334 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13335 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13345 hardcode_libdir_flag_spec='-L$libdir'
13354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13355 hardcode_libdir_flag_spec='-R$libdir'
13362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13371 hardcode_libdir_flag_spec='-R$libdir'
13378 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13380 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13389 export_dynamic_flag_spec='$wl-E'
13394 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13403 export_dynamic_flag_spec='$wl-E'
13414 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13426 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13429 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13433 # Older versions of the 11.00 compiler do not understand -b yet
13434 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13436 printf %s "checking if $CC understands -b... " >&6; }
13443 LDFLAGS="$LDFLAGS -b"
13445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13448 if test -s conftest.err; then
13453 if diff conftest.exp conftest.er2 >/dev/null; then
13460 $RM -r conftest*
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13468 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13488 export_dynamic_flag_spec='$wl-E'
13500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13501 # Try to use the -exported_symbol ld option, if it does not
13502 # work, assume that -exports_file does not work either and
13504 # This should be the same for all languages, so no per-tag cache variable.
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13506 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13512 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13530 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13559 hardcode_libdir_flag_spec='-R$libdir'
13565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13576 if test -f /usr/libexec/ld.so; then
13580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13583 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13584 export_dynamic_flag_spec='$wl-E'
13586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13587 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13595 hardcode_libdir_flag_spec='-L$libdir'
13604 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13605 emximp -o $lib $output_objdir/$libname.def'
13612 prefix_cmds="$prefix_cmds -e 1d";
13614 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13616 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13617 emximp -o $lib $output_objdir/$libname.def'
13618 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13624 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13625 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13627 allow_undefined_flag=' -expect_unresolved \*'
13628 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13635 osf4* | osf5*) # as osf3* with the addition of -msym flag
13637 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13638 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13641 allow_undefined_flag=' -expect_unresolved \*'
13642 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13643 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13644 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13646 # Both c and cxx compiler support -rpath directly
13647 hardcode_libdir_flag_spec='-rpath $libdir'
13654 no_undefined_flag=' -z defs'
13657 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13661 case `$CC -V 2>&1` in
13664 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13666 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13670 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13672 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13676 hardcode_libdir_flag_spec='-R$libdir'
13679 solaris2.[0-5] | solaris2.[0-5].*) ;;
13682 # but understands '-z linker_flag'. GCC discards it without '$wl',
13686 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13699 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13703 hardcode_libdir_flag_spec='-L$libdir'
13712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13719 reload_cmds='$CC -r -o $output$reload_objs'
13723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13734 export_dynamic_flag_spec='-Bexport'
13738 if test -d /usr/nec; then
13739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748 no_undefined_flag='$wl-z,text'
13754 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 # Note: We CANNOT use -z defs as we might desire, because we do not
13764 # link with -lc, and that would cause any symbols used from libc to
13766 # ever link correctly. If we're not using GNU ld we use -z text
13767 # though, which does catch some bad symbols but isn't as heavy-handed
13768 # as -z defs.
13769 no_undefined_flag='$wl-z,text'
13770 allow_undefined_flag='$wl-z,nodefs'
13773 hardcode_libdir_flag_spec='$wl-R,$libdir'
13776 export_dynamic_flag_spec='$wl-Bexport'
13780 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13781 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790 hardcode_libdir_flag_spec='-L$libdir'
13802 export_dynamic_flag_spec='$wl-Blargedynsym'
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13833 # Assume -lc should be added
13839 # FIXME: we may have to deal with multi-command sequences.
13842 # Test whether the compiler implicitly links with -lc since on some
13843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13844 # to ld, don't add -lc before -lgcc.
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13846 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13865 compiler_flags=-v
13866 linker_flags=-v
13872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13873 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14058 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14065 # otherwise default to the standard path separator (i.e. ":") - it is
14077 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14079 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14086 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14088 elif test -n "$lt_multi_os_dir"; then
14089 test -d "$lt_sys_path" && \
14097 for (lt_i = NF; lt_i > 0; lt_i--) {
14105 lt_count--;
14117 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14139 # when you set need_version to no, make sure it does not cause -set_version
14155 aix[4-9]*)
14174 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14182 # filename-based versioning of shared library archives on AIX. While
14184 # prevent static linking of such archives. So we do filename-based
14189 # versioned .so libs for executables only if there is the -brtl
14190 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14191 # To allow for filename-based versioning support, we need to create
14201 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14231 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14241 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14242 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14259 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14281 # libtool to hard-code these into programs
14296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14298 test -d \$dldir || mkdir -p \$dldir~
14301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14312 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14318 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14322 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14331 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14343 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14354 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14355 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14356 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14360 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14367 # common. (e.g. "Program Files" -> "PROGRA~1")
14373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14375 test -d \$dldir || mkdir -p \$dldir~
14377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14386 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14421 if test -x /usr/bin/objformat; then
14429 version_type=freebsd-$objformat
14431 freebsd-elf*)
14437 freebsd-*)
14451 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14452 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14519 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14525 interix[3-9]*)
14557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558 libsuff= shlibsuff= libmagic=32-bit;;
14559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563 *) libsuff= shlibsuff= libmagic=never-match;;
14595 # Don't embed -rpath directories since the linker doesn't support them.
14596 hardcode_libdir_flag_spec='-L$libdir'
14600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14652 # Add ABI-specific directories to the system library path.
14658 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14659 # even though it is searched at run-time. Try to do the best guess by
14661 if test -f /etc/ld.so.conf; then
14662 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14669 # most powerpc-linux boxes support dynamic linking these days and
14670 # people can always --disable-shared, the test was removed, and we
14679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14735 v=$($ECHO $release$versuffix | tr -d .-);
14736 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14746 test -d \$dldir || mkdir -p \$dldir~
14749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14821 if test -d /usr/nec; then
14852 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14893 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14998 if test -n "$hardcode_libdir_flag_spec" ||
14999 test -n "$runpath_var" ||
15002 # We can hardcode non-existent directories.
15006 # when we should be linking with a yet-to-be-installed one
15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15066 printf %s "checking for dlopen in -ldl... " >&6; }
15072 LIBS="-ldl $LIBS"
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15102 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15115 # because TPF is a cross-compiler, and we know how we open DSOs.
15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15128 printf %s "checking for shl_load in -ldld... " >&6; }
15134 LIBS="-ldld $LIBS"
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15164 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15172 printf %s "checking for dlopen in -ldl... " >&6; }
15178 LIBS="-ldl $LIBS"
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15208 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15211 printf %s "checking for dlopen in -lsvld... " >&6; }
15217 LIBS="-lsvld $LIBS"
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15250 printf %s "checking for dld_link in -ldld... " >&6; }
15256 LIBS="-ldld $LIBS"
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15286 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15316 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15377 /* When -fvisibility=hidden is used, assume the code has been annotated
15405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15409 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15410 (./conftest; exit; ) >&5 2>/dev/null
15422 rm -fr conftest*
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15484 /* When -fvisibility=hidden is used, assume the code has been annotated
15512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15517 (./conftest; exit; ) >&5 2>/dev/null
15529 rm -fr conftest*
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15574 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15580 # FIXME - insert some real tests, host_os isn't really good enough
15583 if test -n "$STRIP"; then
15584 striplib="$STRIP -x"
15585 old_striplib="$STRIP -S"
15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15626 if test -n "$RANLIB"; then
15632 aix[4-9]*)
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15688 # pkg-config is only needed for these options, do not require it otherwise
15689 if test "$enable_systemd" = "yes" -o "$enable_dnstap" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
15698 if test -n "$ac_tool_prefix"; then
15699 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15700 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15735 if test -n "$PKG_CONFIG"; then
15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15745 if test -z "$ac_cv_path_PKG_CONFIG"; then
15747 # Extract the first word of "pkg-config", so it can be a program name with args.
15748 set dummy pkg-config; ac_word=$2
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15783 if test -n "$ac_pt_PKG_CONFIG"; then
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15807 if test -n "$PKG_CONFIG"; then
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15810 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15811 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
16201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16207 if test -n "$CPP" && test -d "$CPP"; then
16210 if test -z "$CPP"; then
16216 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
16222 # with a fresh cross-compiler works.
16223 # On the NeXT, cc -E runs the code through the compiler's parser,
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 rm -f conftest.err conftest.i conftest.$ac_ext
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 rm -f conftest.err conftest.i conftest.$ac_ext
16258 rm -f conftest.i conftest.err conftest.$ac_ext
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16278 # with a fresh cross-compiler works.
16279 # On the NeXT, cc -E runs the code through the compiler's parser,
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 rm -f conftest.err conftest.i conftest.$ac_ext
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 rm -f conftest.err conftest.i conftest.$ac_ext
16314 rm -f conftest.i conftest.err conftest.$ac_ext
16319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 $EGREP "uid_t" >/dev/null 2>&1
16350 rm -rf conftest*
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
16506 printf "%s\n" "cross-compile no" >&6; }
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
16584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
16603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16617 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16638 # Check whether --enable-rpath was given.
16647 ac_config_commands="$ac_config_commands disable-rpath"
16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 if test -z "$ac_lib"; then
16681 ac_res=-l$ac_lib
16682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 if test -z "$ac_lib"; then
16740 ac_res=-l$ac_lib
16741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
16786 *-gnu*) ac_cv_func_chown_works=yes ;;
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
16822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16826 rm -f conftest.chown
16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16898 *-*-amigaos* | *-*-msdosdjgpp*)
16906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16955 write(-1, "", 0);
17035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17126 rm -rf conftest*
17138 # Check whether --enable-largefile was given.
17146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17157 # so use the C compiler's -n32 option if that helps.
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* Check that off_t can represent 2**63 - 1 correctly.
17165 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17168 ? 1 : -1];
17181 rm -f core conftest.err conftest.$ac_objext conftest.beam
17182 CC="$CC -n32"
17185 ac_cv_sys_largefile_CC=' -n32'; break
17187 rm -f core conftest.err conftest.$ac_objext conftest.beam
17191 rm -f conftest.$ac_ext
17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* Check that off_t can represent 2**63 - 1 correctly.
17214 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17217 ? 1 : -1];
17230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* Check that off_t can represent 2**63 - 1 correctly.
17239 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17242 ? 1 : -1];
17255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17268 rm -rf conftest*
17270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* Check that off_t can represent 2**63 - 1 correctly.
17284 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17287 ? 1 : -1];
17300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* Check that off_t can represent 2**63 - 1 correctly.
17309 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17312 ? 1 : -1];
17325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17338 rm -rf conftest*
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
17346 printf %s "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
17361 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
17365 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
17371 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
17372 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
17377 rm -f conftest conftest.c conftest.o
17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
17393 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
17409 if echo $host | grep mingw >/dev/null; then
17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 if(sfd == -1) {
17483 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
17489 if(cfd == -1) {
17516 if(p == -1) {
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
17646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
17681 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
17682 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
17693 # Include systemd.m4 - begin
17697 # Check whether --enable-systemd was given.
17709 if test -n "$PKG_CONFIG"; then
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
17716 if test -n "$SYSTEMD_CFLAGS"; then
17718 elif test -n "$PKG_CONFIG"; then
17719 if test -n "$PKG_CONFIG" && \
17720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
17721 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
17723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17725 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
17733 if test -n "$SYSTEMD_LIBS"; then
17735 elif test -n "$PKG_CONFIG"; then
17736 if test -n "$PKG_CONFIG" && \
17737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
17738 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
17740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17742 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17763 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
17765 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
17775 installed software in a non-standard prefix.
17778 and SYSTEMD_LIBS to avoid the need to call pkg-config.
17779 See the pkg-config man page for more details." "$LINENO" 5
17781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17783 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17785 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17787 path to pkg-config.
17790 and SYSTEMD_LIBS to avoid the need to call pkg-config.
17791 See the pkg-config man page for more details.
17793 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
17811 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
17813 elif test -n "$PKG_CONFIG"; then
17814 if test -n "$PKG_CONFIG" && \
17815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17816 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17820 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
17828 if test -n "$SYSTEMD_DAEMON_LIBS"; then
17830 elif test -n "$PKG_CONFIG"; then
17831 if test -n "$PKG_CONFIG" && \
17832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17833 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17837 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17858 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17860 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17865 as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
17870 installed software in a non-standard prefix.
17873 and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config.
17874 See the pkg-config man page for more details." "$LINENO" 5
17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17880 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17882 path to pkg-config.
17885 and SYSTEMD_DAEMON_LIBS to avoid the need to call pkg-config.
17886 See the pkg-config man page for more details.
17888 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17917 as_fn_error $? "systemd enabled but need pkg-config to configure for it" "$LINENO" 5
17930 # Include systemd.m4 - end
17933 # Check whether --enable-alloc-checks was given.
17939 # Check whether --enable-alloc-lite was given.
17945 # Check whether --enable-alloc-nonregional was given.
17971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18083 # the non-threadsafe C libraries.
18085 # Check whether --with-pthreads was given.
18101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18164 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18165 # libraries is broken (non-POSIX).
18169 # starting with a "-" are C compiler flags, and remaining items are
18171 # any flags at all, and "pthread-config" which is a program returning
18174 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18179 # pthreads: AIX (must check this before -lpthread)
18180 # none: in case threads are in libc; should be tried before -Kthread and
18182 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18183 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
18184 # (Note: HP C rejects this with "bad form for `-t' option")
18185 # -pthreads: Solaris/gcc (Note: HP C also rejects)
18186 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18188 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
18189 # is present but should not be used directly; and before -mthreads,
18190 # because the compiler interprets this as "-mt" + "-hreads")
18191 # -mthreads: Mingw32/gcc, Lynx/gcc
18193 # --thread-safe: KAI C++
18194 # pthread-config: use pthread-config program (for GNU Pth library)
18200 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18201 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18203 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
18208 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
18209 # multi-threading and also sets -lpthread."
18211 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
18216 # IBM z/OS requires a feature-test macro to be defined in order to
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
18233 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
18235 rm -rf conftest*
18242 # (non-functional) versions of the pthreads routines, so link-based
18247 # standard Solaris way of linking pthreads (-mt -lpthread).
18249 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
18273 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
18277 rm -rf conftest*
18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
18287 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
18289 # Note that for GCC and Clang -pthread generally implies -lpthread,
18290 # except when -nostdlib is passed.
18294 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
18295 # To solve this, first try -pthread together with -lpthread for GCC
18299 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
18302 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
18306 ax_pthread_flags="-pthread,-lpthread -pthread"
18310 # The presence of a feature test macro requesting re-entrant function
18324 ax_pthread_check_macro="--"
18327 if test "x$ax_pthread_check_macro" = "x--"
18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
18351 -*)
18352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
18357 pthread-config)
18358 # Extract the first word of "pthread-config", so it can be a program name with args.
18359 set dummy pthread-config; ac_word=$2
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18366 if test -n "$ax_pthread_config"; then
18381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18388 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18392 if test -n "$ax_pthread_config"; then
18393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 PTHREAD_CFLAGS="`pthread-config --cflags`"
18406 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
18411 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
18412 PTHREAD_LIBS="-l$ax_pthread_try_flag"
18423 # need a special flag -Kthread to make this header compile.)
18424 # We check for pthread_join because it is in -lpthread on IRIX
18426 # due to DEC craziness with -lpthreads. We check for
18428 # functions on Solaris that doesn't have a non-functional libc stub.
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* To avoid any unused-parameter or
18441 unused-but-set-parameter warning. */
18462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18481 # Clang needs special handling, because older versions handle the -pthread
18486 # Clang takes -pthread; it has never supported any other flag
18492 # (Note 2: On some systems, notably Darwin, -pthread is not needed
18495 # -pthread does define _REENTRANT, and while the Darwin headers
18496 # ignore this macro, third-party headers might not.)
18500 # taking place, the -pthread option has no effect ("argument unused
18501 # during compilation"). They expect -pthread to be passed in only
18512 # Even though use of the -pthread flag in linking would only print
18513 # a warning, this can be a nuisance for well-run software projects
18514 # that build with -Werror. So if the active version of Clang has
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
18518 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
18525 # links in two steps (.c -> .o, .o -> exe) instead of one
18526 # (.c -> exe), because the warning occurs only in the second
18533 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
18538 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
18632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
18641 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18732 if test -n "$PTHREAD_CC"; then
18747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18757 if test -n "$PTHREAD_CC"; then
18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 test -n "$PTHREAD_CC" && break
18768 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18782 if test -n "$PTHREAD_CXX"; then
18797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18807 if test -n "$PTHREAD_CXX"; then
18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
18811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 test -n "$PTHREAD_CXX" && break
18818 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18833 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18834 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18841 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18847 if test -n "$PTHREAD_LIBS"; then
18873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
18887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
18906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
18920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
18939 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
18941 printf %s "checking if -pthread unused during linking... " >&6; }
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
18953 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
18956 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
18957 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
18958 if test $? -ne 0; then
18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18961 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
18962 PTHREAD_CFLAGS_ONLY="-pthread"
18965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 rm -f conftest conftest.c conftest.o
18973 fi # endif -pthread in CFLAGS
18983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18992 # Check whether --with-solaris-threads was given.
19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
19004 printf "%s\n" "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 if test -z "$ac_lib"; then
19033 ac_res=-l$ac_lib
19034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
19070 printf %s "checking whether $CC supports -mt... " >&6; }
19071 cache=`echo mt | sed 'y%.=/+-%___p_%'`
19078 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
19083 rm -f conftest conftest.o conftest.c
19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19091 CFLAGS="$CFLAGS -mt"
19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 CFLAGS="$CFLAGS -D_REENTRANT"
19110 fi # end of non-mingw check of thread libraries
19114 # Check whether --with-syslog-facility was given.
19122 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
19133 # Check whether --with-dynlibmodule was given.
19153 # link with -ldl if not already there, for all executables because
19156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 if test -z "$ac_lib"; then
19183 ac_res=-l$ac_lib
19184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19215 DYNLIBMOD_EXTRALIBS="-export-dynamic"
19217 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
19224 # Check whether --with-pyunbound was given.
19242 # Check whether --with-pythonmodule was given.
19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19304 if test -n "$PYTHON"; then
19305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313 if test -z "$PYTHON"; then
19318 if test -z "$PYTHON_VERSION"; then
19319 PYTHON_VERSION=`$PYTHON -c "import sys; \
19325 PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'`
19326 if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi
19327 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
19328 PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'`
19329 if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi
19330 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
19331 PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'`
19332 if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi
19341 if test $PYTHON_VERSION_MAJOR -lt 3; then
19344 if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then
19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5
19353 if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363 if test -z "$sysconfig_module"; then
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5
19367 if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then
19368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19390 if test -z "$PYTHON_CPPFLAGS"; then
19392 python_path=`$PYTHON -c 'import sysconfig; \
19395 python_path=`$PYTHON -c "import distutils.sysconfig; \
19398 if test -n "${python_path}"; then
19399 python_path="-I$python_path"
19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19412 if test -z "$PYTHON_LDFLAGS"; then
19413 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
19414 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19420 if test -z "$PYTHON_LIBDIR"; then
19421 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
19428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19429 printf %s "checking for Python site-packages path... " >&6; }
19430 if test -z "$PYTHON_SITE_PKG"; then
19432 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
19435 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
19450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
19490 installed in some non-standard library path. If so, pass it to configure,
19492 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
19503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 if test ! -z "$PYTHON_VERSION"; then
19517 if test "$PYTHON_VERSION_MAJOR" -lt 2; then
19520 if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
19527 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
19534 if test -n "$LIBS"; then
19542 if test -n "$CPPFLAGS"; then
19547 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
19550 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
19551 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
19557 if test -n "$PKG_CONFIG" && \
19558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
19559 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
19561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19571 # Check whether --enable-swig-version-check was given.
19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19618 if test -n "$SWIG"; then
19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 test -n "$SWIG" && break
19630 if test -z "$SWIG" ; then
19632 elif test -z "2.0.1" ; then
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19637 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19640 if test -n "$swig_version" ; then
19643 required_major=`echo $required | sed 's/[^0-9].*//'`
19644 if test -z "$required_major" ; then
19647 required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
19648 required_minor=`echo $required | sed 's/[^0-9].*//'`
19649 if test -z "$required_minor" ; then
19652 required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
19653 required_patch=`echo $required | sed 's/[^0-9].*//'`
19654 if test -z "$required_patch" ; then
19659 available_major=`echo $available | sed 's/[^0-9].*//'`
19660 if test -z "$available_major" ; then
19663 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19664 available_minor=`echo $available | sed 's/[^0-9].*//'`
19665 if test -z "$available_minor" ; then
19668 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19669 available_patch=`echo $available | sed 's/[^0-9].*//'`
19670 if test -z "$available_patch" ; then
19681 if test $available_swig_vernum -lt $required_swig_vernum; then
19682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version." >&5
19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19689 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '`
19690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19744 if test -n "$SWIG"; then
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753 test -n "$SWIG" && break
19756 if test -z "$SWIG" ; then
19758 elif test -z "" ; then
19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19763 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19766 if test -n "$swig_version" ; then
19769 required_major=`echo $required | sed 's/[^0-9].*//'`
19770 if test -z "$required_major" ; then
19773 required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
19774 required_minor=`echo $required | sed 's/[^0-9].*//'`
19775 if test -z "$required_minor" ; then
19778 required=`echo $required. | sed 's/[0-9]*[^0-9]//'`
19779 required_patch=`echo $required | sed 's/[^0-9].*//'`
19780 if test -z "$required_patch" ; then
19785 available_major=`echo $available | sed 's/[^0-9].*//'`
19786 if test -z "$available_major" ; then
19789 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19790 available_minor=`echo $available | sed 's/[^0-9].*//'`
19791 if test -z "$available_minor" ; then
19794 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19795 available_patch=`echo $available | sed 's/[^0-9].*//'`
19796 if test -z "$available_patch" ; then
19807 if test $available_swig_vernum -lt $required_swig_vernum; then
19808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19815 SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '`
19816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
19832 if test ! -x "$SWIG"; then
19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
19855 PYTHONMOD_INSTALL=pythonmod-install
19857 PYTHONMOD_UNINSTALL=pythonmod-uninstall
19872 PYUNBOUND_INSTALL=pyunbound-install
19874 PYUNBOUND_UNINSTALL=pyunbound-uninstall
19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
19887 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
19893 GCC_DOCKER_LINTFLAGS='-syntax'
19904 # Check whether --with-nss was given.
19912 if test "$withval" != "" -a "$withval" != "yes"; then
19913 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
19914 LDFLAGS="$LDFLAGS -L$withval/lib"
19917 if echo "$withval/lib" | grep "^/" >/dev/null; then
19918 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
19922 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
19924 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
19925 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
19927 LIBS="$LIBS -lnss3 -lnspr4"
19939 # Check whether --with-nettle was given.
19947 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
19955 if test "$withval" != "" -a "$withval" != "yes"; then
19956 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
19957 LDFLAGS="$LDFLAGS -L$withval/lib"
19960 if echo "$withval/lib" | grep "^/" >/dev/null; then
19961 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
19966 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
19968 LIBS="$LIBS -lhogweed -lnettle -lgmp"
19978 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19981 # Check whether --with-ssl was given.
19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
20000 if test -n "$withval"; then
20001 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
20006 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
20007 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
20010 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
20011 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
20019 if test x_$withval = x_ -o x_$withval = x_yes; then
20024 if test -f "$dir/include/openssl/ssl.h"; then
20027 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
20038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
20045 CPPFLAGS="$CPPFLAGS -I$ssldir_include"
20046 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
20047 LDFLAGS="$LDFLAGS -L$ssldir_lib"
20048 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
20051 if echo "$ssldir_lib" | grep "^/" >/dev/null; then
20052 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
20058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
20059 printf %s "checking for EVP_sha256 in -lcrypto... " >&6; }
20060 LIBS="$LIBS -lcrypto"
20061 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20089 # check if -lwsock32 or -lgdi32 are needed.
20092 LIBS="$LIBS -lgdi32 -lws2_32"
20093 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
20094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
20095 printf %s "checking if -lcrypto needs -lgdi32... " >&6; }
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20126 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32"
20127 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32"
20128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32" >&5
20129 printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32... " >&6; }
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20160 LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a"
20161 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a"
20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" >&5
20163 printf %s "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a... " >&6; }
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20194 LIBS="$LIBS -ldl"
20195 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
20196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
20197 printf %s "checking if -lcrypto needs -ldl... " >&6; }
20198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20227 LIBS="$LIBS -ldl -pthread"
20228 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
20229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
20230 printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; }
20231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20316 LIBS="-lssl $LIBS"
20317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 if test -z "$ac_lib"; then
20373 ac_res=-l$ac_lib
20374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20409 SSLLIB="-lssl"
20414 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
20416 LIBS="-lssl $LIBS"
20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
20418 printf %s "checking if libssl needs -lcrypt32... " >&6; }
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20445 LIBS="$LIBS -lcrypt32"
20448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
20453 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
20454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20469 for ac_arg in '' -fno-builtin; do
20472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490 # declaration. Include always-available headers on the
20492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20531 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20793 # these check_funcs need -lssl
20795 LIBS="-lssl $LIBS"
20953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
20998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void" >&5
21005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21011 # libbsd
21013 # Check whether --with-libbsd was given.
21032 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
21035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 if test -z "$ac_lib"; then
21062 ac_res=-l$ac_lib
21063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21096 PC_LIBBSD_DEPENDENCY=libbsd
21107 # Check whether --enable-sha1 was given.
21124 # Check whether --enable-sha2 was given.
21140 # Check whether --enable-subnet was given.
21151 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
21153 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
21162 # Check whether --enable-gost was given.
21169 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
21191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
21195 if test -n "$ssldir"; then
21196 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21220 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
21244 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
21257 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
21293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
21313 # Check whether --enable-ecdsa was given.
21324 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
21336 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
21348 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
21356 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
21377 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
21394 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
21398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
21400 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
21401 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
21402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21425 # Check whether --enable-dsa was given.
21435 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
21468 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
21474 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
21491 # Check whether --with-deprecate-rsa-1024 was given.
21503 # Check whether --enable-ed25519 was given.
21514 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
21532 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
21558 # Check whether --enable-ed448 was given.
21569 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
21587 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
21600 # Check whether --enable-event-api was given.
21608 UNBOUND_EVENT_INSTALL=unbound-event-install
21610 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
21617 # Check whether --enable-tfo-client was given.
21632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
21635 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
21647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
21650 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
21662 # Check whether --enable-tfo-server was given.
21676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
21679 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
21691 # Check whether --with-libevent was given.
21703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
21705 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
21710 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
21713 CPPFLAGS="$CPPFLAGS -I$thedir/include"
21719 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
21721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
21723 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
21727 mkdir build >/dev/null 2>&1
21728 mkdir build/libevent >/dev/null 2>&1
21729 mkdir build/libevent/.libs >/dev/null 2>&1
21730 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
21731 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
21732 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
21736 LATE_LDFLAGS="build/libevent/*.lo -lm"
21737 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
21740 You can restart ./configure --with-libevent=no to use a builtin alternative.
21745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
21747 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
21748 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
21751 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
21752 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
21757 if test "$thedir" != "/usr" -a "$thedir" != ""; then
21758 LDFLAGS="$LDFLAGS -L$thedir/lib"
21761 if echo "$thedir/lib" | grep "^/" >/dev/null; then
21762 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
21770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 if test -z "$ac_lib"; then
21797 ac_res=-l$ac_lib
21798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
21853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 if test -z "$ac_lib"; then
21873 ac_res=-l$ac_lib
21874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
21908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21932 if test -z "$ac_lib"; then
21935 ac_res=-l$ac_lib
21936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
22017 # in libevent, for thread-safety
22036 if test -n "$BAK_LDFLAGS_SET"; then
22047 # Check whether --with-libexpat was given.
22055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
22059 if test -f "$dir/include/expat.h"; then
22062 CPPFLAGS="$CPPFLAGS -I$dir/include"
22063 LDFLAGS="$LDFLAGS -L$dir/lib"
22065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
22096 # Check whether --with-libhiredis was given.
22105 if test x_$withval = x_yes -o x_$withval != x_no; then
22106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
22108 if test x_$withval = x_ -o x_$withval = x_yes; then
22112 if test -f "$dir/include/hiredis/hiredis.h"; then
22115 CPPFLAGS="$CPPFLAGS -I$dir/include"
22116 LDFLAGS="$LDFLAGS -L$dir/lib"
22118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
22123 LIBS="$LIBS -lhiredis"
22154 # Check whether --with-libnghttp2 was given.
22163 if test x_$withval = x_yes -o x_$withval != x_no; then
22164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
22166 if test x_$withval = x_ -o x_$withval = x_yes; then
22170 if test -f "$dir/include/nghttp2/nghttp2.h"; then
22173 CPPFLAGS="$CPPFLAGS -I$dir/include"
22174 LDFLAGS="$LDFLAGS -L$dir/lib"
22176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
22181 LIBS="$LIBS -lnghttp2"
22212 # Check whether --with-libngtcp2 was given.
22221 if test x_$withval = x_yes -o x_$withval != x_no; then
22222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2" >&5
22224 if test x_$withval = x_ -o x_$withval = x_yes; then
22228 if test -f "$dir/include/ngtcp2/ngtcp2.h"; then
22231 CPPFLAGS="$CPPFLAGS -I$dir/include"
22232 LDFLAGS="$LDFLAGS -L$dir/lib"
22234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
22239 LIBS="$LIBS -lngtcp2"
22292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_openssl" >&5
22293 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_openssl... " >&6; }
22299 LIBS="-lngtcp2_crypto_openssl $LIBS"
22300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_encrypt_cb" >&5
22329 LIBS="$LIBS -lngtcp2_crypto_openssl"
22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_quictls" >&5
22333 printf %s "checking for ngtcp2_crypto_encrypt_cb in -lngtcp2_crypto_quictls... " >&6; }
22339 LIBS="-lngtcp2_crypto_quictls $LIBS"
22340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_encrypt_cb" >&5
22369 LIBS="$LIBS -lngtcp2_crypto_quictls"
22521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ngtcp2_conn_shutdown_stream has 4 arguments" >&5
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22560 # Check whether --enable-static-exe was given.
22567 staticexe="-static"
22569 staticexe="-all-static"
22571 if echo "$LIBS" | grep 'lgdi32' >/dev/null; then
22574 LIBS="$LIBS -lgdi32"
22576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
22577 printf %s "checking for compress in -lz... " >&6; }
22583 LIBS="-lz $LIBS"
22584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
22613 LIBS="$LIBS -lz"
22616 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
22619 LIBS="$LIBS -l:libssp.a"
22625 # Check whether --enable-fully-static was given.
22632 staticexe="-all-static"
22635 if echo $LIBS | grep 'lgdi32' >/dev/null; then
22638 LIBS="$LIBS -lgdi32"
22640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
22641 printf %s "checking for compress in -lz... " >&6; }
22647 LIBS="-lz $LIBS"
22648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
22677 LIBS="$LIBS -lz"
22680 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
22683 LIBS="$LIBS -l:libssp.a"
22689 # Check whether --enable-lock_checks was given.
22704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 if echo "$LIBS" | grep 'lws2_32' >/dev/null; then
22736 LIBS="$LIBS -lws2_32"
22741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770 LIBS="$LIBS -lws2_32"
22771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
22837 if test -n "$ac_tool_prefix"; then
22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22846 if test -n "$WINDRES"; then
22861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22871 if test -n "$WINDRES"; then
22872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
22875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22881 if test -z "$ac_cv_prog_WINDRES"; then
22885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22891 if test -n "$ac_ct_WINDRES"; then
22906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22916 if test -n "$ac_ct_WINDRES"; then
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
22920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22939 if echo "$LIBS" | grep crypt32 >/dev/null; then
22940 LIBS="$LIBS -liphlpapi"
22942 LIBS="$LIBS -liphlpapi -lcrypt32"
22944 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
22966 *" fake-rfc2553.$ac_objext "* ) ;;
22967 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
22975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
23024 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
23035 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
23040 rm -f conftest conftest.o conftest.c
23045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
23122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
23197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 if test -z "$ac_lib"; then
23217 ac_res=-l$ac_lib
23218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
23494 if echo $host_os | grep darwin8 > /dev/null; then
23619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
23623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
23626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
23746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23898 LIBS="$LIBS -lmd"
23900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 if test -z "$ac_lib"; then
23927 ac_res=-l$ac_lib
23928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24037 if test -z "$ac_lib"; then
24040 ac_res=-l$ac_lib
24041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24112 # Check whether --enable-allsymbols was given.
24129 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
24137 UBSYMS="-export-symbols clubsyms.def"
24155 # Check whether --enable-dnstap was given.
24165 # Check whether --with-dnstap-socket-path was given.
24175 # Extract the first word of "protoc-c", so it can be a program name with args.
24176 set dummy protoc-c; ac_word=$2
24177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24211 if test -n "$PROTOC_C"; then
24212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
24215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24220 if test -z "$PROTOC_C"; then
24221 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
24224 # Check whether --with-protobuf-c was given.
24228 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
24229 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
24230 CFLAGS="$CFLAGS -I$withval/include/google"
24232 CFLAGS="$CFLAGS -I$withval/include"
24234 LDFLAGS="$LDFLAGS -L$withval/lib"
24238 if test -n "$PKG_CONFIG"; then
24241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PROTOBUFC" >&5
24244 if test -n "$PROTOBUFC_CFLAGS"; then
24246 elif test -n "$PKG_CONFIG"; then
24247 if test -n "$PKG_CONFIG" && \
24248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
24249 ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
24251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 pkg_cv_PROTOBUFC_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c" 2>/dev/null`
24261 if test -n "$PROTOBUFC_LIBS"; then
24263 elif test -n "$PKG_CONFIG"; then
24264 if test -n "$PKG_CONFIG" && \
24265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
24266 ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
24268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 pkg_cv_PROTOBUFC_LIBS=`$PKG_CONFIG --libs "libprotobuf-c" 2>/dev/null`
24282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24291 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c" 2>&1`
24293 PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c" 2>&1`
24299 # pkg-config failed; try falling back to known values
24300 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
24301 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
24302 CFLAGS="$CFLAGS -I/usr/include/google"
24304 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
24305 CFLAGS="$CFLAGS -I/usr/local/include/google"
24306 LDFLAGS="$LDFLAGS -L/usr/local/lib"
24308 as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5
24314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 # pkg-config failed; try falling back to known values
24318 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
24319 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
24320 CFLAGS="$CFLAGS -I/usr/include/google"
24322 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
24323 CFLAGS="$CFLAGS -I/usr/local/include/google"
24324 LDFLAGS="$LDFLAGS -L/usr/local/lib"
24326 as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5
24334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24342 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
24343 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
24344 CFLAGS="$CFLAGS -I/usr/include/google"
24346 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
24347 CFLAGS="$CFLAGS -I/usr/local/include/google"
24348 LDFLAGS="$LDFLAGS -L/usr/local/lib"
24356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
24363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24378 for ac_lib in '' protobuf-c
24380 if test -z "$ac_lib"; then
24383 ac_res=-l$ac_lib
24384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
24414 as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5
24425 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
24432 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
24434 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
24436 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
24450 # Check whether --enable-dnscrypt was given.
24461 # Check whether --with-libsodium was given.
24465 CFLAGS="$CFLAGS -I$withval/include"
24466 LDFLAGS="$LDFLAGS -L$withval/lib"
24470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
24477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 if test -z "$ac_lib"; then
24497 ac_res=-l$ac_lib
24498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
24531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
24538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24555 if test -z "$ac_lib"; then
24558 ac_res=-l$ac_lib
24559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
24601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
24608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625 if test -z "$ac_lib"; then
24628 ac_res=-l$ac_lib
24629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
24688 # Check whether --enable-cachedb was given.
24712 # Check whether --enable-ipsecmod was given.
24723 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
24725 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
24734 # Check whether --enable-ipset was given.
24766 # Check whether --with-libmnl was given.
24775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
24777 if test x_$withval = x_ -o x_$withval = x_yes; then
24781 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
24784 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
24787 if test "$dir" != "/usr" -o -n "$extralibmnl"; then
24788 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
24791 LDFLAGS="$LDFLAGS -L$dir/lib"
24793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
24795 LIBS="$LIBS -lmnl"
24811 # Check whether --enable-explicit-port-randomisation was given.
24827 if echo "$host" | $GREP -i -e linux >/dev/null; then
24828 # Check whether --enable-linux-ip-local-port-range was given.
24846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
24847 printf %s "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
24855 if test -f "\$<"; then touch \$@; fi
24859 if test -f "\$<"; then touch \$@; fi
24865 rm -f conftest.lo conftest.c
24866 ${MAKE:-make} -f conftest.make >/dev/null
24867 rm -f conftest.make conftest.c conftest.dir/conftest.c
24868 rm -rf conftest.dir
24869 if test ! -f conftest.lo; then
24870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
24875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24880 rm -f conftest.lo
24886 INSTALLTARGET="install-all"
24888 # Check whether --with-libunbound-only was given.
24894 INSTALLTARGET="install-lib"
24901 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
24904 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
24912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
24915 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
24916 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
24923 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
24924 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
24931 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
24932 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
24939 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
24940 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
24947 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
24948 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
24955 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
24956 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
24963 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
24964 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
24971 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
24972 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
24979 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
24980 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
24987 if test -n "$LATE_LDFLAGS"; then
24991 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
24992 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
25005 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service"
25012 # scripts and configure runs, see configure's option --config-cache.
25017 # the --recheck option to rerun configure.
25031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25036 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25050 # `set' does not quote correctly, so add quotes: double-quote
25052 sed -n \
25058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25072 if test -w "$cache_file"; then
25073 if test "x$cache_file" != "x/dev/null"; then
25074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25076 if test ! -f "$cache_file" || test -h "$cache_file"; then
25081 mv -f confcache "$cache_file"$$ &&
25082 mv -f "$cache_file"$$ "$cache_file" ;; #(
25084 mv -f confcache "$cache_file" ;;
25089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25093 rm -f confcache
25099 DEFS=-DHAVE_CONFIG_H
25118 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
25127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25141 SHELL=\${CONFIG_SHELL-$SHELL}
25145 ## -------------------- ##
25147 ## -------------------- ##
25152 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25156 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25158 alias -g '${1+"$@"}'='"$@"'
25161 case `(set -o) 2>/dev/null` in #(
25163 set -o posix ;; #(
25177 # Quoting is to prevent editors from complaining about space-tab.
25187 # Ensure predictable behavior from utilities with locale-dependent output.
25194 # to be unset--not just set to an empty or harmless value--now, to
25195 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
25200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25204 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
25205 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
25206 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
25211 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25212 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25231 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
25242 if test ! -f "$as_myself"; then
25250 # ----------------------------------------
25256 as_status=$1; test $as_status -eq 0 && as_status=1
25258 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25268 # -----------------------
25276 # -----------------
25277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25286 # ---------------
25295 # ----------------------
25300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
25314 # ------------------
25318 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
25327 as_val=`expr "$@" || test $? -eq 1`
25332 if expr a : '\(a\)' >/dev/null 2>&1 &&
25339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25345 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25351 as_me=`$as_basename -- "$0" ||
25354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25382 case `echo -n x` in #(((((
25383 -n*)
25387 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25391 ECHO_N='-n';;
25394 # For backward compatibility with old third-party macros, we provide
25400 rm -f conf$$ conf$$.exe conf$$.file
25401 if test -d conf$$.dir; then
25402 rm -f conf$$.dir/conf$$.file
25404 rm -f conf$$.dir
25405 mkdir conf$$.dir 2>/dev/null
25407 if (echo >conf$$.file) 2>/dev/null; then
25408 if ln -s conf$$.file conf$$ 2>/dev/null; then
25409 as_ln_s='ln -s'
25411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25413 # In both cases, we have to default to `cp -pR'.
25414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25415 as_ln_s='cp -pR'
25416 elif ln conf$$.file conf$$ 2>/dev/null; then
25419 as_ln_s='cp -pR'
25422 as_ln_s='cp -pR'
25424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25425 rmdir conf$$.dir 2>/dev/null
25429 # -------------
25435 -*) as_dir=./$as_dir;;
25437 test -d "$as_dir" || eval $as_mkdir_p || {
25445 as_dir=`$as_dirname -- "$as_dir" ||
25449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25468 test -d "$as_dir" && break
25470 test -z "$as_dirs" || eval "mkdir $as_dirs"
25471 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25475 if mkdir -p . 2>/dev/null; then
25476 as_mkdir_p='mkdir -p "$as_dir"'
25478 test -d ./-p && rmdir ./-p
25484 # -----------------------
25488 test -f "$1" && test -x "$1"
25490 as_test_x='test -x'
25501 ## ----------------------------------- ##
25503 ## ----------------------------------- ##
25521 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25551 -h, --help print this help, then exit
25552 -V, --version print version number and configuration settings, then exit
25553 --config print configuration, then exit
25554 -q, --quiet, --silent
25556 -d, --debug don't remove temporary files
25557 --recheck update $as_me by reconfiguring in the same conditions
25558 --file=FILE[:TEMPLATE]
25560 --header=FILE[:TEMPLATE]
25572 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
25591 test -n "\$AWK" || AWK=awk
25600 --*=?*)
25605 --*=)
25619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25621 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25623 --config | --confi | --conf | --con | --co | --c )
25625 --debug | --debu | --deb | --de | --d | -d )
25627 --file | --fil | --fi | --f )
25635 --header | --heade | --head | --hea )
25642 --he | --h)
25643 # Conflict between --help and --header
25645 Try \`$0 --help' for more information.";;
25646 --help | --hel | -h )
25648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25653 -*) as_fn_error $? "unrecognized option: \`$1'
25654 Try \`$0 --help' for more information." ;;
25666 exec 6>/dev/null
25667 ac_configure_extra_args="$ac_configure_extra_args --silent"
25673 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25695 # INIT-COMMANDS
25699 # The HP-UX ksh and POSIX shell print the target directory to stdout
25701 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25933 # Double-quote double-evaled strings.
25956 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25968 if test -n "\${ZSH_VERSION+set}"; then
25990 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
25995 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
25996 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
25998 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
25999 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
26000 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
26035 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26043 test -d "$tmp"
26046 tmp=./conf$$-$RANDOM
26054 if test -n "$CONFIG_FILES"; then
26064 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26081 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26087 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26096 rm -f conf$$subs.sh
26101 sed -n '
26144 rm -f conf$$subs.awk
26175 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26207 fi # test -n "$CONFIG_FILES"
26212 if test -n "$CONFIG_HEADERS"; then
26218 # here-document in config.status, that substitutes the proper values into
26225 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26226 if test -z "$ac_tt"; then
26240 sed -n '
26295 prefix = substr(line, 1, index(line, defundef) - 1)
26315 fi # test -n "$CONFIG_HEADERS"
26328 :[FH]-) ac_tag=-:-;;
26346 -) ac_f="$ac_tmp/stdin";;
26348 # (if the path is not absolute). The absolute path cannot be DOS-style,
26350 test -f "$ac_f" ||
26353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26367 if test x"$ac_file" != x-; then
26369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26381 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26387 ac_dir=`$as_dirname -- "$ac_file" ||
26391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26468 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26472 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26507 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26510 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26511 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26513 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26519 rm -f "$ac_tmp/stdin"
26521 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26522 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26530 if test x"$ac_file" != x-; then
26533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26536 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26540 rm -f "$ac_file"
26546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26547 || as_fn_error $? "could not create -" "$LINENO" 5
26551 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26562 if test -n "${ZSH_VERSION+set}"; then
26573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26576 # Provide generalized library-building support services.
26651 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26652 Xsed="\$SED -e 1s/^X//"
26663 # A BSD- or MS-compatible name lister.
26726 # Commands used to install an old-style archive.
26788 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26791 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26822 # Is shlibpath searched before the hard-coded library search path?
26829 # The last name is the one that the linker finds with -lNAME
26854 # Compile-time system search path for libraries.
26857 # Detected run-time system search path for libraries.
26884 # Commands used to build an old-style archive.
26905 # Does compiler simultaneously support -c and -o options?
26908 # Whether or not to add -lc for building shared libraries.
26923 # Create an old-style archive from a shared archive.
26926 # Create a temporary old-style archive to link instead of a shared archive.
26951 # Whether we need a single "-rpath" flag with a separated argument.
26964 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27017 # -----------------------------------
27042 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27043 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27052 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
27059 \-*) ;;
27063 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27091 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27095 || (rm -f "$cfgfile"; exit 1)
27097 mv -f "$cfgfile" "$ofile" ||
27098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27102 "disable-rpath":C)
27103 sed < libtool > libtool-2 \
27104 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
27105 mv libtool-2 libtool
27126 # output is simply discarded. So we exec the FD to /dev/null,
27134 ac_config_status_args="$ac_config_status_args --quiet"
27135 exec 5>/dev/null
27142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5