2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for nghttp2 1.46.0.
5 # Report bugs to <t-tujikawa@users.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
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
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
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
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
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
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
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
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
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
224 CONFIG_SHELL=$as_shell as_have_required=yes
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
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: t-tujikawa@users.sourceforge.net about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='nghttp2'
623 PACKAGE_TARNAME='nghttp2'
624 PACKAGE_VERSION='1.46.0'
625 PACKAGE_STRING='nghttp2 1.46.0'
626 PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
629 # Factoring default headers for most tests.
630 ac_includes_default="\
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
662 ac_subst_vars='am__EXEEXT_FALSE
673 ENABLE_FAILMALLOC_FALSE
674 ENABLE_FAILMALLOC_TRUE
677 ENABLE_PYTHON_BINDINGS_FALSE
678 ENABLE_PYTHON_BINDINGS_TRUE
679 HAVE_NEVERBLEED_FALSE
683 ENABLE_THIRD_PARTY_FALSE
684 ENABLE_THIRD_PARTY_TRUE
687 ENABLE_EXAMPLES_FALSE
689 ENABLE_ASIO_LIB_FALSE
691 ENABLE_HPACK_TOOLS_FALSE
692 ENABLE_HPACK_TOOLS_TRUE
710 LIBEVENT_OPENSSL_LIBS
711 LIBEVENT_OPENSSL_CFLAGS
719 LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
720 LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
721 LIBNGTCP2_CRYPTO_OPENSSL_LIBS
722 LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
740 PYTHON_PLATFORM_SITE_PKG
798 INSTALL_STRIP_PROGRAM
883 program_transform_name
897 enable_option_checking
906 enable_dependency_tracking
915 enable_python_bindings
922 with_libevent_openssl
936 with_python_exec_prefix
945 ac_precious_vars='build_alias
981 LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
982 LIBNGTCP2_CRYPTO_OPENSSL_LIBS
983 LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
984 LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
989 LIBEVENT_OPENSSL_CFLAGS
990 LIBEVENT_OPENSSL_LIBS
999 # Initialize some variables set by options.
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1013 program_transform_name=s,x,x,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 runstatedir='${localstatedir}/run'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1052 # If the previous option needs an argument, assign it.
1053 if test -n "$ac_prev"; then
1054 eval $ac_prev=\$ac_option
1060 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065 case $ac_dashdash$ac_option in
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1089 -datadir | --datadir | --datadi | --datad)
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1115 eval enable_$ac_useropt=no ;;
1117 -docdir | --docdir | --docdi | --doc | --do)
1119 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120 docdir=$ac_optarg ;;
1122 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125 dvidir=$ac_optarg ;;
1127 -enable-* | --enable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_$ac_useropt"
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval enable_$ac_useropt=\$ac_optarg ;;
1143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1145 | --exec | --exe | --ex)
1146 ac_prev=exec_prefix ;;
1147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1149 | --exec=* | --exe=* | --ex=*)
1150 exec_prefix=$ac_optarg ;;
1152 -gas | --gas | --ga | --g)
1153 # Obsolete; use --with-gas.
1156 -help | --help | --hel | --he | -h)
1157 ac_init_help=long ;;
1158 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1159 ac_init_help=recursive ;;
1160 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1161 ac_init_help=short ;;
1163 -host | --host | --hos | --ho)
1164 ac_prev=host_alias ;;
1165 -host=* | --host=* | --hos=* | --ho=*)
1166 host_alias=$ac_optarg ;;
1168 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172 htmldir=$ac_optarg ;;
1174 -includedir | --includedir | --includedi | --included | --include \
1175 | --includ | --inclu | --incl | --inc)
1176 ac_prev=includedir ;;
1177 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1178 | --includ=* | --inclu=* | --incl=* | --inc=*)
1179 includedir=$ac_optarg ;;
1181 -infodir | --infodir | --infodi | --infod | --info | --inf)
1183 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1184 infodir=$ac_optarg ;;
1186 -libdir | --libdir | --libdi | --libd)
1188 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1189 libdir=$ac_optarg ;;
1191 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1192 | --libexe | --libex | --libe)
1193 ac_prev=libexecdir ;;
1194 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1195 | --libexe=* | --libex=* | --libe=*)
1196 libexecdir=$ac_optarg ;;
1198 -localedir | --localedir | --localedi | --localed | --locale)
1199 ac_prev=localedir ;;
1200 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1201 localedir=$ac_optarg ;;
1203 -localstatedir | --localstatedir | --localstatedi | --localstated \
1204 | --localstate | --localstat | --localsta | --localst | --locals)
1205 ac_prev=localstatedir ;;
1206 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1207 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1208 localstatedir=$ac_optarg ;;
1210 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1213 mandir=$ac_optarg ;;
1215 -nfp | --nfp | --nf)
1216 # Obsolete; use --without-fp.
1219 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1220 | --no-cr | --no-c | -n)
1223 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1224 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1228 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1229 | --oldin | --oldi | --old | --ol | --o)
1230 ac_prev=oldincludedir ;;
1231 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1232 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1233 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1234 oldincludedir=$ac_optarg ;;
1236 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1239 prefix=$ac_optarg ;;
1241 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1242 | --program-pre | --program-pr | --program-p)
1243 ac_prev=program_prefix ;;
1244 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1245 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1246 program_prefix=$ac_optarg ;;
1248 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1249 | --program-suf | --program-su | --program-s)
1250 ac_prev=program_suffix ;;
1251 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1252 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1253 program_suffix=$ac_optarg ;;
1255 -program-transform-name | --program-transform-name \
1256 | --program-transform-nam | --program-transform-na \
1257 | --program-transform-n | --program-transform- \
1258 | --program-transform | --program-transfor \
1259 | --program-transfo | --program-transf \
1260 | --program-trans | --program-tran \
1261 | --progr-tra | --program-tr | --program-t)
1262 ac_prev=program_transform_name ;;
1263 -program-transform-name=* | --program-transform-name=* \
1264 | --program-transform-nam=* | --program-transform-na=* \
1265 | --program-transform-n=* | --program-transform-=* \
1266 | --program-transform=* | --program-transfor=* \
1267 | --program-transfo=* | --program-transf=* \
1268 | --program-trans=* | --program-tran=* \
1269 | --progr-tra=* | --program-tr=* | --program-t=*)
1270 program_transform_name=$ac_optarg ;;
1272 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1275 pdfdir=$ac_optarg ;;
1277 -psdir | --psdir | --psdi | --psd | --ps)
1279 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1286 -runstatedir | --runstatedir | --runstatedi | --runstated \
1287 | --runstate | --runstat | --runsta | --runst | --runs \
1288 | --run | --ru | --r)
1289 ac_prev=runstatedir ;;
1290 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1291 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1292 | --run=* | --ru=* | --r=*)
1293 runstatedir=$ac_optarg ;;
1295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299 sbindir=$ac_optarg ;;
1301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303 | --sharedst | --shareds | --shared | --share | --shar \
1305 ac_prev=sharedstatedir ;;
1306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310 sharedstatedir=$ac_optarg ;;
1312 -site | --site | --sit)
1314 -site=* | --site=* | --sit=*)
1317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320 srcdir=$ac_optarg ;;
1322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323 | --syscon | --sysco | --sysc | --sys | --sy)
1324 ac_prev=sysconfdir ;;
1325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327 sysconfdir=$ac_optarg ;;
1329 -target | --target | --targe | --targ | --tar | --ta | --t)
1330 ac_prev=target_alias ;;
1331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332 target_alias=$ac_optarg ;;
1334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 -version | --version | --versio | --versi | --vers | -V)
1338 ac_init_version=: ;;
1341 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 as_fn_error $? "invalid package name: \`$ac_useropt'"
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1354 eval with_$ac_useropt=\$ac_optarg ;;
1356 -without-* | --without-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error $? "invalid package name: \`$ac_useropt'"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1370 eval with_$ac_useropt=no ;;
1373 # Obsolete; use --with-x.
1376 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377 | --x-incl | --x-inc | --x-in | --x-i)
1378 ac_prev=x_includes ;;
1379 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381 x_includes=$ac_optarg ;;
1383 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1384 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385 ac_prev=x_libraries ;;
1386 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388 x_libraries=$ac_optarg ;;
1390 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1391 Try \`$0 --help' for more information"
1395 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396 # Reject names that are not valid shell variable names.
1397 case $ac_envvar in #(
1398 '' | [0-9]* | *[!_$as_cr_alnum]* )
1399 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1401 eval $ac_envvar=\$ac_optarg
1402 export $ac_envvar ;;
1405 # FIXME: should be removed in autoconf 3.0.
1406 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1407 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1409 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1415 if test -n "$ac_prev"; then
1416 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417 as_fn_error $? "missing argument to $ac_option"
1420 if test -n "$ac_unrecognized_opts"; then
1421 case $enable_option_checking in
1423 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1424 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428 # Check all directory arguments for consistency.
1429 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430 datadir sysconfdir sharedstatedir localstatedir includedir \
1431 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432 libdir localedir mandir runstatedir
1434 eval ac_val=\$$ac_var
1435 # Remove trailing slashes.
1438 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1439 eval $ac_var=\$ac_val;;
1441 # Be sure to have absolute directory names.
1443 [\\/$]* | ?:[\\/]* ) continue;;
1444 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1454 target=$target_alias
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458 if test "x$build_alias" = x; then
1459 cross_compiling=maybe
1460 elif test "x$build_alias" != "x$host_alias"; then
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468 test "$silent" = yes && exec 6>/dev/null
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474 as_fn_error $? "working directory cannot be determined"
1475 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1476 as_fn_error $? "pwd does not report name of working directory"
1479 # Find the source files, if location was not specified.
1480 if test -z "$srcdir"; then
1481 ac_srcdir_defaulted=yes
1482 # Try the directory containing this script, then the parent directory.
1483 ac_confdir=`$as_dirname -- "$as_myself" ||
1484 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1485 X"$as_myself" : 'X\(//\)[^/]' \| \
1486 X"$as_myself" : 'X\(//\)$' \| \
1487 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1488 printf "%s\n" X"$as_myself" |
1489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1511 ac_srcdir_defaulted=no
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1515 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1517 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1519 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1521 # When building in place, set srcdir=.
1522 if test "$ac_abs_confdir" = "$ac_pwd"; then
1525 # Remove unnecessary trailing slashes from srcdir.
1526 # Double slashes in file names in object file debugging info
1527 # mess up M-x gdb in Emacs.
1529 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1531 for ac_var in $ac_precious_vars; do
1532 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_env_${ac_var}_value=\$${ac_var}
1534 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1535 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539 # Report the --help message.
1541 if test "$ac_init_help" = "long"; then
1542 # Omit some internal or obsolete options to make the list less imposing.
1543 # This message is too long to be a string in the A/UX 3.1 sh.
1545 \`configure' configures nghttp2 1.46.0 to adapt to many kinds of systems.
1547 Usage: $0 [OPTION]... [VAR=VALUE]...
1549 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1550 VAR=VALUE. See below for descriptions of some of the useful variables.
1552 Defaults for the options are specified in brackets.
1555 -h, --help display this help and exit
1556 --help=short display options specific to this package
1557 --help=recursive display the short help of all the included packages
1558 -V, --version display version information and exit
1559 -q, --quiet, --silent do not print \`checking ...' messages
1560 --cache-file=FILE cache test results in FILE [disabled]
1561 -C, --config-cache alias for \`--cache-file=config.cache'
1562 -n, --no-create do not create output files
1563 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1565 Installation directories:
1566 --prefix=PREFIX install architecture-independent files in PREFIX
1567 [$ac_default_prefix]
1568 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1571 By default, \`make install' will install all the files in
1572 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1573 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1574 for instance \`--prefix=\$HOME'.
1576 For better control, use the options below.
1578 Fine tuning of the installation directories:
1579 --bindir=DIR user executables [EPREFIX/bin]
1580 --sbindir=DIR system admin executables [EPREFIX/sbin]
1581 --libexecdir=DIR program executables [EPREFIX/libexec]
1582 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1583 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1584 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1585 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1586 --libdir=DIR object code libraries [EPREFIX/lib]
1587 --includedir=DIR C header files [PREFIX/include]
1588 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1589 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1590 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1591 --infodir=DIR info documentation [DATAROOTDIR/info]
1592 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1593 --mandir=DIR man documentation [DATAROOTDIR/man]
1594 --docdir=DIR documentation root [DATAROOTDIR/doc/nghttp2]
1595 --htmldir=DIR html documentation [DOCDIR]
1596 --dvidir=DIR dvi documentation [DOCDIR]
1597 --pdfdir=DIR pdf documentation [DOCDIR]
1598 --psdir=DIR ps documentation [DOCDIR]
1604 --program-prefix=PREFIX prepend PREFIX to installed program names
1605 --program-suffix=SUFFIX append SUFFIX to installed program names
1606 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1609 --build=BUILD configure for building on BUILD [guessed]
1610 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1611 --target=TARGET configure for building compilers for TARGET [HOST]
1615 if test -n "$ac_init_help"; then
1616 case $ac_init_help in
1617 short | recursive ) echo "Configuration of nghttp2 1.46.0:";;
1622 --disable-option-checking ignore unrecognized --enable/--with options
1623 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1624 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-dependency-tracking
1631 do not reject slow dependency extractors
1632 --disable-dependency-tracking
1633 speeds up one-time build
1634 --enable-silent-rules less verbose build output (undo: "make V=1")
1635 --disable-silent-rules verbose build output (undo: "make V=0")
1636 --enable-werror Turn on compile time warnings
1637 --enable-debug Turn on debug output
1638 --disable-threads Turn off threading in apps
1639 --enable-app Build applications (nghttp, nghttpd, nghttpx and
1640 h2load) [default=check]
1641 --enable-hpack-tools Build HPACK tools [default=check]
1642 --enable-asio-lib Build C++ libnghttp2_asio library [default=no]
1643 --enable-examples Build examples [default=check]
1644 --enable-python-bindings
1645 Build Python bindings [default=check]
1646 --disable-failmalloc Do not build failmalloc test program
1647 --enable-lib-only Build libnghttp2 only. This is a short hand for
1648 --disable-app --disable-examples
1649 --disable-hpack-tools --disable-python-bindings
1650 --enable-http3 (EXPERIMENTAL) Enable HTTP/3. This requires ngtcp2,
1651 nghttp3, and a custom OpenSSL.
1652 --disable-assert turn off assertions
1653 --disable-largefile omit support for large files
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1660 --with-aix-soname=aix|svr4|both
1661 shared library versioning (aka "SONAME") variant to
1662 provide on AIX, [default=aix].
1663 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1664 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1665 compiler's sysroot if not specified).
1666 --with-libxml2 Use libxml2 [default=check]
1667 --with-jansson Use jansson [default=check]
1668 --with-zlib Use zlib [default=check]
1669 --with-libevent-openssl Use libevent_openssl [default=check]
1670 --with-libcares Use libc-ares [default=check]
1671 --with-openssl Use openssl [default=check]
1672 --with-libev Use libev [default=check]
1673 --with-cunit Use cunit [default=check]
1674 --with-jemalloc Use jemalloc [default=check]
1675 --with-systemd Enable systemd support in nghttpx [default=check]
1676 --with-mruby Use mruby [default=no]
1677 --with-neverbleed Use neverbleed [default=no]
1678 --with-cython=PATH Use cython in given PATH
1679 --with-libngtcp2 Use libngtcp2 [default=check]
1680 --with-libnghttp3 Use libnghttp3 [default=check]
1681 --with-libbpf Use libbpf [default=no]
1682 --with-python_prefix override the default PYTHON_PREFIX
1683 --with-python_exec_prefix
1684 override the default PYTHON_EXEC_PREFIX
1685 --with-boost[=ARG] use Boost library from a standard location
1686 (ARG=yes), from the specified location (ARG=<path>),
1687 or disable it (ARG=no) [ARG=yes]
1688 --with-boost-libdir=LIB_DIR
1689 Force given directory for boost libraries. Note that
1690 this will override library path detection, so use
1691 this parameter only if default library detection
1692 fails and you know exactly where your boost
1693 libraries are located.
1694 --with-boost-asio[=special-lib]
1695 use the ASIO library from boost - it is possible to
1696 specify a certain library for the linker e.g.
1697 --with-boost-asio=boost_system-gcc41-mt-1_34
1698 --with-boost-system[=special-lib]
1699 use the System library from boost - it is possible
1700 to specify a certain library for the linker e.g.
1701 --with-boost-system=boost_system-gcc-mt
1702 --with-boost-thread[=special-lib]
1703 use the Thread library from boost - it is possible
1704 to specify a certain library for the linker e.g.
1705 --with-boost-thread=boost_thread-gcc-mt
1707 Some influential environment variables:
1708 CC C compiler command
1709 CFLAGS C compiler flags
1710 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1711 nonstandard directory <lib dir>
1712 LIBS libraries to pass to the linker, e.g. -l<library>
1713 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1714 you have headers in a nonstandard directory <include dir>
1716 User-defined run-time library search path.
1717 CYTHON the Cython executable
1719 C compiler flags for libev, skipping any checks
1720 LIBEV_LIBS linker flags for libev, skipping any checks
1722 C compiler flags for jemalloc, skipping any checks
1724 linker flags for jemalloc, skipping any checks
1726 libtool specific flags (e.g., -static-libtool-libs)
1727 BPFCFLAGS C compiler flags for bpf program
1728 CXX C++ compiler command
1729 CXXFLAGS C++ compiler flags
1730 CXXCPP C++ preprocessor
1732 PKG_CONFIG path to pkg-config utility
1734 directories to add to pkg-config's search path
1736 path overriding pkg-config's built-in search path
1737 PYTHON the Python interpreter
1739 The installed Python version to use, for example '2.3'. This
1740 string will be appended to the Python interpreter canonical
1742 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1743 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1745 C compiler flags for CUNIT, overriding pkg-config
1746 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1748 C compiler flags for OPENSSL, overriding pkg-config
1750 linker flags for OPENSSL, overriding pkg-config
1752 C compiler flags for LIBCARES, overriding pkg-config
1754 linker flags for LIBCARES, overriding pkg-config
1756 C compiler flags for LIBNGTCP2, overriding pkg-config
1758 linker flags for LIBNGTCP2, overriding pkg-config
1759 LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
1760 C compiler flags for LIBNGTCP2_CRYPTO_OPENSSL, overriding
1762 LIBNGTCP2_CRYPTO_OPENSSL_LIBS
1763 linker flags for LIBNGTCP2_CRYPTO_OPENSSL, overriding pkg-config
1764 LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
1765 C compiler flags for LIBNGTCP2_CRYPTO_BORINGSSL, overriding
1767 LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
1768 linker flags for LIBNGTCP2_CRYPTO_BORINGSSL, overriding
1771 C compiler flags for LIBNGHTTP3, overriding pkg-config
1773 linker flags for LIBNGHTTP3, overriding pkg-config
1775 C compiler flags for LIBBPF, overriding pkg-config
1776 LIBBPF_LIBS linker flags for LIBBPF, overriding pkg-config
1777 LIBEVENT_OPENSSL_CFLAGS
1778 C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
1779 LIBEVENT_OPENSSL_LIBS
1780 linker flags for LIBEVENT_OPENSSL, overriding pkg-config
1782 C compiler flags for JANSSON, overriding pkg-config
1784 linker flags for JANSSON, overriding pkg-config
1786 C compiler flags for SYSTEMD, overriding pkg-config
1788 linker flags for SYSTEMD, overriding pkg-config
1790 C compiler flags for LIBXML2, overriding pkg-config
1792 linker flags for LIBXML2, overriding pkg-config
1794 Use these variables to override the choices made by `configure' or to help
1795 it to find libraries and programs with nonstandard names/locations.
1797 Report bugs to <t-tujikawa@users.sourceforge.net>.
1802 if test "$ac_init_help" = "recursive"; then
1803 # If there are subdirs, report their specific --help.
1804 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1805 test -d "$ac_dir" ||
1806 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1814 # A ".." for each directory in $ac_dir_suffix.
1815 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1816 case $ac_top_builddir_sub in
1817 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1818 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1821 ac_abs_top_builddir=$ac_pwd
1822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1823 # for backward compatibility:
1824 ac_top_builddir=$ac_top_build_prefix
1827 .) # We are building in place.
1829 ac_top_srcdir=$ac_top_builddir_sub
1830 ac_abs_top_srcdir=$ac_pwd ;;
1831 [\\/]* | ?:[\\/]* ) # Absolute name.
1832 ac_srcdir=$srcdir$ac_dir_suffix;
1833 ac_top_srcdir=$srcdir
1834 ac_abs_top_srcdir=$srcdir ;;
1836 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1837 ac_top_srcdir=$ac_top_build_prefix$srcdir
1838 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1842 cd "$ac_dir" || { ac_status=$?; continue; }
1843 # Check for configure.gnu first; this name is used for a wrapper for
1844 # Metaconfig's "Configure" on case-insensitive file systems.
1845 if test -f "$ac_srcdir/configure.gnu"; then
1847 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1848 elif test -f "$ac_srcdir/configure"; then
1850 $SHELL "$ac_srcdir/configure" --help=recursive
1852 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1854 cd "$ac_pwd" || { ac_status=$?; break; }
1858 test -n "$ac_init_help" && exit $ac_status
1859 if $ac_init_version; then
1861 nghttp2 configure 1.46.0
1862 generated by GNU Autoconf 2.71
1864 Copyright (C) 2021 Free Software Foundation, Inc.
1865 This configure script is free software; the Free Software Foundation
1866 gives unlimited permission to copy, distribute and modify it.
1871 ## ------------------------ ##
1872 ## Autoconf initialization. ##
1873 ## ------------------------ ##
1875 # ac_fn_c_try_compile LINENO
1876 # --------------------------
1877 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_compile ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest.beam
1882 if { { ac_try="$ac_compile"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 printf "%s\n" "$ac_try_echo"; } >&5
1889 (eval "$ac_compile") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest.$ac_objext
1904 printf "%s\n" "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1912 } # ac_fn_c_try_compile
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 printf %s "checking for $2... " >&6; }
1923 if eval test \${$3+y}
1925 printf %s "(cached) " >&6
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"
1938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 printf "%s\n" "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_header_compile
1947 # ac_fn_c_try_link LINENO
1948 # -----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1954 if { { ac_try="$ac_link"
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 printf "%s\n" "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>conftest.err
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest$ac_exeext && {
1973 test "$cross_compiling" = yes ||
1974 test -x conftest$ac_exeext
1979 printf "%s\n" "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986 # interfere with the next link command; also delete a directory that is
1987 # left behind by Apple's compiler. We do this before executing the actions.
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1992 } # ac_fn_c_try_link
1994 # ac_fn_c_check_func LINENO FUNC VAR
1995 # ----------------------------------
1996 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1997 ac_fn_c_check_func ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 printf %s "checking for $2... " >&6; }
2002 if eval test \${$3+y}
2004 printf %s "(cached) " >&6
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2010 #define $2 innocuous_$2
2012 /* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $2 (); below. */
2018 /* Override any GCC internal prototype to avoid an error.
2019 Use char because int might match the return type of a GCC
2020 builtin and then its argument prototype would still apply. */
2025 /* The GNU C library defines this for functions which it implements
2026 to always fail with ENOSYS. Some functions are actually named
2027 something starting with __ and the normal name is an alias. */
2028 #if defined __stub_$2 || defined __stub___$2
2040 if ac_fn_c_try_link "$LINENO"
2046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2047 conftest$ac_exeext conftest.$ac_ext
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 printf "%s\n" "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_func
2056 # ac_fn_cxx_try_compile LINENO
2057 # ----------------------------
2058 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_cxx_try_compile ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 rm -f conftest.$ac_objext conftest.beam
2063 if { { ac_try="$ac_compile"
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 printf "%s\n" "$ac_try_echo"; } >&5
2070 (eval "$ac_compile") 2>conftest.err
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } && {
2079 test -z "$ac_cxx_werror_flag" ||
2080 test ! -s conftest.err
2081 } && test -s conftest.$ac_objext
2085 printf "%s\n" "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_cxx_try_compile
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 printf "%s\n" "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } > conftest.i && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2123 printf "%s\n" "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2131 } # ac_fn_cxx_try_cpp
2133 # ac_fn_cxx_try_link LINENO
2134 # -------------------------
2135 # Try to link conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_cxx_try_link ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2140 if { { ac_try="$ac_link"
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 printf "%s\n" "$ac_try_echo"; } >&5
2147 (eval "$ac_link") 2>conftest.err
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_cxx_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest$ac_exeext && {
2159 test "$cross_compiling" = yes ||
2160 test -x conftest$ac_exeext
2165 printf "%s\n" "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2178 } # ac_fn_cxx_try_link
2180 # ac_fn_c_try_cpp LINENO
2181 # ----------------------
2182 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { { ac_try="$ac_cpp conftest.$ac_ext"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 printf "%s\n" "$ac_try_echo"; } >&5
2193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2195 if test -s conftest.err; then
2196 grep -v '^ *+' conftest.err >conftest.er1
2197 cat conftest.er1 >&5
2198 mv -f conftest.er1 conftest.err
2200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } > conftest.i && {
2202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2203 test ! -s conftest.err
2208 printf "%s\n" "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 as_fn_set_status $ac_retval
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 printf %s "checking for $2... " >&6; }
2227 if eval test \${$3+y}
2229 printf %s "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2244 if ac_fn_c_try_compile "$LINENO"
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_c_try_compile "$LINENO"
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 printf "%s\n" "$ac_res" >&6; }
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 } # ac_fn_c_check_type
2275 # ac_fn_c_find_uintX_t LINENO BITS VAR
2276 # ------------------------------------
2277 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2279 ac_fn_c_find_uintX_t ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2283 printf %s "checking for uint$2_t... " >&6; }
2284 if eval test \${$3+y}
2286 printf %s "(cached) " >&6
2289 # Order is important - never check a type that is potentially smaller
2290 # than half of the expected target width.
2291 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2292 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2299 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2301 return test_array [0];
2307 if ac_fn_c_try_compile "$LINENO"
2313 eval "$3=\$ac_type" ;;
2316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 if eval test \"x\$"$3"\" = x"no"
2326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 printf "%s\n" "$ac_res" >&6; }
2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 } # ac_fn_c_find_uintX_t
2332 # ac_fn_c_find_intX_t LINENO BITS VAR
2333 # -----------------------------------
2334 # Finds a signed integer type with width BITS, setting cache variable VAR
2336 ac_fn_c_find_intX_t ()
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2340 printf %s "checking for int$2_t... " >&6; }
2341 if eval test \${$3+y}
2343 printf %s "(cached) " >&6
2346 # Order is important - never check a type that is potentially smaller
2347 # than half of the expected target width.
2348 for ac_type in int$2_t 'int' 'long int' \
2349 'long long int' 'short int' 'signed char'; do
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2352 $ac_includes_default
2353 enum { N = $2 / 2 - 1 };
2357 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2359 return test_array [0];
2365 if ac_fn_c_try_compile "$LINENO"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 $ac_includes_default
2370 enum { N = $2 / 2 - 1 };
2374 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2375 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2377 return test_array [0];
2383 if ac_fn_c_try_compile "$LINENO"
2391 eval "$3=\$ac_type" ;;
2394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2397 if eval test \"x\$"$3"\" = x"no"
2406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 printf "%s\n" "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_find_intX_t
2412 # ac_fn_c_try_run LINENO
2413 # ----------------------
2414 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2415 # executables *can* be run.
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 if { { ac_try="$ac_link"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 printf "%s\n" "$ac_try_echo"; } >&5
2426 (eval "$ac_link") 2>&5
2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2430 { { case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 printf "%s\n" "$ac_try_echo"; } >&5
2436 (eval "$ac_try") 2>&5
2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439 test $ac_status = 0; }; }
2443 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2444 printf "%s\n" "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 ac_retval=$ac_status
2449 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2451 as_fn_set_status $ac_retval
2455 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2456 # ----------------------------------------------------
2457 # Tries to find if the field MEMBER exists in type AGGR, after including
2458 # INCLUDES, setting cache variable VAR accordingly.
2459 ac_fn_c_check_member ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2463 printf %s "checking for $2.$3... " >&6; }
2464 if eval test \${$4+y}
2466 printf %s "(cached) " >&6
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2481 if ac_fn_c_try_compile "$LINENO"
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2492 if (sizeof ac_aggr.$3)
2498 if ac_fn_c_try_compile "$LINENO"
2504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 printf "%s\n" "$ac_res" >&6; }
2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513 } # ac_fn_c_check_member
2515 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2516 # --------------------------------------------
2517 # Tries to find the compile-time value of EXPR in a program that includes
2518 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2520 ac_fn_c_compute_int ()
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if test "$cross_compiling" = yes; then
2524 # Depending upon the size, compute the lo and hi bounds.
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) >= 0)];
2533 return test_array [0];
2539 if ac_fn_c_try_compile "$LINENO"
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2549 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2551 return test_array [0];
2557 if ac_fn_c_try_compile "$LINENO"
2559 ac_hi=$ac_mid; break
2561 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2562 if test $ac_lo -le $ac_mid; then
2566 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2577 static int test_array [1 - 2 * !(($2) < 0)];
2579 return test_array [0];
2585 if ac_fn_c_try_compile "$LINENO"
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2595 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2597 return test_array [0];
2603 if ac_fn_c_try_compile "$LINENO"
2605 ac_lo=$ac_mid; break
2607 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2608 if test $ac_mid -le $ac_hi; then
2612 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2622 # Binary search between lo and hi bounds.
2623 while test "x$ac_lo" != "x$ac_hi"; do
2624 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2631 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2633 return test_array [0];
2639 if ac_fn_c_try_compile "$LINENO"
2643 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2648 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2655 static long int longval (void) { return $2; }
2656 static unsigned long int ulongval (void) { return $2; }
2663 FILE *f = fopen ("conftest.val", "w");
2668 long int i = longval ();
2671 fprintf (f, "%ld", i);
2675 unsigned long int i = ulongval ();
2678 fprintf (f, "%lu", i);
2680 /* Do not output a trailing newline, as this causes \r\n confusion
2681 on some platforms. */
2682 return ferror (f) || fclose (f) != 0;
2688 if ac_fn_c_try_run "$LINENO"
2690 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2695 conftest.$ac_objext conftest.beam conftest.$ac_ext
2699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 as_fn_set_status $ac_retval
2702 } # ac_fn_c_compute_int
2704 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2705 # ------------------------------------------------------------------
2706 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2707 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 as_decl_name=`echo $2|sed 's/ *(.*//'`
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2713 printf %s "checking whether $as_decl_name is declared... " >&6; }
2714 if eval test \${$3+y}
2716 printf %s "(cached) " >&6
2718 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2719 eval ac_save_FLAGS=\$$6
2720 as_fn_append $6 " $5"
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2727 #ifndef $as_decl_name
2729 (void) $as_decl_use;
2731 (void) $as_decl_name;
2739 if ac_fn_c_try_compile "$LINENO"
2745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2746 eval $6=\$ac_save_FLAGS
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 printf "%s\n" "$ac_res" >&6; }
2752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754 } # ac_fn_check_decl
2755 ac_configure_args_raw=
2760 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2762 as_fn_append ac_configure_args_raw " '$ac_arg'"
2765 case $ac_configure_args_raw in
2769 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2770 ac_unsafe_a="$ac_unsafe_z#~"
2771 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2772 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2775 cat >config.log <<_ACEOF
2776 This file contains any messages produced by compilers while
2777 running configure, to aid debugging if configure makes a mistake.
2779 It was created by nghttp2 $as_me 1.46.0, which was
2780 generated by GNU Autoconf 2.71. Invocation command line was
2782 $ $0$ac_configure_args_raw
2792 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2793 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2794 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2795 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2796 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2798 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2799 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2801 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2802 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2803 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2804 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2805 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2806 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2807 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 case $as_dir in #(((
2818 *) as_dir=$as_dir/ ;;
2820 printf "%s\n" "PATH: $as_dir"
2836 # Keep a trace of the command line.
2837 # Strip out --no-create and --no-recursion so they do not pile up.
2838 # Strip out --silent because we don't want to record it for future runs.
2839 # Also quote any args containing shell meta-characters.
2840 # Make two passes to allow for proper duplicate-argument suppression.
2844 ac_must_keep_next=false
2850 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2852 | -silent | --silent | --silen | --sile | --sil)
2855 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2858 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2860 as_fn_append ac_configure_args1 " '$ac_arg'"
2861 if test $ac_must_keep_next = true; then
2862 ac_must_keep_next=false # Got value, back to normal.
2865 *=* | --config-cache | -C | -disable-* | --disable-* \
2866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2868 | -with-* | --with-* | -without-* | --without-* | --x)
2869 case "$ac_configure_args0 " in
2870 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2873 -* ) ac_must_keep_next=true ;;
2876 as_fn_append ac_configure_args " '$ac_arg'"
2881 { ac_configure_args0=; unset ac_configure_args0;}
2882 { ac_configure_args1=; unset ac_configure_args1;}
2884 # When interrupted or exit'd, cleanup temporary files, and complete
2885 # config.log. We remove comments because anyway the quotes in there
2886 # would cause problems or look ugly.
2887 # WARNING: Use '\'' to represent an apostrophe within the trap.
2888 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2889 trap 'exit_status=$?
2892 # Save into config.log some information that might help in debugging.
2896 printf "%s\n" "## ---------------- ##
2897 ## Cache variables. ##
2898 ## ---------------- ##"
2900 # The following way of writing the cache mishandles newlines in values,
2902 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2903 eval ac_val=\$$ac_var
2907 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2908 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2911 _ | IFS | as_nl) ;; #(
2912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2913 *) { eval $ac_var=; unset $ac_var;} ;;
2918 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2919 *${as_nl}ac_space=\ *)
2921 "s/'\''/'\''\\\\'\'''\''/g;
2922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2932 printf "%s\n" "## ----------------- ##
2933 ## Output variables. ##
2934 ## ----------------- ##"
2936 for ac_var in $ac_subst_vars
2938 eval ac_val=\$$ac_var
2940 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2942 printf "%s\n" "$ac_var='\''$ac_val'\''"
2946 if test -n "$ac_subst_files"; then
2947 printf "%s\n" "## ------------------- ##
2948 ## File substitutions. ##
2949 ## ------------------- ##"
2951 for ac_var in $ac_subst_files
2953 eval ac_val=\$$ac_var
2955 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2957 printf "%s\n" "$ac_var='\''$ac_val'\''"
2962 if test -s confdefs.h; then
2963 printf "%s\n" "## ----------- ##
2970 test "$ac_signal" != 0 &&
2971 printf "%s\n" "$as_me: caught signal $ac_signal"
2972 printf "%s\n" "$as_me: exit $exit_status"
2974 rm -f core *.core core.conftest.* &&
2975 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2978 for ac_signal in 1 2 13 15; do
2979 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2983 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2984 rm -f -r conftest* confdefs.h
2986 printf "%s\n" "/* confdefs.h */" > confdefs.h
2988 # Predefined preprocessor variables.
2990 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2992 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2994 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2996 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2998 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3000 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3003 # Let the site file select an alternate cache file if it wants to.
3004 # Prefer an explicitly selected file to automatically selected ones.
3005 if test -n "$CONFIG_SITE"; then
3006 ac_site_files="$CONFIG_SITE"
3007 elif test "x$prefix" != xNONE; then
3008 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3010 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3013 for ac_site_file in $ac_site_files
3015 case $ac_site_file in #(
3019 ac_site_file=./$ac_site_file ;;
3021 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3023 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3024 sed 's/^/| /' "$ac_site_file" >&5
3026 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error $? "failed to load site script $ac_site_file
3029 See \`config.log' for more details" "$LINENO" 5; }
3033 if test -r "$cache_file"; then
3034 # Some versions of bash will fail to source /dev/null (special files
3035 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3036 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3038 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3040 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3041 *) . "./$cache_file";;
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3046 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3050 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3051 # Test code for whether the C compiler supports C89 (global declarations)
3052 ac_c_conftest_c89_globals='
3053 /* Does the compiler advertise C89 conformance?
3054 Do not test the value of __STDC__, because some compilers set it to 0
3055 while being otherwise adequately conformant. */
3056 #if !defined __STDC__
3057 # error "Compiler does not advertise C89 conformance"
3063 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3064 struct buf { int x; };
3065 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3066 static char *e (p, i)
3072 static char *f (char * (*g) (char **, int), char **p, ...)
3077 s = g (p, va_arg (v,int));
3082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3083 function prototypes and stuff, but not \xHH hex character constants.
3084 These do not provoke an error unfortunately, instead are silently treated
3085 as an "x". The following induces an error, until -std is added to get
3086 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3087 array size at least. It is necessary to write \x00 == 0 to get something
3088 that is true only with -std. */
3089 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3092 inside strings and character constants. */
3093 #define FOO(x) '\''x'\''
3094 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3096 int test (int i, double x);
3097 struct s1 {int (*f) (int a);};
3098 struct s2 {int (*f) (double a);};
3099 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3102 # Test code for whether the C compiler supports C89 (body of main).
3103 ac_c_conftest_c89_main='
3104 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3107 # Test code for whether the C compiler supports C99 (global declarations)
3108 ac_c_conftest_c99_globals='
3109 // Does the compiler advertise C99 conformance?
3110 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3111 # error "Compiler does not advertise C99 conformance"
3114 #include <stdbool.h>
3115 extern int puts (const char *);
3116 extern int printf (const char *, ...);
3117 extern int dprintf (int, const char *, ...);
3118 extern void *malloc (size_t);
3120 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3121 // dprintf is used instead of fprintf to avoid needing to declare
3123 #define debug(...) dprintf (2, __VA_ARGS__)
3124 #define showlist(...) puts (#__VA_ARGS__)
3125 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3127 test_varargs_macros (void)
3132 debug ("X = %d\n", x);
3133 showlist (The first, second, and third items.);
3134 report (x>y, "x is %d but y is %d", x, y);
3137 // Check long long types.
3138 #define BIG64 18446744073709551615ull
3139 #define BIG32 4294967295ul
3140 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3142 #error "your preprocessor is broken"
3146 #error "your preprocessor is broken"
3148 static long long int bignum = -9223372036854775807LL;
3149 static unsigned long long int ubignum = BIG64;
3151 struct incomplete_array
3159 const wchar_t *name;
3163 typedef const char *ccp;
3166 test_restrict (ccp restrict text)
3168 // See if C++-style comments work.
3169 // Iterate through items via the restricted pointer.
3170 // Also check for declarations in for loops.
3171 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3176 // Check varargs and va_copy.
3178 test_varargs (const char *format, ...)
3181 va_start (args, format);
3183 va_copy (args_copy, args);
3185 const char *str = "";
3193 case '\''s'\'': // string
3194 str = va_arg (args_copy, const char *);
3196 case '\''d'\'': // int
3197 number = va_arg (args_copy, int);
3199 case '\''f'\'': // float
3200 fnumber = va_arg (args_copy, double);
3209 return *str && number && fnumber;
3213 # Test code for whether the C compiler supports C99 (body of main).
3214 ac_c_conftest_c99_main='
3216 _Bool success = false;
3217 success |= (argc != 0);
3220 if (test_restrict ("String literal") == 0)
3222 char *restrict newvar = "Another string";
3225 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3226 test_varargs_macros ();
3228 // Check flexible array members.
3229 struct incomplete_array *ia =
3230 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3232 for (int i = 0; i < ia->datasize; ++i)
3233 ia->data[i] = i * 1.234;
3235 // Check named initializers.
3236 struct named_init ni = {
3238 .name = L"Test wide string",
3239 .average = 543.34343,
3244 int dynamic_array[ni.number];
3245 dynamic_array[0] = argv[0][0];
3246 dynamic_array[ni.number - 1] = 543;
3248 // work around unused variable warnings
3249 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3250 || dynamic_array[ni.number - 1] != 543);
3253 # Test code for whether the C compiler supports C11 (global declarations)
3254 ac_c_conftest_c11_globals='
3255 // Does the compiler advertise C11 conformance?
3256 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3257 # error "Compiler does not advertise C11 conformance"
3261 char _Alignas (double) aligned_as_double;
3262 char _Alignas (0) no_special_alignment;
3263 extern char aligned_as_int;
3264 char _Alignas (0) _Alignas (int) aligned_as_int;
3269 int_alignment = _Alignof (int),
3270 int_array_alignment = _Alignof (int[100]),
3271 char_alignment = _Alignof (char)
3273 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3276 int _Noreturn does_not_return (void) { for (;;) continue; }
3278 // Check _Static_assert.
3279 struct test_static_assert
3282 _Static_assert (sizeof (int) <= sizeof (long int),
3283 "_Static_assert does not work in struct");
3287 // Check UTF-8 literals.
3288 #define u8 syntax error!
3289 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3291 // Check duplicate typedefs.
3292 typedef long *long_ptr;
3293 typedef long int *long_ptr;
3294 typedef long_ptr long_ptr;
3296 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3300 struct { int i; int j; };
3301 struct { int k; long int l; } w;
3307 # Test code for whether the C compiler supports C11 (body of main).
3308 ac_c_conftest_c11_main='
3309 _Static_assert ((offsetof (struct anonymous, i)
3310 == offsetof (struct anonymous, w.k)),
3311 "Anonymous union alignment botch");
3317 # Test code for whether the C compiler supports C11 (complete).
3318 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3319 ${ac_c_conftest_c99_globals}
3320 ${ac_c_conftest_c11_globals}
3323 main (int argc, char **argv)
3326 ${ac_c_conftest_c89_main}
3327 ${ac_c_conftest_c99_main}
3328 ${ac_c_conftest_c11_main}
3333 # Test code for whether the C compiler supports C99 (complete).
3334 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3335 ${ac_c_conftest_c99_globals}
3338 main (int argc, char **argv)
3341 ${ac_c_conftest_c89_main}
3342 ${ac_c_conftest_c99_main}
3347 # Test code for whether the C compiler supports C89 (complete).
3348 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3351 main (int argc, char **argv)
3354 ${ac_c_conftest_c89_main}
3359 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3360 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3361 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3362 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3363 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3364 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3365 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3366 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3367 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3368 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3369 # Test code for whether the C++ compiler supports C++98 (global declarations)
3370 ac_cxx_conftest_cxx98_globals='
3371 // Does the compiler advertise C++98 conformance?
3372 #if !defined __cplusplus || __cplusplus < 199711L
3373 # error "Compiler does not advertise C++98 conformance"
3376 // These inclusions are to reject old compilers that
3377 // lack the unsuffixed header files.
3379 #include <exception>
3381 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3382 extern void assert (int);
3384 extern int strcmp (const char *, const char *);
3387 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3388 using std::exception;
3393 void test_exception_syntax()
3397 } catch (const char *s) {
3398 // Extra parentheses suppress a warning when building autoconf itself,
3399 // due to lint rules shared with more typical C programs.
3400 assert (!(strcmp) (s, "test"));
3404 template <typename T> struct test_template
3407 explicit test_template(T t) : val(t) {}
3408 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3411 } // anonymous namespace
3414 # Test code for whether the C++ compiler supports C++98 (body of main)
3415 ac_cxx_conftest_cxx98_main='
3419 test_exception_syntax ();
3420 test_template<double> tt (2.0);
3421 assert (tt.add (4) == 6.0);
3422 assert (true && !false);
3426 # Test code for whether the C++ compiler supports C++11 (global declarations)
3427 ac_cxx_conftest_cxx11_globals='
3428 // Does the compiler advertise C++ 2011 conformance?
3429 #if !defined __cplusplus || __cplusplus < 201103L
3430 # error "Compiler does not advertise C++11 conformance"
3435 constexpr int get_val() { return 20; }
3446 delegate(int n) : n(n) {}
3447 delegate(): delegate(2354) {}
3449 virtual int getval() { return this->n; };
3454 class overridden : public delegate
3457 overridden(int n): delegate(n) {}
3458 virtual int getval() override final { return this->n * 2; }
3464 nocopy(int i): i(i) {}
3466 nocopy(const nocopy&) = delete;
3467 nocopy & operator=(const nocopy&) = delete;
3472 // for testing lambda expressions
3473 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3478 // for testing variadic templates and trailing return types
3479 template <typename V> auto sum(V first) -> V
3483 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3485 return first + sum(rest...);
3490 # Test code for whether the C++ compiler supports C++11 (body of main)
3491 ac_cxx_conftest_cxx11_main='
3493 // Test auto and decltype
3495 auto a2 = 48573953.4;
3496 auto a3 = "String literal";
3499 for (auto i = a3; *i; ++i) { total += *i; }
3501 decltype(a2) a4 = 34895.034;
3505 short sa[cxx11test::get_val()] = { 0 };
3508 // Test initializer lists
3509 cxx11test::testinit il = { 4323, 435234.23544 };
3512 // Test range-based for
3513 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3514 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3515 for (auto &x : array) { x += 23; }
3518 // Test lambda expressions
3519 using cxx11test::eval;
3520 assert (eval ([](int x) { return x*2; }, 21) == 42);
3522 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3524 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3528 // Test use of variadic templates
3529 using cxx11test::sum;
3532 auto c = sum(1.0, 2.0, 3.0);
3535 // Test constructor delegation
3536 cxx11test::delegate d1;
3537 cxx11test::delegate d2();
3538 cxx11test::delegate d3(45);
3541 // Test override and final
3542 cxx11test::overridden o1(55464);
3549 // Test template brackets
3550 test_template<::test_template<int>> v(test_template<int>(12));
3554 char const *utf8 = u8"UTF-8 string \u2500";
3555 char16_t const *utf16 = u"UTF-8 string \u2500";
3556 char32_t const *utf32 = U"UTF-32 string \u2500";
3560 # Test code for whether the C compiler supports C++11 (complete).
3561 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3562 ${ac_cxx_conftest_cxx11_globals}
3565 main (int argc, char **argv)
3568 ${ac_cxx_conftest_cxx98_main}
3569 ${ac_cxx_conftest_cxx11_main}
3574 # Test code for whether the C compiler supports C++98 (complete).
3575 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3577 main (int argc, char **argv)
3580 ${ac_cxx_conftest_cxx98_main}
3585 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3586 as_fn_append ac_func_c_list " fork HAVE_FORK"
3587 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3589 # Auxiliary files required by this configure script.
3590 ac_aux_files="missing install-sh config.guess config.sub ltmain.sh compile"
3592 # Locations in which to look for auxiliary files.
3593 ac_aux_dir_candidates="${srcdir}/."
3595 # Search for a directory containing all of the required auxiliary files,
3596 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3597 # If we don't find one directory that contains all the files we need,
3598 # we report the set of missing files from the *first* directory in
3599 # $ac_aux_dir_candidates and give up.
3600 ac_missing_aux_files=""
3601 ac_first_candidate=:
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $ac_aux_dir_candidates
3608 case $as_dir in #(((
3611 *) as_dir=$as_dir/ ;;
3615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3616 ac_aux_dir_found=yes
3618 for ac_aux in $ac_aux_files
3620 # As a special case, if "install-sh" is required, that requirement
3621 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3622 # and $ac_install_sh is set appropriately for whichever one is found.
3623 if test x"$ac_aux" = x"install-sh"
3625 if test -f "${as_dir}install-sh"; then
3626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3627 ac_install_sh="${as_dir}install-sh -c"
3628 elif test -f "${as_dir}install.sh"; then
3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3630 ac_install_sh="${as_dir}install.sh -c"
3631 elif test -f "${as_dir}shtool"; then
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3633 ac_install_sh="${as_dir}shtool install -c"
3636 if $ac_first_candidate; then
3637 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3643 if test -f "${as_dir}${ac_aux}"; then
3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3647 if $ac_first_candidate; then
3648 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3655 if test "$ac_aux_dir_found" = yes; then
3656 ac_aux_dir="$as_dir"
3659 ac_first_candidate=false
3668 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3672 # These three variables are undocumented and unsupported,
3673 # and are intended to be withdrawn in a future Autoconf release.
3674 # They can cause serious problems if a builder's source tree is in a directory
3675 # whose full name contains unusual characters.
3676 if test -f "${ac_aux_dir}config.guess"; then
3677 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3679 if test -f "${ac_aux_dir}config.sub"; then
3680 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3682 if test -f "$ac_aux_dir/configure"; then
3683 ac_configure="$SHELL ${ac_aux_dir}configure"
3686 # Check that the precious variables saved in the cache have kept the same
3688 ac_cache_corrupted=false
3689 for ac_var in $ac_precious_vars; do
3690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3691 eval ac_new_set=\$ac_env_${ac_var}_set
3692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3693 eval ac_new_val=\$ac_env_${ac_var}_value
3694 case $ac_old_set,$ac_new_set in
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3697 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3698 ac_cache_corrupted=: ;;
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3701 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3702 ac_cache_corrupted=: ;;
3705 if test "x$ac_old_val" != "x$ac_new_val"; then
3706 # differences in whitespace do not lead to failure.
3707 ac_old_val_w=`echo x $ac_old_val`
3708 ac_new_val_w=`echo x $ac_new_val`
3709 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3711 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3712 ac_cache_corrupted=:
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3715 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3716 eval $ac_var=\$ac_old_val
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3719 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3721 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3724 # Pass precious variables to config.status.
3725 if test "$ac_new_set" = set; then
3727 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3728 *) ac_arg=$ac_var=$ac_new_val ;;
3730 case " $ac_configure_args " in
3731 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3732 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3736 if $ac_cache_corrupted; then
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3740 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3741 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3742 and start over" "$LINENO" 5
3744 ## -------------------- ##
3745 ## Main body of script. ##
3746 ## -------------------- ##
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757 ac_config_headers="$ac_config_headers config.h"
3770 # Expand $ac_aux_dir to an absolute path.
3771 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 printf %s "checking for $ac_word... " >&6; }
3783 if test ${ac_cv_prog_CC+y}
3785 printf %s "(cached) " >&6
3787 if test -n "$CC"; then
3788 ac_cv_prog_CC="$CC" # Let the user override the test.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 case $as_dir in #(((
3797 *) as_dir=$as_dir/ ;;
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812 if test -n "$CC"; then
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 printf "%s\n" "$CC" >&6; }
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 printf "%s\n" "no" >&6; }
3822 if test -z "$ac_cv_prog_CC"; then
3824 # Extract the first word of "gcc", so it can be a program name with args.
3825 set dummy gcc; ac_word=$2
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 printf %s "checking for $ac_word... " >&6; }
3828 if test ${ac_cv_prog_ac_ct_CC+y}
3830 printf %s "(cached) " >&6
3832 if test -n "$ac_ct_CC"; then
3833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 case $as_dir in #(((
3842 *) as_dir=$as_dir/ ;;
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_CC="gcc"
3847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3857 if test -n "$ac_ct_CC"; then
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3859 printf "%s\n" "$ac_ct_CC" >&6; }
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 printf "%s\n" "no" >&6; }
3865 if test "x$ac_ct_CC" = x; then
3868 case $cross_compiling:$ac_tool_warned in
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3880 if test -z "$CC"; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}cc; ac_word=$2
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 printf %s "checking for $ac_word... " >&6; }
3886 if test ${ac_cv_prog_CC+y}
3888 printf %s "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 case $as_dir in #(((
3900 *) as_dir=$as_dir/ ;;
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_CC="${ac_tool_prefix}cc"
3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3915 if test -n "$CC"; then
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917 printf "%s\n" "$CC" >&6; }
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 printf "%s\n" "no" >&6; }
3926 if test -z "$CC"; then
3927 # Extract the first word of "cc", so it can be a program name with args.
3928 set dummy cc; ac_word=$2
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 printf %s "checking for $ac_word... " >&6; }
3931 if test ${ac_cv_prog_CC+y}
3933 printf %s "(cached) " >&6
3935 if test -n "$CC"; then
3936 ac_cv_prog_CC="$CC" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 case $as_dir in #(((
3946 *) as_dir=$as_dir/ ;;
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3950 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3951 ac_prog_rejected=yes
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3962 if test $ac_prog_rejected = yes; then
3963 # We found a bogon in the path, so make sure we never use it.
3964 set dummy $ac_cv_prog_CC
3966 if test $# != 0; then
3967 # We chose a different compiler from the bogus one.
3968 # However, it has the same basename, so the bogon will be chosen
3969 # first if we set CC to just the basename; use the full file name.
3971 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3977 if test -n "$CC"; then
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 printf "%s\n" "$CC" >&6; }
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 printf "%s\n" "no" >&6; }
3987 if test -z "$CC"; then
3988 if test -n "$ac_tool_prefix"; then
3989 for ac_prog in cl.exe
3991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 printf %s "checking for $ac_word... " >&6; }
3995 if test ${ac_cv_prog_CC+y}
3997 printf %s "(cached) " >&6
3999 if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 case $as_dir in #(((
4009 *) as_dir=$as_dir/ ;;
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4024 if test -n "$CC"; then
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 printf "%s\n" "$CC" >&6; }
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 printf "%s\n" "no" >&6; }
4033 test -n "$CC" && break
4036 if test -z "$CC"; then
4038 for ac_prog in cl.exe
4040 # Extract the first word of "$ac_prog", so it can be a program name with args.
4041 set dummy $ac_prog; ac_word=$2
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043 printf %s "checking for $ac_word... " >&6; }
4044 if test ${ac_cv_prog_ac_ct_CC+y}
4046 printf %s "(cached) " >&6
4048 if test -n "$ac_ct_CC"; then
4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 case $as_dir in #(((
4058 *) as_dir=$as_dir/ ;;
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_ac_ct_CC="$ac_prog"
4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4073 if test -n "$ac_ct_CC"; then
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4075 printf "%s\n" "$ac_ct_CC" >&6; }
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4082 test -n "$ac_ct_CC" && break
4085 if test "x$ac_ct_CC" = x; then
4088 case $cross_compiling:$ac_tool_warned in
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4091 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4092 ac_tool_warned=yes ;;
4099 if test -z "$CC"; then
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}clang; ac_word=$2
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 printf %s "checking for $ac_word... " >&6; }
4105 if test ${ac_cv_prog_CC+y}
4107 printf %s "(cached) " >&6
4109 if test -n "$CC"; then
4110 ac_cv_prog_CC="$CC" # Let the user override the test.
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 case $as_dir in #(((
4119 *) as_dir=$as_dir/ ;;
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CC="${ac_tool_prefix}clang"
4124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4134 if test -n "$CC"; then
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136 printf "%s\n" "$CC" >&6; }
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 printf "%s\n" "no" >&6; }
4144 if test -z "$ac_cv_prog_CC"; then
4146 # Extract the first word of "clang", so it can be a program name with args.
4147 set dummy clang; ac_word=$2
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 printf %s "checking for $ac_word... " >&6; }
4150 if test ${ac_cv_prog_ac_ct_CC+y}
4152 printf %s "(cached) " >&6
4154 if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 case $as_dir in #(((
4164 *) as_dir=$as_dir/ ;;
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_CC="clang"
4169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if test -n "$ac_ct_CC"; then
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181 printf "%s\n" "$ac_ct_CC" >&6; }
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 printf "%s\n" "no" >&6; }
4187 if test "x$ac_ct_CC" = x; then
4190 case $cross_compiling:$ac_tool_warned in
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4205 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "no acceptable C compiler found in \$PATH
4208 See \`config.log' for more details" "$LINENO" 5; }
4210 # Provide some information about the compiler.
4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4214 for ac_option in --version -v -V -qversion -version; do
4215 { { ac_try="$ac_compiler $ac_option >&5"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 printf "%s\n" "$ac_try_echo"; } >&5
4222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4224 if test -s conftest.err; then
4226 ... rest of stderr output deleted ...
4227 10q' conftest.err >conftest.er1
4228 cat conftest.er1 >&5
4230 rm -f conftest.er1 conftest.err
4231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 ac_clean_files_save=$ac_clean_files
4247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4248 # Try to create an executable without -o first, disregard a.out.
4249 # It will help us diagnose broken compilers, and finding out an intuition
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252 printf %s "checking whether the C compiler works... " >&6; }
4253 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4255 # The possible output files:
4256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4259 for ac_file in $ac_files
4262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4268 if { { ac_try="$ac_link_default"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 printf "%s\n" "$ac_try_echo"; } >&5
4275 (eval "$ac_link_default") 2>&5
4277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }
4280 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4281 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4282 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4283 # so that the user can short-circuit this test for compilers unknown to
4285 for ac_file in $ac_files ''
4287 test -f "$ac_file" || continue
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4292 # We found the default executable, but exeext='' is most
4296 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4298 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4300 # We set ac_cv_exeext here because the later test for it is not
4301 # safe: cross compilers may not add the suffix if given an `-o'
4302 # argument, so we may need to know it at that point already.
4303 # Even if this section looks crufty: it has the advantage of
4310 test "$ac_cv_exeext" = no && ac_cv_exeext=
4315 if test -z "$ac_file"
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 printf "%s\n" "no" >&6; }
4319 printf "%s\n" "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4324 as_fn_error 77 "C compiler cannot create executables
4325 See \`config.log' for more details" "$LINENO" 5; }
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328 printf "%s\n" "yes" >&6; }
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4331 printf %s "checking for C compiler default output file name... " >&6; }
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4333 printf "%s\n" "$ac_file" >&6; }
4334 ac_exeext=$ac_cv_exeext
4336 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4337 ac_clean_files=$ac_clean_files_save
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4339 printf %s "checking for suffix of executables... " >&6; }
4340 if { { ac_try="$ac_link"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 printf "%s\n" "$ac_try_echo"; } >&5
4347 (eval "$ac_link") 2>&5
4349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; }
4352 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4353 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4354 # work properly (i.e., refer to `conftest.exe'), while it won't with
4356 for ac_file in conftest.exe conftest conftest.*; do
4357 test -f "$ac_file" || continue
4359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4366 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4369 See \`config.log' for more details" "$LINENO" 5; }
4371 rm -f conftest conftest$ac_cv_exeext
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4373 printf "%s\n" "$ac_cv_exeext" >&6; }
4375 rm -f conftest.$ac_ext
4376 EXEEXT=$ac_cv_exeext
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4384 FILE *f = fopen ("conftest.out", "w");
4385 return ferror (f) || fclose (f) != 0;
4391 ac_clean_files="$ac_clean_files conftest.out"
4392 # Check that the compiler produces executables we can run. If not, either
4393 # the compiler is broken, or we cross compile.
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4395 printf %s "checking whether we are cross compiling... " >&6; }
4396 if test "$cross_compiling" != yes; then
4397 { { ac_try="$ac_link"
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 printf "%s\n" "$ac_try_echo"; } >&5
4404 (eval "$ac_link") 2>&5
4406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4408 if { ac_try='./conftest$ac_cv_exeext'
4409 { { case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 printf "%s\n" "$ac_try_echo"; } >&5
4415 (eval "$ac_try") 2>&5
4417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; }; then
4421 if test "$cross_compiling" = maybe; then
4424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error 77 "cannot run C compiled programs.
4427 If you meant to cross compile, use \`--host'.
4428 See \`config.log' for more details" "$LINENO" 5; }
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4433 printf "%s\n" "$cross_compiling" >&6; }
4435 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4436 ac_clean_files=$ac_clean_files_save
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4438 printf %s "checking for suffix of object files... " >&6; }
4439 if test ${ac_cv_objext+y}
4441 printf %s "(cached) " >&6
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4454 rm -f conftest.o conftest.obj
4455 if { { ac_try="$ac_compile"
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 printf "%s\n" "$ac_try_echo"; } >&5
4462 (eval "$ac_compile") 2>&5
4464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }
4467 for ac_file in conftest.o conftest.obj conftest.*; do
4468 test -f "$ac_file" || continue;
4470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4476 printf "%s\n" "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4481 as_fn_error $? "cannot compute suffix of object files: cannot compile
4482 See \`config.log' for more details" "$LINENO" 5; }
4484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4487 printf "%s\n" "$ac_cv_objext" >&6; }
4488 OBJEXT=$ac_cv_objext
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4491 printf %s "checking whether the compiler supports GNU C... " >&6; }
4492 if test ${ac_cv_c_compiler_gnu+y}
4494 printf %s "(cached) " >&6
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4510 if ac_fn_c_try_compile "$LINENO"
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4521 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 if test $ac_compiler_gnu = yes; then
4529 ac_test_CFLAGS=${CFLAGS+y}
4530 ac_save_CFLAGS=$CFLAGS
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4532 printf %s "checking whether $CC accepts -g... " >&6; }
4533 if test ${ac_cv_prog_cc_g+y}
4535 printf %s "(cached) " >&6
4537 ac_save_c_werror_flag=$ac_c_werror_flag
4538 ac_c_werror_flag=yes
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 if ac_fn_c_try_compile "$LINENO"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"
4572 ac_c_werror_flag=$ac_save_c_werror_flag
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4585 if ac_fn_c_try_compile "$LINENO"
4589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4597 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4598 if test $ac_test_CFLAGS; then
4599 CFLAGS=$ac_save_CFLAGS
4600 elif test $ac_cv_prog_cc_g = yes; then
4601 if test "$GCC" = yes; then
4607 if test "$GCC" = yes; then
4614 if test x$ac_prog_cc_stdc = xno
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4617 printf %s "checking for $CC option to enable C11 features... " >&6; }
4618 if test ${ac_cv_prog_cc_c11+y}
4620 printf %s "(cached) " >&6
4622 ac_cv_prog_cc_c11=no
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 $ac_c_conftest_c11_program
4628 for ac_arg in '' -std=gnu11
4630 CC="$ac_save_CC $ac_arg"
4631 if ac_fn_c_try_compile "$LINENO"
4633 ac_cv_prog_cc_c11=$ac_arg
4635 rm -f core conftest.err conftest.$ac_objext conftest.beam
4636 test "x$ac_cv_prog_cc_c11" != "xno" && break
4638 rm -f conftest.$ac_ext
4642 if test "x$ac_cv_prog_cc_c11" = xno
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4645 printf "%s\n" "unsupported" >&6; }
4647 if test "x$ac_cv_prog_cc_c11" = x
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4650 printf "%s\n" "none needed" >&6; }
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4653 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4654 CC="$CC $ac_cv_prog_cc_c11"
4656 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4660 if test x$ac_prog_cc_stdc = xno
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4663 printf %s "checking for $CC option to enable C99 features... " >&6; }
4664 if test ${ac_cv_prog_cc_c99+y}
4666 printf %s "(cached) " >&6
4668 ac_cv_prog_cc_c99=no
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 $ac_c_conftest_c99_program
4674 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4676 CC="$ac_save_CC $ac_arg"
4677 if ac_fn_c_try_compile "$LINENO"
4679 ac_cv_prog_cc_c99=$ac_arg
4681 rm -f core conftest.err conftest.$ac_objext conftest.beam
4682 test "x$ac_cv_prog_cc_c99" != "xno" && break
4684 rm -f conftest.$ac_ext
4688 if test "x$ac_cv_prog_cc_c99" = xno
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4691 printf "%s\n" "unsupported" >&6; }
4693 if test "x$ac_cv_prog_cc_c99" = x
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4696 printf "%s\n" "none needed" >&6; }
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4699 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4700 CC="$CC $ac_cv_prog_cc_c99"
4702 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4706 if test x$ac_prog_cc_stdc = xno
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4709 printf %s "checking for $CC option to enable C89 features... " >&6; }
4710 if test ${ac_cv_prog_cc_c89+y}
4712 printf %s "(cached) " >&6
4714 ac_cv_prog_cc_c89=no
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 $ac_c_conftest_c89_program
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 CC="$ac_save_CC $ac_arg"
4723 if ac_fn_c_try_compile "$LINENO"
4725 ac_cv_prog_cc_c89=$ac_arg
4727 rm -f core conftest.err conftest.$ac_objext conftest.beam
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
4730 rm -f conftest.$ac_ext
4734 if test "x$ac_cv_prog_cc_c89" = xno
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4737 printf "%s\n" "unsupported" >&6; }
4739 if test "x$ac_cv_prog_cc_c89" = x
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4742 printf "%s\n" "none needed" >&6; }
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4746 CC="$CC $ac_cv_prog_cc_c89"
4748 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4766 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4767 if test ${am_cv_prog_cc_c_o+y}
4769 printf %s "(cached) " >&6
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4782 # Make sure it works both with $CC and with simple cc.
4783 # Following AC_PROG_CC_C_O, we do the test twice because some
4784 # compilers refuse to overwrite an existing .o file with -o,
4785 # though they will create one.
4786 am_cv_prog_cc_c_o=yes
4788 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4789 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } \
4793 && test -f conftest2.$ac_objext; then
4796 am_cv_prog_cc_c_o=no
4800 rm -f core conftest*
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4804 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4805 if test "$am_cv_prog_cc_c_o" != yes; then
4806 # Losing compiler, so override with the script.
4807 # FIXME: It is wrong to rewrite CC.
4808 # But if we don't then we get into trouble of one sort or another.
4809 # A longer-term fix would be to have automake use am__CC in this case,
4810 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4811 CC="$am_aux_dir/compile $CC"
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821 ac_header= ac_cache=
4822 for ac_item in $ac_header_c_list
4824 if test $ac_cache; then
4825 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4826 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4827 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4829 ac_header= ac_cache=
4830 elif test $ac_header; then
4844 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4847 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4857 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4858 if test ${ac_cv_safe_to_define___extensions__+y}
4860 printf %s "(cached) " >&6
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4865 # define __EXTENSIONS__ 1
4866 $ac_includes_default
4875 if ac_fn_c_try_compile "$LINENO"
4877 ac_cv_safe_to_define___extensions__=yes
4879 ac_cv_safe_to_define___extensions__=no
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4887 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4888 if test ${ac_cv_should_define__xopen_source+y}
4890 printf %s "(cached) " >&6
4892 ac_cv_should_define__xopen_source=no
4893 if test $ac_cv_header_wchar_h = yes
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4908 if ac_fn_c_try_compile "$LINENO"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4915 #define _XOPEN_SOURCE 500
4926 if ac_fn_c_try_compile "$LINENO"
4928 ac_cv_should_define__xopen_source=yes
4930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4936 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4938 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4940 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4942 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4944 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4946 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4948 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4950 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4952 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4954 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4956 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4958 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4960 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4962 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4964 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4966 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4968 if test $ac_cv_header_minix_config_h = yes
4971 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4973 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4975 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4980 if test $ac_cv_safe_to_define___extensions__ = yes
4982 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4985 if test $ac_cv_should_define__xopen_source = yes
4987 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4996 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5001 macro_version='2.4.6'
5002 macro_revision='2.4.6'
5017 ltmain=$ac_aux_dir/ltmain.sh
5021 # Make sure we can run config.sub.
5022 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5023 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5026 printf %s "checking build system type... " >&6; }
5027 if test ${ac_cv_build+y}
5029 printf %s "(cached) " >&6
5031 ac_build_alias=$build_alias
5032 test "x$ac_build_alias" = x &&
5033 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5034 test "x$ac_build_alias" = x &&
5035 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5036 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5037 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5041 printf "%s\n" "$ac_cv_build" >&6; }
5042 case $ac_cv_build in
5044 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5047 ac_save_IFS=$IFS; IFS='-'
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5061 printf %s "checking host system type... " >&6; }
5062 if test ${ac_cv_host+y}
5064 printf %s "(cached) " >&6
5066 if test "x$host_alias" = x; then
5067 ac_cv_host=$ac_cv_build
5069 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5070 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5075 printf "%s\n" "$ac_cv_host" >&6; }
5078 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5081 ac_save_IFS=$IFS; IFS='-'
5087 # Remember, the first character of IFS is used to create $*,
5088 # except with old shells:
5091 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5094 # Backslashify metacharacters that are still active within
5095 # double-quoted strings.
5096 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5098 # Same as above, but do not quote variable references.
5099 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5101 # Sed substitution to delay expansion of an escaped shell variable in a
5102 # double_quote_subst'ed string.
5103 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5105 # Sed substitution to delay expansion of an escaped single quote.
5106 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5108 # Sed substitution to avoid accidental globbing in evaled expressions
5109 no_glob_subst='s/\*/\\\*/g'
5111 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5112 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5116 printf %s "checking how to print strings... " >&6; }
5117 # Test print first, because it will be a builtin if present.
5118 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5119 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5121 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5124 # Use this function as a fallback that always works.
5125 func_fallback_echo ()
5127 eval 'cat <<_LTECHO_EOF
5131 ECHO='func_fallback_echo'
5134 # func_echo_all arg...
5135 # Invoke $ECHO with all args, space-separated.
5142 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5143 printf "%s\n" "printf" >&6; } ;;
5144 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5145 printf "%s\n" "print -r" >&6; } ;;
5146 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5147 printf "%s\n" "cat" >&6; } ;;
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5164 printf %s "checking for a sed that does not truncate output... " >&6; }
5165 if test ${ac_cv_path_SED+y}
5167 printf %s "(cached) " >&6
5169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5170 for ac_i in 1 2 3 4 5 6 7; do
5171 ac_script="$ac_script$as_nl$ac_script"
5173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5174 { ac_script=; unset ac_script;}
5175 if test -z "$SED"; then
5176 ac_path_SED_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 case $as_dir in #(((
5185 *) as_dir=$as_dir/ ;;
5187 for ac_prog in sed gsed
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5191 as_fn_executable_p "$ac_path_SED" || continue
5192 # Check for GNU ac_path_SED and select it if it is found.
5193 # Check for GNU $ac_path_SED
5194 case `"$ac_path_SED" --version 2>&1` in
5196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5199 printf %s 0123456789 >"conftest.in"
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 printf "%s\n" '' >> "conftest.nl"
5206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
5209 if test $ac_count -gt ${ac_path_SED_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_SED="$ac_path_SED"
5212 ac_path_SED_max=$ac_count
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220 $ac_path_SED_found && break 3
5225 if test -z "$ac_cv_path_SED"; then
5226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5234 printf "%s\n" "$ac_cv_path_SED" >&6; }
5235 SED="$ac_cv_path_SED"
5238 test -z "$SED" && SED=sed
5239 Xsed="$SED -e 1s/^X//"
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5252 printf %s "checking for grep that handles long lines and -e... " >&6; }
5253 if test ${ac_cv_path_GREP+y}
5255 printf %s "(cached) " >&6
5257 if test -z "$GREP"; then
5258 ac_path_GREP_found=false
5259 # Loop through the user's path and test for each of PROGNAME-LIST
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5264 case $as_dir in #(((
5267 *) as_dir=$as_dir/ ;;
5269 for ac_prog in grep ggrep
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5273 as_fn_executable_p "$ac_path_GREP" || continue
5274 # Check for GNU ac_path_GREP and select it if it is found.
5275 # Check for GNU $ac_path_GREP
5276 case `"$ac_path_GREP" --version 2>&1` in
5278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5281 printf %s 0123456789 >"conftest.in"
5284 cat "conftest.in" "conftest.in" >"conftest.tmp"
5285 mv "conftest.tmp" "conftest.in"
5286 cp "conftest.in" "conftest.nl"
5287 printf "%s\n" 'GREP' >> "conftest.nl"
5288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5290 as_fn_arith $ac_count + 1 && ac_count=$as_val
5291 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5292 # Best one so far, save it but keep looking for a better one
5293 ac_cv_path_GREP="$ac_path_GREP"
5294 ac_path_GREP_max=$ac_count
5296 # 10*(2^10) chars as input seems more than enough
5297 test $ac_count -gt 10 && break
5299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5302 $ac_path_GREP_found && break 3
5307 if test -z "$ac_cv_path_GREP"; then
5308 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5311 ac_cv_path_GREP=$GREP
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5316 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5317 GREP="$ac_cv_path_GREP"
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5321 printf %s "checking for egrep... " >&6; }
5322 if test ${ac_cv_path_EGREP+y}
5324 printf %s "(cached) " >&6
5326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5327 then ac_cv_path_EGREP="$GREP -E"
5329 if test -z "$EGREP"; then
5330 ac_path_EGREP_found=false
5331 # Loop through the user's path and test for each of PROGNAME-LIST
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5336 case $as_dir in #(((
5339 *) as_dir=$as_dir/ ;;
5341 for ac_prog in egrep
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5345 as_fn_executable_p "$ac_path_EGREP" || continue
5346 # Check for GNU ac_path_EGREP and select it if it is found.
5347 # Check for GNU $ac_path_EGREP
5348 case `"$ac_path_EGREP" --version 2>&1` in
5350 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5353 printf %s 0123456789 >"conftest.in"
5356 cat "conftest.in" "conftest.in" >"conftest.tmp"
5357 mv "conftest.tmp" "conftest.in"
5358 cp "conftest.in" "conftest.nl"
5359 printf "%s\n" 'EGREP' >> "conftest.nl"
5360 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5362 as_fn_arith $ac_count + 1 && ac_count=$as_val
5363 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5364 # Best one so far, save it but keep looking for a better one
5365 ac_cv_path_EGREP="$ac_path_EGREP"
5366 ac_path_EGREP_max=$ac_count
5368 # 10*(2^10) chars as input seems more than enough
5369 test $ac_count -gt 10 && break
5371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5374 $ac_path_EGREP_found && break 3
5379 if test -z "$ac_cv_path_EGREP"; then
5380 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5383 ac_cv_path_EGREP=$EGREP
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5389 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5390 EGREP="$ac_cv_path_EGREP"
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5394 printf %s "checking for fgrep... " >&6; }
5395 if test ${ac_cv_path_FGREP+y}
5397 printf %s "(cached) " >&6
5399 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5400 then ac_cv_path_FGREP="$GREP -F"
5402 if test -z "$FGREP"; then
5403 ac_path_FGREP_found=false
5404 # Loop through the user's path and test for each of PROGNAME-LIST
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5409 case $as_dir in #(((
5412 *) as_dir=$as_dir/ ;;
5414 for ac_prog in fgrep
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5418 as_fn_executable_p "$ac_path_FGREP" || continue
5419 # Check for GNU ac_path_FGREP and select it if it is found.
5420 # Check for GNU $ac_path_FGREP
5421 case `"$ac_path_FGREP" --version 2>&1` in
5423 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5426 printf %s 0123456789 >"conftest.in"
5429 cat "conftest.in" "conftest.in" >"conftest.tmp"
5430 mv "conftest.tmp" "conftest.in"
5431 cp "conftest.in" "conftest.nl"
5432 printf "%s\n" 'FGREP' >> "conftest.nl"
5433 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5435 as_fn_arith $ac_count + 1 && ac_count=$as_val
5436 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5437 # Best one so far, save it but keep looking for a better one
5438 ac_cv_path_FGREP="$ac_path_FGREP"
5439 ac_path_FGREP_max=$ac_count
5441 # 10*(2^10) chars as input seems more than enough
5442 test $ac_count -gt 10 && break
5444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5447 $ac_path_FGREP_found && break 3
5452 if test -z "$ac_cv_path_FGREP"; then
5453 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5456 ac_cv_path_FGREP=$FGREP
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5462 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5463 FGREP="$ac_cv_path_FGREP"
5466 test -z "$GREP" && GREP=grep
5486 # Check whether --with-gnu-ld was given.
5487 if test ${with_gnu_ld+y}
5489 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5495 if test yes = "$GCC"; then
5496 # Check if gcc -print-prog-name=ld gives a path.
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5498 printf %s "checking for ld used by $CC... " >&6; }
5501 # gcc leaves a trailing carriage return, which upsets mingw
5502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5507 # Accept absolute paths.
5509 re_direlt='/[^/][^/]*/\.\./'
5510 # Canonicalize the pathname of ld
5511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5515 test -z "$LD" && LD=$ac_prog
5518 # If it fails, then pretend we aren't using GCC.
5522 # If it is relative, then search for the first ld in PATH.
5526 elif test yes = "$with_gnu_ld"; then
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5528 printf %s "checking for GNU ld... " >&6; }
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5531 printf %s "checking for non-GNU ld... " >&6; }
5533 if test ${lt_cv_path_LD+y}
5535 printf %s "(cached) " >&6
5537 if test -z "$LD"; then
5538 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5539 for ac_dir in $PATH; do
5541 test -z "$ac_dir" && ac_dir=.
5542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5543 lt_cv_path_LD=$ac_dir/$ac_prog
5544 # Check to see if the program is GNU ld. I'd rather use --version,
5545 # but apparently some variants of GNU ld only accept -v.
5546 # Break only if it was the GNU/non-GNU ld that we prefer.
5547 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5548 *GNU* | *'with BFD'*)
5549 test no != "$with_gnu_ld" && break
5552 test yes != "$with_gnu_ld" && break
5559 lt_cv_path_LD=$LD # Let the user override the test with a path.
5564 if test -n "$LD"; then
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5566 printf "%s\n" "$LD" >&6; }
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 printf "%s\n" "no" >&6; }
5571 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5573 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5574 if test ${lt_cv_prog_gnu_ld+y}
5576 printf %s "(cached) " >&6
5578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579 case `$LD -v 2>&1 </dev/null` in
5580 *GNU* | *'with BFD'*)
5581 lt_cv_prog_gnu_ld=yes
5584 lt_cv_prog_gnu_ld=no
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5590 with_gnu_ld=$lt_cv_prog_gnu_ld
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602 if test ${lt_cv_path_NM+y}
5604 printf %s "(cached) " >&6
5606 if test -n "$NM"; then
5607 # Let the user override the test.
5610 lt_nm_to_check=${ac_tool_prefix}nm
5611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5612 lt_nm_to_check="$lt_nm_to_check nm"
5614 for lt_tmp_nm in $lt_nm_to_check; do
5615 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5618 test -z "$ac_dir" && ac_dir=.
5619 tmp_nm=$ac_dir/$lt_tmp_nm
5620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5621 # Check to see if the nm accepts a BSD-compat flag.
5622 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5623 # nm: unknown option "B" ignored
5624 # Tru64's nm complains that /dev/null is an invalid object file
5625 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5627 mingw*) lt_bad_file=conftest.nm/nofile ;;
5628 *) lt_bad_file=/dev/null ;;
5630 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5631 *$lt_bad_file* | *'Invalid file or object type'*)
5632 lt_cv_path_NM="$tmp_nm -B"
5636 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5638 lt_cv_path_NM="$tmp_nm -p"
5642 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5643 continue # so that we can try to find one that supports BSD flags
5652 : ${lt_cv_path_NM=no}
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5656 printf "%s\n" "$lt_cv_path_NM" >&6; }
5657 if test no != "$lt_cv_path_NM"; then
5660 # Didn't find any BSD compatible name lister, look for dumpbin.
5661 if test -n "$DUMPBIN"; then :
5662 # Let the user override the test.
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in dumpbin "link -dump"
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 printf %s "checking for $ac_word... " >&6; }
5671 if test ${ac_cv_prog_DUMPBIN+y}
5673 printf %s "(cached) " >&6
5675 if test -n "$DUMPBIN"; then
5676 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 case $as_dir in #(((
5685 *) as_dir=$as_dir/ ;;
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5699 DUMPBIN=$ac_cv_prog_DUMPBIN
5700 if test -n "$DUMPBIN"; then
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5702 printf "%s\n" "$DUMPBIN" >&6; }
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 printf "%s\n" "no" >&6; }
5709 test -n "$DUMPBIN" && break
5712 if test -z "$DUMPBIN"; then
5713 ac_ct_DUMPBIN=$DUMPBIN
5714 for ac_prog in dumpbin "link -dump"
5716 # Extract the first word of "$ac_prog", so it can be a program name with args.
5717 set dummy $ac_prog; ac_word=$2
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 printf %s "checking for $ac_word... " >&6; }
5720 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5722 printf %s "(cached) " >&6
5724 if test -n "$ac_ct_DUMPBIN"; then
5725 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 case $as_dir in #(((
5734 *) as_dir=$as_dir/ ;;
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5749 if test -n "$ac_ct_DUMPBIN"; then
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5751 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 printf "%s\n" "no" >&6; }
5758 test -n "$ac_ct_DUMPBIN" && break
5761 if test "x$ac_ct_DUMPBIN" = x; then
5764 case $cross_compiling:$ac_tool_warned in
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768 ac_tool_warned=yes ;;
5770 DUMPBIN=$ac_ct_DUMPBIN
5774 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5776 DUMPBIN="$DUMPBIN -symbols -headers"
5784 if test : != "$DUMPBIN"; then
5788 test -z "$NM" && NM=nm
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5796 printf %s "checking the name lister ($NM) interface... " >&6; }
5797 if test ${lt_cv_nm_interface+y}
5799 printf %s "(cached) " >&6
5801 lt_cv_nm_interface="BSD nm"
5802 echo "int some_variable = 0;" > conftest.$ac_ext
5803 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5804 (eval "$ac_compile" 2>conftest.err)
5805 cat conftest.err >&5
5806 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5807 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5808 cat conftest.err >&5
5809 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5810 cat conftest.out >&5
5811 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5812 lt_cv_nm_interface="MS dumpbin"
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5817 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5820 printf %s "checking whether ln -s works... " >&6; }
5822 if test "$LN_S" = "ln -s"; then
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 printf "%s\n" "yes" >&6; }
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5827 printf "%s\n" "no, using $LN_S" >&6; }
5830 # find the maximum length of command line arguments
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5832 printf %s "checking the maximum length of command line arguments... " >&6; }
5833 if test ${lt_cv_sys_max_cmd_len+y}
5835 printf %s "(cached) " >&6
5842 # On DJGPP, this test can blow up pretty badly due to problems in libc
5843 # (any single argument exceeding 2000 bytes causes a buffer overrun
5844 # during glob expansion). Even if it were fixed, the result of this
5845 # check would be larger than it should be.
5846 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5850 # Under GNU Hurd, this test is not required because there is
5851 # no limit to the length of command line arguments.
5852 # Libtool will interpret -1 as no limit whatsoever
5853 lt_cv_sys_max_cmd_len=-1;
5856 cygwin* | mingw* | cegcc*)
5857 # On Win9x/ME, this test blows up -- it succeeds, but takes
5858 # about 5 minutes as the teststring grows exponentially.
5859 # Worse, since 9x/ME are not pre-emptively multitasking,
5860 # you end up with a "frozen" computer, even though with patience
5861 # the test eventually succeeds (with a max line length of 256k).
5862 # Instead, let's just punt: use the minimum linelength reported by
5863 # all of the supported platforms: 8192 (on NT/2K/XP).
5864 lt_cv_sys_max_cmd_len=8192;
5868 # On MiNT this can take a long time and run out of memory.
5869 lt_cv_sys_max_cmd_len=8192;
5873 # On AmigaOS with pdksh, this test takes hours, literally.
5874 # So we just punt and use a minimum line length of 8192.
5875 lt_cv_sys_max_cmd_len=8192;
5878 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5879 # This has been around since 386BSD, at least. Likely further.
5880 if test -x /sbin/sysctl; then
5881 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5882 elif test -x /usr/sbin/sysctl; then
5883 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5885 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5887 # And add a safety zone
5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5893 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5894 lt_cv_sys_max_cmd_len=196608
5898 # The test takes a long time on OS/2.
5899 lt_cv_sys_max_cmd_len=8192
5903 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5904 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5905 # nice to cause kernel panics so lets avoid the loop below.
5906 # First set a reasonable default.
5907 lt_cv_sys_max_cmd_len=16384
5909 if test -x /sbin/sysconfig; then
5910 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5911 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5916 lt_cv_sys_max_cmd_len=102400
5918 sysv5* | sco5v6* | sysv4.2uw2*)
5919 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5920 if test -n "$kargmax"; then
5921 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5923 lt_cv_sys_max_cmd_len=32768
5927 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5928 if test -n "$lt_cv_sys_max_cmd_len" && \
5929 test undefined != "$lt_cv_sys_max_cmd_len"; then
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5933 # Make teststring a little bigger before we do anything with it.
5934 # a 1K string should be a reasonable start.
5935 for i in 1 2 3 4 5 6 7 8; do
5936 teststring=$teststring$teststring
5938 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5939 # If test is not a shell built-in, we'll probably end up computing a
5940 # maximum length that is only half of the actual maximum length, but
5942 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5943 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5944 test 17 != "$i" # 1/2 MB should be enough
5947 teststring=$teststring$teststring
5949 # Only check the string length outside the loop.
5950 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5952 # Add a significant safety factor because C++ compilers can tack on
5953 # massive amounts of additional arguments before passing them to the
5954 # linker. It appears as though 1/2 is a usable value.
5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5962 if test -n "$lt_cv_sys_max_cmd_len"; then
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5964 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5967 printf "%s\n" "none" >&6; }
5969 max_cmd_len=$lt_cv_sys_max_cmd_len
5980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5990 # test EBCDIC or ASCII
5991 case `echo X|tr X '\101'` in
5992 A) # ASCII based system
5993 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5994 lt_SP2NL='tr \040 \012'
5995 lt_NL2SP='tr \015\012 \040\040'
5997 *) # EBCDIC based system
5998 lt_SP2NL='tr \100 \n'
5999 lt_NL2SP='tr \r\n \100\100'
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6012 printf %s "checking how to convert $build file names to $host format... " >&6; }
6013 if test ${lt_cv_to_host_file_cmd+y}
6015 printf %s "(cached) " >&6
6020 *-*-mingw* ) # actually msys
6021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6024 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6026 * ) # otherwise, assume *nix
6027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6033 *-*-mingw* ) # actually msys
6034 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6037 lt_cv_to_host_file_cmd=func_convert_file_noop
6039 * ) # otherwise, assume *nix
6040 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6044 * ) # unhandled hosts (and "normal" native builds)
6045 lt_cv_to_host_file_cmd=func_convert_file_noop
6051 to_host_file_cmd=$lt_cv_to_host_file_cmd
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6053 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6060 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6061 if test ${lt_cv_to_tool_file_cmd+y}
6063 printf %s "(cached) " >&6
6065 #assume ordinary cross tools, or native build.
6066 lt_cv_to_tool_file_cmd=func_convert_file_noop
6070 *-*-mingw* ) # actually msys
6071 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6081 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6088 printf %s "checking for $LD option to reload object files... " >&6; }
6089 if test ${lt_cv_ld_reload_flag+y}
6091 printf %s "(cached) " >&6
6093 lt_cv_ld_reload_flag='-r'
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6096 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6097 reload_flag=$lt_cv_ld_reload_flag
6098 case $reload_flag in
6100 *) reload_flag=" $reload_flag" ;;
6102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6104 cygwin* | mingw* | pw32* | cegcc*)
6105 if test yes != "$GCC"; then
6110 if test yes = "$GCC"; then
6111 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6113 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 printf %s "checking for $ac_word... " >&6; }
6131 if test ${ac_cv_prog_OBJDUMP+y}
6133 printf %s "(cached) " >&6
6135 if test -n "$OBJDUMP"; then
6136 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 case $as_dir in #(((
6145 *) as_dir=$as_dir/ ;;
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6159 OBJDUMP=$ac_cv_prog_OBJDUMP
6160 if test -n "$OBJDUMP"; then
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6162 printf "%s\n" "$OBJDUMP" >&6; }
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 printf "%s\n" "no" >&6; }
6170 if test -z "$ac_cv_prog_OBJDUMP"; then
6171 ac_ct_OBJDUMP=$OBJDUMP
6172 # Extract the first word of "objdump", so it can be a program name with args.
6173 set dummy objdump; ac_word=$2
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 printf %s "checking for $ac_word... " >&6; }
6176 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6178 printf %s "(cached) " >&6
6180 if test -n "$ac_ct_OBJDUMP"; then
6181 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 case $as_dir in #(((
6190 *) as_dir=$as_dir/ ;;
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6204 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6205 if test -n "$ac_ct_OBJDUMP"; then
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6207 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 printf "%s\n" "no" >&6; }
6213 if test "x$ac_ct_OBJDUMP" = x; then
6216 case $cross_compiling:$ac_tool_warned in
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6222 OBJDUMP=$ac_ct_OBJDUMP
6225 OBJDUMP="$ac_cv_prog_OBJDUMP"
6228 test -z "$OBJDUMP" && OBJDUMP=objdump
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6239 printf %s "checking how to recognize dependent libraries... " >&6; }
6240 if test ${lt_cv_deplibs_check_method+y}
6242 printf %s "(cached) " >&6
6244 lt_cv_file_magic_cmd='$MAGIC_CMD'
6245 lt_cv_file_magic_test_file=
6246 lt_cv_deplibs_check_method='unknown'
6247 # Need to set the preceding variable on all platforms that support
6248 # interlibrary dependencies.
6249 # 'none' -- dependencies not supported.
6250 # 'unknown' -- same as none, but documents that we really don't know.
6251 # 'pass_all' -- all dependencies passed with no checks.
6252 # 'test_compile' -- check by making test program.
6253 # 'file_magic [[regex]]' -- check by looking for files in library path
6254 # that responds to the $file_magic_cmd with a given extended regex.
6255 # If you have 'file' or equivalent on your system and you're not sure
6256 # whether 'pass_all' will *always* work, you probably want this one.
6260 lt_cv_deplibs_check_method=pass_all
6264 lt_cv_deplibs_check_method=pass_all
6268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6269 lt_cv_file_magic_cmd='/usr/bin/file -L'
6270 lt_cv_file_magic_test_file=/shlib/libc.so
6274 # func_win32_libid is a shell function defined in ltmain.sh
6275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6276 lt_cv_file_magic_cmd='func_win32_libid'
6280 # Base MSYS/MinGW do not provide the 'file' command needed by
6281 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6282 # unless we find 'file', for example because we are cross-compiling.
6283 if ( file / ) >/dev/null 2>&1; then
6284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285 lt_cv_file_magic_cmd='func_win32_libid'
6287 # Keep this pattern in sync with the one in func_win32_libid.
6288 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6289 lt_cv_file_magic_cmd='$OBJDUMP -f'
6294 # use the weaker test based on 'objdump'. See mingw*.
6295 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6296 lt_cv_file_magic_cmd='$OBJDUMP -f'
6299 darwin* | rhapsody*)
6300 lt_cv_deplibs_check_method=pass_all
6303 freebsd* | dragonfly*)
6304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6307 # Not sure whether the presence of OpenBSD here was a mistake.
6308 # Let's accept both of them until this is cleared up.
6309 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6310 lt_cv_file_magic_cmd=/usr/bin/file
6311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6315 lt_cv_deplibs_check_method=pass_all
6320 lt_cv_deplibs_check_method=pass_all
6323 hpux10.20* | hpux11*)
6324 lt_cv_file_magic_cmd=/usr/bin/file
6327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6331 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]'
6332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6346 irix5* | irix6* | nonstopux*)
6348 *-32|*"-32 ") libmagic=32-bit;;
6349 *-n32|*"-n32 ") libmagic=N32;;
6350 *-64|*"-64 ") libmagic=64-bit;;
6351 *) libmagic=never-match;;
6353 lt_cv_deplibs_check_method=pass_all
6356 # This must be glibc/ELF.
6357 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6358 lt_cv_deplibs_check_method=pass_all
6361 netbsd* | netbsdelf*-gnu)
6362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6371 lt_cv_file_magic_cmd=/usr/bin/file
6372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6376 lt_cv_deplibs_check_method=pass_all
6380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6387 osf3* | osf4* | osf5*)
6388 lt_cv_deplibs_check_method=pass_all
6392 lt_cv_deplibs_check_method=pass_all
6396 lt_cv_deplibs_check_method=pass_all
6399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6400 lt_cv_deplibs_check_method=pass_all
6404 case $host_vendor in
6406 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]'
6407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6410 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_file_magic_cmd='/bin/file'
6414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6417 lt_cv_file_magic_cmd='/bin/file'
6418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6419 lt_cv_file_magic_test_file=/lib/libc.so
6422 lt_cv_deplibs_check_method=pass_all
6425 lt_cv_deplibs_check_method=pass_all
6431 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_deplibs_check_method=pass_all
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6440 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6444 if test "$build" = "$host"; then
6447 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6450 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6456 file_magic_cmd=$lt_cv_file_magic_cmd
6457 deplibs_check_method=$lt_cv_deplibs_check_method
6458 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 printf %s "checking for $ac_word... " >&6; }
6486 if test ${ac_cv_prog_DLLTOOL+y}
6488 printf %s "(cached) " >&6
6490 if test -n "$DLLTOOL"; then
6491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 case $as_dir in #(((
6500 *) as_dir=$as_dir/ ;;
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6514 DLLTOOL=$ac_cv_prog_DLLTOOL
6515 if test -n "$DLLTOOL"; then
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6517 printf "%s\n" "$DLLTOOL" >&6; }
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 printf "%s\n" "no" >&6; }
6525 if test -z "$ac_cv_prog_DLLTOOL"; then
6526 ac_ct_DLLTOOL=$DLLTOOL
6527 # Extract the first word of "dlltool", so it can be a program name with args.
6528 set dummy dlltool; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6533 printf %s "(cached) " >&6
6535 if test -n "$ac_ct_DLLTOOL"; then
6536 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 case $as_dir in #(((
6545 *) as_dir=$as_dir/ ;;
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6560 if test -n "$ac_ct_DLLTOOL"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6562 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6568 if test "x$ac_ct_DLLTOOL" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6577 DLLTOOL=$ac_ct_DLLTOOL
6580 DLLTOOL="$ac_cv_prog_DLLTOOL"
6583 test -z "$DLLTOOL" && DLLTOOL=dlltool
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6595 printf %s "checking how to associate runtime and link libraries... " >&6; }
6596 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6598 printf %s "(cached) " >&6
6600 lt_cv_sharedlib_from_linklib_cmd='unknown'
6603 cygwin* | mingw* | pw32* | cegcc*)
6604 # two different shell functions defined in ltmain.sh;
6605 # decide which one to use based on capabilities of $DLLTOOL
6606 case `$DLLTOOL --help 2>&1` in
6607 *--identify-strict*)
6608 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6611 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6616 # fallback: assume linklib IS sharedlib
6617 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6623 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6624 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6625 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6633 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_AR+y}
6642 printf %s "(cached) " >&6
6644 if test -n "$AR"; then
6645 ac_cv_prog_AR="$AR" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 case $as_dir in #(((
6654 *) as_dir=$as_dir/ ;;
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6669 if test -n "$AR"; then
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6671 printf "%s\n" "$AR" >&6; }
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6678 test -n "$AR" && break
6681 if test -z "$AR"; then
6685 # Extract the first word of "$ac_prog", so it can be a program name with args.
6686 set dummy $ac_prog; ac_word=$2
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 printf %s "checking for $ac_word... " >&6; }
6689 if test ${ac_cv_prog_ac_ct_AR+y}
6691 printf %s "(cached) " >&6
6693 if test -n "$ac_ct_AR"; then
6694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 case $as_dir in #(((
6703 *) as_dir=$as_dir/ ;;
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_ac_ct_AR="$ac_prog"
6708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6717 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6718 if test -n "$ac_ct_AR"; then
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6720 printf "%s\n" "$ac_ct_AR" >&6; }
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 printf "%s\n" "no" >&6; }
6727 test -n "$ac_ct_AR" && break
6730 if test "x$ac_ct_AR" = x; then
6733 case $cross_compiling:$ac_tool_warned in
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6757 printf %s "checking for archiver @FILE support... " >&6; }
6758 if test ${lt_cv_ar_at_file+y}
6760 printf %s "(cached) " >&6
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6774 if ac_fn_c_try_compile "$LINENO"
6776 echo conftest.$ac_objext > conftest.lst
6777 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6779 (eval $lt_ar_try) 2>&5
6781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782 test $ac_status = 0; }
6783 if test 0 -eq "$ac_status"; then
6784 # Ensure the archiver fails upon bogus file names.
6785 rm -f conftest.$ac_objext libconftest.a
6786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6787 (eval $lt_ar_try) 2>&5
6789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }
6791 if test 0 -ne "$ac_status"; then
6795 rm -f conftest.* libconftest.a
6798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6802 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6804 if test no = "$lt_cv_ar_at_file"; then
6807 archiver_list_spec=$lt_cv_ar_at_file
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}strip; ac_word=$2
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 printf %s "checking for $ac_word... " >&6; }
6821 if test ${ac_cv_prog_STRIP+y}
6823 printf %s "(cached) " >&6
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 case $as_dir in #(((
6835 *) as_dir=$as_dir/ ;;
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6849 STRIP=$ac_cv_prog_STRIP
6850 if test -n "$STRIP"; then
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6852 printf "%s\n" "$STRIP" >&6; }
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 printf "%s\n" "no" >&6; }
6860 if test -z "$ac_cv_prog_STRIP"; then
6862 # Extract the first word of "strip", so it can be a program name with args.
6863 set dummy strip; ac_word=$2
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 printf %s "checking for $ac_word... " >&6; }
6866 if test ${ac_cv_prog_ac_ct_STRIP+y}
6868 printf %s "(cached) " >&6
6870 if test -n "$ac_ct_STRIP"; then
6871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 case $as_dir in #(((
6880 *) as_dir=$as_dir/ ;;
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_ac_ct_STRIP="strip"
6885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6895 if test -n "$ac_ct_STRIP"; then
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6897 printf "%s\n" "$ac_ct_STRIP" >&6; }
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 printf "%s\n" "no" >&6; }
6903 if test "x$ac_ct_STRIP" = x; then
6906 case $cross_compiling:$ac_tool_warned in
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6915 STRIP="$ac_cv_prog_STRIP"
6918 test -z "$STRIP" && STRIP=:
6925 if test -n "$ac_tool_prefix"; then
6926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 printf %s "checking for $ac_word... " >&6; }
6930 if test ${ac_cv_prog_RANLIB+y}
6932 printf %s "(cached) " >&6
6934 if test -n "$RANLIB"; then
6935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 case $as_dir in #(((
6944 *) as_dir=$as_dir/ ;;
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6958 RANLIB=$ac_cv_prog_RANLIB
6959 if test -n "$RANLIB"; then
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6961 printf "%s\n" "$RANLIB" >&6; }
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 printf "%s\n" "no" >&6; }
6969 if test -z "$ac_cv_prog_RANLIB"; then
6970 ac_ct_RANLIB=$RANLIB
6971 # Extract the first word of "ranlib", so it can be a program name with args.
6972 set dummy ranlib; ac_word=$2
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 printf %s "checking for $ac_word... " >&6; }
6975 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6977 printf %s "(cached) " >&6
6979 if test -n "$ac_ct_RANLIB"; then
6980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 case $as_dir in #(((
6989 *) as_dir=$as_dir/ ;;
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_RANLIB="ranlib"
6994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7004 if test -n "$ac_ct_RANLIB"; then
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7006 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 printf "%s\n" "no" >&6; }
7012 if test "x$ac_ct_RANLIB" = x; then
7015 case $cross_compiling:$ac_tool_warned in
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7021 RANLIB=$ac_ct_RANLIB
7024 RANLIB="$ac_cv_prog_RANLIB"
7027 test -z "$RANLIB" && RANLIB=:
7034 # Determine commands to create old-style static archives.
7035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7036 old_postinstall_cmds='chmod 644 $oldlib'
7037 old_postuninstall_cmds=
7039 if test -n "$RANLIB"; then
7042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7045 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7053 lock_old_archive_extraction=yes ;;
7055 lock_old_archive_extraction=no ;;
7078 for ac_prog in gawk mawk nawk awk
7080 # Extract the first word of "$ac_prog", so it can be a program name with args.
7081 set dummy $ac_prog; ac_word=$2
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 printf %s "checking for $ac_word... " >&6; }
7084 if test ${ac_cv_prog_AWK+y}
7086 printf %s "(cached) " >&6
7088 if test -n "$AWK"; then
7089 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 case $as_dir in #(((
7098 *) as_dir=$as_dir/ ;;
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_AWK="$ac_prog"
7103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7113 if test -n "$AWK"; then
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7115 printf "%s\n" "$AWK" >&6; }
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7122 test -n "$AWK" && break
7143 # If no C compiler was specified, use CC.
7146 # If no C compiler flags were specified, use CFLAGS.
7147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7149 # Allow CC to be a program name with arguments.
7153 # Check for command to grab the raw symbol name followed by C symbol from nm.
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7155 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7156 if test ${lt_cv_sys_global_symbol_pipe+y}
7158 printf %s "(cached) " >&6
7161 # These are sane defaults that work on at least a few old systems.
7162 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7164 # Character class describing NM global symbol codes.
7165 symcode='[BCDEGRST]'
7167 # Regexp to match symbols that can be accessed directly from C.
7168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7170 # Define system-specific variables.
7175 cygwin* | mingw* | pw32* | cegcc*)
7176 symcode='[ABCDGISTW]'
7179 if test ia64 = "$host_cpu"; then
7180 symcode='[ABCDEGRST]'
7184 symcode='[BCDEGRST]'
7187 symcode='[BCDEGQRST]'
7198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7206 # If we're using GNU nm, then use its standard symbol codes.
7207 case `$NM -V 2>&1` in
7208 *GNU* | *'with BFD'*)
7209 symcode='[ABCDGIRSTW]' ;;
7212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7213 # Gets list of data symbols to import.
7214 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7215 # Adjust the below global symbol transforms to fixup imported variables.
7216 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7217 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7218 lt_c_name_lib_hook="\
7219 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7220 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7222 # Disable hooks by default.
7223 lt_cv_sys_global_symbol_to_import=
7229 # Transform an extracted symbol line into a proper C declaration.
7230 # Some systems (esp. on ia64) link data and code symbols differently,
7231 # so use this general approach.
7232 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7234 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7235 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7237 # Transform an extracted symbol line into symbol name and symbol address
7238 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7240 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7241 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7243 # Transform an extracted symbol line into symbol name with lib prefix and
7245 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7246 $lt_c_name_lib_hook\
7247 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7248 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7249 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7251 # Handle CRLF in mingw tool chain
7255 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7259 # Try without a prefix underscore, then with it.
7260 for ac_symprfx in "" "_"; do
7262 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7263 symxfrm="\\1 $ac_symprfx\\2 \\2"
7265 # Write the raw and C identifiers.
7266 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7267 # Fake it for dumpbin and say T for any non-static function,
7268 # D for any global variable and I for any imported variable.
7269 # Also find C++ and __fastcall symbols from MSVC++,
7270 # which start with @ or ?.
7271 lt_cv_sys_global_symbol_pipe="$AWK '"\
7272 " {last_section=section; section=\$ 3};"\
7273 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7274 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7275 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7276 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7277 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7278 " \$ 0!~/External *\|/{next};"\
7279 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7280 " {if(hide[section]) next};"\
7281 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7282 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7283 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7284 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7285 " ' prfx=^$ac_symprfx"
7287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7289 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7291 # Check to see that the pipe works correctly.
7295 cat > conftest.$ac_ext <<_LT_EOF
7300 void nm_test_func(void);
7301 void nm_test_func(void){}
7305 int main(){nm_test_var='a';nm_test_func();return(0);}
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309 (eval $ac_compile) 2>&5
7311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 # Now try to grab the symbols.
7315 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7316 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7317 # Try sorting and uniquifying the output.
7318 if sort "$nlist" | uniq > "$nlist"T; then
7319 mv -f "$nlist"T "$nlist"
7324 # Make sure that we snagged all the symbols we need.
7325 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7326 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7327 cat <<_LT_EOF > conftest.$ac_ext
7328 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7329 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7330 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7331 relocations are performed -- see ld's documentation on pseudo-relocs. */
7332 # define LT_DLSYM_CONST
7333 #elif defined __osf__
7334 /* This system does not cope well with relocations in const data. */
7335 # define LT_DLSYM_CONST
7337 # define LT_DLSYM_CONST const
7345 # Now generate the symbol file.
7346 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7348 cat <<_LT_EOF >> conftest.$ac_ext
7350 /* The mapping between symbol names and symbols. */
7351 LT_DLSYM_CONST struct {
7355 lt__PROGRAM__LTX_preloaded_symbols[] =
7357 { "@PROGRAM@", (void *) 0 },
7359 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7360 cat <<\_LT_EOF >> conftest.$ac_ext
7364 /* This works around a problem in FreeBSD linker */
7365 #ifdef FREEBSD_WORKAROUND
7366 static const void *lt_preloaded_setup() {
7367 return lt__PROGRAM__LTX_preloaded_symbols;
7375 # Now try linking the two files.
7376 mv conftest.$ac_objext conftstm.$ac_objext
7377 lt_globsym_save_LIBS=$LIBS
7378 lt_globsym_save_CFLAGS=$CFLAGS
7379 LIBS=conftstm.$ac_objext
7380 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7382 (eval $ac_link) 2>&5
7384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7388 LIBS=$lt_globsym_save_LIBS
7389 CFLAGS=$lt_globsym_save_CFLAGS
7391 echo "cannot find nm_test_func in $nlist" >&5
7394 echo "cannot find nm_test_var in $nlist" >&5
7397 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7400 echo "$progname: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7403 rm -rf conftest* conftst*
7405 # Do not use the global_symbol_pipe unless it works.
7406 if test yes = "$pipe_works"; then
7409 lt_cv_sys_global_symbol_pipe=
7415 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7416 lt_cv_sys_global_symbol_to_cdecl=
7418 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7420 printf "%s\n" "failed" >&6; }
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7423 printf "%s\n" "ok" >&6; }
7426 # Response file support.
7427 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7428 nm_file_list_spec='@'
7429 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7430 nm_file_list_spec='@'
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7470 printf %s "checking for sysroot... " >&6; }
7472 # Check whether --with-sysroot was given.
7473 if test ${with_sysroot+y}
7475 withval=$with_sysroot;
7482 case $with_sysroot in #(
7484 if test yes = "$GCC"; then
7485 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7489 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7495 printf "%s\n" "$with_sysroot" >&6; }
7496 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7501 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7508 printf %s "checking for a working dd... " >&6; }
7509 if test ${ac_cv_path_lt_DD+y}
7511 printf %s "(cached) " >&6
7513 printf 0123456789abcdef0123456789abcdef >conftest.i
7514 cat conftest.i conftest.i >conftest2.i
7516 if test -z "$lt_DD"; then
7517 ac_path_lt_DD_found=false
7518 # Loop through the user's path and test for each of PROGNAME-LIST
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 case $as_dir in #(((
7526 *) as_dir=$as_dir/ ;;
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7532 as_fn_executable_p "$ac_path_lt_DD" || continue
7533 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7534 cmp -s conftest.i conftest.out \
7535 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7537 $ac_path_lt_DD_found && break 3
7542 if test -z "$ac_cv_path_lt_DD"; then
7546 ac_cv_path_lt_DD=$lt_DD
7549 rm -f conftest.i conftest2.i conftest.out
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7552 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7556 printf %s "checking how to truncate binary pipes... " >&6; }
7557 if test ${lt_cv_truncate_bin+y}
7559 printf %s "(cached) " >&6
7561 printf 0123456789abcdef0123456789abcdef >conftest.i
7562 cat conftest.i conftest.i >conftest2.i
7564 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7565 cmp -s conftest.i conftest.out \
7566 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7568 rm -f conftest.i conftest2.i conftest.out
7569 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7572 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7580 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7583 for cc_temp in $*""; do
7585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7591 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7594 # Check whether --enable-libtool-lock was given.
7595 if test ${enable_libtool_lock+y}
7597 enableval=$enable_libtool_lock;
7600 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7602 # Some flags need to be propagated to the compiler or linker for good
7606 # Find out what ABI is being produced by ac_compile, and set mode
7607 # options accordingly.
7608 echo 'int i;' > conftest.$ac_ext
7609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7610 (eval $ac_compile) 2>&5
7612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613 test $ac_status = 0; }; then
7614 case `/usr/bin/file conftest.$ac_objext` in
7626 # Find out what ABI is being produced by ac_compile, and set linker
7627 # options accordingly.
7628 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630 (eval $ac_compile) 2>&5
7632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 if test yes = "$lt_cv_prog_gnu_ld"; then
7635 case `/usr/bin/file conftest.$ac_objext` in
7637 LD="${LD-ld} -melf32bsmip"
7640 LD="${LD-ld} -melf32bmipn32"
7643 LD="${LD-ld} -melf64bmip"
7647 case `/usr/bin/file conftest.$ac_objext` in
7664 # Find out what ABI is being produced by ac_compile, and set linker
7665 # options accordingly.
7666 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7668 (eval $ac_compile) 2>&5
7670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; then
7673 case `/usr/bin/file conftest.$ac_objext` in
7681 case `/usr/bin/file conftest.$ac_objext` in
7683 emul="${emul}btsmip"
7686 emul="${emul}ltsmip"
7689 case `/usr/bin/file conftest.$ac_objext` in
7694 LD="${LD-ld} -m $emul"
7699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7701 # Find out what ABI is being produced by ac_compile, and set linker
7702 # options accordingly. Note that the listed cases only cover the
7703 # situations where additional linker options are needed (such as when
7704 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7705 # vice versa); the common cases where no linker options are needed do
7706 # not appear in the list.
7707 echo 'int i;' > conftest.$ac_ext
7708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7709 (eval $ac_compile) 2>&5
7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 case `/usr/bin/file conftest.o` in
7716 x86_64-*kfreebsd*-gnu)
7717 LD="${LD-ld} -m elf_i386_fbsd"
7720 case `/usr/bin/file conftest.o` in
7722 LD="${LD-ld} -m elf32_x86_64"
7725 LD="${LD-ld} -m elf_i386"
7729 powerpc64le-*linux*)
7730 LD="${LD-ld} -m elf32lppclinux"
7733 LD="${LD-ld} -m elf32ppclinux"
7736 LD="${LD-ld} -m elf_s390"
7739 LD="${LD-ld} -m elf32_sparc"
7745 x86_64-*kfreebsd*-gnu)
7746 LD="${LD-ld} -m elf_x86_64_fbsd"
7749 LD="${LD-ld} -m elf_x86_64"
7752 LD="${LD-ld} -m elf64lppc"
7755 LD="${LD-ld} -m elf64ppc"
7757 s390*-*linux*|s390*-*tpf*)
7758 LD="${LD-ld} -m elf64_s390"
7761 LD="${LD-ld} -m elf64_sparc"
7771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7773 CFLAGS="$CFLAGS -belf"
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7775 printf %s "checking whether the C compiler needs -belf... " >&6; }
7776 if test ${lt_cv_cc_needs_belf+y}
7778 printf %s "(cached) " >&6
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7797 if ac_fn_c_try_link "$LINENO"
7799 lt_cv_cc_needs_belf=yes
7801 lt_cv_cc_needs_belf=no
7803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7804 conftest$ac_exeext conftest.$ac_ext
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7813 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7814 if test yes != "$lt_cv_cc_needs_belf"; then
7815 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7820 # Find out what ABI is being produced by ac_compile, and set linker
7821 # options accordingly.
7822 echo 'int i;' > conftest.$ac_ext
7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824 (eval $ac_compile) 2>&5
7826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 case `/usr/bin/file conftest.o` in
7830 case $lt_cv_prog_gnu_ld in
7833 i?86-*-solaris*|x86_64-*-solaris*)
7834 LD="${LD-ld} -m elf_x86_64"
7837 LD="${LD-ld} -m elf64_sparc"
7840 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7841 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7858 need_locks=$enable_libtool_lock
7860 if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}mt; ac_word=$2
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 printf %s "checking for $ac_word... " >&6; }
7865 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7867 printf %s "(cached) " >&6
7869 if test -n "$MANIFEST_TOOL"; then
7870 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 case $as_dir in #(((
7879 *) as_dir=$as_dir/ ;;
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7894 if test -n "$MANIFEST_TOOL"; then
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7896 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 printf "%s\n" "no" >&6; }
7904 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7905 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7906 # Extract the first word of "mt", so it can be a program name with args.
7907 set dummy mt; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7912 printf %s "(cached) " >&6
7914 if test -n "$ac_ct_MANIFEST_TOOL"; then
7915 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 case $as_dir in #(((
7924 *) as_dir=$as_dir/ ;;
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7938 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7939 if test -n "$ac_ct_MANIFEST_TOOL"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7941 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7947 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7950 case $cross_compiling:$ac_tool_warned in
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7956 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7959 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7962 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7964 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7965 if test ${lt_cv_path_mainfest_tool+y}
7967 printf %s "(cached) " >&6
7969 lt_cv_path_mainfest_tool=no
7970 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7971 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7972 cat conftest.err >&5
7973 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7974 lt_cv_path_mainfest_tool=yes
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7979 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7980 if test yes != "$lt_cv_path_mainfest_tool"; then
7990 rhapsody* | darwin*)
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 printf %s "checking for $ac_word... " >&6; }
7996 if test ${ac_cv_prog_DSYMUTIL+y}
7998 printf %s "(cached) " >&6
8000 if test -n "$DSYMUTIL"; then
8001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 case $as_dir in #(((
8010 *) as_dir=$as_dir/ ;;
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8024 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8025 if test -n "$DSYMUTIL"; then
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8027 printf "%s\n" "$DSYMUTIL" >&6; }
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 printf "%s\n" "no" >&6; }
8035 if test -z "$ac_cv_prog_DSYMUTIL"; then
8036 ac_ct_DSYMUTIL=$DSYMUTIL
8037 # Extract the first word of "dsymutil", so it can be a program name with args.
8038 set dummy dsymutil; ac_word=$2
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 printf %s "checking for $ac_word... " >&6; }
8041 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8043 printf %s "(cached) " >&6
8045 if test -n "$ac_ct_DSYMUTIL"; then
8046 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 case $as_dir in #(((
8055 *) as_dir=$as_dir/ ;;
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8070 if test -n "$ac_ct_DSYMUTIL"; then
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8072 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 printf "%s\n" "no" >&6; }
8078 if test "x$ac_ct_DSYMUTIL" = x; then
8081 case $cross_compiling:$ac_tool_warned in
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085 ac_tool_warned=yes ;;
8087 DSYMUTIL=$ac_ct_DSYMUTIL
8090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8093 if test -n "$ac_tool_prefix"; then
8094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 printf %s "checking for $ac_word... " >&6; }
8098 if test ${ac_cv_prog_NMEDIT+y}
8100 printf %s "(cached) " >&6
8102 if test -n "$NMEDIT"; then
8103 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 case $as_dir in #(((
8112 *) as_dir=$as_dir/ ;;
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8116 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8126 NMEDIT=$ac_cv_prog_NMEDIT
8127 if test -n "$NMEDIT"; then
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8129 printf "%s\n" "$NMEDIT" >&6; }
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 printf "%s\n" "no" >&6; }
8137 if test -z "$ac_cv_prog_NMEDIT"; then
8138 ac_ct_NMEDIT=$NMEDIT
8139 # Extract the first word of "nmedit", so it can be a program name with args.
8140 set dummy nmedit; ac_word=$2
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 printf %s "checking for $ac_word... " >&6; }
8143 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8145 printf %s "(cached) " >&6
8147 if test -n "$ac_ct_NMEDIT"; then
8148 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 case $as_dir in #(((
8157 *) as_dir=$as_dir/ ;;
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8171 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8172 if test -n "$ac_ct_NMEDIT"; then
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8174 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 printf "%s\n" "no" >&6; }
8180 if test "x$ac_ct_NMEDIT" = x; then
8183 case $cross_compiling:$ac_tool_warned in
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8187 ac_tool_warned=yes ;;
8189 NMEDIT=$ac_ct_NMEDIT
8192 NMEDIT="$ac_cv_prog_NMEDIT"
8195 if test -n "$ac_tool_prefix"; then
8196 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8197 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 printf %s "checking for $ac_word... " >&6; }
8200 if test ${ac_cv_prog_LIPO+y}
8202 printf %s "(cached) " >&6
8204 if test -n "$LIPO"; then
8205 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 case $as_dir in #(((
8214 *) as_dir=$as_dir/ ;;
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8218 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8228 LIPO=$ac_cv_prog_LIPO
8229 if test -n "$LIPO"; then
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8231 printf "%s\n" "$LIPO" >&6; }
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 printf "%s\n" "no" >&6; }
8239 if test -z "$ac_cv_prog_LIPO"; then
8241 # Extract the first word of "lipo", so it can be a program name with args.
8242 set dummy lipo; ac_word=$2
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 printf %s "checking for $ac_word... " >&6; }
8245 if test ${ac_cv_prog_ac_ct_LIPO+y}
8247 printf %s "(cached) " >&6
8249 if test -n "$ac_ct_LIPO"; then
8250 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 case $as_dir in #(((
8259 *) as_dir=$as_dir/ ;;
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8263 ac_cv_prog_ac_ct_LIPO="lipo"
8264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8274 if test -n "$ac_ct_LIPO"; then
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8276 printf "%s\n" "$ac_ct_LIPO" >&6; }
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 printf "%s\n" "no" >&6; }
8282 if test "x$ac_ct_LIPO" = x; then
8285 case $cross_compiling:$ac_tool_warned in
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289 ac_tool_warned=yes ;;
8294 LIPO="$ac_cv_prog_LIPO"
8297 if test -n "$ac_tool_prefix"; then
8298 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8299 set dummy ${ac_tool_prefix}otool; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_OTOOL+y}
8304 printf %s "(cached) " >&6
8306 if test -n "$OTOOL"; then
8307 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 case $as_dir in #(((
8316 *) as_dir=$as_dir/ ;;
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8330 OTOOL=$ac_cv_prog_OTOOL
8331 if test -n "$OTOOL"; then
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8333 printf "%s\n" "$OTOOL" >&6; }
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 printf "%s\n" "no" >&6; }
8341 if test -z "$ac_cv_prog_OTOOL"; then
8343 # Extract the first word of "otool", so it can be a program name with args.
8344 set dummy otool; ac_word=$2
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 printf %s "checking for $ac_word... " >&6; }
8347 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8349 printf %s "(cached) " >&6
8351 if test -n "$ac_ct_OTOOL"; then
8352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 case $as_dir in #(((
8361 *) as_dir=$as_dir/ ;;
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_ac_ct_OTOOL="otool"
8366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8375 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8376 if test -n "$ac_ct_OTOOL"; then
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8378 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 printf "%s\n" "no" >&6; }
8384 if test "x$ac_ct_OTOOL" = x; then
8387 case $cross_compiling:$ac_tool_warned in
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8396 OTOOL="$ac_cv_prog_OTOOL"
8399 if test -n "$ac_tool_prefix"; then
8400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 printf %s "checking for $ac_word... " >&6; }
8404 if test ${ac_cv_prog_OTOOL64+y}
8406 printf %s "(cached) " >&6
8408 if test -n "$OTOOL64"; then
8409 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 case $as_dir in #(((
8418 *) as_dir=$as_dir/ ;;
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8432 OTOOL64=$ac_cv_prog_OTOOL64
8433 if test -n "$OTOOL64"; then
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8435 printf "%s\n" "$OTOOL64" >&6; }
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 printf "%s\n" "no" >&6; }
8443 if test -z "$ac_cv_prog_OTOOL64"; then
8444 ac_ct_OTOOL64=$OTOOL64
8445 # Extract the first word of "otool64", so it can be a program name with args.
8446 set dummy otool64; ac_word=$2
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 printf %s "checking for $ac_word... " >&6; }
8449 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8451 printf %s "(cached) " >&6
8453 if test -n "$ac_ct_OTOOL64"; then
8454 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 case $as_dir in #(((
8463 *) as_dir=$as_dir/ ;;
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_ac_ct_OTOOL64="otool64"
8468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8477 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8478 if test -n "$ac_ct_OTOOL64"; then
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8480 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 printf "%s\n" "no" >&6; }
8486 if test "x$ac_ct_OTOOL64" = x; then
8489 case $cross_compiling:$ac_tool_warned in
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493 ac_tool_warned=yes ;;
8495 OTOOL64=$ac_ct_OTOOL64
8498 OTOOL64="$ac_cv_prog_OTOOL64"
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8528 printf %s "checking for -single_module linker flag... " >&6; }
8529 if test ${lt_cv_apple_cc_single_mod+y}
8531 printf %s "(cached) " >&6
8533 lt_cv_apple_cc_single_mod=no
8534 if test -z "$LT_MULTI_MODULE"; then
8535 # By default we will add the -single_module flag. You can override
8536 # by either setting the environment variable LT_MULTI_MODULE
8537 # non-empty at configure time, or by adding -multi_module to the
8539 rm -rf libconftest.dylib*
8540 echo "int foo(void){return 1;}" > conftest.c
8541 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8542 -dynamiclib -Wl,-single_module conftest.c" >&5
8543 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8544 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8546 # If there is a non-empty error log, and "single_module"
8547 # appears in it, assume the flag caused a linker warning
8548 if test -s conftest.err && $GREP single_module conftest.err; then
8549 cat conftest.err >&5
8550 # Otherwise, if the output was created with a 0 exit code from
8551 # the compiler, it worked.
8552 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8553 lt_cv_apple_cc_single_mod=yes
8555 cat conftest.err >&5
8557 rm -rf libconftest.dylib*
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8562 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8565 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8566 if test ${lt_cv_ld_exported_symbols_list+y}
8568 printf %s "(cached) " >&6
8570 lt_cv_ld_exported_symbols_list=no
8571 save_LDFLAGS=$LDFLAGS
8572 echo "_main" > conftest.sym
8573 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8585 if ac_fn_c_try_link "$LINENO"
8587 lt_cv_ld_exported_symbols_list=yes
8589 lt_cv_ld_exported_symbols_list=no
8591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8592 conftest$ac_exeext conftest.$ac_ext
8593 LDFLAGS=$save_LDFLAGS
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8597 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8600 printf %s "checking for -force_load linker flag... " >&6; }
8601 if test ${lt_cv_ld_force_load+y}
8603 printf %s "(cached) " >&6
8605 lt_cv_ld_force_load=no
8606 cat > conftest.c << _LT_EOF
8607 int forced_loaded() { return 2;}
8609 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8610 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8611 echo "$AR cr libconftest.a conftest.o" >&5
8612 $AR cr libconftest.a conftest.o 2>&5
8613 echo "$RANLIB libconftest.a" >&5
8614 $RANLIB libconftest.a 2>&5
8615 cat > conftest.c << _LT_EOF
8616 int main() { return 0;}
8618 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8619 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8621 if test -s conftest.err && $GREP force_load conftest.err; then
8622 cat conftest.err >&5
8623 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8624 lt_cv_ld_force_load=yes
8626 cat conftest.err >&5
8628 rm -f conftest.err libconftest.a conftest conftest.c
8629 rm -rf conftest.dSYM
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8633 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8635 rhapsody* | darwin1.[012])
8636 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8638 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8639 darwin*) # darwin 5.x on
8640 # if running on 10.5 or later, the deployment target defaults
8641 # to the OS version, if on x86, and 10.4, the deployment
8642 # target defaults to 10.4. Don't you love it?
8643 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8644 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8645 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8647 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8649 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8653 if test yes = "$lt_cv_apple_cc_single_mod"; then
8654 _lt_dar_single_mod='$single_module'
8656 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8657 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8659 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8661 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8662 _lt_dsymutil='~$DSYMUTIL $lib || :'
8669 # func_munge_path_list VARIABLE PATH
8670 # -----------------------------------
8671 # VARIABLE is name of variable containing _space_ separated list of
8672 # directories to be munged by the contents of PATH, which is string
8675 # string "DIR[ DIR]" will be prepended to VARIABLE
8677 # string "DIR[ DIR]" will be appended to VARIABLE
8678 # "DIRP[:DIRP]::[DIRA:]DIRA"
8679 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8680 # "DIRA[ DIRA]" will be appended to VARIABLE
8682 # VARIABLE will be replaced by "DIR[ DIR]"
8683 func_munge_path_list ()
8689 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8692 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8695 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8696 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8699 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8704 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8706 if test "x$ac_cv_header_dlfcn_h" = xyes
8708 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8726 # Check whether --enable-shared was given.
8727 if test ${enable_shared+y}
8729 enableval=$enable_shared; p=${PACKAGE-default}
8731 yes) enable_shared=yes ;;
8732 no) enable_shared=no ;;
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8737 for pkg in $enableval; do
8739 if test "X$pkg" = "X$p"; then
8758 # Check whether --enable-static was given.
8759 if test ${enable_static+y}
8761 enableval=$enable_static; p=${PACKAGE-default}
8763 yes) enable_static=yes ;;
8764 no) enable_static=no ;;
8767 # Look at the argument we got. We use all the common list separators.
8768 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8769 for pkg in $enableval; do
8771 if test "X$pkg" = "X$p"; then
8791 # Check whether --with-pic was given.
8792 if test ${with_pic+y}
8794 withval=$with_pic; lt_p=${PACKAGE-default}
8796 yes|no) pic_mode=$withval ;;
8799 # Look at the argument we got. We use all the common list separators.
8800 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8801 for lt_pkg in $withval; do
8803 if test "X$lt_pkg" = "X$lt_p"; then
8821 # Check whether --enable-fast-install was given.
8822 if test ${enable_fast_install+y}
8824 enableval=$enable_fast_install; p=${PACKAGE-default}
8826 yes) enable_fast_install=yes ;;
8827 no) enable_fast_install=no ;;
8829 enable_fast_install=no
8830 # Look at the argument we got. We use all the common list separators.
8831 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8832 for pkg in $enableval; do
8834 if test "X$pkg" = "X$p"; then
8835 enable_fast_install=yes
8842 enable_fast_install=yes
8852 shared_archive_member_spec=
8853 case $host,$enable_shared in
8854 power*-*-aix[5-9]*,yes)
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8856 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8858 # Check whether --with-aix-soname was given.
8859 if test ${with_aix_soname+y}
8861 withval=$with_aix_soname; case $withval in
8865 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8868 lt_cv_with_aix_soname=$with_aix_soname
8870 if test ${lt_cv_with_aix_soname+y}
8872 printf %s "(cached) " >&6
8874 lt_cv_with_aix_soname=aix
8877 with_aix_soname=$lt_cv_with_aix_soname
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8881 printf "%s\n" "$with_aix_soname" >&6; }
8882 if test aix != "$with_aix_soname"; then
8883 # For the AIX way of multilib, we name the shared archive member
8884 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8885 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8886 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8887 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8888 if test 64 = "${OBJECT_MODE-32}"; then
8889 shared_archive_member_spec=shr_64
8891 shared_archive_member_spec=shr
8909 # This can be used to rebuild libtool when needed
8910 LIBTOOL_DEPS=$ltmain
8912 # Always use our own libtool.
8913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8944 test -z "$LN_S" && LN_S="ln -s"
8959 if test -n "${ZSH_VERSION+set}"; then
8960 setopt NO_GLOB_SUBST
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8964 printf %s "checking for objdir... " >&6; }
8965 if test ${lt_cv_objdir+y}
8967 printf %s "(cached) " >&6
8969 rm -f .libs 2>/dev/null
8970 mkdir .libs 2>/dev/null
8971 if test -d .libs; then
8974 # MS-DOS does not allow filenames that begin with a dot.
8977 rmdir .libs 2>/dev/null
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8980 printf "%s\n" "$lt_cv_objdir" >&6; }
8981 objdir=$lt_cv_objdir
8987 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8994 # AIX sometimes has problems with the GCC collect2 program. For some
8995 # reason, if we set the COLLECT_NAMES environment variable, the problems
8996 # vanish in a puff of smoke.
8997 if test set != "${COLLECT_NAMES+set}"; then
8999 export COLLECT_NAMES
9006 can_build_shared=yes
9008 # All known linkers require a '.a' archive for static linking (except MSVC,
9009 # which needs '.lib').
9012 with_gnu_ld=$lt_cv_prog_gnu_ld
9017 # Set sane defaults for various variables
9018 test -z "$CC" && CC=cc
9019 test -z "$LTCC" && LTCC=$CC
9020 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9021 test -z "$LD" && LD=ld
9022 test -z "$ac_objext" && ac_objext=o
9024 func_cc_basename $compiler
9025 cc_basename=$func_cc_basename_result
9028 # Only perform the check for file, if the check method requires it
9029 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9030 case $deplibs_check_method in
9032 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9034 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9035 if test ${lt_cv_path_MAGIC_CMD+y}
9037 printf %s "(cached) " >&6
9041 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9044 lt_save_MAGIC_CMD=$MAGIC_CMD
9045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047 for ac_dir in $ac_dummy; do
9049 test -z "$ac_dir" && ac_dir=.
9050 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9051 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9052 if test -n "$file_magic_test_file"; then
9053 case $deplibs_check_method in
9055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058 $EGREP "$file_magic_regex" > /dev/null; then
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such. This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem. Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** bug-libtool@gnu.org
9080 MAGIC_CMD=$lt_save_MAGIC_CMD
9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9086 if test -n "$MAGIC_CMD"; then
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 printf "%s\n" "$MAGIC_CMD" >&6; }
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099 if test -n "$ac_tool_prefix"; then
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 printf %s "checking for file... " >&6; }
9102 if test ${lt_cv_path_MAGIC_CMD+y}
9104 printf %s "(cached) " >&6
9108 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9111 lt_save_MAGIC_CMD=$MAGIC_CMD
9112 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9114 for ac_dir in $ac_dummy; do
9116 test -z "$ac_dir" && ac_dir=.
9117 if test -f "$ac_dir/file"; then
9118 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9119 if test -n "$file_magic_test_file"; then
9120 case $deplibs_check_method in
9122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9123 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9125 $EGREP "$file_magic_regex" > /dev/null; then
9130 *** Warning: the command libtool uses to detect shared libraries,
9131 *** $file_magic_cmd, produces output that libtool cannot recognize.
9132 *** The result is that libtool may fail to recognize shared libraries
9133 *** as such. This will affect the creation of libtool libraries that
9134 *** depend on shared libraries, but programs linked with such libtool
9135 *** libraries will work regardless of this problem. Nevertheless, you
9136 *** may want to report the problem to your system manager and/or to
9137 *** bug-libtool@gnu.org
9147 MAGIC_CMD=$lt_save_MAGIC_CMD
9152 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9153 if test -n "$MAGIC_CMD"; then
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9155 printf "%s\n" "$MAGIC_CMD" >&6; }
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 printf "%s\n" "no" >&6; }
9171 # Use C for the default configuration in the libtool script
9175 ac_cpp='$CPP $CPPFLAGS'
9176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9181 # Source file extension for C test sources.
9184 # Object file extension for compiled C test sources.
9188 # Code to be used in simple compile tests
9189 lt_simple_compile_test_code="int some_variable = 0;"
9191 # Code to be used in simple link tests
9192 lt_simple_link_test_code='int main(){return(0);}'
9200 # If no C compiler was specified, use CC.
9203 # If no C compiler flags were specified, use CFLAGS.
9204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9206 # Allow CC to be a program name with arguments.
9209 # Save the default compiler, since it gets overwritten when the other
9210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9211 compiler_DEFAULT=$CC
9213 # save warnings/boilerplate of simple test code
9214 ac_outfile=conftest.$ac_objext
9215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9217 _lt_compiler_boilerplate=`cat conftest.err`
9220 ac_outfile=conftest.$ac_objext
9221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9223 _lt_linker_boilerplate=`cat conftest.err`
9228 ## There is no encapsulation within the following macros, do not change
9229 ## the running order or otherwise move them around unless you know exactly
9230 ## what you are doing...
9231 if test -n "$compiler"; then
9233 lt_prog_compiler_no_builtin_flag=
9235 if test yes = "$GCC"; then
9236 case $cc_basename in
9238 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9240 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9244 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9245 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9247 printf %s "(cached) " >&6
9249 lt_cv_prog_compiler_rtti_exceptions=no
9250 ac_outfile=conftest.$ac_objext
9251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9252 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9253 # Insert the option either (1) after the last *FLAGS variable, or
9254 # (2) before a word containing "conftest.", or (3) at the end.
9255 # Note that $ac_compile itself does not contain backslashes and begins
9256 # with a dollar sign (not a hyphen), so the echo should work correctly.
9257 # The option is referenced via a variable to avoid confusing sed.
9258 lt_compile=`echo "$ac_compile" | $SED \
9259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9261 -e 's:$: $lt_compiler_flag:'`
9262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9263 (eval "$lt_compile" 2>conftest.err)
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 if (exit $ac_status) && test -s "$ac_outfile"; then
9268 # The compiler can only warn and ignore the option if not recognized
9269 # So say no if there are warnings other than the usual output.
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler_rtti_exceptions=yes
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9280 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9282 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9283 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9295 lt_prog_compiler_wl=
9296 lt_prog_compiler_pic=
9297 lt_prog_compiler_static=
9300 if test yes = "$GCC"; then
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_static='-static'
9306 # All AIX code is PIC.
9307 if test ia64 = "$host_cpu"; then
9308 # AIX 5 now supports IA64 processor
9309 lt_prog_compiler_static='-Bstatic'
9311 lt_prog_compiler_pic='-fPIC'
9317 # see comment about AmigaOS4 .so support
9318 lt_prog_compiler_pic='-fPIC'
9321 # FIXME: we need at least 68020 code to build shared libraries, but
9322 # adding the '-m68020' flag to GCC prevents building anything better,
9324 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9329 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9330 # PIC is the default for these OSes.
9333 mingw* | cygwin* | pw32* | os2* | cegcc*)
9334 # This hack is so that the source file can tell whether it is being
9335 # built for inclusion in a dll (and should export symbols for example).
9336 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9337 # (--disable-auto-import) libraries
9338 lt_prog_compiler_pic='-DDLL_EXPORT'
9341 lt_prog_compiler_static='$wl-static'
9346 darwin* | rhapsody*)
9347 # PIC is the default on this platform
9348 # Common symbols not allowed in MH_DYLIB files
9349 lt_prog_compiler_pic='-fno-common'
9353 # PIC is the default for Haiku.
9354 # The "-static" flag exists, but is broken.
9355 lt_prog_compiler_static=
9359 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9360 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9361 # sets the default TLS model and affects inlining.
9367 lt_prog_compiler_pic='-fPIC'
9373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9374 # Instead, we relocate shared libraries at runtime.
9378 # Just because we use GCC doesn't mean we suddenly get shared libraries
9379 # on systems that don't support them.
9380 lt_prog_compiler_can_build_shared=no
9385 # QNX uses GNU C++, but need to define -shared option too, otherwise
9387 lt_prog_compiler_pic='-fPIC -shared'
9391 if test -d /usr/nec; then
9392 lt_prog_compiler_pic=-Kconform_pic
9397 lt_prog_compiler_pic='-fPIC'
9401 case $cc_basename in
9402 nvcc*) # Cuda Compiler Driver 2.2
9403 lt_prog_compiler_wl='-Xlinker '
9404 if test -n "$lt_prog_compiler_pic"; then
9405 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9410 # PORTME Check for flag to pass linker flags through the system compiler.
9413 lt_prog_compiler_wl='-Wl,'
9414 if test ia64 = "$host_cpu"; then
9415 # AIX 5 now supports IA64 processor
9416 lt_prog_compiler_static='-Bstatic'
9418 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9422 darwin* | rhapsody*)
9423 # PIC is the default on this platform
9424 # Common symbols not allowed in MH_DYLIB files
9425 lt_prog_compiler_pic='-fno-common'
9426 case $cc_basename in
9428 # NAG Fortran compiler
9429 lt_prog_compiler_wl='-Wl,-Wl,,'
9430 lt_prog_compiler_pic='-PIC'
9431 lt_prog_compiler_static='-Bstatic'
9436 mingw* | cygwin* | pw32* | os2* | cegcc*)
9437 # This hack is so that the source file can tell whether it is being
9438 # built for inclusion in a dll (and should export symbols for example).
9439 lt_prog_compiler_pic='-DDLL_EXPORT'
9442 lt_prog_compiler_static='$wl-static'
9447 hpux9* | hpux10* | hpux11*)
9448 lt_prog_compiler_wl='-Wl,'
9449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9456 lt_prog_compiler_pic='+Z'
9459 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9460 lt_prog_compiler_static='$wl-a ${wl}archive'
9463 irix5* | irix6* | nonstopux*)
9464 lt_prog_compiler_wl='-Wl,'
9465 # PIC (with -KPIC) is the default.
9466 lt_prog_compiler_static='-non_shared'
9469 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9470 case $cc_basename in
9471 # old Intel for x86_64, which still supported -KPIC.
9473 lt_prog_compiler_wl='-Wl,'
9474 lt_prog_compiler_pic='-KPIC'
9475 lt_prog_compiler_static='-static'
9477 # flang / f18. f95 an alias for gfortran or flang on Debian
9478 flang* | f18* | f95*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-fPIC'
9481 lt_prog_compiler_static='-static'
9483 # icc used to be incompatible with GCC.
9484 # ICC 10 doesn't accept -KPIC any more.
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-fPIC'
9488 lt_prog_compiler_static='-static'
9490 # Lahey Fortran 8.1.
9492 lt_prog_compiler_wl='-Wl,'
9493 lt_prog_compiler_pic='--shared'
9494 lt_prog_compiler_static='--static'
9497 # NAG Fortran compiler
9498 lt_prog_compiler_wl='-Wl,-Wl,,'
9499 lt_prog_compiler_pic='-PIC'
9500 lt_prog_compiler_static='-Bstatic'
9503 # Fabrice Bellard et al's Tiny C Compiler
9504 lt_prog_compiler_wl='-Wl,'
9505 lt_prog_compiler_pic='-fPIC'
9506 lt_prog_compiler_static='-static'
9508 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9509 # Portland Group compilers (*not* the Pentium gcc compiler,
9510 # which looks to be a dead project)
9511 lt_prog_compiler_wl='-Wl,'
9512 lt_prog_compiler_pic='-fpic'
9513 lt_prog_compiler_static='-Bstatic'
9516 lt_prog_compiler_wl='-Wl,'
9517 # All Alpha code is PIC.
9518 lt_prog_compiler_static='-non_shared'
9520 xl* | bgxl* | bgf* | mpixl*)
9521 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='-qpic'
9524 lt_prog_compiler_static='-qstaticlink'
9527 case `$CC -V 2>&1 | sed 5q` in
9528 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9529 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9530 lt_prog_compiler_pic='-KPIC'
9531 lt_prog_compiler_static='-Bstatic'
9532 lt_prog_compiler_wl=''
9534 *Sun\ F* | *Sun*Fortran*)
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 lt_prog_compiler_wl='-Qoption ld '
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9543 lt_prog_compiler_wl='-Wl,'
9545 *Intel*\ [CF]*Compiler*)
9546 lt_prog_compiler_wl='-Wl,'
9547 lt_prog_compiler_pic='-fPIC'
9548 lt_prog_compiler_static='-static'
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-fpic'
9553 lt_prog_compiler_static='-Bstatic'
9561 lt_prog_compiler_pic='-KPIC'
9562 lt_prog_compiler_static='-Bstatic'
9566 # QNX uses GNU C++, but need to define -shared option too, otherwise
9568 lt_prog_compiler_pic='-fPIC -shared'
9571 osf3* | osf4* | osf5*)
9572 lt_prog_compiler_wl='-Wl,'
9573 # All OSF/1 code is PIC.
9574 lt_prog_compiler_static='-non_shared'
9578 lt_prog_compiler_static='-non_shared'
9582 lt_prog_compiler_pic='-KPIC'
9583 lt_prog_compiler_static='-Bstatic'
9584 case $cc_basename in
9585 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9586 lt_prog_compiler_wl='-Qoption ld ';;
9588 lt_prog_compiler_wl='-Wl,';;
9593 lt_prog_compiler_wl='-Qoption ld '
9594 lt_prog_compiler_pic='-PIC'
9595 lt_prog_compiler_static='-Bstatic'
9598 sysv4 | sysv4.2uw2* | sysv4.3*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='-KPIC'
9601 lt_prog_compiler_static='-Bstatic'
9605 if test -d /usr/nec; then
9606 lt_prog_compiler_pic='-Kconform_pic'
9607 lt_prog_compiler_static='-Bstatic'
9611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='-KPIC'
9614 lt_prog_compiler_static='-Bstatic'
9618 lt_prog_compiler_wl='-Wl,'
9619 lt_prog_compiler_can_build_shared=no
9623 lt_prog_compiler_pic='-pic'
9624 lt_prog_compiler_static='-Bstatic'
9628 lt_prog_compiler_can_build_shared=no
9634 # For platforms that do not support PIC, -DPIC is meaningless:
9636 lt_prog_compiler_pic=
9639 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9644 printf %s "checking for $compiler option to produce PIC... " >&6; }
9645 if test ${lt_cv_prog_compiler_pic+y}
9647 printf %s "(cached) " >&6
9649 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9652 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9653 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9656 # Check to make sure the PIC flag actually works.
9658 if test -n "$lt_prog_compiler_pic"; then
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9660 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9661 if test ${lt_cv_prog_compiler_pic_works+y}
9663 printf %s "(cached) " >&6
9665 lt_cv_prog_compiler_pic_works=no
9666 ac_outfile=conftest.$ac_objext
9667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9668 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9669 # Insert the option either (1) after the last *FLAGS variable, or
9670 # (2) before a word containing "conftest.", or (3) at the end.
9671 # Note that $ac_compile itself does not contain backslashes and begins
9672 # with a dollar sign (not a hyphen), so the echo should work correctly.
9673 # The option is referenced via a variable to avoid confusing sed.
9674 lt_compile=`echo "$ac_compile" | $SED \
9675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9677 -e 's:$: $lt_compiler_flag:'`
9678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9679 (eval "$lt_compile" 2>conftest.err)
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 if (exit $ac_status) && test -s "$ac_outfile"; then
9684 # The compiler can only warn and ignore the option if not recognized
9685 # So say no if there are warnings other than the usual output.
9686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9689 lt_cv_prog_compiler_pic_works=yes
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9696 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9698 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9699 case $lt_prog_compiler_pic in
9701 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_can_build_shared=no
9721 # Check to make sure the static flag actually works.
9723 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9725 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9726 if test ${lt_cv_prog_compiler_static_works+y}
9728 printf %s "(cached) " >&6
9730 lt_cv_prog_compiler_static_works=no
9731 save_LDFLAGS=$LDFLAGS
9732 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9733 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9734 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9735 # The linker can only warn and ignore the option if not recognized
9736 # So say no if there are warnings
9737 if test -s conftest.err; then
9738 # Append any errors to the config.log.
9739 cat conftest.err 1>&5
9740 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9742 if diff conftest.exp conftest.er2 >/dev/null; then
9743 lt_cv_prog_compiler_static_works=yes
9746 lt_cv_prog_compiler_static_works=yes
9750 LDFLAGS=$save_LDFLAGS
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9754 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9756 if test yes = "$lt_cv_prog_compiler_static_works"; then
9759 lt_prog_compiler_static=
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9769 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9770 if test ${lt_cv_prog_compiler_c_o+y}
9772 printf %s "(cached) " >&6
9774 lt_cv_prog_compiler_c_o=no
9775 $RM -r conftest 2>/dev/null
9779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9781 lt_compiler_flag="-o out/conftest2.$ac_objext"
9782 # Insert the option either (1) after the last *FLAGS variable, or
9783 # (2) before a word containing "conftest.", or (3) at the end.
9784 # Note that $ac_compile itself does not contain backslashes and begins
9785 # with a dollar sign (not a hyphen), so the echo should work correctly.
9786 lt_compile=`echo "$ac_compile" | $SED \
9787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9789 -e 's:$: $lt_compiler_flag:'`
9790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9791 (eval "$lt_compile" 2>out/conftest.err)
9793 cat out/conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9797 # The compiler can only warn and ignore the option if not recognized
9798 # So say no if there are warnings
9799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9802 lt_cv_prog_compiler_c_o=yes
9807 # SGI C++ compiler will create directory out/ii_files/ for
9808 # template instantiation
9809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9810 $RM out/* && rmdir out
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9817 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9825 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9826 if test ${lt_cv_prog_compiler_c_o+y}
9828 printf %s "(cached) " >&6
9830 lt_cv_prog_compiler_c_o=no
9831 $RM -r conftest 2>/dev/null
9835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 lt_compiler_flag="-o out/conftest2.$ac_objext"
9838 # Insert the option either (1) after the last *FLAGS variable, or
9839 # (2) before a word containing "conftest.", or (3) at the end.
9840 # Note that $ac_compile itself does not contain backslashes and begins
9841 # with a dollar sign (not a hyphen), so the echo should work correctly.
9842 lt_compile=`echo "$ac_compile" | $SED \
9843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9845 -e 's:$: $lt_compiler_flag:'`
9846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9847 (eval "$lt_compile" 2>out/conftest.err)
9849 cat out/conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9853 # The compiler can only warn and ignore the option if not recognized
9854 # So say no if there are warnings
9855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler_c_o=yes
9863 # SGI C++ compiler will create directory out/ii_files/ for
9864 # template instantiation
9865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9866 $RM out/* && rmdir out
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9873 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9878 hard_links=nottested
9879 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9880 # do not overwrite the value of need_locks provided by the user
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9882 printf %s "checking if we can lock with hard links... " >&6; }
9885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9887 ln conftest.a conftest.b 2>&5 || hard_links=no
9888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9890 printf "%s\n" "$hard_links" >&6; }
9891 if test no = "$hard_links"; then
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9893 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9906 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9909 allow_undefined_flag=
9910 always_export_symbols=no
9912 archive_expsym_cmds=
9913 compiler_needs_object=no
9914 enable_shared_with_static_runtimes=no
9915 export_dynamic_flag_spec=
9916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9917 hardcode_automatic=no
9919 hardcode_direct_absolute=no
9920 hardcode_libdir_flag_spec=
9921 hardcode_libdir_separator=
9923 hardcode_shlibpath_var=unsupported
9925 link_all_deplibs=unknown
9928 old_archive_from_new_cmds=
9929 old_archive_from_expsyms_cmds=
9930 thread_safe_flag_spec=
9931 whole_archive_flag_spec=
9932 # include_expsyms should be a list of space-separated symbols to be *always*
9933 # included in the symbol list
9935 # exclude_expsyms can be an extended regexp of symbols to exclude
9936 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9937 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9938 # as well as any symbol that contains 'd'.
9939 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9940 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9941 # platforms (ab)use it in PIC code, but their linkers get confused if
9942 # the symbol is explicitly referenced. Since portable code cannot
9943 # rely on this symbol name, it's probably fine to never include it in
9944 # preloaded symbol tables.
9945 # Exclude shared library initialization/finalization symbols.
9946 extract_expsyms_cmds=
9949 cygwin* | mingw* | pw32* | cegcc*)
9950 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9951 # When not using gcc, we currently assume that we are using
9952 # Microsoft Visual C++.
9953 if test yes != "$GCC"; then
9958 # we just hope/assume this is gcc and not c89 (= MSVC++)
9964 linux* | k*bsd*-gnu | gnu*)
9971 # On some targets, GNU ld is compatible enough with the native linker
9972 # that we're better off using the native interface for both.
9973 lt_use_gnu_ld_interface=no
9974 if test yes = "$with_gnu_ld"; then
9977 # The AIX port of GNU ld has always aspired to compatibility
9978 # with the native linker. However, as the warning in the GNU ld
9979 # block says, versions before 2.19.5* couldn't really create working
9980 # shared libraries, regardless of the interface used.
9981 case `$LD -v 2>&1` in
9982 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9983 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9984 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9986 lt_use_gnu_ld_interface=yes
9991 lt_use_gnu_ld_interface=yes
9996 if test yes = "$lt_use_gnu_ld_interface"; then
9997 # If archive_cmds runs LD, not CC, wlarc should be empty
10000 # Set some defaults for GNU ld with shared library support. These
10001 # are reset later if shared libraries are not supported. Putting them
10002 # here allows them to be overridden if necessary.
10003 runpath_var=LD_RUN_PATH
10004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10005 export_dynamic_flag_spec='$wl--export-dynamic'
10006 # ancient GNU ld didn't support --whole-archive et. al.
10007 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10008 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10010 whole_archive_flag_spec=
10012 supports_anon_versioning=no
10013 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10014 *GNU\ gold*) supports_anon_versioning=yes ;;
10015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018 *\ 2.11.*) ;; # other 2.11 versions
10019 *) supports_anon_versioning=yes ;;
10022 # See if GNU ld supports shared libraries.
10025 # On AIX/PPC, the GNU linker is very broken
10026 if test ia64 != "$host_cpu"; then
10030 *** Warning: the GNU linker, at least up to release 2.19, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support. If you
10033 *** really care for shared libraries, you may want to install binutils
10034 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10035 *** You will then need to restart the configuration process.
10044 # see comment about AmigaOS4 .so support
10045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10046 archive_expsym_cmds=''
10049 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)'
10050 hardcode_libdir_flag_spec='-L$libdir'
10051 hardcode_minus_L=yes
10057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10058 allow_undefined_flag=unsupported
10059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10060 # support --undefined. This deserves some investigation. FIXME
10061 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067 cygwin* | mingw* | pw32* | cegcc*)
10068 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10069 # as there is no search path for DLLs.
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 export_dynamic_flag_spec='$wl--export-all-symbols'
10072 allow_undefined_flag=unsupported
10073 always_export_symbols=no
10074 enable_shared_with_static_runtimes=yes
10075 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'
10076 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10078 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10080 # If the export-symbols file already is a .def file, use it as
10081 # is; otherwise, prepend EXPORTS...
10082 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10083 cp $export_symbols $output_objdir/$soname.def;
10085 echo EXPORTS > $output_objdir/$soname.def;
10086 cat $export_symbols >> $output_objdir/$soname.def;
10088 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10096 link_all_deplibs=yes
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_minus_L=yes
10102 allow_undefined_flag=unsupported
10104 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10105 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10106 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10107 $ECHO EXPORTS >> $output_objdir/$libname.def~
10108 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10109 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10110 emximp -o $lib $output_objdir/$libname.def'
10111 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10114 $ECHO EXPORTS >> $output_objdir/$libname.def~
10115 prefix_cmds="$SED"~
10116 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10117 prefix_cmds="$prefix_cmds -e 1d";
10119 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10120 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10122 emximp -o $lib $output_objdir/$libname.def'
10123 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10124 enable_shared_with_static_runtimes=yes
10129 hardcode_shlibpath_var=no
10130 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10131 export_dynamic_flag_spec='$wl-E'
10132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10133 # Instead, shared libraries are loaded at an image base (0x10000000 by
10134 # default) and relocated if they conflict, which is a slow very memory
10135 # consuming and fragmenting process. To avoid this, we pick a random,
10136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10137 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10139 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'
10142 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10144 if test linux-dietlibc = "$host_os"; then
10145 case $cc_basename in
10146 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10149 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10150 && test no = "$tmp_diet"
10152 tmp_addflag=' $pic_flag'
10153 tmp_sharedflag='-shared'
10154 case $cc_basename,$host_cpu in
10155 pgcc*) # Portland Group C compiler
10156 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'
10157 tmp_addflag=' $pic_flag'
10159 pgf77* | pgf90* | pgf95* | pgfortran*)
10160 # Portland Group f77 and f90 compilers
10161 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'
10162 tmp_addflag=' $pic_flag -Mnomain' ;;
10163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10164 tmp_addflag=' -i_dynamic' ;;
10165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10166 tmp_addflag=' -i_dynamic -nofor_main' ;;
10167 ifc* | ifort*) # Intel Fortran compiler
10168 tmp_addflag=' -nofor_main' ;;
10169 lf95*) # Lahey Fortran 8.1
10170 whole_archive_flag_spec=
10171 tmp_sharedflag='--shared' ;;
10172 nagfor*) # NAGFOR 5.3
10173 tmp_sharedflag='-Wl,-shared' ;;
10174 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10175 tmp_sharedflag='-qmkshrobj'
10177 nvcc*) # Cuda Compiler Driver 2.2
10178 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'
10179 compiler_needs_object=yes
10182 case `$CC -V 2>&1 | sed 5q` in
10183 *Sun\ C*) # Sun C 5.9
10184 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'
10185 compiler_needs_object=yes
10186 tmp_sharedflag='-G' ;;
10187 *Sun\ F*) # Sun Fortran 8.3
10188 tmp_sharedflag='-G' ;;
10190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192 if test yes = "$supports_anon_versioning"; then
10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195 echo "local: *; };" >> $output_objdir/$libname.ver~
10196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10199 case $cc_basename in
10201 export_dynamic_flag_spec='-rdynamic'
10203 xlf* | bgf* | bgxlf* | mpixlf*)
10204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10207 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10208 if test yes = "$supports_anon_versioning"; then
10209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10211 echo "local: *; };" >> $output_objdir/$libname.ver~
10212 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10221 netbsd* | netbsdelf*-gnu)
10222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10223 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10232 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10237 *** create shared libraries on Solaris systems. Therefore, libtool
10238 *** is disabling shared libraries support. We urge you to upgrade GNU
10239 *** binutils to release 2.9.1 or newer. Another option is to modify
10240 *** your PATH or compiler configuration so that the native linker is
10241 *** used, and then restart.
10244 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10253 case `$LD -v 2>&1` in
10254 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10258 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10259 *** reliably create shared libraries on SCO systems. Therefore, libtool
10260 *** is disabling shared libraries support. We urge you to upgrade GNU
10261 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10268 # For security reasons, it is highly recommended that you always
10269 # use absolute paths for naming shared libraries, and exclude the
10270 # DT_RUNPATH tag from executables and libraries. But doing so
10271 # requires that you compile everything twice, which is a pain.
10272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10284 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes
10287 hardcode_shlibpath_var=no
10291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10300 if test no = "$ld_shlibs"; then
10302 hardcode_libdir_flag_spec=
10303 export_dynamic_flag_spec=
10304 whole_archive_flag_spec=
10307 # PORTME fill in a description of your system's linker (not GNU ld)
10310 allow_undefined_flag=unsupported
10311 always_export_symbols=yes
10312 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'
10313 # Note: this linker hardcodes the directories in LIBPATH if there
10314 # are no directories specified by -L.
10315 hardcode_minus_L=yes
10316 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10317 # Neither direct hardcoding nor static linking is supported with a
10319 hardcode_direct=unsupported
10324 if test ia64 = "$host_cpu"; then
10325 # On IA64, the linker does run time linking by default, so we don't
10326 # have to do anything special.
10327 aix_use_runtimelinking=no
10328 exp_sym_flag='-Bexport'
10331 # If we're using GNU nm, then we don't want the "-C" option.
10332 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10333 # Without the "-l" option, or with the "-B" option, AIX nm treats
10334 # weak defined symbols like other global defined symbols, whereas
10335 # GNU nm marks them as "W".
10336 # While the 'weak' keyword is ignored in the Export File, we need
10337 # it in the Import File for the 'aix-soname' feature, so we have
10338 # to replace the "-B" option with "-P" for AIX nm.
10339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10340 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'
10342 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'
10344 aix_use_runtimelinking=no
10346 # Test if we are trying to use run time linking or normal
10347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10348 # have runtime linking enabled, and use it for executables.
10349 # For shared libraries, we enable/disable runtime linking
10350 # depending on the kind of the shared library created -
10351 # when "with_aix_soname,aix_use_runtimelinking" is:
10352 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10353 # "aix,yes" lib.so shared, rtl:yes, for executables
10354 # lib.a static archive
10355 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10356 # lib.a(lib.so.V) shared, rtl:no, for executables
10357 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10358 # lib.a(lib.so.V) shared, rtl:no
10359 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10360 # lib.a static archive
10361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362 for ld_flag in $LDFLAGS; do
10363 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10364 aix_use_runtimelinking=yes
10368 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10369 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10370 # so we don't have lib.a shared libs to link our executables.
10371 # We have to force runtime linking in this case.
10372 aix_use_runtimelinking=yes
10373 LDFLAGS="$LDFLAGS -Wl,-brtl"
10378 exp_sym_flag='-bexport'
10379 no_entry_flag='-bnoentry'
10382 # When large executables or shared objects are built, AIX ld can
10383 # have problems creating the table of contents. If linking a library
10384 # or program results in "error TOC overflow" add -mminimal-toc to
10385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10389 hardcode_direct=yes
10390 hardcode_direct_absolute=yes
10391 hardcode_libdir_separator=':'
10392 link_all_deplibs=yes
10393 file_list_spec='$wl-f,'
10394 case $with_aix_soname,$aix_use_runtimelinking in
10395 aix,*) ;; # traditional, no import file
10396 svr4,* | *,yes) # use import file
10397 # The Import File defines what to hardcode.
10399 hardcode_direct_absolute=no
10403 if test yes = "$GCC"; then
10404 case $host_os in aix4.[012]|aix4.[012].*)
10405 # We only want to do this on AIX 4.2 and lower, the check
10406 # below for broken collect2 doesn't work under 4.3+
10407 collect2name=`$CC -print-prog-name=collect2`
10408 if test -f "$collect2name" &&
10409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10411 # We have reworked collect2
10414 # We have old collect2
10415 hardcode_direct=unsupported
10416 # It fails to find uninstalled libraries when the uninstalled
10417 # path is not listed in the libpath. Setting hardcode_minus_L
10418 # to unsupported forces relinking
10419 hardcode_minus_L=yes
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_libdir_separator=
10425 shared_flag='-shared'
10426 if test yes = "$aix_use_runtimelinking"; then
10427 shared_flag="$shared_flag "'$wl-G'
10429 # Need to ensure runtime linking is disabled for the traditional
10430 # shared library, or the linker may eventually find shared libraries
10431 # /with/ Import File - we do not want to mix them.
10432 shared_flag_aix='-shared'
10433 shared_flag_svr4='-shared $wl-G'
10436 if test ia64 = "$host_cpu"; then
10437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10438 # chokes on -Wl,-G. The following line is correct:
10441 if test yes = "$aix_use_runtimelinking"; then
10442 shared_flag='$wl-G'
10444 shared_flag='$wl-bM:SRE'
10446 shared_flag_aix='$wl-bM:SRE'
10447 shared_flag_svr4='$wl-G'
10451 export_dynamic_flag_spec='$wl-bexpall'
10452 # It seems that -bexpall does not export symbols beginning with
10453 # underscore (_), so it is better to generate a list of symbols to export.
10454 always_export_symbols=yes
10455 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10456 # Warning - without using the other runtime loading flags (-brtl),
10457 # -berok will link without error, but may produce a broken library.
10458 allow_undefined_flag='-berok'
10459 # Determine the default libpath from the value encoded in an
10460 # empty executable.
10461 if test set = "${lt_cv_aix_libpath+set}"; then
10462 aix_libpath=$lt_cv_aix_libpath
10464 if test ${lt_cv_aix_libpath_+y}
10466 printf %s "(cached) " >&6
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10479 if ac_fn_c_try_link "$LINENO"
10482 lt_aix_libpath_sed='
10483 /Import File Strings/,/^$/ {
10485 s/^0 *\([^ ]*\) *$/\1/
10489 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$lt_cv_aix_libpath_"; then
10492 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496 conftest$ac_exeext conftest.$ac_ext
10497 if test -z "$lt_cv_aix_libpath_"; then
10498 lt_cv_aix_libpath_=/usr/lib:/lib
10503 aix_libpath=$lt_cv_aix_libpath_
10506 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10507 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
10509 if test ia64 = "$host_cpu"; then
10510 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10511 allow_undefined_flag="-z nodefs"
10512 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"
10514 # Determine the default libpath from the value encoded in an
10515 # empty executable.
10516 if test set = "${lt_cv_aix_libpath+set}"; then
10517 aix_libpath=$lt_cv_aix_libpath
10519 if test ${lt_cv_aix_libpath_+y}
10521 printf %s "(cached) " >&6
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10534 if ac_fn_c_try_link "$LINENO"
10537 lt_aix_libpath_sed='
10538 /Import File Strings/,/^$/ {
10540 s/^0 *\([^ ]*\) *$/\1/
10544 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$lt_cv_aix_libpath_"; then
10547 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10551 conftest$ac_exeext conftest.$ac_ext
10552 if test -z "$lt_cv_aix_libpath_"; then
10553 lt_cv_aix_libpath_=/usr/lib:/lib
10558 aix_libpath=$lt_cv_aix_libpath_
10561 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10562 # Warning - without using the other run time loading flags,
10563 # -berok will link without error, but may produce a broken library.
10564 no_undefined_flag=' $wl-bernotok'
10565 allow_undefined_flag=' $wl-berok'
10566 if test yes = "$with_gnu_ld"; then
10567 # We only use this code for GNU lds that support --whole-archive.
10568 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10570 # Exported symbols can be pulled into shared objects from archives
10571 whole_archive_flag_spec='$convenience'
10573 archive_cmds_need_lc=yes
10574 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10575 # -brtl affects multiple linker settings, -berok does not and is overridden later
10576 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10577 if test svr4 != "$with_aix_soname"; then
10578 # This is similar to how AIX traditionally builds its shared libraries.
10579 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'
10581 if test aix != "$with_aix_soname"; then
10582 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'
10584 # used by -dlpreopen to get the symbols
10585 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10587 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10595 # see comment about AmigaOS4 .so support
10596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597 archive_expsym_cmds=''
10600 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)'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_minus_L=yes
10608 export_dynamic_flag_spec=-rdynamic
10611 cygwin* | mingw* | pw32* | cegcc*)
10612 # When not using gcc, we currently assume that we are using
10613 # Microsoft Visual C++.
10614 # hardcode_libdir_flag_spec is actually meaningless, as there is
10615 # no search path for DLLs.
10616 case $cc_basename in
10619 hardcode_libdir_flag_spec=' '
10620 allow_undefined_flag=unsupported
10621 always_export_symbols=yes
10623 # Tell ltmain to make .lib files, not .a files.
10625 # Tell ltmain to make .dll files, not .so files.
10627 # FIXME: Setting linknames here is a bad hack.
10628 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10629 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10630 cp "$export_symbols" "$output_objdir/$soname.def";
10631 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10633 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10635 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10637 # The linker will not automatically build a static lib if we build a DLL.
10638 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10639 enable_shared_with_static_runtimes=yes
10640 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10643 old_postinstall_cmds='chmod 644 $oldlib'
10644 postlink_cmds='lt_outputfile="@OUTPUT@"~
10645 lt_tool_outputfile="@TOOL_OUTPUT@"~
10646 case $lt_outputfile in
10649 lt_outputfile=$lt_outputfile.exe
10650 lt_tool_outputfile=$lt_tool_outputfile.exe
10653 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10654 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10655 $RM "$lt_outputfile.manifest";
10659 # Assume MSVC wrapper
10660 hardcode_libdir_flag_spec=' '
10661 allow_undefined_flag=unsupported
10662 # Tell ltmain to make .lib files, not .a files.
10664 # Tell ltmain to make .dll files, not .so files.
10666 # FIXME: Setting linknames here is a bad hack.
10667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10668 # The linker will automatically build a .lib file if we build a DLL.
10669 old_archive_from_new_cmds='true'
10670 # FIXME: Should let the user specify the lib program.
10671 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10672 enable_shared_with_static_runtimes=yes
10677 darwin* | rhapsody*)
10680 archive_cmds_need_lc=no
10682 hardcode_automatic=yes
10683 hardcode_shlibpath_var=unsupported
10684 if test yes = "$lt_cv_ld_force_load"; then
10685 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\"`'
10688 whole_archive_flag_spec=''
10690 link_all_deplibs=yes
10691 allow_undefined_flag=$_lt_dar_allow_undefined
10692 case $cc_basename in
10693 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10694 *) _lt_dar_can_shared=$GCC ;;
10696 if test yes = "$_lt_dar_can_shared"; then
10697 output_verbose_link_cmd=func_echo_all
10698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10700 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"
10701 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"
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_libdir_flag_spec='-L$libdir'
10712 hardcode_shlibpath_var=no
10715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10716 # support. Future versions do this automatically, but an explicit c++rt0.o
10717 # does not break anything, and helps significantly (at the cost of a little
10720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10721 hardcode_libdir_flag_spec='-R$libdir'
10722 hardcode_direct=yes
10723 hardcode_shlibpath_var=no
10726 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_direct=yes
10730 hardcode_minus_L=yes
10731 hardcode_shlibpath_var=no
10734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10735 freebsd* | dragonfly*)
10736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10737 hardcode_libdir_flag_spec='-R$libdir'
10738 hardcode_direct=yes
10739 hardcode_shlibpath_var=no
10743 if test yes = "$GCC"; then
10744 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'
10746 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'
10748 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10749 hardcode_libdir_separator=:
10750 hardcode_direct=yes
10752 # hardcode_minus_L: Not really in the search PATH,
10753 # but as the default location of the library.
10754 hardcode_minus_L=yes
10755 export_dynamic_flag_spec='$wl-E'
10759 if test yes,no = "$GCC,$with_gnu_ld"; then
10760 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10764 if test no = "$with_gnu_ld"; then
10765 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10766 hardcode_libdir_separator=:
10767 hardcode_direct=yes
10768 hardcode_direct_absolute=yes
10769 export_dynamic_flag_spec='$wl-E'
10770 # hardcode_minus_L: Not really in the search PATH,
10771 # but as the default location of the library.
10772 hardcode_minus_L=yes
10777 if test yes,no = "$GCC,$with_gnu_ld"; then
10780 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10799 # Older versions of the 11.00 compiler do not understand -b yet
10800 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10802 printf %s "checking if $CC understands -b... " >&6; }
10803 if test ${lt_cv_prog_compiler__b+y}
10805 printf %s "(cached) " >&6
10807 lt_cv_prog_compiler__b=no
10808 save_LDFLAGS=$LDFLAGS
10809 LDFLAGS="$LDFLAGS -b"
10810 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10812 # The linker can only warn and ignore the option if not recognized
10813 # So say no if there are warnings
10814 if test -s conftest.err; then
10815 # Append any errors to the config.log.
10816 cat conftest.err 1>&5
10817 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10819 if diff conftest.exp conftest.er2 >/dev/null; then
10820 lt_cv_prog_compiler__b=yes
10823 lt_cv_prog_compiler__b=yes
10827 LDFLAGS=$save_LDFLAGS
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10831 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10833 if test yes = "$lt_cv_prog_compiler__b"; then
10834 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10842 if test no = "$with_gnu_ld"; then
10843 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10844 hardcode_libdir_separator=:
10849 hardcode_shlibpath_var=no
10852 hardcode_direct=yes
10853 hardcode_direct_absolute=yes
10854 export_dynamic_flag_spec='$wl-E'
10856 # hardcode_minus_L: Not really in the search PATH,
10857 # but as the default location of the library.
10858 hardcode_minus_L=yes
10864 irix5* | irix6* | nonstopux*)
10865 if test yes = "$GCC"; then
10866 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'
10867 # Try to use the -exported_symbol ld option, if it does not
10868 # work, assume that -exports_file does not work either and
10869 # implicitly export all symbols.
10870 # This should be the same for all languages, so no per-tag cache variable.
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10872 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10873 if test ${lt_cv_irix_exported_symbol+y}
10875 printf %s "(cached) " >&6
10877 save_LDFLAGS=$LDFLAGS
10878 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881 int foo (void) { return 0; }
10883 if ac_fn_c_try_link "$LINENO"
10885 lt_cv_irix_exported_symbol=yes
10887 lt_cv_irix_exported_symbol=no
10889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10894 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10895 if test yes = "$lt_cv_irix_exported_symbol"; then
10896 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'
10898 link_all_deplibs=no
10900 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'
10901 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'
10903 archive_cmds_need_lc='no'
10904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10905 hardcode_libdir_separator=:
10907 link_all_deplibs=yes
10911 case $cc_basename in
10913 # Fabrice Bellard et al's Tiny C Compiler
10915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10920 netbsd* | netbsdelf*-gnu)
10921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10926 hardcode_libdir_flag_spec='-R$libdir'
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_direct=yes
10934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10935 hardcode_libdir_separator=:
10936 hardcode_shlibpath_var=no
10942 openbsd* | bitrig*)
10943 if test -f /usr/libexec/ld.so; then
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10946 hardcode_direct_absolute=yes
10947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10950 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10951 export_dynamic_flag_spec='$wl-E'
10953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10954 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10962 hardcode_libdir_flag_spec='-L$libdir'
10963 hardcode_minus_L=yes
10964 allow_undefined_flag=unsupported
10966 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10969 $ECHO EXPORTS >> $output_objdir/$libname.def~
10970 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10972 emximp -o $lib $output_objdir/$libname.def'
10973 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10976 $ECHO EXPORTS >> $output_objdir/$libname.def~
10977 prefix_cmds="$SED"~
10978 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10979 prefix_cmds="$prefix_cmds -e 1d";
10981 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10982 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10984 emximp -o $lib $output_objdir/$libname.def'
10985 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10986 enable_shared_with_static_runtimes=yes
10990 if test yes = "$GCC"; then
10991 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10992 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'
10994 allow_undefined_flag=' -expect_unresolved \*'
10995 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'
10997 archive_cmds_need_lc='no'
10998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10999 hardcode_libdir_separator=:
11002 osf4* | osf5*) # as osf3* with the addition of -msym flag
11003 if test yes = "$GCC"; then
11004 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11005 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'
11006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11008 allow_undefined_flag=' -expect_unresolved \*'
11009 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'
11010 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~
11011 $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'
11013 # Both c and cxx compiler support -rpath directly
11014 hardcode_libdir_flag_spec='-rpath $libdir'
11016 archive_cmds_need_lc='no'
11017 hardcode_libdir_separator=:
11021 no_undefined_flag=' -z defs'
11022 if test yes = "$GCC"; then
11024 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11026 $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'
11028 case `$CC -V 2>&1` in
11031 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11037 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11043 hardcode_libdir_flag_spec='-R$libdir'
11044 hardcode_shlibpath_var=no
11046 solaris2.[0-5] | solaris2.[0-5].*) ;;
11048 # The compiler driver will combine and reorder linker options,
11049 # but understands '-z linker_flag'. GCC discards it without '$wl',
11050 # but is careful enough not to reorder.
11051 # Supported since Solaris 2.6 (maybe 2.5.1?)
11052 if test yes = "$GCC"; then
11053 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11059 link_all_deplibs=yes
11063 if test sequent = "$host_vendor"; then
11064 # Use $CC to link under sequent, because it throws in some extra .o
11065 # files that make .init and .fini sections work.
11066 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11070 hardcode_libdir_flag_spec='-L$libdir'
11071 hardcode_direct=yes
11072 hardcode_minus_L=yes
11073 hardcode_shlibpath_var=no
11077 case $host_vendor in
11079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080 hardcode_direct=yes # is this really true???
11083 ## LD is ld it makes a PLAMLIB
11084 ## CC just makes a GrossModule.
11085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11086 reload_cmds='$CC -r -o $output$reload_objs'
11090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11094 runpath_var='LD_RUN_PATH'
11095 hardcode_shlibpath_var=no
11099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100 hardcode_shlibpath_var=no
11101 export_dynamic_flag_spec='-Bexport'
11105 if test -d /usr/nec; then
11106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_shlibpath_var=no
11108 runpath_var=LD_RUN_PATH
11109 hardcode_runpath_var=yes
11114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11115 no_undefined_flag='$wl-z,text'
11116 archive_cmds_need_lc=no
11117 hardcode_shlibpath_var=no
11118 runpath_var='LD_RUN_PATH'
11120 if test yes = "$GCC"; then
11121 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 sysv5* | sco3.2v5* | sco5v6*)
11130 # Note: We CANNOT use -z defs as we might desire, because we do not
11131 # link with -lc, and that would cause any symbols used from libc to
11132 # always be unresolved, which means just about no library would
11133 # ever link correctly. If we're not using GNU ld we use -z text
11134 # though, which does catch some bad symbols but isn't as heavy-handed
11136 no_undefined_flag='$wl-z,text'
11137 allow_undefined_flag='$wl-z,nodefs'
11138 archive_cmds_need_lc=no
11139 hardcode_shlibpath_var=no
11140 hardcode_libdir_flag_spec='$wl-R,$libdir'
11141 hardcode_libdir_separator=':'
11142 link_all_deplibs=yes
11143 export_dynamic_flag_spec='$wl-Bexport'
11144 runpath_var='LD_RUN_PATH'
11146 if test yes = "$GCC"; then
11147 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11150 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157 hardcode_libdir_flag_spec='-L$libdir'
11158 hardcode_shlibpath_var=no
11166 if test sni = "$host_vendor"; then
11168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11169 export_dynamic_flag_spec='$wl-Blargedynsym'
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11176 printf "%s\n" "$ld_shlibs" >&6; }
11177 test no = "$ld_shlibs" && can_build_shared=no
11179 with_gnu_ld=$with_gnu_ld
11196 # Do we need to explicitly link libc?
11198 case "x$archive_cmds_need_lc" in
11200 # Assume -lc should be added
11201 archive_cmds_need_lc=yes
11203 if test yes,yes = "$GCC,$enable_shared"; then
11204 case $archive_cmds in
11206 # FIXME: we may have to deal with multi-command sequences.
11209 # Test whether the compiler implicitly links with -lc since on some
11210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11211 # to ld, don't add -lc before -lgcc.
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11213 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11214 if test ${lt_cv_archive_cmds_need_lc+y}
11216 printf %s "(cached) " >&6
11219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11222 (eval $ac_compile) 2>&5
11224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; } 2>conftest.err; then
11228 libobjs=conftest.$ac_objext
11230 wl=$lt_prog_compiler_wl
11231 pic_flag=$lt_prog_compiler_pic
11237 lt_save_allow_undefined_flag=$allow_undefined_flag
11238 allow_undefined_flag=
11239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243 test $ac_status = 0; }
11245 lt_cv_archive_cmds_need_lc=no
11247 lt_cv_archive_cmds_need_lc=yes
11249 allow_undefined_flag=$lt_save_allow_undefined_flag
11251 cat conftest.err 1>&5
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11257 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11258 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11417 printf %s "checking dynamic linker characteristics... " >&6; }
11419 if test yes = "$GCC"; then
11421 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11422 *) lt_awk_arg='/^libraries:/' ;;
11425 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11426 *) lt_sed_strip_eq='s|=/|/|g' ;;
11428 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11429 case $lt_search_path_spec in
11431 # if the path contains ";" then we assume it to be the separator
11432 # otherwise default to the standard path separator (i.e. ":") - it is
11433 # assumed that no part of a normal pathname contains ";" but that should
11434 # okay in the real world where ";" in dirpaths is itself problematic.
11435 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11441 # Ok, now we have the path, separated by spaces, we can step through it
11442 # and add multilib dir if necessary...
11443 lt_tmp_lt_search_path_spec=
11444 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11445 # ...but if some path component already ends with the multilib dir we assume
11446 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11447 case "$lt_multi_os_dir; $lt_search_path_spec " in
11448 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11452 for lt_sys_path in $lt_search_path_spec; do
11453 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11455 elif test -n "$lt_multi_os_dir"; then
11456 test -d "$lt_sys_path" && \
11457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11460 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11461 BEGIN {RS = " "; FS = "/|\n";} {
11464 for (lt_i = NF; lt_i > 0; lt_i--) {
11465 if ($lt_i != "" && $lt_i != ".") {
11466 if ($lt_i == "..") {
11469 if (lt_count == 0) {
11470 lt_foo = "/" $lt_i lt_foo;
11477 if (lt_foo != "") { lt_freq[lt_foo]++; }
11478 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11480 # AWK program above erroneously prepends '/' to C:/dos/paths
11483 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11484 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11486 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11490 library_names_spec=
11491 libname_spec='lib$name'
11495 postuninstall_cmds=
11499 shlibpath_overrides_runpath=unknown
11501 dynamic_linker="$host_os ld.so"
11502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11503 need_lib_prefix=unknown
11504 hardcode_into_libs=no
11506 # when you set need_version to no, make sure it does not cause -set_version
11507 # flags to be left without arguments
11508 need_version=unknown
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11516 shlibpath_var=LIBPATH
11518 # AIX 3 has no versioning support, so we append a major version to the name.
11519 soname_spec='$libname$release$shared_ext$major'
11523 version_type=linux # correct to gnu/linux during the next big refactor
11526 hardcode_into_libs=yes
11527 if test ia64 = "$host_cpu"; then
11528 # AIX 5 supports IA64
11529 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11530 shlibpath_var=LD_LIBRARY_PATH
11532 # With GCC up to 2.95.x, collect2 would create an import file
11533 # for dependence libraries. The import file would start with
11534 # the line '#! .'. This would cause the generated library to
11535 # depend on '.', always an invalid library. This was fixed in
11536 # development snapshots of GCC prior to 3.0.
11538 aix4 | aix4.[01] | aix4.[01].*)
11539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11541 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11544 can_build_shared=no
11548 # Using Import Files as archive members, it is possible to support
11549 # filename-based versioning of shared library archives on AIX. While
11550 # this would work for both with and without runtime linking, it will
11551 # prevent static linking of such archives. So we do filename-based
11552 # shared library versioning with .so extension only, which is used
11553 # when both runtime linking and shared linking is enabled.
11554 # Unfortunately, runtime linking may impact performance, so we do
11555 # not want this to be the default eventually. Also, we use the
11556 # versioned .so libs for executables only if there is the -brtl
11557 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11558 # To allow for filename-based versioning support, we need to create
11559 # libNAME.so.V as an archive file, containing:
11560 # *) an Import File, referring to the versioned filename of the
11561 # archive as well as the shared archive member, telling the
11562 # bitwidth (32 or 64) of that shared object, and providing the
11563 # list of exported symbols of that shared object, eventually
11564 # decorated with the 'weak' keyword
11565 # *) the shared object with the F_LOADONLY flag set, to really avoid
11566 # it being seen by the linker.
11567 # At run time we better use the real file rather than another symlink,
11568 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11570 case $with_aix_soname,$aix_use_runtimelinking in
11571 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11572 # soname into executable. Probably we can add versioning support to
11573 # collect2, so additional links can be useful in future.
11574 aix,yes) # traditional libtool
11575 dynamic_linker='AIX unversionable lib.so'
11576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11577 # instead of lib<name>.a to let people know that these are not
11578 # typical AIX shared libraries.
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581 aix,no) # traditional AIX only
11582 dynamic_linker='AIX lib.a(lib.so.V)'
11583 # We preserve .a as extension for shared libraries through AIX4.2
11584 # and later when we are not doing run time linking.
11585 library_names_spec='$libname$release.a $libname.a'
11586 soname_spec='$libname$release$shared_ext$major'
11588 svr4,*) # full svr4 only
11589 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11590 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11591 # We do not specify a path in Import Files, so LIBPATH fires.
11592 shlibpath_overrides_runpath=yes
11594 *,yes) # both, prefer svr4
11595 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11596 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11597 # unpreferred sharedlib libNAME.a needs extra handling
11598 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"'
11599 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11600 # We do not specify a path in Import Files, so LIBPATH fires.
11601 shlibpath_overrides_runpath=yes
11603 *,no) # both, prefer aix
11604 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11605 library_names_spec='$libname$release.a $libname.a'
11606 soname_spec='$libname$release$shared_ext$major'
11607 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11608 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)'
11609 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"'
11612 shlibpath_var=LIBPATH
11619 # Since July 2007 AmigaOS4 officially supports .so libraries.
11620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11624 library_names_spec='$libname.ixlibrary $libname.a'
11625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11626 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'
11632 library_names_spec='$libname$shared_ext'
11633 dynamic_linker="$host_os ld.so"
11634 shlibpath_var=LIBRARY_PATH
11638 version_type=linux # correct to gnu/linux during the next big refactor
11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641 soname_spec='$libname$release$shared_ext$major'
11642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11646 # the default ld.so.conf also contains /usr/contrib/lib and
11647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11648 # libtool to hard-code these into programs
11651 cygwin* | mingw* | pw32* | cegcc*)
11652 version_type=windows
11657 case $GCC,$cc_basename in
11660 library_names_spec='$libname.dll.a'
11661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11662 postinstall_cmds='base_file=`basename \$file`~
11663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11664 dldir=$destdir/`dirname \$dlpath`~
11665 test -d \$dldir || mkdir -p \$dldir~
11666 $install_prog $dir/$dlname \$dldir/$dlname~
11667 chmod a+x \$dldir/$dlname~
11668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11672 dlpath=$dir/\$dldll~
11674 shlibpath_overrides_runpath=yes
11678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11679 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11684 # MinGW DLLs use traditional 'lib' prefix
11685 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11688 # pw32 DLLs use 'pw' prefix rather than 'lib'
11689 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11692 dynamic_linker='Win32 ld.exe'
11697 libname_spec='$name'
11698 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11699 library_names_spec='$libname.dll.lib'
11703 sys_lib_search_path_spec=
11706 for lt_path in $LIB
11709 # Let DOS variable expansion print the short 8.3 style file name.
11710 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11711 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11714 # Convert to MSYS style.
11715 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11718 # Convert to unix form, then to dos form, then back to unix form
11719 # but this time dos style (no spaces!) so that the unix form looks
11720 # like /cygdrive/c/PROGRA~1:/cygdr...
11721 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11722 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11723 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11726 sys_lib_search_path_spec=$LIB
11727 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11728 # It is most probably a Windows format PATH.
11729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11733 # FIXME: find the short name or the path components, as spaces are
11734 # common. (e.g. "Program Files" -> "PROGRA~1")
11738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11739 postinstall_cmds='base_file=`basename \$file`~
11740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11741 dldir=$destdir/`dirname \$dlpath`~
11742 test -d \$dldir || mkdir -p \$dldir~
11743 $install_prog $dir/$dlname \$dldir/$dlname'
11744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11745 dlpath=$dir/\$dldll~
11747 shlibpath_overrides_runpath=yes
11748 dynamic_linker='Win32 link.exe'
11752 # Assume MSVC wrapper
11753 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11754 dynamic_linker='Win32 ld.exe'
11757 # FIXME: first we should search . and the directory the executable is in
11761 darwin* | rhapsody*)
11762 dynamic_linker="$host_os dyld"
11763 version_type=darwin
11766 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11767 soname_spec='$libname$release$major$shared_ext'
11768 shlibpath_overrides_runpath=yes
11769 shlibpath_var=DYLD_LIBRARY_PATH
11770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11777 version_type=linux # correct to gnu/linux during the next big refactor
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 shlibpath_var=LD_LIBRARY_PATH
11785 freebsd* | dragonfly*)
11786 # DragonFly does not have aout. When/if they implement a new
11787 # versioning mechanism, adjust this.
11788 if test -x /usr/bin/objformat; then
11789 objformat=`/usr/bin/objformat`
11792 freebsd[23].*) objformat=aout ;;
11793 *) objformat=elf ;;
11796 version_type=freebsd-$objformat
11797 case $version_type in
11799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800 soname_spec='$libname$release$shared_ext$major'
11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11809 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=yes
11814 freebsd3.[01]* | freebsdelf3.[01]*)
11815 shlibpath_overrides_runpath=yes
11816 hardcode_into_libs=yes
11818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11820 shlibpath_overrides_runpath=no
11821 hardcode_into_libs=yes
11823 *) # from 4.6 on, and DragonFly
11824 shlibpath_overrides_runpath=yes
11825 hardcode_into_libs=yes
11831 version_type=linux # correct to gnu/linux during the next big refactor
11834 dynamic_linker="$host_os runtime_loader"
11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836 soname_spec='$libname$release$shared_ext$major'
11837 shlibpath_var=LIBRARY_PATH
11838 shlibpath_overrides_runpath=no
11839 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11840 hardcode_into_libs=yes
11843 hpux9* | hpux10* | hpux11*)
11844 # Give a soname corresponding to the major version so that dld.sl refuses to
11845 # link against other versions.
11852 hardcode_into_libs=yes
11853 dynamic_linker="$host_os dld.so"
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857 soname_spec='$libname$release$shared_ext$major'
11858 if test 32 = "$HPUX_IA64_MODE"; then
11859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11860 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11863 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11868 hardcode_into_libs=yes
11869 dynamic_linker="$host_os dld.sl"
11870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11873 soname_spec='$libname$release$shared_ext$major'
11874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11879 dynamic_linker="$host_os dld.sl"
11880 shlibpath_var=SHLIB_PATH
11881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11886 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11887 postinstall_cmds='chmod 555 $lib'
11888 # or fails outright, so override atomically:
11889 install_override_mode=555
11893 version_type=linux # correct to gnu/linux during the next big refactor
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897 soname_spec='$libname$release$shared_ext$major'
11898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 shlibpath_overrides_runpath=no
11901 hardcode_into_libs=yes
11904 irix5* | irix6* | nonstopux*)
11906 nonstopux*) version_type=nonstopux ;;
11908 if test yes = "$lt_cv_prog_gnu_ld"; then
11909 version_type=linux # correct to gnu/linux during the next big refactor
11916 soname_spec='$libname$release$shared_ext$major'
11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11919 irix5* | nonstopux*)
11920 libsuff= shlibsuff=
11923 case $LD in # libtool.m4 will add one of these switches to LD
11924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11925 libsuff= shlibsuff= libmagic=32-bit;;
11926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11927 libsuff=32 shlibsuff=N32 libmagic=N32;;
11928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11930 *) libsuff= shlibsuff= libmagic=never-match;;
11934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11935 shlibpath_overrides_runpath=no
11936 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11937 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11938 hardcode_into_libs=yes
11941 # No shared lib support for Linux oldld, aout, or coff.
11942 linux*oldld* | linux*aout* | linux*coff*)
11947 version_type=none # Android doesn't support versioned libraries.
11950 library_names_spec='$libname$release$shared_ext'
11951 soname_spec='$libname$release$shared_ext'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=yes
11956 # This implies no fast_install, which is unacceptable.
11957 # Some rework will be needed to allow for fast_install
11958 # before this can be enabled.
11959 hardcode_into_libs=yes
11961 dynamic_linker='Android linker'
11962 # Don't embed -rpath directories since the linker doesn't support them.
11963 hardcode_libdir_flag_spec='-L$libdir'
11966 # This must be glibc/ELF.
11967 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11968 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 shlibpath_overrides_runpath=no
11977 # Some binutils ld are patched to set DT_RUNPATH
11978 if test ${lt_cv_shlibpath_overrides_runpath+y}
11980 printf %s "(cached) " >&6
11982 lt_cv_shlibpath_overrides_runpath=no
11983 save_LDFLAGS=$LDFLAGS
11984 save_libdir=$libdir
11985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11998 if ac_fn_c_try_link "$LINENO"
12000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12002 lt_cv_shlibpath_overrides_runpath=yes
12005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LDFLAGS=$save_LDFLAGS
12008 libdir=$save_libdir
12012 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12014 # This implies no fast_install, which is unacceptable.
12015 # Some rework will be needed to allow for fast_install
12016 # before this can be enabled.
12017 hardcode_into_libs=yes
12019 # Ideally, we could use ldconfig to report *all* directores which are
12020 # searched for libraries, however this is still not possible. Aside from not
12021 # being certain /sbin/ldconfig is available, command
12022 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12023 # even though it is searched at run-time. Try to do the best guess by
12024 # appending ld.so.conf contents (and includes) to the search path.
12025 if test -f /etc/ld.so.conf; then
12026 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' ' '`
12027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12030 # We used to test for /lib/ld.so.1 and disable shared libraries on
12031 # powerpc, because MkLinux only supported shared libraries with the
12032 # GNU dynamic linker. Since this was broken with cross compilers,
12033 # most powerpc-linux boxes support dynamic linking these days and
12034 # people can always --disable-shared, the test was removed, and we
12035 # assume the GNU/Linux dynamic linker is in use.
12036 dynamic_linker='GNU/Linux ld.so'
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12044 soname_spec='${libname}${release}${shared_ext}$major'
12045 shlibpath_var=LD_LIBRARY_PATH
12046 shlibpath_overrides_runpath=no
12047 hardcode_into_libs=yes
12048 dynamic_linker='NetBSD ld.elf_so'
12055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12058 dynamic_linker='NetBSD (a.out) ld.so'
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061 soname_spec='$libname$release$shared_ext$major'
12062 dynamic_linker='NetBSD ld.elf_so'
12064 shlibpath_var=LD_LIBRARY_PATH
12065 shlibpath_overrides_runpath=yes
12066 hardcode_into_libs=yes
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 shlibpath_overrides_runpath=yes
12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081 soname_spec='$libname$release$shared_ext$major'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 shlibpath_overrides_runpath=no
12084 hardcode_into_libs=yes
12085 dynamic_linker='ldqnx.so'
12088 openbsd* | bitrig*)
12090 sys_lib_dlsearch_path_spec=/usr/lib
12092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 shlibpath_overrides_runpath=yes
12104 libname_spec='$name'
12105 version_type=windows
12109 # OS/2 can only load a DLL with a base name of 8 characters or less.
12110 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12111 v=$($ECHO $release$versuffix | tr -d .-);
12112 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12113 $ECHO $n$v`$shared_ext'
12114 library_names_spec='${libname}_dll.$libext'
12115 dynamic_linker='OS/2 ld.exe'
12116 shlibpath_var=BEGINLIBPATH
12117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119 postinstall_cmds='base_file=`basename \$file`~
12120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12121 dldir=$destdir/`dirname \$dlpath`~
12122 test -d \$dldir || mkdir -p \$dldir~
12123 $install_prog $dir/$dlname \$dldir/$dlname~
12124 chmod a+x \$dldir/$dlname~
12125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12129 dlpath=$dir/\$dldll~
12133 osf3* | osf4* | osf5*)
12137 soname_spec='$libname$release$shared_ext$major'
12138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12149 version_type=linux # correct to gnu/linux during the next big refactor
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=yes
12156 hardcode_into_libs=yes
12157 # ldd complains unless libraries are executable
12158 postinstall_cmds='chmod +x $lib'
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 shlibpath_overrides_runpath=yes
12167 if test yes = "$with_gnu_ld"; then
12174 version_type=linux # correct to gnu/linux during the next big refactor
12175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12176 soname_spec='$libname$release$shared_ext$major'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 case $host_vendor in
12180 shlibpath_overrides_runpath=no
12182 runpath_var=LD_RUN_PATH
12190 shlibpath_overrides_runpath=no
12191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12197 if test -d /usr/nec; then
12198 version_type=linux # correct to gnu/linux during the next big refactor
12199 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12200 soname_spec='$libname$shared_ext.$major'
12201 shlibpath_var=LD_LIBRARY_PATH
12205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12210 soname_spec='$libname$release$shared_ext$major'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=yes
12213 hardcode_into_libs=yes
12214 if test yes = "$with_gnu_ld"; then
12215 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12224 sys_lib_dlsearch_path_spec='/usr/lib'
12228 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12229 version_type=linux # correct to gnu/linux during the next big refactor
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=no
12235 hardcode_into_libs=yes
12239 version_type=linux # correct to gnu/linux during the next big refactor
12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241 soname_spec='$libname$release$shared_ext$major'
12242 shlibpath_var=LD_LIBRARY_PATH
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12250 printf "%s\n" "$dynamic_linker" >&6; }
12251 test no = "$dynamic_linker" && can_build_shared=no
12253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12254 if test yes = "$GCC"; then
12255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12258 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12259 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12262 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12263 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12266 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12267 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12269 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12270 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12272 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12273 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12372 printf %s "checking how to hardcode library paths into programs... " >&6; }
12374 if test -n "$hardcode_libdir_flag_spec" ||
12375 test -n "$runpath_var" ||
12376 test yes = "$hardcode_automatic"; then
12378 # We can hardcode non-existent directories.
12379 if test no != "$hardcode_direct" &&
12380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12381 # have to relink, otherwise we might link with an installed library
12382 # when we should be linking with a yet-to-be-installed one
12383 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12384 test no != "$hardcode_minus_L"; then
12385 # Linking always hardcodes the temporary library directory.
12386 hardcode_action=relink
12388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12389 hardcode_action=immediate
12392 # We cannot hardcode anything, or else we can only hardcode existing
12394 hardcode_action=unsupported
12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12397 printf "%s\n" "$hardcode_action" >&6; }
12399 if test relink = "$hardcode_action" ||
12400 test yes = "$inherit_rpath"; then
12401 # Fast installation is not supported
12402 enable_fast_install=no
12403 elif test yes = "$shlibpath_overrides_runpath" ||
12404 test no = "$enable_shared"; then
12405 # Fast installation is not necessary
12406 enable_fast_install=needless
12414 if test yes != "$enable_dlopen"; then
12415 enable_dlopen=unknown
12416 enable_dlopen_self=unknown
12417 enable_dlopen_self_static=unknown
12424 lt_cv_dlopen=load_add_on
12426 lt_cv_dlopen_self=yes
12429 mingw* | pw32* | cegcc*)
12430 lt_cv_dlopen=LoadLibrary
12435 lt_cv_dlopen=dlopen
12440 # if libdl is installed we need to link against it
12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12442 printf %s "checking for dlopen in -ldl... " >&6; }
12443 if test ${ac_cv_lib_dl_dlopen+y}
12445 printf %s "(cached) " >&6
12447 ac_check_lib_save_LIBS=$LIBS
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12452 /* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
12464 if ac_fn_c_try_link "$LINENO"
12466 ac_cv_lib_dl_dlopen=yes
12468 ac_cv_lib_dl_dlopen=no
12470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12471 conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12475 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12476 if test "x$ac_cv_lib_dl_dlopen" = xyes
12478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12483 lt_cv_dlopen_self=yes
12490 # Don't try to run any link tests for TPF. We know it's impossible
12491 # because TPF is a cross-compiler, and we know how we open DSOs.
12492 lt_cv_dlopen=dlopen
12494 lt_cv_dlopen_self=no
12498 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12499 if test "x$ac_cv_func_shl_load" = xyes
12501 lt_cv_dlopen=shl_load
12503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12504 printf %s "checking for shl_load in -ldld... " >&6; }
12505 if test ${ac_cv_lib_dld_shl_load+y}
12507 printf %s "(cached) " >&6
12509 ac_check_lib_save_LIBS=$LIBS
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12514 /* Override any GCC internal prototype to avoid an error.
12515 Use char because int might match the return type of a GCC
12516 builtin and then its argument prototype would still apply. */
12521 return shl_load ();
12526 if ac_fn_c_try_link "$LINENO"
12528 ac_cv_lib_dld_shl_load=yes
12530 ac_cv_lib_dld_shl_load=no
12532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12537 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12538 if test "x$ac_cv_lib_dld_shl_load" = xyes
12540 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12542 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12543 if test "x$ac_cv_func_dlopen" = xyes
12545 lt_cv_dlopen=dlopen
12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12548 printf %s "checking for dlopen in -ldl... " >&6; }
12549 if test ${ac_cv_lib_dl_dlopen+y}
12551 printf %s "(cached) " >&6
12553 ac_check_lib_save_LIBS=$LIBS
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12570 if ac_fn_c_try_link "$LINENO"
12572 ac_cv_lib_dl_dlopen=yes
12574 ac_cv_lib_dl_dlopen=no
12576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12577 conftest$ac_exeext conftest.$ac_ext
12578 LIBS=$ac_check_lib_save_LIBS
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12581 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12582 if test "x$ac_cv_lib_dl_dlopen" = xyes
12584 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12587 printf %s "checking for dlopen in -lsvld... " >&6; }
12588 if test ${ac_cv_lib_svld_dlopen+y}
12590 printf %s "(cached) " >&6
12592 ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-lsvld $LIBS"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12609 if ac_fn_c_try_link "$LINENO"
12611 ac_cv_lib_svld_dlopen=yes
12613 ac_cv_lib_svld_dlopen=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12616 conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12620 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12621 if test "x$ac_cv_lib_svld_dlopen" = xyes
12623 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12626 printf %s "checking for dld_link in -ldld... " >&6; }
12627 if test ${ac_cv_lib_dld_dld_link+y}
12629 printf %s "(cached) " >&6
12631 ac_check_lib_save_LIBS=$LIBS
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12643 return dld_link ();
12648 if ac_fn_c_try_link "$LINENO"
12650 ac_cv_lib_dld_dld_link=yes
12652 ac_cv_lib_dld_dld_link=no
12654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12655 conftest$ac_exeext conftest.$ac_ext
12656 LIBS=$ac_check_lib_save_LIBS
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12659 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12660 if test "x$ac_cv_lib_dld_dld_link" = xyes
12662 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12683 if test no = "$lt_cv_dlopen"; then
12689 case $lt_cv_dlopen in
12691 save_CPPFLAGS=$CPPFLAGS
12692 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12694 save_LDFLAGS=$LDFLAGS
12695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12698 LIBS="$lt_cv_dlopen_libs $LIBS"
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12701 printf %s "checking whether a program can dlopen itself... " >&6; }
12702 if test ${lt_cv_dlopen_self+y}
12704 printf %s "(cached) " >&6
12706 if test yes = "$cross_compiling"; then :
12707 lt_cv_dlopen_self=cross
12709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12710 lt_status=$lt_dlunknown
12711 cat > conftest.$ac_ext <<_LT_EOF
12712 #line $LINENO "configure"
12713 #include "confdefs.h"
12722 # define LT_DLGLOBAL RTLD_GLOBAL
12725 # define LT_DLGLOBAL DL_GLOBAL
12727 # define LT_DLGLOBAL 0
12731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12732 find out it does not work in some platform. */
12733 #ifndef LT_DLLAZY_OR_NOW
12735 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12738 # define LT_DLLAZY_OR_NOW DL_LAZY
12741 # define LT_DLLAZY_OR_NOW RTLD_NOW
12744 # define LT_DLLAZY_OR_NOW DL_NOW
12746 # define LT_DLLAZY_OR_NOW 0
12753 /* When -fvisibility=hidden is used, assume the code has been annotated
12754 correspondingly for the symbols needed. */
12755 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12756 int fnord () __attribute__((visibility("default")));
12759 int fnord () { return 42; }
12762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12763 int status = $lt_dlunknown;
12767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12770 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12771 else puts (dlerror ());
12773 /* dlclose (self); */
12781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12782 (eval $ac_link) 2>&5
12784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12786 (./conftest; exit; ) >&5 2>/dev/null
12788 case x$lt_status in
12789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12794 # compilation failed
12795 lt_cv_dlopen_self=no
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12803 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12805 if test yes = "$lt_cv_dlopen_self"; then
12806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12808 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12809 if test ${lt_cv_dlopen_self_static+y}
12811 printf %s "(cached) " >&6
12813 if test yes = "$cross_compiling"; then :
12814 lt_cv_dlopen_self_static=cross
12816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12817 lt_status=$lt_dlunknown
12818 cat > conftest.$ac_ext <<_LT_EOF
12819 #line $LINENO "configure"
12820 #include "confdefs.h"
12829 # define LT_DLGLOBAL RTLD_GLOBAL
12832 # define LT_DLGLOBAL DL_GLOBAL
12834 # define LT_DLGLOBAL 0
12838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12839 find out it does not work in some platform. */
12840 #ifndef LT_DLLAZY_OR_NOW
12842 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12845 # define LT_DLLAZY_OR_NOW DL_LAZY
12848 # define LT_DLLAZY_OR_NOW RTLD_NOW
12851 # define LT_DLLAZY_OR_NOW DL_NOW
12853 # define LT_DLLAZY_OR_NOW 0
12860 /* When -fvisibility=hidden is used, assume the code has been annotated
12861 correspondingly for the symbols needed. */
12862 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12863 int fnord () __attribute__((visibility("default")));
12866 int fnord () { return 42; }
12869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12870 int status = $lt_dlunknown;
12874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12877 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12878 else puts (dlerror ());
12880 /* dlclose (self); */
12888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12889 (eval $ac_link) 2>&5
12891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12892 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12893 (./conftest; exit; ) >&5 2>/dev/null
12895 case x$lt_status in
12896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12898 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12901 # compilation failed
12902 lt_cv_dlopen_self_static=no
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12910 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12913 CPPFLAGS=$save_CPPFLAGS
12914 LDFLAGS=$save_LDFLAGS
12919 case $lt_cv_dlopen_self in
12920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12921 *) enable_dlopen_self=unknown ;;
12924 case $lt_cv_dlopen_self_static in
12925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12926 *) enable_dlopen_self_static=unknown ;;
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12949 printf %s "checking whether stripping libraries is possible... " >&6; }
12950 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12951 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12952 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12954 printf "%s\n" "yes" >&6; }
12956 # FIXME - insert some real tests, host_os isn't really good enough
12959 if test -n "$STRIP"; then
12960 striplib="$STRIP -x"
12961 old_striplib="$STRIP -S"
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12963 printf "%s\n" "yes" >&6; }
12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 printf "%s\n" "no" >&6; }
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 printf "%s\n" "no" >&6; }
12987 # Report what library types will actually be built
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12989 printf %s "checking if libtool supports shared libraries... " >&6; }
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12991 printf "%s\n" "$can_build_shared" >&6; }
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12994 printf %s "checking whether to build shared libraries... " >&6; }
12995 test no = "$can_build_shared" && enable_shared=no
12997 # On AIX, shared libraries and static libraries use the same namespace, and
12998 # are all built from PIC.
13001 test yes = "$enable_shared" && enable_static=no
13002 if test -n "$RANLIB"; then
13003 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13004 postinstall_cmds='$RANLIB $lib'
13009 if test ia64 != "$host_cpu"; then
13010 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13011 yes,aix,yes) ;; # shared object as lib.so file only
13012 yes,svr4,*) ;; # shared object as lib.so archive member only
13013 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13019 printf "%s\n" "$enable_shared" >&6; }
13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13022 printf %s "checking whether to build static libraries... " >&6; }
13023 # Make sure either enable_shared or enable_static is yes.
13024 test yes = "$enable_shared" || enable_static=yes
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13026 printf "%s\n" "$enable_static" >&6; }
13033 ac_cpp='$CPP $CPPFLAGS'
13034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13054 ac_config_commands="$ac_config_commands libtool"
13059 # Only expand once:
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13066 printf %s "checking target system type... " >&6; }
13067 if test ${ac_cv_target+y}
13069 printf %s "(cached) " >&6
13071 if test "x$target_alias" = x; then
13072 ac_cv_target=$ac_cv_host
13074 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
13075 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13080 printf "%s\n" "$ac_cv_target" >&6; }
13081 case $ac_cv_target in
13083 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13085 target=$ac_cv_target
13086 ac_save_IFS=$IFS; IFS='-'
13087 set x $ac_cv_target
13092 # Remember, the first character of IFS is used to create $*,
13093 # except with old shells:
13096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13099 # The aliases save the names the user supplied, while $host etc.
13100 # will get canonicalized.
13101 test -n "$target_alias" &&
13102 test "$program_prefix$program_suffix$program_transform_name" = \
13104 program_prefix=${target_alias}-
13106 am__api_version='1.16'
13109 # Find a good install program. We prefer a C program (faster),
13110 # so one script is as good as another. But avoid the broken or
13111 # incompatible versions:
13112 # SysV /etc/install, /usr/sbin/install
13113 # SunOS /usr/etc/install
13114 # IRIX /sbin/install
13116 # AmigaOS /C/install, which installs bootblocks on floppy discs
13117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13120 # OS/2's system install, which has a completely different semantic
13121 # ./install, which can be erroneously created by make from ./install.sh.
13122 # Reject install programs that cannot install multiple files.
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13124 printf %s "checking for a BSD-compatible install... " >&6; }
13125 if test -z "$INSTALL"; then
13126 if test ${ac_cv_path_install+y}
13128 printf %s "(cached) " >&6
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13134 case $as_dir in #(((
13137 *) as_dir=$as_dir/ ;;
13139 # Account for fact that we put trailing slashes in our PATH walk.
13140 case $as_dir in #((
13142 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13143 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13146 # OSF1 and SCO ODT 3.0 have their own names for install.
13147 # Don't use installbsd from OSF since it installs stuff as root
13149 for ac_prog in ginstall scoinst install; do
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
13152 if test $ac_prog = install &&
13153 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13154 # AIX install. It has an incompatible calling convention.
13156 elif test $ac_prog = install &&
13157 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13158 # program-specific install script used by HP pwplus--don't use.
13161 rm -rf conftest.one conftest.two conftest.dir
13162 echo one > conftest.one
13163 echo two > conftest.two
13165 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
13166 test -s conftest.one && test -s conftest.two &&
13167 test -s conftest.dir/conftest.one &&
13168 test -s conftest.dir/conftest.two
13170 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
13183 rm -rf conftest.one conftest.two conftest.dir
13186 if test ${ac_cv_path_install+y}; then
13187 INSTALL=$ac_cv_path_install
13189 # As a last resort, use the slow shell script. Don't cache a
13190 # value for INSTALL within a source directory, because that will
13191 # break other packages using the cache if that directory is
13192 # removed, or if the value is a relative name.
13193 INSTALL=$ac_install_sh
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13197 printf "%s\n" "$INSTALL" >&6; }
13199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13200 # It thinks the first close brace ends the variable substitution.
13201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13208 printf %s "checking whether build environment is sane... " >&6; }
13209 # Reject unsafe characters in $srcdir or the absolute working directory
13210 # name. Accept space and tab only in the latter.
13214 *[\\\"\#\$\&\'\`$am_lf]*)
13215 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13218 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13219 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13222 # Do 'set' in a subshell so we don't clobber the current shell's
13223 # arguments. Must try -L first in case configure is actually a
13224 # symlink; some systems play weird games with the mod time of symlinks
13225 # (eg FreeBSD returns the mod time of the symlink's containing
13229 for am_try in 1 2; do
13230 echo "timestamp, slept: $am_has_slept" > conftest.file
13231 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13232 if test "$*" = "X"; then
13234 set X `ls -t "$srcdir/configure" conftest.file`
13236 if test "$*" != "X $srcdir/configure conftest.file" \
13237 && test "$*" != "X conftest.file $srcdir/configure"; then
13239 # If neither matched, then we have a broken ls. This can happen
13240 # if, for instance, CONFIG_SHELL is bash and it inherits a
13241 # broken ls alias from the environment. This has actually
13242 # happened. Such a system could not be considered "sane".
13243 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13244 alias in your environment" "$LINENO" 5
13246 if test "$2" = conftest.file || test $am_try -eq 2; then
13253 test "$2" = conftest.file
13259 as_fn_error $? "newly created file is older than distributed files!
13260 Check your system clock" "$LINENO" 5
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13263 printf "%s\n" "yes" >&6; }
13264 # If we didn't sleep, we still need to ensure time stamps of config.status and
13265 # generated files are strictly newer.
13267 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13272 rm -f conftest.file
13274 test "$program_prefix" != NONE &&
13275 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13276 # Use a double $ so make ignores it.
13277 test "$program_suffix" != NONE &&
13278 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13279 # Double any \ or $.
13280 # By default was `s,x,x', remove it if useless.
13281 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13282 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
13285 if test x"${MISSING+set}" != xset; then
13286 MISSING="\${SHELL} '$am_aux_dir/missing'"
13288 # Use eval to expand $SHELL
13289 if eval "$MISSING --is-lightweight"; then
13290 am_missing_run="$MISSING "
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13294 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13297 if test x"${install_sh+set}" != xset; then
13298 case $am_aux_dir in
13300 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13302 install_sh="\${SHELL} $am_aux_dir/install-sh"
13306 # Installed binaries are usually stripped using 'strip' when the user
13307 # run "make install-strip". However 'strip' might not be the right
13308 # tool to use in cross-compilation environments, therefore Automake
13309 # will honor the 'STRIP' environment variable to overrule this program.
13310 if test "$cross_compiling" != no; then
13311 if test -n "$ac_tool_prefix"; then
13312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13313 set dummy ${ac_tool_prefix}strip; ac_word=$2
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315 printf %s "checking for $ac_word... " >&6; }
13316 if test ${ac_cv_prog_STRIP+y}
13318 printf %s "(cached) " >&6
13320 if test -n "$STRIP"; then
13321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13327 case $as_dir in #(((
13330 *) as_dir=$as_dir/ ;;
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13344 STRIP=$ac_cv_prog_STRIP
13345 if test -n "$STRIP"; then
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13347 printf "%s\n" "$STRIP" >&6; }
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 printf "%s\n" "no" >&6; }
13355 if test -z "$ac_cv_prog_STRIP"; then
13357 # Extract the first word of "strip", so it can be a program name with args.
13358 set dummy strip; ac_word=$2
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 printf %s "checking for $ac_word... " >&6; }
13361 if test ${ac_cv_prog_ac_ct_STRIP+y}
13363 printf %s "(cached) " >&6
13365 if test -n "$ac_ct_STRIP"; then
13366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13372 case $as_dir in #(((
13375 *) as_dir=$as_dir/ ;;
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13379 ac_cv_prog_ac_ct_STRIP="strip"
13380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13390 if test -n "$ac_ct_STRIP"; then
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13392 printf "%s\n" "$ac_ct_STRIP" >&6; }
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 printf "%s\n" "no" >&6; }
13398 if test "x$ac_ct_STRIP" = x; then
13401 case $cross_compiling:$ac_tool_warned in
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13405 ac_tool_warned=yes ;;
13410 STRIP="$ac_cv_prog_STRIP"
13414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13418 printf %s "checking for a race-free mkdir -p... " >&6; }
13419 if test -z "$MKDIR_P"; then
13420 if test ${ac_cv_path_mkdir+y}
13422 printf %s "(cached) " >&6
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13428 case $as_dir in #(((
13431 *) as_dir=$as_dir/ ;;
13433 for ac_prog in mkdir gmkdir; do
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13436 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13437 'mkdir ('*'coreutils) '* | \
13439 'mkdir (fileutils) '4.1*)
13440 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13450 test -d ./--version && rmdir ./--version
13451 if test ${ac_cv_path_mkdir+y}; then
13452 MKDIR_P="$ac_cv_path_mkdir -p"
13454 # As a last resort, use the slow shell script. Don't cache a
13455 # value for MKDIR_P within a source directory, because that will
13456 # break other packages using the cache if that directory is
13457 # removed, or if the value is a relative name.
13458 MKDIR_P="$ac_install_sh -d"
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13462 printf "%s\n" "$MKDIR_P" >&6; }
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13465 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13467 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13468 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13470 printf %s "(cached) " >&6
13472 cat >conftest.make <<\_ACEOF
13475 @echo '@@@%%%=$(MAKE)=@@@%%%'
13477 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13479 *@@@%%%=?*=@@@%%%*)
13480 eval ac_cv_prog_make_${ac_make}_set=yes;;
13482 eval ac_cv_prog_make_${ac_make}_set=no;;
13484 rm -f conftest.make
13486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 printf "%s\n" "yes" >&6; }
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 printf "%s\n" "no" >&6; }
13493 SET_MAKE="MAKE=${MAKE-make}"
13496 rm -rf .tst 2>/dev/null
13497 mkdir .tst 2>/dev/null
13498 if test -d .tst; then
13503 rmdir .tst 2>/dev/null
13505 DEPDIR="${am__leading_dot}deps"
13507 ac_config_commands="$ac_config_commands depfiles"
13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
13510 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
13511 cat > confinc.mk << 'END'
13513 @echo this is the am__doit target >confinc.out
13518 # BSD make does it like this.
13519 echo '.include "confinc.mk" # ignored' > confmf.BSD
13520 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
13521 echo 'include confinc.mk # ignored' > confmf.GNU
13523 for s in GNU BSD; do
13524 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
13525 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }
13529 case $?:`cat confinc.out 2>/dev/null` in #(
13530 '0:this is the am__doit target') :
13533 am__include='.include' am__quote='"' ;; #(
13535 am__include='include' am__quote='' ;;
13540 if test "$am__include" != "#"; then
13541 _am_result="yes ($s style)"
13545 rm -f confinc.* confmf.*
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13547 printf "%s\n" "${_am_result}" >&6; }
13549 # Check whether --enable-dependency-tracking was given.
13550 if test ${enable_dependency_tracking+y}
13552 enableval=$enable_dependency_tracking;
13555 if test "x$enable_dependency_tracking" != xno; then
13556 am_depcomp="$ac_aux_dir/depcomp"
13560 if test "x$enable_dependency_tracking" != xno; then
13569 # Check whether --enable-silent-rules was given.
13570 if test ${enable_silent_rules+y}
13572 enableval=$enable_silent_rules;
13575 case $enable_silent_rules in # (((
13576 yes) AM_DEFAULT_VERBOSITY=0;;
13577 no) AM_DEFAULT_VERBOSITY=1;;
13578 *) AM_DEFAULT_VERBOSITY=1;;
13580 am_make=${MAKE-make}
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13582 printf %s "checking whether $am_make supports nested variables... " >&6; }
13583 if test ${am_cv_make_support_nested_variables+y}
13585 printf %s "(cached) " >&6
13587 if printf "%s\n" 'TRUE=$(BAR$(V))
13593 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13594 am_cv_make_support_nested_variables=yes
13596 am_cv_make_support_nested_variables=no
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13600 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13601 if test $am_cv_make_support_nested_variables = yes; then
13603 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13605 AM_V=$AM_DEFAULT_VERBOSITY
13606 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13610 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13611 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13612 # is not polluted with repeated "-I."
13613 am__isrc=' -I$(srcdir)'
13614 # test to see if srcdir already configured
13615 if test -f $srcdir/config.status; then
13616 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13620 # test whether we have cygpath
13621 if test -z "$CYGPATH_W"; then
13622 if (cygpath --version) >/dev/null 2>/dev/null; then
13623 CYGPATH_W='cygpath -w'
13630 # Define the identity of the package.
13635 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
13638 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
13640 # Some tools Automake needs.
13642 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13645 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13648 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13651 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13654 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13656 # For better backward compatibility. To be removed once Automake 1.9.x
13657 # dies out for good. For more background, see:
13658 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13659 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13660 mkdir_p='$(MKDIR_P)'
13662 # We need awk for the "check" target (and possibly the TAP driver). The
13663 # system "awk" is bad on some platforms.
13664 # Always define AMTAR for backward compatibility. Yes, it's still used
13665 # in the wild :-( We should find a proper way to deprecate it ...
13666 AMTAR='$${TAR-tar}'
13669 # We'll loop over all known methods to create a tar archive until one works.
13670 _am_tools='gnutar pax cpio none'
13672 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13678 depcc="$CC" am_compiler_list=
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13681 printf %s "checking dependency style of $depcc... " >&6; }
13682 if test ${am_cv_CC_dependencies_compiler_type+y}
13684 printf %s "(cached) " >&6
13686 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13687 # We make a subdir and do the tests there. Otherwise we can end up
13688 # making bogus files that we don't know about and never remove. For
13689 # instance it was reported that on HP-UX the gcc test will end up
13690 # making a dummy file named 'D' -- because '-MD' means "put the output
13692 rm -rf conftest.dir
13694 # Copy depcomp to subdir because otherwise we won't find it if we're
13695 # using a relative directory.
13696 cp "$am_depcomp" conftest.dir
13698 # We will build objects and dependencies in a subdirectory because
13699 # it helps to detect inapplicable dependency modes. For instance
13700 # both Tru64's cc and ICC support -MD to output dependencies as a
13701 # side effect of compilation, but ICC will put the dependencies in
13702 # the current directory while Tru64 will put them in the object
13706 am_cv_CC_dependencies_compiler_type=none
13707 if test "$am_compiler_list" = ""; then
13708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13710 am__universal=false
13711 case " $depcc " in #(
13712 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13715 for depmode in $am_compiler_list; do
13716 # Setup a source with many dependencies, because some compilers
13717 # like to wrap large dependency lists on column 80 (with \), and
13718 # we should not choose a depcomp mode which is confused by this.
13720 # We need to recreate these files for each test, as the compiler may
13721 # overwrite some of them when testing with obscure command lines.
13722 # This happens at least with the AIX C compiler.
13724 for i in 1 2 3 4 5 6; do
13725 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13726 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13727 # Solaris 10 /bin/sh.
13728 echo '/* dummy */' > sub/conftst$i.h
13730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13732 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13733 # mode. It turns out that the SunPro C++ compiler does not properly
13734 # handle '-M -o', and we need to detect this. Also, some Intel
13735 # versions had trouble with output in subdirs.
13736 am__obj=sub/conftest.${OBJEXT-o}
13737 am__minus_obj="-o $am__obj"
13740 # This depmode causes a compiler race in universal mode.
13741 test "$am__universal" = false || continue
13744 # After this tag, mechanisms are not by side-effect, so they'll
13745 # only be used when explicitly requested.
13746 if test "x$enable_dependency_tracking" = xyes; then
13752 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13753 # This compiler won't grok '-c -o', but also, the minuso test has
13754 # not run yet. These depmodes are late enough in the game, and
13755 # so weak that their functioning should not be impacted.
13756 am__obj=conftest.${OBJEXT-o}
13761 if depmode=$depmode \
13762 source=sub/conftest.c object=$am__obj \
13763 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13764 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13765 >/dev/null 2>conftest.err &&
13766 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13768 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13770 # icc doesn't choke on unknown options, it will just issue warnings
13771 # or remarks (even with -Werror). So we grep stderr for any message
13772 # that says an option was ignored or not supported.
13773 # When given -MP, icc 7.0 and 7.1 complain thusly:
13774 # icc: Command line warning: ignoring option '-M'; no argument required
13775 # The diagnosis changed in icc 8.0:
13776 # icc: Command line remark: option '-MP' not supported
13777 if (grep 'ignoring option' conftest.err ||
13778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13779 am_cv_CC_dependencies_compiler_type=$depmode
13786 rm -rf conftest.dir
13788 am_cv_CC_dependencies_compiler_type=none
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13793 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13797 test "x$enable_dependency_tracking" != xno \
13798 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13799 am__fastdepCC_TRUE=
13800 am__fastdepCC_FALSE='#'
13802 am__fastdepCC_TRUE='#'
13803 am__fastdepCC_FALSE=
13807 # Variables for tags utilities; see am/tags.am
13808 if test -z "$CTAGS"; then
13812 if test -z "$ETAGS"; then
13816 if test -z "$CSCOPE"; then
13822 # POSIX will say in a future version that running "rm -f" with no argument
13823 # is OK; and we want to be able to make that assumption in our Makefile
13824 # recipes. So use an aggressive probe to check that the usage we want is
13825 # actually supported "in the wild" to an acceptable degree.
13826 # See automake bug#10828.
13827 # To make any issue more visible, cause the running configure to be aborted
13828 # by default if the 'rm' program in use doesn't match our expectations; the
13829 # user can still override this though.
13830 if rm -f && rm -fr && rm -rf; then : OK; else
13834 Your 'rm' program seems unable to run without file operands specified
13835 on the command line, even when the '-f' option is present. This is contrary
13836 to the behaviour of most rm programs out there, and not conforming with
13837 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13839 Please tell bug-automake@gnu.org about your system, including the value
13840 of your $PATH and any error possibly output before this message. This
13841 can help us improve future automake versions.
13844 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13845 echo 'Configuration will proceed anyway, since you have set the' >&2
13846 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13850 Aborting the configuration process, to ensure you take notice of the issue.
13852 You can download and install GNU coreutils to get an 'rm' implementation
13853 that behaves properly: <https://www.gnu.org/software/coreutils/>.
13855 If you want to complete the configuration process using your problematic
13856 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13857 to "yes", and re-run configure.
13860 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13865 # Check whether --enable-silent-rules was given.
13866 if test ${enable_silent_rules+y}
13868 enableval=$enable_silent_rules;
13871 case $enable_silent_rules in # (((
13872 yes) AM_DEFAULT_VERBOSITY=0;;
13873 no) AM_DEFAULT_VERBOSITY=1;;
13874 *) AM_DEFAULT_VERBOSITY=0;;
13876 am_make=${MAKE-make}
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13878 printf %s "checking whether $am_make supports nested variables... " >&6; }
13879 if test ${am_cv_make_support_nested_variables+y}
13881 printf %s "(cached) " >&6
13883 if printf "%s\n" 'TRUE=$(BAR$(V))
13889 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13890 am_cv_make_support_nested_variables=yes
13892 am_cv_make_support_nested_variables=no
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13896 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13897 if test $am_cv_make_support_nested_variables = yes; then
13899 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13901 AM_V=$AM_DEFAULT_VERBOSITY
13902 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13914 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
13915 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
13916 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
13918 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
13922 # Check whether --enable-werror was given.
13923 if test ${enable_werror+y}
13925 enableval=$enable_werror; werror=$enableval
13931 # Check whether --enable-debug was given.
13932 if test ${enable_debug+y}
13934 enableval=$enable_debug; debug=$enableval
13940 # Check whether --enable-threads was given.
13941 if test ${enable_threads+y}
13943 enableval=$enable_threads; threads=$enableval
13949 # Check whether --enable-app was given.
13950 if test ${enable_app+y}
13952 enableval=$enable_app; request_app=$enableval
13958 # Check whether --enable-hpack-tools was given.
13959 if test ${enable_hpack_tools+y}
13961 enableval=$enable_hpack_tools; request_hpack_tools=$enableval
13963 request_hpack_tools=check
13967 # Check whether --enable-asio-lib was given.
13968 if test ${enable_asio_lib+y}
13970 enableval=$enable_asio_lib; request_asio_lib=$enableval
13972 request_asio_lib=no
13976 # Check whether --enable-examples was given.
13977 if test ${enable_examples+y}
13979 enableval=$enable_examples; request_examples=$enableval
13981 request_examples=check
13985 # Check whether --enable-python-bindings was given.
13986 if test ${enable_python_bindings+y}
13988 enableval=$enable_python_bindings; request_python_bindings=$enableval
13990 request_python_bindings=check
13994 # Check whether --enable-failmalloc was given.
13995 if test ${enable_failmalloc+y}
13997 enableval=$enable_failmalloc; request_failmalloc=$enableval
13999 request_failmalloc=yes
14003 # Check whether --enable-lib-only was given.
14004 if test ${enable_lib_only+y}
14006 enableval=$enable_lib_only; request_lib_only=$enableval
14008 request_lib_only=no
14012 # Check whether --enable-http3 was given.
14013 if test ${enable_http3+y}
14015 enableval=$enable_http3; request_http3=$enableval
14022 # Check whether --with-libxml2 was given.
14023 if test ${with_libxml2+y}
14025 withval=$with_libxml2; request_libxml2=$withval
14027 request_libxml2=check
14032 # Check whether --with-jansson was given.
14033 if test ${with_jansson+y}
14035 withval=$with_jansson; request_jansson=$withval
14037 request_jansson=check
14042 # Check whether --with-zlib was given.
14043 if test ${with_zlib+y}
14045 withval=$with_zlib; request_zlib=$withval
14052 # Check whether --with-libevent-openssl was given.
14053 if test ${with_libevent_openssl+y}
14055 withval=$with_libevent_openssl; request_libevent_openssl=$withval
14057 request_libevent_openssl=check
14062 # Check whether --with-libcares was given.
14063 if test ${with_libcares+y}
14065 withval=$with_libcares; request_libcares=$withval
14067 request_libcares=check
14072 # Check whether --with-openssl was given.
14073 if test ${with_openssl+y}
14075 withval=$with_openssl; request_openssl=$withval
14077 request_openssl=check
14082 # Check whether --with-libev was given.
14083 if test ${with_libev+y}
14085 withval=$with_libev; request_libev=$withval
14087 request_libev=check
14092 # Check whether --with-cunit was given.
14093 if test ${with_cunit+y}
14095 withval=$with_cunit; request_cunit=$withval
14097 request_cunit=check
14102 # Check whether --with-jemalloc was given.
14103 if test ${with_jemalloc+y}
14105 withval=$with_jemalloc; request_jemalloc=$withval
14107 request_jemalloc=check
14112 # Check whether --with-systemd was given.
14113 if test ${with_systemd+y}
14115 withval=$with_systemd; request_systemd=$withval
14117 request_systemd=check
14122 # Check whether --with-mruby was given.
14123 if test ${with_mruby+y}
14125 withval=$with_mruby; request_mruby=$withval
14132 # Check whether --with-neverbleed was given.
14133 if test ${with_neverbleed+y}
14135 withval=$with_neverbleed; request_neverbleed=$withval
14137 request_neverbleed=no
14142 # Check whether --with-cython was given.
14143 if test ${with_cython+y}
14145 withval=$with_cython; cython_path=$withval
14150 # Check whether --with-libngtcp2 was given.
14151 if test ${with_libngtcp2+y}
14153 withval=$with_libngtcp2; request_libngtcp2=$withval
14155 request_libngtcp2=check
14160 # Check whether --with-libnghttp3 was given.
14161 if test ${with_libnghttp3+y}
14163 withval=$with_libnghttp3; request_libnghttp3=$withval
14165 request_libnghttp3=check
14170 # Check whether --with-libbpf was given.
14171 if test ${with_libbpf+y}
14173 withval=$with_libbpf; request_libbpf=$withval
14192 ac_cpp='$CPP $CPPFLAGS'
14193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14196 if test -n "$ac_tool_prefix"; then
14197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 printf %s "checking for $ac_word... " >&6; }
14201 if test ${ac_cv_prog_CC+y}
14203 printf %s "(cached) " >&6
14205 if test -n "$CC"; then
14206 ac_cv_prog_CC="$CC" # Let the user override the test.
14208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209 for as_dir in $PATH
14212 case $as_dir in #(((
14215 *) as_dir=$as_dir/ ;;
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14230 if test -n "$CC"; then
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14232 printf "%s\n" "$CC" >&6; }
14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 printf "%s\n" "no" >&6; }
14240 if test -z "$ac_cv_prog_CC"; then
14242 # Extract the first word of "gcc", so it can be a program name with args.
14243 set dummy gcc; ac_word=$2
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 printf %s "checking for $ac_word... " >&6; }
14246 if test ${ac_cv_prog_ac_ct_CC+y}
14248 printf %s "(cached) " >&6
14250 if test -n "$ac_ct_CC"; then
14251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14257 case $as_dir in #(((
14260 *) as_dir=$as_dir/ ;;
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_ac_ct_CC="gcc"
14265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14275 if test -n "$ac_ct_CC"; then
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14277 printf "%s\n" "$ac_ct_CC" >&6; }
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 printf "%s\n" "no" >&6; }
14283 if test "x$ac_ct_CC" = x; then
14286 case $cross_compiling:$ac_tool_warned in
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290 ac_tool_warned=yes ;;
14295 CC="$ac_cv_prog_CC"
14298 if test -z "$CC"; then
14299 if test -n "$ac_tool_prefix"; then
14300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14301 set dummy ${ac_tool_prefix}cc; ac_word=$2
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14303 printf %s "checking for $ac_word... " >&6; }
14304 if test ${ac_cv_prog_CC+y}
14306 printf %s "(cached) " >&6
14308 if test -n "$CC"; then
14309 ac_cv_prog_CC="$CC" # Let the user override the test.
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14315 case $as_dir in #(((
14318 *) as_dir=$as_dir/ ;;
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14322 ac_cv_prog_CC="${ac_tool_prefix}cc"
14323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14333 if test -n "$CC"; then
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14335 printf "%s\n" "$CC" >&6; }
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 printf "%s\n" "no" >&6; }
14344 if test -z "$CC"; then
14345 # Extract the first word of "cc", so it can be a program name with args.
14346 set dummy cc; ac_word=$2
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348 printf %s "checking for $ac_word... " >&6; }
14349 if test ${ac_cv_prog_CC+y}
14351 printf %s "(cached) " >&6
14353 if test -n "$CC"; then
14354 ac_cv_prog_CC="$CC" # Let the user override the test.
14356 ac_prog_rejected=no
14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14361 case $as_dir in #(((
14364 *) as_dir=$as_dir/ ;;
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14368 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14369 ac_prog_rejected=yes
14373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14380 if test $ac_prog_rejected = yes; then
14381 # We found a bogon in the path, so make sure we never use it.
14382 set dummy $ac_cv_prog_CC
14384 if test $# != 0; then
14385 # We chose a different compiler from the bogus one.
14386 # However, it has the same basename, so the bogon will be chosen
14387 # first if we set CC to just the basename; use the full file name.
14389 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14395 if test -n "$CC"; then
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14397 printf "%s\n" "$CC" >&6; }
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 printf "%s\n" "no" >&6; }
14405 if test -z "$CC"; then
14406 if test -n "$ac_tool_prefix"; then
14407 for ac_prog in cl.exe
14409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14412 printf %s "checking for $ac_word... " >&6; }
14413 if test ${ac_cv_prog_CC+y}
14415 printf %s "(cached) " >&6
14417 if test -n "$CC"; then
14418 ac_cv_prog_CC="$CC" # Let the user override the test.
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14424 case $as_dir in #(((
14427 *) as_dir=$as_dir/ ;;
14429 for ac_exec_ext in '' $ac_executable_extensions; do
14430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14442 if test -n "$CC"; then
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14444 printf "%s\n" "$CC" >&6; }
14446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447 printf "%s\n" "no" >&6; }
14451 test -n "$CC" && break
14454 if test -z "$CC"; then
14456 for ac_prog in cl.exe
14458 # Extract the first word of "$ac_prog", so it can be a program name with args.
14459 set dummy $ac_prog; ac_word=$2
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14461 printf %s "checking for $ac_word... " >&6; }
14462 if test ${ac_cv_prog_ac_ct_CC+y}
14464 printf %s "(cached) " >&6
14466 if test -n "$ac_ct_CC"; then
14467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14473 case $as_dir in #(((
14476 *) as_dir=$as_dir/ ;;
14478 for ac_exec_ext in '' $ac_executable_extensions; do
14479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14480 ac_cv_prog_ac_ct_CC="$ac_prog"
14481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14491 if test -n "$ac_ct_CC"; then
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14493 printf "%s\n" "$ac_ct_CC" >&6; }
14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 printf "%s\n" "no" >&6; }
14500 test -n "$ac_ct_CC" && break
14503 if test "x$ac_ct_CC" = x; then
14506 case $cross_compiling:$ac_tool_warned in
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14510 ac_tool_warned=yes ;;
14517 if test -z "$CC"; then
14518 if test -n "$ac_tool_prefix"; then
14519 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14520 set dummy ${ac_tool_prefix}clang; ac_word=$2
14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522 printf %s "checking for $ac_word... " >&6; }
14523 if test ${ac_cv_prog_CC+y}
14525 printf %s "(cached) " >&6
14527 if test -n "$CC"; then
14528 ac_cv_prog_CC="$CC" # Let the user override the test.
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14534 case $as_dir in #(((
14537 *) as_dir=$as_dir/ ;;
14539 for ac_exec_ext in '' $ac_executable_extensions; do
14540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14541 ac_cv_prog_CC="${ac_tool_prefix}clang"
14542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14552 if test -n "$CC"; then
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14554 printf "%s\n" "$CC" >&6; }
14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 printf "%s\n" "no" >&6; }
14562 if test -z "$ac_cv_prog_CC"; then
14564 # Extract the first word of "clang", so it can be a program name with args.
14565 set dummy clang; ac_word=$2
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14567 printf %s "checking for $ac_word... " >&6; }
14568 if test ${ac_cv_prog_ac_ct_CC+y}
14570 printf %s "(cached) " >&6
14572 if test -n "$ac_ct_CC"; then
14573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14579 case $as_dir in #(((
14582 *) as_dir=$as_dir/ ;;
14584 for ac_exec_ext in '' $ac_executable_extensions; do
14585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14586 ac_cv_prog_ac_ct_CC="clang"
14587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14597 if test -n "$ac_ct_CC"; then
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14599 printf "%s\n" "$ac_ct_CC" >&6; }
14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 printf "%s\n" "no" >&6; }
14605 if test "x$ac_ct_CC" = x; then
14608 case $cross_compiling:$ac_tool_warned in
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14612 ac_tool_warned=yes ;;
14617 CC="$ac_cv_prog_CC"
14623 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14624 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14625 as_fn_error $? "no acceptable C compiler found in \$PATH
14626 See \`config.log' for more details" "$LINENO" 5; }
14628 # Provide some information about the compiler.
14629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14632 for ac_option in --version -v -V -qversion -version; do
14633 { { ac_try="$ac_compiler $ac_option >&5"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14639 printf "%s\n" "$ac_try_echo"; } >&5
14640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14642 if test -s conftest.err; then
14644 ... rest of stderr output deleted ...
14645 10q' conftest.err >conftest.er1
14646 cat conftest.er1 >&5
14648 rm -f conftest.er1 conftest.err
14649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14650 test $ac_status = 0; }
14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14654 printf %s "checking whether the compiler supports GNU C... " >&6; }
14655 if test ${ac_cv_c_compiler_gnu+y}
14657 printf %s "(cached) " >&6
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14673 if ac_fn_c_try_compile "$LINENO"
14675 ac_compiler_gnu=yes
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14680 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14684 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14687 if test $ac_compiler_gnu = yes; then
14692 ac_test_CFLAGS=${CFLAGS+y}
14693 ac_save_CFLAGS=$CFLAGS
14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14695 printf %s "checking whether $CC accepts -g... " >&6; }
14696 if test ${ac_cv_prog_cc_g+y}
14698 printf %s "(cached) " >&6
14700 ac_save_c_werror_flag=$ac_c_werror_flag
14701 ac_c_werror_flag=yes
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14715 if ac_fn_c_try_compile "$LINENO"
14717 ac_cv_prog_cc_g=yes
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14731 if ac_fn_c_try_compile "$LINENO"
14735 ac_c_werror_flag=$ac_save_c_werror_flag
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14748 if ac_fn_c_try_compile "$LINENO"
14750 ac_cv_prog_cc_g=yes
14752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14757 ac_c_werror_flag=$ac_save_c_werror_flag
14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14760 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14761 if test $ac_test_CFLAGS; then
14762 CFLAGS=$ac_save_CFLAGS
14763 elif test $ac_cv_prog_cc_g = yes; then
14764 if test "$GCC" = yes; then
14770 if test "$GCC" = yes; then
14777 if test x$ac_prog_cc_stdc = xno
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14780 printf %s "checking for $CC option to enable C11 features... " >&6; }
14781 if test ${ac_cv_prog_cc_c11+y}
14783 printf %s "(cached) " >&6
14785 ac_cv_prog_cc_c11=no
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 $ac_c_conftest_c11_program
14791 for ac_arg in '' -std=gnu11
14793 CC="$ac_save_CC $ac_arg"
14794 if ac_fn_c_try_compile "$LINENO"
14796 ac_cv_prog_cc_c11=$ac_arg
14798 rm -f core conftest.err conftest.$ac_objext conftest.beam
14799 test "x$ac_cv_prog_cc_c11" != "xno" && break
14801 rm -f conftest.$ac_ext
14805 if test "x$ac_cv_prog_cc_c11" = xno
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14808 printf "%s\n" "unsupported" >&6; }
14810 if test "x$ac_cv_prog_cc_c11" = x
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14813 printf "%s\n" "none needed" >&6; }
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14816 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14817 CC="$CC $ac_cv_prog_cc_c11"
14819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14820 ac_prog_cc_stdc=c11
14823 if test x$ac_prog_cc_stdc = xno
14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14826 printf %s "checking for $CC option to enable C99 features... " >&6; }
14827 if test ${ac_cv_prog_cc_c99+y}
14829 printf %s "(cached) " >&6
14831 ac_cv_prog_cc_c99=no
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 $ac_c_conftest_c99_program
14837 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14839 CC="$ac_save_CC $ac_arg"
14840 if ac_fn_c_try_compile "$LINENO"
14842 ac_cv_prog_cc_c99=$ac_arg
14844 rm -f core conftest.err conftest.$ac_objext conftest.beam
14845 test "x$ac_cv_prog_cc_c99" != "xno" && break
14847 rm -f conftest.$ac_ext
14851 if test "x$ac_cv_prog_cc_c99" = xno
14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14854 printf "%s\n" "unsupported" >&6; }
14856 if test "x$ac_cv_prog_cc_c99" = x
14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14859 printf "%s\n" "none needed" >&6; }
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14862 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14863 CC="$CC $ac_cv_prog_cc_c99"
14865 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14866 ac_prog_cc_stdc=c99
14869 if test x$ac_prog_cc_stdc = xno
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14872 printf %s "checking for $CC option to enable C89 features... " >&6; }
14873 if test ${ac_cv_prog_cc_c89+y}
14875 printf %s "(cached) " >&6
14877 ac_cv_prog_cc_c89=no
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881 $ac_c_conftest_c89_program
14883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14885 CC="$ac_save_CC $ac_arg"
14886 if ac_fn_c_try_compile "$LINENO"
14888 ac_cv_prog_cc_c89=$ac_arg
14890 rm -f core conftest.err conftest.$ac_objext conftest.beam
14891 test "x$ac_cv_prog_cc_c89" != "xno" && break
14893 rm -f conftest.$ac_ext
14897 if test "x$ac_cv_prog_cc_c89" = xno
14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14900 printf "%s\n" "unsupported" >&6; }
14902 if test "x$ac_cv_prog_cc_c89" = x
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14905 printf "%s\n" "none needed" >&6; }
14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14908 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14909 CC="$CC $ac_cv_prog_cc_c89"
14911 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14912 ac_prog_cc_stdc=c89
14917 ac_cpp='$CPP $CPPFLAGS'
14918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924 ac_cpp='$CPP $CPPFLAGS'
14925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14929 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14930 if test ${am_cv_prog_cc_c_o+y}
14932 printf %s "(cached) " >&6
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14945 # Make sure it works both with $CC and with simple cc.
14946 # Following AC_PROG_CC_C_O, we do the test twice because some
14947 # compilers refuse to overwrite an existing .o file with -o,
14948 # though they will create one.
14949 am_cv_prog_cc_c_o=yes
14950 for am_i in 1 2; do
14951 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14952 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } \
14956 && test -f conftest2.$ac_objext; then
14959 am_cv_prog_cc_c_o=no
14963 rm -f core conftest*
14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14967 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14968 if test "$am_cv_prog_cc_c_o" != yes; then
14969 # Losing compiler, so override with the script.
14970 # FIXME: It is wrong to rewrite CC.
14971 # But if we don't then we get into trouble of one sort or another.
14972 # A longer-term fix would be to have automake use am__CC in this case,
14973 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14974 CC="$am_aux_dir/compile $CC"
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14990 ac_cpp='$CXXCPP $CPPFLAGS'
14991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14994 if test -z "$CXX"; then
14995 if test -n "$CCC"; then
14998 if test -n "$ac_tool_prefix"; then
14999 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15004 printf %s "checking for $ac_word... " >&6; }
15005 if test ${ac_cv_prog_CXX+y}
15007 printf %s "(cached) " >&6
15009 if test -n "$CXX"; then
15010 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $PATH
15016 case $as_dir in #(((
15019 *) as_dir=$as_dir/ ;;
15021 for ac_exec_ext in '' $ac_executable_extensions; do
15022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15023 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15033 CXX=$ac_cv_prog_CXX
15034 if test -n "$CXX"; then
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15036 printf "%s\n" "$CXX" >&6; }
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 printf "%s\n" "no" >&6; }
15043 test -n "$CXX" && break
15046 if test -z "$CXX"; then
15048 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15050 # Extract the first word of "$ac_prog", so it can be a program name with args.
15051 set dummy $ac_prog; ac_word=$2
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15053 printf %s "checking for $ac_word... " >&6; }
15054 if test ${ac_cv_prog_ac_ct_CXX+y}
15056 printf %s "(cached) " >&6
15058 if test -n "$ac_ct_CXX"; then
15059 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $PATH
15065 case $as_dir in #(((
15068 *) as_dir=$as_dir/ ;;
15070 for ac_exec_ext in '' $ac_executable_extensions; do
15071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15072 ac_cv_prog_ac_ct_CXX="$ac_prog"
15073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15082 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15083 if test -n "$ac_ct_CXX"; then
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15085 printf "%s\n" "$ac_ct_CXX" >&6; }
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088 printf "%s\n" "no" >&6; }
15092 test -n "$ac_ct_CXX" && break
15095 if test "x$ac_ct_CXX" = x; then
15098 case $cross_compiling:$ac_tool_warned in
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15102 ac_tool_warned=yes ;;
15110 # Provide some information about the compiler.
15111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15114 for ac_option in --version -v -V -qversion; do
15115 { { ac_try="$ac_compiler $ac_option >&5"
15116 case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15121 printf "%s\n" "$ac_try_echo"; } >&5
15122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15124 if test -s conftest.err; then
15126 ... rest of stderr output deleted ...
15127 10q' conftest.err >conftest.er1
15128 cat conftest.er1 >&5
15130 rm -f conftest.er1 conftest.err
15131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15132 test $ac_status = 0; }
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15136 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15137 if test ${ac_cv_cxx_compiler_gnu+y}
15139 printf %s "(cached) " >&6
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15155 if ac_fn_cxx_try_compile "$LINENO"
15157 ac_compiler_gnu=yes
15161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15162 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15166 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15169 if test $ac_compiler_gnu = yes; then
15174 ac_test_CXXFLAGS=${CXXFLAGS+y}
15175 ac_save_CXXFLAGS=$CXXFLAGS
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15177 printf %s "checking whether $CXX accepts -g... " >&6; }
15178 if test ${ac_cv_prog_cxx_g+y}
15180 printf %s "(cached) " >&6
15182 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15183 ac_cxx_werror_flag=yes
15184 ac_cv_prog_cxx_g=no
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15197 if ac_fn_cxx_try_compile "$LINENO"
15199 ac_cv_prog_cxx_g=yes
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15213 if ac_fn_cxx_try_compile "$LINENO"
15217 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15230 if ac_fn_cxx_try_compile "$LINENO"
15232 ac_cv_prog_cxx_g=yes
15234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15242 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15243 if test $ac_test_CXXFLAGS; then
15244 CXXFLAGS=$ac_save_CXXFLAGS
15245 elif test $ac_cv_prog_cxx_g = yes; then
15246 if test "$GXX" = yes; then
15252 if test "$GXX" = yes; then
15258 ac_prog_cxx_stdcxx=no
15259 if test x$ac_prog_cxx_stdcxx = xno
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15262 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15263 if test ${ac_cv_prog_cxx_11+y}
15265 printf %s "(cached) " >&6
15267 ac_cv_prog_cxx_11=no
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 $ac_cxx_conftest_cxx11_program
15273 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15275 CXX="$ac_save_CXX $ac_arg"
15276 if ac_fn_cxx_try_compile "$LINENO"
15278 ac_cv_prog_cxx_cxx11=$ac_arg
15280 rm -f core conftest.err conftest.$ac_objext conftest.beam
15281 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15283 rm -f conftest.$ac_ext
15287 if test "x$ac_cv_prog_cxx_cxx11" = xno
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15290 printf "%s\n" "unsupported" >&6; }
15292 if test "x$ac_cv_prog_cxx_cxx11" = x
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15295 printf "%s\n" "none needed" >&6; }
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15298 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15299 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15301 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15302 ac_prog_cxx_stdcxx=cxx11
15305 if test x$ac_prog_cxx_stdcxx = xno
15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15308 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15309 if test ${ac_cv_prog_cxx_98+y}
15311 printf %s "(cached) " >&6
15313 ac_cv_prog_cxx_98=no
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 $ac_cxx_conftest_cxx98_program
15319 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15321 CXX="$ac_save_CXX $ac_arg"
15322 if ac_fn_cxx_try_compile "$LINENO"
15324 ac_cv_prog_cxx_cxx98=$ac_arg
15326 rm -f core conftest.err conftest.$ac_objext conftest.beam
15327 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15329 rm -f conftest.$ac_ext
15333 if test "x$ac_cv_prog_cxx_cxx98" = xno
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15336 printf "%s\n" "unsupported" >&6; }
15338 if test "x$ac_cv_prog_cxx_cxx98" = x
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15341 printf "%s\n" "none needed" >&6; }
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15344 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15345 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15347 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15348 ac_prog_cxx_stdcxx=cxx98
15353 ac_cpp='$CPP $CPPFLAGS'
15354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15360 func_stripname_cnf ()
15363 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15364 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15366 } # func_stripname_cnf
15368 if test -n "$CXX" && ( test no != "$CXX" &&
15369 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15370 (test g++ != "$CXX"))); then
15372 ac_cpp='$CXXCPP $CPPFLAGS'
15373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15377 printf %s "checking how to run the C++ preprocessor... " >&6; }
15378 if test -z "$CXXCPP"; then
15379 if test ${ac_cv_prog_CXXCPP+y}
15381 printf %s "(cached) " >&6
15383 # Double quotes because $CXX needs to be expanded
15384 for CXXCPP in "$CXX -E" cpp /lib/cpp
15386 ac_preproc_ok=false
15387 for ac_cxx_preproc_warn_flag in '' yes
15389 # Use a header file that comes with gcc, so configuring glibc
15390 # with a fresh cross-compiler works.
15391 # On the NeXT, cc -E runs the code through the compiler's parser,
15392 # not just through cpp. "Syntax error" is here to catch this case.
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15395 #include <limits.h>
15398 if ac_fn_cxx_try_cpp "$LINENO"
15402 # Broken: fails on valid input.
15405 rm -f conftest.err conftest.i conftest.$ac_ext
15407 # OK, works on sane cases. Now check whether nonexistent headers
15408 # can be detected and how.
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #include <ac_nonexistent.h>
15413 if ac_fn_cxx_try_cpp "$LINENO"
15415 # Broken: success on invalid input.
15418 # Passes both tests.
15422 rm -f conftest.err conftest.i conftest.$ac_ext
15425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15426 rm -f conftest.i conftest.err conftest.$ac_ext
15433 ac_cv_prog_CXXCPP=$CXXCPP
15436 CXXCPP=$ac_cv_prog_CXXCPP
15438 ac_cv_prog_CXXCPP=$CXXCPP
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15441 printf "%s\n" "$CXXCPP" >&6; }
15442 ac_preproc_ok=false
15443 for ac_cxx_preproc_warn_flag in '' yes
15445 # Use a header file that comes with gcc, so configuring glibc
15446 # with a fresh cross-compiler works.
15447 # On the NeXT, cc -E runs the code through the compiler's parser,
15448 # not just through cpp. "Syntax error" is here to catch this case.
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 #include <limits.h>
15454 if ac_fn_cxx_try_cpp "$LINENO"
15458 # Broken: fails on valid input.
15461 rm -f conftest.err conftest.i conftest.$ac_ext
15463 # OK, works on sane cases. Now check whether nonexistent headers
15464 # can be detected and how.
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 #include <ac_nonexistent.h>
15469 if ac_fn_cxx_try_cpp "$LINENO"
15471 # Broken: success on invalid input.
15474 # Passes both tests.
15478 rm -f conftest.err conftest.i conftest.$ac_ext
15481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15482 rm -f conftest.i conftest.err conftest.$ac_ext
15487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15489 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15490 See \`config.log' for more details" "$LINENO" 5; }
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15500 _lt_caught_CXX_error=yes
15504 ac_cpp='$CXXCPP $CPPFLAGS'
15505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15509 archive_cmds_need_lc_CXX=no
15510 allow_undefined_flag_CXX=
15511 always_export_symbols_CXX=no
15512 archive_expsym_cmds_CXX=
15513 compiler_needs_object_CXX=no
15514 export_dynamic_flag_spec_CXX=
15515 hardcode_direct_CXX=no
15516 hardcode_direct_absolute_CXX=no
15517 hardcode_libdir_flag_spec_CXX=
15518 hardcode_libdir_separator_CXX=
15519 hardcode_minus_L_CXX=no
15520 hardcode_shlibpath_var_CXX=unsupported
15521 hardcode_automatic_CXX=no
15522 inherit_rpath_CXX=no
15524 module_expsym_cmds_CXX=
15525 link_all_deplibs_CXX=unknown
15526 old_archive_cmds_CXX=$old_archive_cmds
15527 reload_flag_CXX=$reload_flag
15528 reload_cmds_CXX=$reload_cmds
15529 no_undefined_flag_CXX=
15530 whole_archive_flag_spec_CXX=
15531 enable_shared_with_static_runtimes_CXX=no
15533 # Source file extension for C++ test sources.
15536 # Object file extension for compiled C++ test sources.
15540 # No sense in running all these tests if we already determined that
15541 # the CXX compiler isn't working. Some variables (like enable_shared)
15542 # are currently assumed to apply to all compilers on this platform,
15543 # and will be corrupted by setting them based on a non-working compiler.
15544 if test yes != "$_lt_caught_CXX_error"; then
15545 # Code to be used in simple compile tests
15546 lt_simple_compile_test_code="int some_variable = 0;"
15548 # Code to be used in simple link tests
15549 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15558 # If no C compiler was specified, use CC.
15561 # If no C compiler flags were specified, use CFLAGS.
15562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15564 # Allow CC to be a program name with arguments.
15568 # save warnings/boilerplate of simple test code
15569 ac_outfile=conftest.$ac_objext
15570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15572 _lt_compiler_boilerplate=`cat conftest.err`
15575 ac_outfile=conftest.$ac_objext
15576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15578 _lt_linker_boilerplate=`cat conftest.err`
15582 # Allow CC to be a program name with arguments.
15584 lt_save_CFLAGS=$CFLAGS
15588 lt_save_with_gnu_ld=$with_gnu_ld
15589 lt_save_path_LD=$lt_cv_path_LD
15590 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15591 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15593 $as_unset lt_cv_prog_gnu_ld
15595 if test -n "${lt_cv_path_LDCXX+set}"; then
15596 lt_cv_path_LD=$lt_cv_path_LDCXX
15598 $as_unset lt_cv_path_LD
15600 test -z "${LDCXX+set}" || LD=$LDCXX
15605 func_cc_basename $compiler
15606 cc_basename=$func_cc_basename_result
15609 if test -n "$compiler"; then
15610 # We don't want -fno-exception when compiling C++ code, so set the
15611 # no_builtin_flag separately
15612 if test yes = "$GXX"; then
15613 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15615 lt_prog_compiler_no_builtin_flag_CXX=
15618 if test yes = "$GXX"; then
15619 # Set up default GNU C++ configuration
15623 # Check whether --with-gnu-ld was given.
15624 if test ${with_gnu_ld+y}
15626 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15632 if test yes = "$GCC"; then
15633 # Check if gcc -print-prog-name=ld gives a path.
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15635 printf %s "checking for ld used by $CC... " >&6; }
15638 # gcc leaves a trailing carriage return, which upsets mingw
15639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15644 # Accept absolute paths.
15646 re_direlt='/[^/][^/]*/\.\./'
15647 # Canonicalize the pathname of ld
15648 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15649 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15650 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15652 test -z "$LD" && LD=$ac_prog
15655 # If it fails, then pretend we aren't using GCC.
15659 # If it is relative, then search for the first ld in PATH.
15660 with_gnu_ld=unknown
15663 elif test yes = "$with_gnu_ld"; then
15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15665 printf %s "checking for GNU ld... " >&6; }
15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15668 printf %s "checking for non-GNU ld... " >&6; }
15670 if test ${lt_cv_path_LD+y}
15672 printf %s "(cached) " >&6
15674 if test -z "$LD"; then
15675 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15676 for ac_dir in $PATH; do
15678 test -z "$ac_dir" && ac_dir=.
15679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15680 lt_cv_path_LD=$ac_dir/$ac_prog
15681 # Check to see if the program is GNU ld. I'd rather use --version,
15682 # but apparently some variants of GNU ld only accept -v.
15683 # Break only if it was the GNU/non-GNU ld that we prefer.
15684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15685 *GNU* | *'with BFD'*)
15686 test no != "$with_gnu_ld" && break
15689 test yes != "$with_gnu_ld" && break
15696 lt_cv_path_LD=$LD # Let the user override the test with a path.
15701 if test -n "$LD"; then
15702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15703 printf "%s\n" "$LD" >&6; }
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 printf "%s\n" "no" >&6; }
15708 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15710 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15711 if test ${lt_cv_prog_gnu_ld+y}
15713 printf %s "(cached) " >&6
15715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15716 case `$LD -v 2>&1 </dev/null` in
15717 *GNU* | *'with BFD'*)
15718 lt_cv_prog_gnu_ld=yes
15721 lt_cv_prog_gnu_ld=no
15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15726 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15727 with_gnu_ld=$lt_cv_prog_gnu_ld
15735 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15736 # archiving commands below assume that GNU ld is being used.
15737 if test yes = "$with_gnu_ld"; then
15738 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15739 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15741 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15742 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15744 # If archive_cmds runs LD, not CC, wlarc should be empty
15745 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15746 # investigate it a little bit more. (MM)
15749 # ancient GNU ld didn't support --whole-archive et. al.
15750 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15751 $GREP 'no-whole-archive' > /dev/null; then
15752 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15754 whole_archive_flag_spec_CXX=
15760 # A generic and very simple default shared library creation
15761 # command for GNU C++ for the case where it uses the native
15762 # linker, instead of GNU ld. If possible, this setting should
15763 # overridden to take advantage of the native linker features on
15764 # the platform it is being used on.
15765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15768 # Commands to make compiler produce verbose output that lists
15769 # what "hidden" libraries, object files and flags are used when
15770 # linking a shared library.
15771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15779 # PORTME: fill in a description of your system's C++ link characteristics
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15781 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15785 # FIXME: insert proper C++ library support
15789 if test ia64 = "$host_cpu"; then
15790 # On IA64, the linker does run time linking by default, so we don't
15791 # have to do anything special.
15792 aix_use_runtimelinking=no
15793 exp_sym_flag='-Bexport'
15796 aix_use_runtimelinking=no
15798 # Test if we are trying to use run time linking or normal
15799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15800 # have runtime linking enabled, and use it for executables.
15801 # For shared libraries, we enable/disable runtime linking
15802 # depending on the kind of the shared library created -
15803 # when "with_aix_soname,aix_use_runtimelinking" is:
15804 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15805 # "aix,yes" lib.so shared, rtl:yes, for executables
15806 # lib.a static archive
15807 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15808 # lib.a(lib.so.V) shared, rtl:no, for executables
15809 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15810 # lib.a(lib.so.V) shared, rtl:no
15811 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15812 # lib.a static archive
15813 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15814 for ld_flag in $LDFLAGS; do
15817 aix_use_runtimelinking=yes
15822 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15823 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15824 # so we don't have lib.a shared libs to link our executables.
15825 # We have to force runtime linking in this case.
15826 aix_use_runtimelinking=yes
15827 LDFLAGS="$LDFLAGS -Wl,-brtl"
15832 exp_sym_flag='-bexport'
15833 no_entry_flag='-bnoentry'
15836 # When large executables or shared objects are built, AIX ld can
15837 # have problems creating the table of contents. If linking a library
15838 # or program results in "error TOC overflow" add -mminimal-toc to
15839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15842 archive_cmds_CXX=''
15843 hardcode_direct_CXX=yes
15844 hardcode_direct_absolute_CXX=yes
15845 hardcode_libdir_separator_CXX=':'
15846 link_all_deplibs_CXX=yes
15847 file_list_spec_CXX='$wl-f,'
15848 case $with_aix_soname,$aix_use_runtimelinking in
15849 aix,*) ;; # no import file
15850 svr4,* | *,yes) # use import file
15851 # The Import File defines what to hardcode.
15852 hardcode_direct_CXX=no
15853 hardcode_direct_absolute_CXX=no
15857 if test yes = "$GXX"; then
15858 case $host_os in aix4.[012]|aix4.[012].*)
15859 # We only want to do this on AIX 4.2 and lower, the check
15860 # below for broken collect2 doesn't work under 4.3+
15861 collect2name=`$CC -print-prog-name=collect2`
15862 if test -f "$collect2name" &&
15863 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15865 # We have reworked collect2
15868 # We have old collect2
15869 hardcode_direct_CXX=unsupported
15870 # It fails to find uninstalled libraries when the uninstalled
15871 # path is not listed in the libpath. Setting hardcode_minus_L
15872 # to unsupported forces relinking
15873 hardcode_minus_L_CXX=yes
15874 hardcode_libdir_flag_spec_CXX='-L$libdir'
15875 hardcode_libdir_separator_CXX=
15878 shared_flag='-shared'
15879 if test yes = "$aix_use_runtimelinking"; then
15880 shared_flag=$shared_flag' $wl-G'
15882 # Need to ensure runtime linking is disabled for the traditional
15883 # shared library, or the linker may eventually find shared libraries
15884 # /with/ Import File - we do not want to mix them.
15885 shared_flag_aix='-shared'
15886 shared_flag_svr4='-shared $wl-G'
15889 if test ia64 = "$host_cpu"; then
15890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15891 # chokes on -Wl,-G. The following line is correct:
15894 if test yes = "$aix_use_runtimelinking"; then
15895 shared_flag='$wl-G'
15897 shared_flag='$wl-bM:SRE'
15899 shared_flag_aix='$wl-bM:SRE'
15900 shared_flag_svr4='$wl-G'
15904 export_dynamic_flag_spec_CXX='$wl-bexpall'
15905 # It seems that -bexpall does not export symbols beginning with
15906 # underscore (_), so it is better to generate a list of symbols to
15908 always_export_symbols_CXX=yes
15909 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15910 # Warning - without using the other runtime loading flags (-brtl),
15911 # -berok will link without error, but may produce a broken library.
15912 # The "-G" linker flag allows undefined symbols.
15913 no_undefined_flag_CXX='-bernotok'
15914 # Determine the default libpath from the value encoded in an empty
15916 if test set = "${lt_cv_aix_libpath+set}"; then
15917 aix_libpath=$lt_cv_aix_libpath
15919 if test ${lt_cv_aix_libpath__CXX+y}
15921 printf %s "(cached) " >&6
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15934 if ac_fn_cxx_try_link "$LINENO"
15937 lt_aix_libpath_sed='
15938 /Import File Strings/,/^$/ {
15940 s/^0 *\([^ ]*\) *$/\1/
15944 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945 # Check for a 64-bit object if we didn't find anything.
15946 if test -z "$lt_cv_aix_libpath__CXX"; then
15947 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15951 conftest$ac_exeext conftest.$ac_ext
15952 if test -z "$lt_cv_aix_libpath__CXX"; then
15953 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15958 aix_libpath=$lt_cv_aix_libpath__CXX
15961 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15963 archive_expsym_cmds_CXX='$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
15965 if test ia64 = "$host_cpu"; then
15966 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15967 allow_undefined_flag_CXX="-z nodefs"
15968 archive_expsym_cmds_CXX="\$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"
15970 # Determine the default libpath from the value encoded in an
15971 # empty executable.
15972 if test set = "${lt_cv_aix_libpath+set}"; then
15973 aix_libpath=$lt_cv_aix_libpath
15975 if test ${lt_cv_aix_libpath__CXX+y}
15977 printf %s "(cached) " >&6
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15990 if ac_fn_cxx_try_link "$LINENO"
15993 lt_aix_libpath_sed='
15994 /Import File Strings/,/^$/ {
15996 s/^0 *\([^ ]*\) *$/\1/
16000 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16001 # Check for a 64-bit object if we didn't find anything.
16002 if test -z "$lt_cv_aix_libpath__CXX"; then
16003 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16007 conftest$ac_exeext conftest.$ac_ext
16008 if test -z "$lt_cv_aix_libpath__CXX"; then
16009 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16014 aix_libpath=$lt_cv_aix_libpath__CXX
16017 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16018 # Warning - without using the other run time loading flags,
16019 # -berok will link without error, but may produce a broken library.
16020 no_undefined_flag_CXX=' $wl-bernotok'
16021 allow_undefined_flag_CXX=' $wl-berok'
16022 if test yes = "$with_gnu_ld"; then
16023 # We only use this code for GNU lds that support --whole-archive.
16024 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16026 # Exported symbols can be pulled into shared objects from archives
16027 whole_archive_flag_spec_CXX='$convenience'
16029 archive_cmds_need_lc_CXX=yes
16030 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16031 # -brtl affects multiple linker settings, -berok does not and is overridden later
16032 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16033 if test svr4 != "$with_aix_soname"; then
16034 # This is similar to how AIX traditionally builds its shared
16035 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16036 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16038 if test aix != "$with_aix_soname"; then
16039 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16041 # used by -dlpreopen to get the symbols
16042 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16044 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16051 allow_undefined_flag_CXX=unsupported
16052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16053 # support --undefined. This deserves some investigation. FIXME
16054 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16061 case $cc_basename in
16063 # FIXME: insert proper C++ library support
16069 cygwin* | mingw* | pw32* | cegcc*)
16070 case $GXX,$cc_basename in
16073 # hardcode_libdir_flag_spec is actually meaningless, as there is
16074 # no search path for DLLs.
16075 hardcode_libdir_flag_spec_CXX=' '
16076 allow_undefined_flag_CXX=unsupported
16077 always_export_symbols_CXX=yes
16078 file_list_spec_CXX='@'
16079 # Tell ltmain to make .lib files, not .a files.
16081 # Tell ltmain to make .dll files, not .so files.
16083 # FIXME: Setting linknames here is a bad hack.
16084 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16085 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16086 cp "$export_symbols" "$output_objdir/$soname.def";
16087 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16089 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16091 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16093 # The linker will not automatically build a static lib if we build a DLL.
16094 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16095 enable_shared_with_static_runtimes_CXX=yes
16097 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16098 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16099 lt_tool_outputfile="@TOOL_OUTPUT@"~
16100 case $lt_outputfile in
16103 lt_outputfile=$lt_outputfile.exe
16104 lt_tool_outputfile=$lt_tool_outputfile.exe
16107 func_to_tool_file "$lt_outputfile"~
16108 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16109 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16110 $RM "$lt_outputfile.manifest";
16115 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16116 # as there is no search path for DLLs.
16117 hardcode_libdir_flag_spec_CXX='-L$libdir'
16118 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16119 allow_undefined_flag_CXX=unsupported
16120 always_export_symbols_CXX=no
16121 enable_shared_with_static_runtimes_CXX=yes
16123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16124 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16125 # If the export-symbols file already is a .def file, use it as
16126 # is; otherwise, prepend EXPORTS...
16127 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16128 cp $export_symbols $output_objdir/$soname.def;
16130 echo EXPORTS > $output_objdir/$soname.def;
16131 cat $export_symbols >> $output_objdir/$soname.def;
16133 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16140 darwin* | rhapsody*)
16143 archive_cmds_need_lc_CXX=no
16144 hardcode_direct_CXX=no
16145 hardcode_automatic_CXX=yes
16146 hardcode_shlibpath_var_CXX=unsupported
16147 if test yes = "$lt_cv_ld_force_load"; then
16148 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16151 whole_archive_flag_spec_CXX=''
16153 link_all_deplibs_CXX=yes
16154 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16155 case $cc_basename in
16156 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16157 *) _lt_dar_can_shared=$GCC ;;
16159 if test yes = "$_lt_dar_can_shared"; then
16160 output_verbose_link_cmd=func_echo_all
16161 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16162 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16163 archive_expsym_cmds_CXX="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"
16164 module_expsym_cmds_CXX="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"
16165 if test yes != "$lt_cv_apple_cc_single_mod"; then
16166 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16167 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16177 hardcode_libdir_flag_spec_CXX='-L$libdir'
16178 hardcode_minus_L_CXX=yes
16179 allow_undefined_flag_CXX=unsupported
16181 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16184 $ECHO EXPORTS >> $output_objdir/$libname.def~
16185 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16187 emximp -o $lib $output_objdir/$libname.def'
16188 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16189 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16190 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16191 $ECHO EXPORTS >> $output_objdir/$libname.def~
16192 prefix_cmds="$SED"~
16193 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16194 prefix_cmds="$prefix_cmds -e 1d";
16196 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16197 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16199 emximp -o $lib $output_objdir/$libname.def'
16200 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16201 enable_shared_with_static_runtimes_CXX=yes
16205 case $cc_basename in
16207 # FIXME: insert proper C++ library support
16211 # Green Hills C++ Compiler
16212 # FIXME: insert proper C++ library support
16216 # FIXME: insert proper C++ library support
16223 # C++ shared libraries reported to be fairly broken before
16229 archive_cmds_need_lc_CXX=no
16232 freebsd* | dragonfly*)
16233 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16239 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16240 link_all_deplibs_CXX=yes
16244 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16245 hardcode_libdir_separator_CXX=:
16246 export_dynamic_flag_spec_CXX='$wl-E'
16247 hardcode_direct_CXX=yes
16248 hardcode_minus_L_CXX=yes # Not in the search PATH,
16249 # but as the default
16250 # location of the library.
16252 case $cc_basename in
16254 # FIXME: insert proper C++ library support
16258 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16259 # Commands to make compiler produce verbose output that lists
16260 # what "hidden" libraries, object files and flags are used when
16261 # linking a shared library.
16263 # There doesn't appear to be a way to prevent this compiler from
16264 # explicitly linking system object files so we need to strip them
16265 # from the output so that they don't get included in the library
16267 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16270 if test yes = "$GXX"; then
16271 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16273 # FIXME: insert proper C++ library support
16281 if test no = "$with_gnu_ld"; then
16282 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16283 hardcode_libdir_separator_CXX=:
16289 export_dynamic_flag_spec_CXX='$wl-E'
16295 hardcode_direct_CXX=no
16296 hardcode_shlibpath_var_CXX=no
16299 hardcode_direct_CXX=yes
16300 hardcode_direct_absolute_CXX=yes
16301 hardcode_minus_L_CXX=yes # Not in the search PATH,
16302 # but as the default
16303 # location of the library.
16307 case $cc_basename in
16309 # FIXME: insert proper C++ library support
16315 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16318 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16321 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16324 # Commands to make compiler produce verbose output that lists
16325 # what "hidden" libraries, object files and flags are used when
16326 # linking a shared library.
16328 # There doesn't appear to be a way to prevent this compiler from
16329 # explicitly linking system object files so we need to strip them
16330 # from the output so that they don't get included in the library
16332 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16335 if test yes = "$GXX"; then
16336 if test no = "$with_gnu_ld"; then
16339 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16342 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16345 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16350 # FIXME: insert proper C++ library support
16358 hardcode_direct_CXX=no
16359 hardcode_shlibpath_var_CXX=no
16360 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16361 export_dynamic_flag_spec_CXX='$wl-E'
16362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16363 # Instead, shared libraries are loaded at an image base (0x10000000 by
16364 # default) and relocated if they conflict, which is a slow very memory
16365 # consuming and fragmenting process. To avoid this, we pick a random,
16366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16368 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16369 archive_expsym_cmds_CXX='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'
16372 case $cc_basename in
16375 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16377 # Archives containing C++ object files must be created using
16378 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16379 # necessary to make sure instantiated templates are included
16381 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16384 if test yes = "$GXX"; then
16385 if test no = "$with_gnu_ld"; then
16386 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16388 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16391 link_all_deplibs_CXX=yes
16394 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16395 hardcode_libdir_separator_CXX=:
16396 inherit_rpath_CXX=yes
16399 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16400 case $cc_basename in
16402 # Kuck and Associates, Inc. (KAI) C++ Compiler
16404 # KCC will only create a shared library if the output file
16405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16406 # to its proper name (with version) after linking.
16407 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16408 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16409 # Commands to make compiler produce verbose output that lists
16410 # what "hidden" libraries, object files and flags are used when
16411 # linking a shared library.
16413 # There doesn't appear to be a way to prevent this compiler from
16414 # explicitly linking system object files so we need to strip them
16415 # from the output so that they don't get included in the library
16417 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16419 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16420 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16422 # Archives containing C++ object files must be created using
16423 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16424 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16429 # version 8.0 and above of icpc choke on multiply defined symbols
16430 # if we add $predep_objects and $postdep_objects, however 7.1 and
16431 # earlier do not add the objects themselves.
16432 case `$CC -V 2>&1` in
16434 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16435 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16437 *) # Version 8.0 or newer
16440 ia64*) tmp_idyn=' -i_dynamic';;
16442 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16443 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16446 archive_cmds_need_lc_CXX=no
16447 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16448 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16449 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16452 # Portland Group C++ compiler
16454 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16455 prelink_cmds_CXX='tpldir=Template.dir~
16457 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16458 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16459 old_archive_cmds_CXX='tpldir=Template.dir~
16461 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16462 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16464 archive_cmds_CXX='tpldir=Template.dir~
16466 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16467 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16468 archive_expsym_cmds_CXX='tpldir=Template.dir~
16470 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16471 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16473 *) # Version 6 and above use weak symbols
16474 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16475 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16479 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16480 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16481 whole_archive_flag_spec_CXX='$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'
16485 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16486 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
16488 runpath_var=LD_RUN_PATH
16489 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16490 hardcode_libdir_separator_CXX=:
16492 # Commands to make compiler produce verbose output that lists
16493 # what "hidden" libraries, object files and flags are used when
16494 # linking a shared library.
16496 # There doesn't appear to be a way to prevent this compiler from
16497 # explicitly linking system object files so we need to strip them
16498 # from the output so that they don't get included in the library
16500 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16502 xl* | mpixl* | bgxl*)
16503 # IBM XL 8.0 on PPC, with GNU ld
16504 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16505 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16506 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16507 if test yes = "$supports_anon_versioning"; then
16508 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16509 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16510 echo "local: *; };" >> $output_objdir/$libname.ver~
16511 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16515 case `$CC -V 2>&1 | sed 5q` in
16518 no_undefined_flag_CXX=' -zdefs'
16519 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16520 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16521 hardcode_libdir_flag_spec_CXX='-R$libdir'
16522 whole_archive_flag_spec_CXX='$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'
16523 compiler_needs_object_CXX=yes
16525 # Not sure whether something based on
16526 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16528 output_verbose_link_cmd='func_echo_all'
16530 # Archives containing C++ object files must be created using
16531 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16532 # necessary to make sure instantiated templates are included
16534 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16542 # FIXME: insert proper C++ library support
16547 # FIXME: insert proper C++ library support
16552 case $cc_basename in
16554 # FIXME: insert proper C++ library support
16558 # FIXME: insert proper C++ library support
16565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16566 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16568 hardcode_libdir_flag_spec_CXX='-R$libdir'
16569 hardcode_direct_CXX=yes
16570 hardcode_shlibpath_var_CXX=no
16572 # Workaround some broken pre-1.5 toolchains
16573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16580 openbsd* | bitrig*)
16581 if test -f /usr/libexec/ld.so; then
16582 hardcode_direct_CXX=yes
16583 hardcode_shlibpath_var_CXX=no
16584 hardcode_direct_absolute_CXX=yes
16585 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16586 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16588 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16589 export_dynamic_flag_spec_CXX='$wl-E'
16590 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16592 output_verbose_link_cmd=func_echo_all
16598 osf3* | osf4* | osf5*)
16599 case $cc_basename in
16601 # Kuck and Associates, Inc. (KAI) C++ Compiler
16603 # KCC will only create a shared library if the output file
16604 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16605 # to its proper name (with version) after linking.
16606 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16608 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16609 hardcode_libdir_separator_CXX=:
16611 # Archives containing C++ object files must be created using
16612 # the KAI C++ compiler.
16614 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16615 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16619 # Rational C++ 2.4.1
16620 # FIXME: insert proper C++ library support
16626 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16627 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16628 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16631 allow_undefined_flag_CXX=' -expect_unresolved \*'
16632 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16633 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16634 echo "-hidden">> $lib.exp~
16635 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16637 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16641 hardcode_libdir_separator_CXX=:
16643 # Commands to make compiler produce verbose output that lists
16644 # what "hidden" libraries, object files and flags are used when
16645 # linking a shared library.
16647 # There doesn't appear to be a way to prevent this compiler from
16648 # explicitly linking system object files so we need to strip them
16649 # from the output so that they don't get included in the library
16651 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16654 if test yes,no = "$GXX,$with_gnu_ld"; then
16655 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16658 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
16661 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
16665 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16666 hardcode_libdir_separator_CXX=:
16668 # Commands to make compiler produce verbose output that lists
16669 # what "hidden" libraries, object files and flags are used when
16670 # linking a shared library.
16671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16674 # FIXME: insert proper C++ library support
16682 # FIXME: insert proper C++ library support
16687 case $cc_basename in
16690 # FIXME: insert proper C++ library support
16695 # FIXME: insert proper C++ library support
16699 # FIXME: insert proper C++ library support
16706 case $cc_basename in
16708 # Sun C++ 4.2, 5.x and Centerline C++
16709 archive_cmds_need_lc_CXX=yes
16710 no_undefined_flag_CXX=' -zdefs'
16711 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16712 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16713 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16715 hardcode_libdir_flag_spec_CXX='-R$libdir'
16716 hardcode_shlibpath_var_CXX=no
16718 solaris2.[0-5] | solaris2.[0-5].*) ;;
16720 # The compiler driver will combine and reorder linker options,
16721 # but understands '-z linker_flag'.
16722 # Supported since Solaris 2.6 (maybe 2.5.1?)
16723 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16726 link_all_deplibs_CXX=yes
16728 output_verbose_link_cmd='func_echo_all'
16730 # Archives containing C++ object files must be created using
16731 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16732 # necessary to make sure instantiated templates are included
16734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16737 # Green Hills C++ Compiler
16738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16740 # The C++ compiler must be used to create the archive.
16741 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16744 # GNU C++ compiler with Solaris linker
16745 if test yes,no = "$GXX,$with_gnu_ld"; then
16746 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16747 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16748 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16749 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16750 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16752 # Commands to make compiler produce verbose output that lists
16753 # what "hidden" libraries, object files and flags are used when
16754 # linking a shared library.
16755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16757 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16759 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16760 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16761 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16763 # Commands to make compiler produce verbose output that lists
16764 # what "hidden" libraries, object files and flags are used when
16765 # linking a shared library.
16766 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16769 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16771 solaris2.[0-5] | solaris2.[0-5].*) ;;
16773 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16782 no_undefined_flag_CXX='$wl-z,text'
16783 archive_cmds_need_lc_CXX=no
16784 hardcode_shlibpath_var_CXX=no
16785 runpath_var='LD_RUN_PATH'
16787 case $cc_basename in
16789 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16794 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16799 sysv5* | sco3.2v5* | sco5v6*)
16800 # Note: We CANNOT use -z defs as we might desire, because we do not
16801 # link with -lc, and that would cause any symbols used from libc to
16802 # always be unresolved, which means just about no library would
16803 # ever link correctly. If we're not using GNU ld we use -z text
16804 # though, which does catch some bad symbols but isn't as heavy-handed
16806 no_undefined_flag_CXX='$wl-z,text'
16807 allow_undefined_flag_CXX='$wl-z,nodefs'
16808 archive_cmds_need_lc_CXX=no
16809 hardcode_shlibpath_var_CXX=no
16810 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16811 hardcode_libdir_separator_CXX=':'
16812 link_all_deplibs_CXX=yes
16813 export_dynamic_flag_spec_CXX='$wl-Bexport'
16814 runpath_var='LD_RUN_PATH'
16816 case $cc_basename in
16818 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16820 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16821 '"$old_archive_cmds_CXX"
16822 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16823 '"$reload_cmds_CXX"
16826 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16833 case $cc_basename in
16835 # NonStop-UX NCC 3.20
16836 # FIXME: insert proper C++ library support
16840 # FIXME: insert proper C++ library support
16847 # FIXME: insert proper C++ library support
16852 # FIXME: insert proper C++ library support
16857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16858 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16859 test no = "$ld_shlibs_CXX" && can_build_shared=no
16865 ## There is no encapsulation within the following macros, do not change
16866 ## the running order or otherwise move them around unless you know exactly
16867 ## what you are doing...
16868 # Dependencies to place before and after the object being linked:
16869 predep_objects_CXX=
16870 postdep_objects_CXX=
16873 compiler_lib_search_path_CXX=
16875 cat > conftest.$ac_ext <<_LT_EOF
16879 Foo (void) { a = 0; }
16886 _lt_libdeps_save_CFLAGS=$CFLAGS
16887 case "$CC $CFLAGS " in #(
16888 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16889 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16890 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16894 (eval $ac_compile) 2>&5
16896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16897 test $ac_status = 0; }; then
16898 # Parse the compiler output and extract the necessary
16899 # objects, libraries and library flags.
16901 # Sentinel used to keep track of whether or not we are before
16902 # the conftest object file.
16903 pre_test_object_deps_done=no
16905 for p in `eval "$output_verbose_link_cmd"`; do
16909 # Some compilers place space between "-{L,R}" and the path.
16910 # Remove the space.
16911 if test x-L = "$p" ||
16912 test x-R = "$p"; then
16917 # Expand the sysroot to ease extracting the directories later.
16918 if test -z "$prev"; then
16920 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16921 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16922 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16926 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16928 if test no = "$pre_test_object_deps_done"; then
16931 # Internal compiler library paths should come after those
16932 # provided the user. The postdeps already come after the
16933 # user supplied libs so there is no need to process them.
16934 if test -z "$compiler_lib_search_path_CXX"; then
16935 compiler_lib_search_path_CXX=$prev$p
16937 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16940 # The "-l" case would never come before the object being
16941 # linked, so don't bother handling this case.
16944 if test -z "$postdeps_CXX"; then
16945 postdeps_CXX=$prev$p
16947 postdeps_CXX="${postdeps_CXX} $prev$p"
16953 *.lto.$objext) ;; # Ignore GCC LTO objects
16955 # This assumes that the test object file only shows up
16956 # once in the compiler output.
16957 if test "$p" = "conftest.$objext"; then
16958 pre_test_object_deps_done=yes
16962 if test no = "$pre_test_object_deps_done"; then
16963 if test -z "$predep_objects_CXX"; then
16964 predep_objects_CXX=$p
16966 predep_objects_CXX="$predep_objects_CXX $p"
16969 if test -z "$postdep_objects_CXX"; then
16970 postdep_objects_CXX=$p
16972 postdep_objects_CXX="$postdep_objects_CXX $p"
16977 *) ;; # Ignore the rest.
16985 echo "libtool.m4: error: problem compiling CXX test program"
16988 $RM -f confest.$objext
16989 CFLAGS=$_lt_libdeps_save_CFLAGS
16991 # PORTME: override above test on systems where it is broken
16994 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16995 # hack all around it, let's just trust "g++" to DTRT.
16996 predep_objects_CXX=
16997 postdep_objects_CXX=
17003 case " $postdeps_CXX " in
17004 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17006 compiler_lib_search_dirs_CXX=
17007 if test -n "${compiler_lib_search_path_CXX}"; then
17008 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17041 lt_prog_compiler_wl_CXX=
17042 lt_prog_compiler_pic_CXX=
17043 lt_prog_compiler_static_CXX=
17046 # C++ specific cases for pic, static, wl, etc.
17047 if test yes = "$GXX"; then
17048 lt_prog_compiler_wl_CXX='-Wl,'
17049 lt_prog_compiler_static_CXX='-static'
17053 # All AIX code is PIC.
17054 if test ia64 = "$host_cpu"; then
17055 # AIX 5 now supports IA64 processor
17056 lt_prog_compiler_static_CXX='-Bstatic'
17058 lt_prog_compiler_pic_CXX='-fPIC'
17064 # see comment about AmigaOS4 .so support
17065 lt_prog_compiler_pic_CXX='-fPIC'
17068 # FIXME: we need at least 68020 code to build shared libraries, but
17069 # adding the '-m68020' flag to GCC prevents building anything better,
17071 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17076 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17077 # PIC is the default for these OSes.
17079 mingw* | cygwin* | os2* | pw32* | cegcc*)
17080 # This hack is so that the source file can tell whether it is being
17081 # built for inclusion in a dll (and should export symbols for example).
17082 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17083 # (--disable-auto-import) libraries
17084 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17087 lt_prog_compiler_static_CXX='$wl-static'
17091 darwin* | rhapsody*)
17092 # PIC is the default on this platform
17093 # Common symbols not allowed in MH_DYLIB files
17094 lt_prog_compiler_pic_CXX='-fno-common'
17097 # DJGPP does not support shared libraries at all
17098 lt_prog_compiler_pic_CXX=
17101 # PIC is the default for Haiku.
17102 # The "-static" flag exists, but is broken.
17103 lt_prog_compiler_static_CXX=
17106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17107 # Instead, we relocate shared libraries at runtime.
17110 if test -d /usr/nec; then
17111 lt_prog_compiler_pic_CXX=-Kconform_pic
17115 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17116 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17117 # sets the default TLS model and affects inlining.
17122 lt_prog_compiler_pic_CXX='-fPIC'
17127 # QNX uses GNU C++, but need to define -shared option too, otherwise
17128 # it will coredump.
17129 lt_prog_compiler_pic_CXX='-fPIC -shared'
17132 lt_prog_compiler_pic_CXX='-fPIC'
17138 # All AIX code is PIC.
17139 if test ia64 = "$host_cpu"; then
17140 # AIX 5 now supports IA64 processor
17141 lt_prog_compiler_static_CXX='-Bstatic'
17143 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17147 case $cc_basename in
17149 # Green Hills C++ Compiler
17150 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17154 mingw* | cygwin* | os2* | pw32* | cegcc*)
17155 # This hack is so that the source file can tell whether it is being
17156 # built for inclusion in a dll (and should export symbols for example).
17157 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17160 case $cc_basename in
17162 lt_prog_compiler_pic_CXX='-KPIC'
17165 # Green Hills C++ Compiler
17166 lt_prog_compiler_pic_CXX='-pic'
17172 freebsd* | dragonfly*)
17173 # FreeBSD uses GNU C++
17175 hpux9* | hpux10* | hpux11*)
17176 case $cc_basename in
17178 lt_prog_compiler_wl_CXX='-Wl,'
17179 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17180 if test ia64 != "$host_cpu"; then
17181 lt_prog_compiler_pic_CXX='+Z'
17185 lt_prog_compiler_wl_CXX='-Wl,'
17186 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17192 lt_prog_compiler_pic_CXX='+Z'
17201 # This is c89, which is MS Visual C++ (no shared libs)
17202 # Anyone wants to do a port?
17204 irix5* | irix6* | nonstopux*)
17205 case $cc_basename in
17207 lt_prog_compiler_wl_CXX='-Wl,'
17208 lt_prog_compiler_static_CXX='-non_shared'
17209 # CC pic flag -KPIC is the default.
17215 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17216 case $cc_basename in
17219 lt_prog_compiler_wl_CXX='--backend -Wl,'
17220 lt_prog_compiler_pic_CXX='-fPIC'
17223 # old Intel C++ for x86_64, which still supported -KPIC.
17224 lt_prog_compiler_wl_CXX='-Wl,'
17225 lt_prog_compiler_pic_CXX='-KPIC'
17226 lt_prog_compiler_static_CXX='-static'
17229 # Intel C++, used to be incompatible with GCC.
17230 # ICC 10 doesn't accept -KPIC any more.
17231 lt_prog_compiler_wl_CXX='-Wl,'
17232 lt_prog_compiler_pic_CXX='-fPIC'
17233 lt_prog_compiler_static_CXX='-static'
17236 # Portland Group C++ compiler
17237 lt_prog_compiler_wl_CXX='-Wl,'
17238 lt_prog_compiler_pic_CXX='-fpic'
17239 lt_prog_compiler_static_CXX='-Bstatic'
17243 # Make sure the PIC flag is empty. It appears that all Alpha
17244 # Linux and Compaq Tru64 Unix objects are PIC.
17245 lt_prog_compiler_pic_CXX=
17246 lt_prog_compiler_static_CXX='-non_shared'
17248 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17249 # IBM XL 8.0, 9.0 on PPC and BlueGene
17250 lt_prog_compiler_wl_CXX='-Wl,'
17251 lt_prog_compiler_pic_CXX='-qpic'
17252 lt_prog_compiler_static_CXX='-qstaticlink'
17255 case `$CC -V 2>&1 | sed 5q` in
17258 lt_prog_compiler_pic_CXX='-KPIC'
17259 lt_prog_compiler_static_CXX='-Bstatic'
17260 lt_prog_compiler_wl_CXX='-Qoption ld '
17271 case $cc_basename in
17273 lt_prog_compiler_pic_CXX='-W c,exportall'
17279 netbsd* | netbsdelf*-gnu)
17282 # QNX uses GNU C++, but need to define -shared option too, otherwise
17283 # it will coredump.
17284 lt_prog_compiler_pic_CXX='-fPIC -shared'
17286 osf3* | osf4* | osf5*)
17287 case $cc_basename in
17289 lt_prog_compiler_wl_CXX='--backend -Wl,'
17292 # Rational C++ 2.4.1
17293 lt_prog_compiler_pic_CXX='-pic'
17296 # Digital/Compaq C++
17297 lt_prog_compiler_wl_CXX='-Wl,'
17298 # Make sure the PIC flag is empty. It appears that all Alpha
17299 # Linux and Compaq Tru64 Unix objects are PIC.
17300 lt_prog_compiler_pic_CXX=
17301 lt_prog_compiler_static_CXX='-non_shared'
17310 case $cc_basename in
17312 # Sun C++ 4.2, 5.x and Centerline C++
17313 lt_prog_compiler_pic_CXX='-KPIC'
17314 lt_prog_compiler_static_CXX='-Bstatic'
17315 lt_prog_compiler_wl_CXX='-Qoption ld '
17318 # Green Hills C++ Compiler
17319 lt_prog_compiler_pic_CXX='-PIC'
17326 case $cc_basename in
17329 lt_prog_compiler_pic_CXX='-pic'
17330 lt_prog_compiler_static_CXX='-Bstatic'
17334 lt_prog_compiler_pic_CXX='-pic'
17340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17341 case $cc_basename in
17343 lt_prog_compiler_wl_CXX='-Wl,'
17344 lt_prog_compiler_pic_CXX='-KPIC'
17345 lt_prog_compiler_static_CXX='-Bstatic'
17350 case $cc_basename in
17352 # NonStop-UX NCC 3.20
17353 lt_prog_compiler_pic_CXX='-KPIC'
17362 lt_prog_compiler_can_build_shared_CXX=no
17368 # For platforms that do not support PIC, -DPIC is meaningless:
17370 lt_prog_compiler_pic_CXX=
17373 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17378 printf %s "checking for $compiler option to produce PIC... " >&6; }
17379 if test ${lt_cv_prog_compiler_pic_CXX+y}
17381 printf %s "(cached) " >&6
17383 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17386 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17387 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17390 # Check to make sure the PIC flag actually works.
17392 if test -n "$lt_prog_compiler_pic_CXX"; then
17393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17394 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17395 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17397 printf %s "(cached) " >&6
17399 lt_cv_prog_compiler_pic_works_CXX=no
17400 ac_outfile=conftest.$ac_objext
17401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17402 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17403 # Insert the option either (1) after the last *FLAGS variable, or
17404 # (2) before a word containing "conftest.", or (3) at the end.
17405 # Note that $ac_compile itself does not contain backslashes and begins
17406 # with a dollar sign (not a hyphen), so the echo should work correctly.
17407 # The option is referenced via a variable to avoid confusing sed.
17408 lt_compile=`echo "$ac_compile" | $SED \
17409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17411 -e 's:$: $lt_compiler_flag:'`
17412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17413 (eval "$lt_compile" 2>conftest.err)
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 if (exit $ac_status) && test -s "$ac_outfile"; then
17418 # The compiler can only warn and ignore the option if not recognized
17419 # So say no if there are warnings other than the usual output.
17420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17423 lt_cv_prog_compiler_pic_works_CXX=yes
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17430 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17432 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17433 case $lt_prog_compiler_pic_CXX in
17435 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17438 lt_prog_compiler_pic_CXX=
17439 lt_prog_compiler_can_build_shared_CXX=no
17449 # Check to make sure the static flag actually works.
17451 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17453 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17454 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17456 printf %s "(cached) " >&6
17458 lt_cv_prog_compiler_static_works_CXX=no
17459 save_LDFLAGS=$LDFLAGS
17460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17461 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17463 # The linker can only warn and ignore the option if not recognized
17464 # So say no if there are warnings
17465 if test -s conftest.err; then
17466 # Append any errors to the config.log.
17467 cat conftest.err 1>&5
17468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17470 if diff conftest.exp conftest.er2 >/dev/null; then
17471 lt_cv_prog_compiler_static_works_CXX=yes
17474 lt_cv_prog_compiler_static_works_CXX=yes
17478 LDFLAGS=$save_LDFLAGS
17481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17482 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17484 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17487 lt_prog_compiler_static_CXX=
17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17494 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17495 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17497 printf %s "(cached) " >&6
17499 lt_cv_prog_compiler_c_o_CXX=no
17500 $RM -r conftest 2>/dev/null
17504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17506 lt_compiler_flag="-o out/conftest2.$ac_objext"
17507 # Insert the option either (1) after the last *FLAGS variable, or
17508 # (2) before a word containing "conftest.", or (3) at the end.
17509 # Note that $ac_compile itself does not contain backslashes and begins
17510 # with a dollar sign (not a hyphen), so the echo should work correctly.
17511 lt_compile=`echo "$ac_compile" | $SED \
17512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17514 -e 's:$: $lt_compiler_flag:'`
17515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17516 (eval "$lt_compile" 2>out/conftest.err)
17518 cat out/conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17522 # The compiler can only warn and ignore the option if not recognized
17523 # So say no if there are warnings
17524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17527 lt_cv_prog_compiler_c_o_CXX=yes
17532 # SGI C++ compiler will create directory out/ii_files/ for
17533 # template instantiation
17534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17535 $RM out/* && rmdir out
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17542 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17548 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17550 printf %s "(cached) " >&6
17552 lt_cv_prog_compiler_c_o_CXX=no
17553 $RM -r conftest 2>/dev/null
17557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17559 lt_compiler_flag="-o out/conftest2.$ac_objext"
17560 # Insert the option either (1) after the last *FLAGS variable, or
17561 # (2) before a word containing "conftest.", or (3) at the end.
17562 # Note that $ac_compile itself does not contain backslashes and begins
17563 # with a dollar sign (not a hyphen), so the echo should work correctly.
17564 lt_compile=`echo "$ac_compile" | $SED \
17565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17567 -e 's:$: $lt_compiler_flag:'`
17568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17569 (eval "$lt_compile" 2>out/conftest.err)
17571 cat out/conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17575 # The compiler can only warn and ignore the option if not recognized
17576 # So say no if there are warnings
17577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17580 lt_cv_prog_compiler_c_o_CXX=yes
17585 # SGI C++ compiler will create directory out/ii_files/ for
17586 # template instantiation
17587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17588 $RM out/* && rmdir out
17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17595 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17600 hard_links=nottested
17601 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17602 # do not overwrite the value of need_locks provided by the user
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17604 printf %s "checking if we can lock with hard links... " >&6; }
17607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17609 ln conftest.a conftest.b 2>&5 || hard_links=no
17610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17612 printf "%s\n" "$hard_links" >&6; }
17613 if test no = "$hard_links"; then
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17615 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17625 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17628 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17631 # If we're using GNU nm, then we don't want the "-C" option.
17632 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17633 # Without the "-l" option, or with the "-B" option, AIX nm treats
17634 # weak defined symbols like other global defined symbols, whereas
17635 # GNU nm marks them as "W".
17636 # While the 'weak' keyword is ignored in the Export File, we need
17637 # it in the Import File for the 'aix-soname' feature, so we have
17638 # to replace the "-B" option with "-P" for AIX nm.
17639 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17640 export_symbols_cmds_CXX='$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'
17642 export_symbols_cmds_CXX='`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'
17646 export_symbols_cmds_CXX=$ltdll_cmds
17648 cygwin* | mingw* | cegcc*)
17649 case $cc_basename in
17651 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17655 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17659 linux* | k*bsd*-gnu | gnu*)
17660 link_all_deplibs_CXX=no
17663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17668 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17669 test no = "$ld_shlibs_CXX" && can_build_shared=no
17671 with_gnu_ld_CXX=$with_gnu_ld
17679 # Do we need to explicitly link libc?
17681 case "x$archive_cmds_need_lc_CXX" in
17683 # Assume -lc should be added
17684 archive_cmds_need_lc_CXX=yes
17686 if test yes,yes = "$GCC,$enable_shared"; then
17687 case $archive_cmds_CXX in
17689 # FIXME: we may have to deal with multi-command sequences.
17692 # Test whether the compiler implicitly links with -lc since on some
17693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17694 # to ld, don't add -lc before -lgcc.
17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17696 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17697 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17699 printf %s "(cached) " >&6
17702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17705 (eval $ac_compile) 2>&5
17707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; } 2>conftest.err; then
17711 libobjs=conftest.$ac_objext
17713 wl=$lt_prog_compiler_wl_CXX
17714 pic_flag=$lt_prog_compiler_pic_CXX
17720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17721 allow_undefined_flag_CXX=
17722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17723 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17726 test $ac_status = 0; }
17728 lt_cv_archive_cmds_need_lc_CXX=no
17730 lt_cv_archive_cmds_need_lc_CXX=yes
17732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17734 cat conftest.err 1>&5
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17740 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17741 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17810 printf %s "checking dynamic linker characteristics... " >&6; }
17812 library_names_spec=
17813 libname_spec='lib$name'
17817 postuninstall_cmds=
17821 shlibpath_overrides_runpath=unknown
17823 dynamic_linker="$host_os ld.so"
17824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17825 need_lib_prefix=unknown
17826 hardcode_into_libs=no
17828 # when you set need_version to no, make sure it does not cause -set_version
17829 # flags to be left without arguments
17830 need_version=unknown
17836 version_type=linux # correct to gnu/linux during the next big refactor
17837 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17838 shlibpath_var=LIBPATH
17840 # AIX 3 has no versioning support, so we append a major version to the name.
17841 soname_spec='$libname$release$shared_ext$major'
17845 version_type=linux # correct to gnu/linux during the next big refactor
17848 hardcode_into_libs=yes
17849 if test ia64 = "$host_cpu"; then
17850 # AIX 5 supports IA64
17851 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17852 shlibpath_var=LD_LIBRARY_PATH
17854 # With GCC up to 2.95.x, collect2 would create an import file
17855 # for dependence libraries. The import file would start with
17856 # the line '#! .'. This would cause the generated library to
17857 # depend on '.', always an invalid library. This was fixed in
17858 # development snapshots of GCC prior to 3.0.
17860 aix4 | aix4.[01] | aix4.[01].*)
17861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17863 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17866 can_build_shared=no
17870 # Using Import Files as archive members, it is possible to support
17871 # filename-based versioning of shared library archives on AIX. While
17872 # this would work for both with and without runtime linking, it will
17873 # prevent static linking of such archives. So we do filename-based
17874 # shared library versioning with .so extension only, which is used
17875 # when both runtime linking and shared linking is enabled.
17876 # Unfortunately, runtime linking may impact performance, so we do
17877 # not want this to be the default eventually. Also, we use the
17878 # versioned .so libs for executables only if there is the -brtl
17879 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17880 # To allow for filename-based versioning support, we need to create
17881 # libNAME.so.V as an archive file, containing:
17882 # *) an Import File, referring to the versioned filename of the
17883 # archive as well as the shared archive member, telling the
17884 # bitwidth (32 or 64) of that shared object, and providing the
17885 # list of exported symbols of that shared object, eventually
17886 # decorated with the 'weak' keyword
17887 # *) the shared object with the F_LOADONLY flag set, to really avoid
17888 # it being seen by the linker.
17889 # At run time we better use the real file rather than another symlink,
17890 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17892 case $with_aix_soname,$aix_use_runtimelinking in
17893 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17894 # soname into executable. Probably we can add versioning support to
17895 # collect2, so additional links can be useful in future.
17896 aix,yes) # traditional libtool
17897 dynamic_linker='AIX unversionable lib.so'
17898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17899 # instead of lib<name>.a to let people know that these are not
17900 # typical AIX shared libraries.
17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17903 aix,no) # traditional AIX only
17904 dynamic_linker='AIX lib.a(lib.so.V)'
17905 # We preserve .a as extension for shared libraries through AIX4.2
17906 # and later when we are not doing run time linking.
17907 library_names_spec='$libname$release.a $libname.a'
17908 soname_spec='$libname$release$shared_ext$major'
17910 svr4,*) # full svr4 only
17911 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17912 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17913 # We do not specify a path in Import Files, so LIBPATH fires.
17914 shlibpath_overrides_runpath=yes
17916 *,yes) # both, prefer svr4
17917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17919 # unpreferred sharedlib libNAME.a needs extra handling
17920 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"'
17921 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17922 # We do not specify a path in Import Files, so LIBPATH fires.
17923 shlibpath_overrides_runpath=yes
17925 *,no) # both, prefer aix
17926 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17927 library_names_spec='$libname$release.a $libname.a'
17928 soname_spec='$libname$release$shared_ext$major'
17929 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17930 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)'
17931 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"'
17934 shlibpath_var=LIBPATH
17941 # Since July 2007 AmigaOS4 officially supports .so libraries.
17942 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17946 library_names_spec='$libname.ixlibrary $libname.a'
17947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17948 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'
17954 library_names_spec='$libname$shared_ext'
17955 dynamic_linker="$host_os ld.so"
17956 shlibpath_var=LIBRARY_PATH
17960 version_type=linux # correct to gnu/linux during the next big refactor
17962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17963 soname_spec='$libname$release$shared_ext$major'
17964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17968 # the default ld.so.conf also contains /usr/contrib/lib and
17969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17970 # libtool to hard-code these into programs
17973 cygwin* | mingw* | pw32* | cegcc*)
17974 version_type=windows
17979 case $GCC,$cc_basename in
17982 library_names_spec='$libname.dll.a'
17983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17984 postinstall_cmds='base_file=`basename \$file`~
17985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17986 dldir=$destdir/`dirname \$dlpath`~
17987 test -d \$dldir || mkdir -p \$dldir~
17988 $install_prog $dir/$dlname \$dldir/$dlname~
17989 chmod a+x \$dldir/$dlname~
17990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17994 dlpath=$dir/\$dldll~
17996 shlibpath_overrides_runpath=yes
18000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18001 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18005 # MinGW DLLs use traditional 'lib' prefix
18006 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18009 # pw32 DLLs use 'pw' prefix rather than 'lib'
18010 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18013 dynamic_linker='Win32 ld.exe'
18018 libname_spec='$name'
18019 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18020 library_names_spec='$libname.dll.lib'
18024 sys_lib_search_path_spec=
18027 for lt_path in $LIB
18030 # Let DOS variable expansion print the short 8.3 style file name.
18031 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18032 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18035 # Convert to MSYS style.
18036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18039 # Convert to unix form, then to dos form, then back to unix form
18040 # but this time dos style (no spaces!) so that the unix form looks
18041 # like /cygdrive/c/PROGRA~1:/cygdr...
18042 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18043 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18044 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18047 sys_lib_search_path_spec=$LIB
18048 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18049 # It is most probably a Windows format PATH.
18050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18054 # FIXME: find the short name or the path components, as spaces are
18055 # common. (e.g. "Program Files" -> "PROGRA~1")
18059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18060 postinstall_cmds='base_file=`basename \$file`~
18061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18062 dldir=$destdir/`dirname \$dlpath`~
18063 test -d \$dldir || mkdir -p \$dldir~
18064 $install_prog $dir/$dlname \$dldir/$dlname'
18065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18066 dlpath=$dir/\$dldll~
18068 shlibpath_overrides_runpath=yes
18069 dynamic_linker='Win32 link.exe'
18073 # Assume MSVC wrapper
18074 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18075 dynamic_linker='Win32 ld.exe'
18078 # FIXME: first we should search . and the directory the executable is in
18082 darwin* | rhapsody*)
18083 dynamic_linker="$host_os dyld"
18084 version_type=darwin
18087 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18088 soname_spec='$libname$release$major$shared_ext'
18089 shlibpath_overrides_runpath=yes
18090 shlibpath_var=DYLD_LIBRARY_PATH
18091 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18097 version_type=linux # correct to gnu/linux during the next big refactor
18100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18101 soname_spec='$libname$release$shared_ext$major'
18102 shlibpath_var=LD_LIBRARY_PATH
18105 freebsd* | dragonfly*)
18106 # DragonFly does not have aout. When/if they implement a new
18107 # versioning mechanism, adjust this.
18108 if test -x /usr/bin/objformat; then
18109 objformat=`/usr/bin/objformat`
18112 freebsd[23].*) objformat=aout ;;
18113 *) objformat=elf ;;
18116 version_type=freebsd-$objformat
18117 case $version_type in
18119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18120 soname_spec='$libname$release$shared_ext$major'
18125 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18129 shlibpath_var=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath=yes
18134 freebsd3.[01]* | freebsdelf3.[01]*)
18135 shlibpath_overrides_runpath=yes
18136 hardcode_into_libs=yes
18138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18140 shlibpath_overrides_runpath=no
18141 hardcode_into_libs=yes
18143 *) # from 4.6 on, and DragonFly
18144 shlibpath_overrides_runpath=yes
18145 hardcode_into_libs=yes
18151 version_type=linux # correct to gnu/linux during the next big refactor
18154 dynamic_linker="$host_os runtime_loader"
18155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18156 soname_spec='$libname$release$shared_ext$major'
18157 shlibpath_var=LIBRARY_PATH
18158 shlibpath_overrides_runpath=no
18159 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18160 hardcode_into_libs=yes
18163 hpux9* | hpux10* | hpux11*)
18164 # Give a soname corresponding to the major version so that dld.sl refuses to
18165 # link against other versions.
18172 hardcode_into_libs=yes
18173 dynamic_linker="$host_os dld.so"
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177 soname_spec='$libname$release$shared_ext$major'
18178 if test 32 = "$HPUX_IA64_MODE"; then
18179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18180 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18183 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18188 hardcode_into_libs=yes
18189 dynamic_linker="$host_os dld.sl"
18190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18193 soname_spec='$libname$release$shared_ext$major'
18194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18199 dynamic_linker="$host_os dld.sl"
18200 shlibpath_var=SHLIB_PATH
18201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203 soname_spec='$libname$release$shared_ext$major'
18206 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18207 postinstall_cmds='chmod 555 $lib'
18208 # or fails outright, so override atomically:
18209 install_override_mode=555
18213 version_type=linux # correct to gnu/linux during the next big refactor
18216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18217 soname_spec='$libname$release$shared_ext$major'
18218 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath=no
18221 hardcode_into_libs=yes
18224 irix5* | irix6* | nonstopux*)
18226 nonstopux*) version_type=nonstopux ;;
18228 if test yes = "$lt_cv_prog_gnu_ld"; then
18229 version_type=linux # correct to gnu/linux during the next big refactor
18236 soname_spec='$libname$release$shared_ext$major'
18237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18239 irix5* | nonstopux*)
18240 libsuff= shlibsuff=
18243 case $LD in # libtool.m4 will add one of these switches to LD
18244 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18245 libsuff= shlibsuff= libmagic=32-bit;;
18246 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18247 libsuff=32 shlibsuff=N32 libmagic=N32;;
18248 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18249 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18250 *) libsuff= shlibsuff= libmagic=never-match;;
18254 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18255 shlibpath_overrides_runpath=no
18256 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18257 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18258 hardcode_into_libs=yes
18261 # No shared lib support for Linux oldld, aout, or coff.
18262 linux*oldld* | linux*aout* | linux*coff*)
18267 version_type=none # Android doesn't support versioned libraries.
18270 library_names_spec='$libname$release$shared_ext'
18271 soname_spec='$libname$release$shared_ext'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=yes
18276 # This implies no fast_install, which is unacceptable.
18277 # Some rework will be needed to allow for fast_install
18278 # before this can be enabled.
18279 hardcode_into_libs=yes
18281 dynamic_linker='Android linker'
18282 # Don't embed -rpath directories since the linker doesn't support them.
18283 hardcode_libdir_flag_spec_CXX='-L$libdir'
18286 # This must be glibc/ELF.
18287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18288 version_type=linux # correct to gnu/linux during the next big refactor
18291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18292 soname_spec='$libname$release$shared_ext$major'
18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=no
18297 # Some binutils ld are patched to set DT_RUNPATH
18298 if test ${lt_cv_shlibpath_overrides_runpath+y}
18300 printf %s "(cached) " >&6
18302 lt_cv_shlibpath_overrides_runpath=no
18303 save_LDFLAGS=$LDFLAGS
18304 save_libdir=$libdir
18305 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18306 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18318 if ac_fn_cxx_try_link "$LINENO"
18320 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18322 lt_cv_shlibpath_overrides_runpath=yes
18325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18326 conftest$ac_exeext conftest.$ac_ext
18327 LDFLAGS=$save_LDFLAGS
18328 libdir=$save_libdir
18332 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18334 # This implies no fast_install, which is unacceptable.
18335 # Some rework will be needed to allow for fast_install
18336 # before this can be enabled.
18337 hardcode_into_libs=yes
18339 # Ideally, we could use ldconfig to report *all* directores which are
18340 # searched for libraries, however this is still not possible. Aside from not
18341 # being certain /sbin/ldconfig is available, command
18342 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18343 # even though it is searched at run-time. Try to do the best guess by
18344 # appending ld.so.conf contents (and includes) to the search path.
18345 if test -f /etc/ld.so.conf; then
18346 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' ' '`
18347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18350 # We used to test for /lib/ld.so.1 and disable shared libraries on
18351 # powerpc, because MkLinux only supported shared libraries with the
18352 # GNU dynamic linker. Since this was broken with cross compilers,
18353 # most powerpc-linux boxes support dynamic linking these days and
18354 # people can always --disable-shared, the test was removed, and we
18355 # assume the GNU/Linux dynamic linker is in use.
18356 dynamic_linker='GNU/Linux ld.so'
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18364 soname_spec='${libname}${release}${shared_ext}$major'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=no
18367 hardcode_into_libs=yes
18368 dynamic_linker='NetBSD ld.elf_so'
18375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18376 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18378 dynamic_linker='NetBSD (a.out) ld.so'
18380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18381 soname_spec='$libname$release$shared_ext$major'
18382 dynamic_linker='NetBSD ld.elf_so'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=yes
18386 hardcode_into_libs=yes
18390 version_type=linux # correct to gnu/linux during the next big refactor
18391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 shlibpath_overrides_runpath=yes
18400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18401 soname_spec='$libname$release$shared_ext$major'
18402 shlibpath_var=LD_LIBRARY_PATH
18403 shlibpath_overrides_runpath=no
18404 hardcode_into_libs=yes
18405 dynamic_linker='ldqnx.so'
18408 openbsd* | bitrig*)
18410 sys_lib_dlsearch_path_spec=/usr/lib
18412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18417 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18419 shlibpath_var=LD_LIBRARY_PATH
18420 shlibpath_overrides_runpath=yes
18424 libname_spec='$name'
18425 version_type=windows
18429 # OS/2 can only load a DLL with a base name of 8 characters or less.
18430 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18431 v=$($ECHO $release$versuffix | tr -d .-);
18432 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18433 $ECHO $n$v`$shared_ext'
18434 library_names_spec='${libname}_dll.$libext'
18435 dynamic_linker='OS/2 ld.exe'
18436 shlibpath_var=BEGINLIBPATH
18437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18439 postinstall_cmds='base_file=`basename \$file`~
18440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18441 dldir=$destdir/`dirname \$dlpath`~
18442 test -d \$dldir || mkdir -p \$dldir~
18443 $install_prog $dir/$dlname \$dldir/$dlname~
18444 chmod a+x \$dldir/$dlname~
18445 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18446 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18449 dlpath=$dir/\$dldll~
18453 osf3* | osf4* | osf5*)
18457 soname_spec='$libname$release$shared_ext$major'
18458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18469 version_type=linux # correct to gnu/linux during the next big refactor
18472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18473 soname_spec='$libname$release$shared_ext$major'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 shlibpath_overrides_runpath=yes
18476 hardcode_into_libs=yes
18477 # ldd complains unless libraries are executable
18478 postinstall_cmds='chmod +x $lib'
18483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath=yes
18487 if test yes = "$with_gnu_ld"; then
18494 version_type=linux # correct to gnu/linux during the next big refactor
18495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18496 soname_spec='$libname$release$shared_ext$major'
18497 shlibpath_var=LD_LIBRARY_PATH
18498 case $host_vendor in
18500 shlibpath_overrides_runpath=no
18502 runpath_var=LD_RUN_PATH
18510 shlibpath_overrides_runpath=no
18511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18517 if test -d /usr/nec; then
18518 version_type=linux # correct to gnu/linux during the next big refactor
18519 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18520 soname_spec='$libname$shared_ext.$major'
18521 shlibpath_var=LD_LIBRARY_PATH
18525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18530 soname_spec='$libname$release$shared_ext$major'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=yes
18533 hardcode_into_libs=yes
18534 if test yes = "$with_gnu_ld"; then
18535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18544 sys_lib_dlsearch_path_spec='/usr/lib'
18548 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18549 version_type=linux # correct to gnu/linux during the next big refactor
18552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18553 shlibpath_var=LD_LIBRARY_PATH
18554 shlibpath_overrides_runpath=no
18555 hardcode_into_libs=yes
18559 version_type=linux # correct to gnu/linux during the next big refactor
18560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18561 soname_spec='$libname$release$shared_ext$major'
18562 shlibpath_var=LD_LIBRARY_PATH
18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18570 printf "%s\n" "$dynamic_linker" >&6; }
18571 test no = "$dynamic_linker" && can_build_shared=no
18573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18574 if test yes = "$GCC"; then
18575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18578 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18579 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18582 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18583 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18586 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18587 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18589 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18590 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18592 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18593 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18635 printf %s "checking how to hardcode library paths into programs... " >&6; }
18636 hardcode_action_CXX=
18637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18638 test -n "$runpath_var_CXX" ||
18639 test yes = "$hardcode_automatic_CXX"; then
18641 # We can hardcode non-existent directories.
18642 if test no != "$hardcode_direct_CXX" &&
18643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18644 # have to relink, otherwise we might link with an installed library
18645 # when we should be linking with a yet-to-be-installed one
18646 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18647 test no != "$hardcode_minus_L_CXX"; then
18648 # Linking always hardcodes the temporary library directory.
18649 hardcode_action_CXX=relink
18651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18652 hardcode_action_CXX=immediate
18655 # We cannot hardcode anything, or else we can only hardcode existing
18657 hardcode_action_CXX=unsupported
18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18660 printf "%s\n" "$hardcode_action_CXX" >&6; }
18662 if test relink = "$hardcode_action_CXX" ||
18663 test yes = "$inherit_rpath_CXX"; then
18664 # Fast installation is not supported
18665 enable_fast_install=no
18666 elif test yes = "$shlibpath_overrides_runpath" ||
18667 test no = "$enable_shared"; then
18668 # Fast installation is not necessary
18669 enable_fast_install=needless
18678 fi # test -n "$compiler"
18681 CFLAGS=$lt_save_CFLAGS
18685 with_gnu_ld=$lt_save_with_gnu_ld
18686 lt_cv_path_LDCXX=$lt_cv_path_LD
18687 lt_cv_path_LD=$lt_save_path_LD
18688 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18689 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18690 fi # test yes != "$_lt_caught_CXX_error"
18693 ac_cpp='$CPP $CPPFLAGS'
18694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18699 depcc="$CXX" am_compiler_list=
18701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18702 printf %s "checking dependency style of $depcc... " >&6; }
18703 if test ${am_cv_CXX_dependencies_compiler_type+y}
18705 printf %s "(cached) " >&6
18707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18708 # We make a subdir and do the tests there. Otherwise we can end up
18709 # making bogus files that we don't know about and never remove. For
18710 # instance it was reported that on HP-UX the gcc test will end up
18711 # making a dummy file named 'D' -- because '-MD' means "put the output
18713 rm -rf conftest.dir
18715 # Copy depcomp to subdir because otherwise we won't find it if we're
18716 # using a relative directory.
18717 cp "$am_depcomp" conftest.dir
18719 # We will build objects and dependencies in a subdirectory because
18720 # it helps to detect inapplicable dependency modes. For instance
18721 # both Tru64's cc and ICC support -MD to output dependencies as a
18722 # side effect of compilation, but ICC will put the dependencies in
18723 # the current directory while Tru64 will put them in the object
18727 am_cv_CXX_dependencies_compiler_type=none
18728 if test "$am_compiler_list" = ""; then
18729 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18731 am__universal=false
18732 case " $depcc " in #(
18733 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18736 for depmode in $am_compiler_list; do
18737 # Setup a source with many dependencies, because some compilers
18738 # like to wrap large dependency lists on column 80 (with \), and
18739 # we should not choose a depcomp mode which is confused by this.
18741 # We need to recreate these files for each test, as the compiler may
18742 # overwrite some of them when testing with obscure command lines.
18743 # This happens at least with the AIX C compiler.
18745 for i in 1 2 3 4 5 6; do
18746 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18747 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18748 # Solaris 10 /bin/sh.
18749 echo '/* dummy */' > sub/conftst$i.h
18751 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18753 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18754 # mode. It turns out that the SunPro C++ compiler does not properly
18755 # handle '-M -o', and we need to detect this. Also, some Intel
18756 # versions had trouble with output in subdirs.
18757 am__obj=sub/conftest.${OBJEXT-o}
18758 am__minus_obj="-o $am__obj"
18761 # This depmode causes a compiler race in universal mode.
18762 test "$am__universal" = false || continue
18765 # After this tag, mechanisms are not by side-effect, so they'll
18766 # only be used when explicitly requested.
18767 if test "x$enable_dependency_tracking" = xyes; then
18773 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18774 # This compiler won't grok '-c -o', but also, the minuso test has
18775 # not run yet. These depmodes are late enough in the game, and
18776 # so weak that their functioning should not be impacted.
18777 am__obj=conftest.${OBJEXT-o}
18782 if depmode=$depmode \
18783 source=sub/conftest.c object=$am__obj \
18784 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18785 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18786 >/dev/null 2>conftest.err &&
18787 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18788 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18789 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18791 # icc doesn't choke on unknown options, it will just issue warnings
18792 # or remarks (even with -Werror). So we grep stderr for any message
18793 # that says an option was ignored or not supported.
18794 # When given -MP, icc 7.0 and 7.1 complain thusly:
18795 # icc: Command line warning: ignoring option '-M'; no argument required
18796 # The diagnosis changed in icc 8.0:
18797 # icc: Command line remark: option '-MP' not supported
18798 if (grep 'ignoring option' conftest.err ||
18799 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18800 am_cv_CXX_dependencies_compiler_type=$depmode
18807 rm -rf conftest.dir
18809 am_cv_CXX_dependencies_compiler_type=none
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18814 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
18815 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18818 test "x$enable_dependency_tracking" != xno \
18819 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18820 am__fastdepCXX_TRUE=
18821 am__fastdepCXX_FALSE='#'
18823 am__fastdepCXX_TRUE='#'
18824 am__fastdepCXX_FALSE=
18829 ac_cpp='$CPP $CPPFLAGS'
18830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
18834 printf %s "checking how to run the C preprocessor... " >&6; }
18835 # On Suns, sometimes $CPP names a directory.
18836 if test -n "$CPP" && test -d "$CPP"; then
18839 if test -z "$CPP"; then
18840 if test ${ac_cv_prog_CPP+y}
18842 printf %s "(cached) " >&6
18844 # Double quotes because $CC needs to be expanded
18845 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
18847 ac_preproc_ok=false
18848 for ac_c_preproc_warn_flag in '' yes
18850 # Use a header file that comes with gcc, so configuring glibc
18851 # with a fresh cross-compiler works.
18852 # On the NeXT, cc -E runs the code through the compiler's parser,
18853 # not just through cpp. "Syntax error" is here to catch this case.
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856 #include <limits.h>
18859 if ac_fn_c_try_cpp "$LINENO"
18863 # Broken: fails on valid input.
18866 rm -f conftest.err conftest.i conftest.$ac_ext
18868 # OK, works on sane cases. Now check whether nonexistent headers
18869 # can be detected and how.
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 #include <ac_nonexistent.h>
18874 if ac_fn_c_try_cpp "$LINENO"
18876 # Broken: success on invalid input.
18879 # Passes both tests.
18883 rm -f conftest.err conftest.i conftest.$ac_ext
18886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18887 rm -f conftest.i conftest.err conftest.$ac_ext
18894 ac_cv_prog_CPP=$CPP
18897 CPP=$ac_cv_prog_CPP
18899 ac_cv_prog_CPP=$CPP
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18902 printf "%s\n" "$CPP" >&6; }
18903 ac_preproc_ok=false
18904 for ac_c_preproc_warn_flag in '' yes
18906 # Use a header file that comes with gcc, so configuring glibc
18907 # with a fresh cross-compiler works.
18908 # On the NeXT, cc -E runs the code through the compiler's parser,
18909 # not just through cpp. "Syntax error" is here to catch this case.
18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18912 #include <limits.h>
18915 if ac_fn_c_try_cpp "$LINENO"
18919 # Broken: fails on valid input.
18922 rm -f conftest.err conftest.i conftest.$ac_ext
18924 # OK, works on sane cases. Now check whether nonexistent headers
18925 # can be detected and how.
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18928 #include <ac_nonexistent.h>
18930 if ac_fn_c_try_cpp "$LINENO"
18932 # Broken: success on invalid input.
18935 # Passes both tests.
18939 rm -f conftest.err conftest.i conftest.$ac_ext
18942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18943 rm -f conftest.i conftest.err conftest.$ac_ext
18948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18949 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18950 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18951 See \`config.log' for more details" "$LINENO" 5; }
18955 ac_cpp='$CPP $CPPFLAGS'
18956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18962 printf %s "checking whether ln -s works... " >&6; }
18964 if test "$LN_S" = "ln -s"; then
18965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18966 printf "%s\n" "yes" >&6; }
18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18969 printf "%s\n" "no, using $LN_S" >&6; }
18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18973 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18975 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18976 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
18978 printf %s "(cached) " >&6
18980 cat >conftest.make <<\_ACEOF
18983 @echo '@@@%%%=$(MAKE)=@@@%%%'
18985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18987 *@@@%%%=?*=@@@%%%*)
18988 eval ac_cv_prog_make_${ac_make}_set=yes;;
18990 eval ac_cv_prog_make_${ac_make}_set=no;;
18992 rm -f conftest.make
18994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18996 printf "%s\n" "yes" >&6; }
18999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000 printf "%s\n" "no" >&6; }
19001 SET_MAKE="MAKE=${MAKE-make}"
19013 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19014 if test -n "$ac_tool_prefix"; then
19015 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19016 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19018 printf %s "checking for $ac_word... " >&6; }
19019 if test ${ac_cv_path_PKG_CONFIG+y}
19021 printf %s "(cached) " >&6
19023 case $PKG_CONFIG in
19025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19029 for as_dir in $PATH
19032 case $as_dir in #(((
19035 *) as_dir=$as_dir/ ;;
19037 for ac_exec_ext in '' $ac_executable_extensions; do
19038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19039 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19051 if test -n "$PKG_CONFIG"; then
19052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19053 printf "%s\n" "$PKG_CONFIG" >&6; }
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 printf "%s\n" "no" >&6; }
19061 if test -z "$ac_cv_path_PKG_CONFIG"; then
19062 ac_pt_PKG_CONFIG=$PKG_CONFIG
19063 # Extract the first word of "pkg-config", so it can be a program name with args.
19064 set dummy pkg-config; ac_word=$2
19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19066 printf %s "checking for $ac_word... " >&6; }
19067 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19069 printf %s "(cached) " >&6
19071 case $ac_pt_PKG_CONFIG in
19073 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077 for as_dir in $PATH
19080 case $as_dir in #(((
19083 *) as_dir=$as_dir/ ;;
19085 for ac_exec_ext in '' $ac_executable_extensions; do
19086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19087 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19098 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19099 if test -n "$ac_pt_PKG_CONFIG"; then
19100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19101 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 printf "%s\n" "no" >&6; }
19107 if test "x$ac_pt_PKG_CONFIG" = x; then
19110 case $cross_compiling:$ac_tool_warned in
19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19114 ac_tool_warned=yes ;;
19116 PKG_CONFIG=$ac_pt_PKG_CONFIG
19119 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19123 if test -n "$PKG_CONFIG"; then
19124 _pkg_min_version=0.20
19125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19126 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19127 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19129 printf "%s\n" "yes" >&6; }
19131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19132 printf "%s\n" "no" >&6; }
19143 if test -n "$PYTHON"; then
19144 # If the user set $PYTHON, use it and don't search something else.
19145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
19146 printf %s "checking whether $PYTHON version is >= 3.8... " >&6; }
19148 # split strings by '.' and convert to numeric. Append some zeros
19149 # because we need at least 4 digits for the hex conversion.
19150 # map returns an iterator in Python 3.0 and a list in 2.x
19151 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
19153 # xrange is not present in Python 3.0 and range returns an iterator
19154 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19155 sys.exit(sys.hexversion < minverhex)"
19156 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19157 ($PYTHON -c "$prog") >&5 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }
19162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19163 printf "%s\n" "yes" >&6; }
19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 printf "%s\n" "no" >&6; }
19167 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19169 am_display_PYTHON=$PYTHON
19171 # Otherwise, try each interpreter until we find one that satisfies
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
19174 printf %s "checking for a Python interpreter with version >= 3.8... " >&6; }
19175 if test ${am_cv_pathless_PYTHON+y}
19177 printf %s "(cached) " >&6
19180 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
19181 test "$am_cv_pathless_PYTHON" = none && break
19183 # split strings by '.' and convert to numeric. Append some zeros
19184 # because we need at least 4 digits for the hex conversion.
19185 # map returns an iterator in Python 3.0 and a list in 2.x
19186 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
19188 # xrange is not present in Python 3.0 and range returns an iterator
19189 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19190 sys.exit(sys.hexversion < minverhex)"
19191 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19192 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19202 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
19203 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19204 if test "$am_cv_pathless_PYTHON" = none; then
19207 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19208 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19210 printf %s "checking for $ac_word... " >&6; }
19211 if test ${ac_cv_path_PYTHON+y}
19213 printf %s "(cached) " >&6
19217 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19221 for as_dir in $PATH
19224 case $as_dir in #(((
19227 *) as_dir=$as_dir/ ;;
19229 for ac_exec_ext in '' $ac_executable_extensions; do
19230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19231 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
19232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19242 PYTHON=$ac_cv_path_PYTHON
19243 if test -n "$PYTHON"; then
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19245 printf "%s\n" "$PYTHON" >&6; }
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248 printf "%s\n" "no" >&6; }
19253 am_display_PYTHON=$am_cv_pathless_PYTHON
19257 if test "$PYTHON" = :; then
19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19263 printf %s "checking for $am_display_PYTHON version... " >&6; }
19264 if test ${am_cv_python_version+y}
19266 printf %s "(cached) " >&6
19268 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19271 printf "%s\n" "$am_cv_python_version" >&6; }
19272 PYTHON_VERSION=$am_cv_python_version
19276 if test "x$prefix" = xNONE
19278 am__usable_prefix=$ac_default_prefix
19280 am__usable_prefix=$prefix
19284 # Check whether --with-python_prefix was given.
19285 if test ${with_python_prefix+y}
19287 withval=$with_python_prefix; am_python_prefix_subst="$withval"
19288 am_cv_python_prefix="$withval"
19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON prefix" >&5
19290 printf %s "checking for $am_display_PYTHON prefix... " >&6; }
19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
19292 printf "%s\n" "$am_cv_python_prefix" >&6; }
19295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON prefix" >&5
19296 printf %s "checking for $am_display_PYTHON prefix... " >&6; }
19297 if test ${am_cv_python_prefix+y}
19299 printf %s "(cached) " >&6
19301 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
19304 printf "%s\n" "$am_cv_python_prefix" >&6; }
19306 case $am_cv_python_prefix in
19307 $am__usable_prefix*)
19308 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
19309 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
19312 am_python_prefix_subst=$am_cv_python_prefix
19318 PYTHON_PREFIX=$am_python_prefix_subst
19322 # Check whether --with-python_exec_prefix was given.
19323 if test ${with_python_exec_prefix+y}
19325 withval=$with_python_exec_prefix; am_python_exec_prefix_subst="$withval"
19326 am_cv_python_exec_prefix="$withval"
19327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON exec_prefix" >&5
19328 printf %s "checking for $am_display_PYTHON exec_prefix... " >&6; }
19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19330 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19333 if test -n "$with_python_prefix"
19335 am_python_exec_prefix_subst="$with_python_prefix"
19336 am_cv_python_exec_prefix="$with_python_prefix"
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON exec_prefix" >&5
19338 printf %s "checking for $am_display_PYTHON exec_prefix... " >&6; }
19339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19340 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON exec_prefix" >&5
19344 printf %s "checking for $am_display_PYTHON exec_prefix... " >&6; }
19345 if test ${am_cv_python_exec_prefix+y}
19347 printf %s "(cached) " >&6
19349 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
19351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19352 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19353 if test "x$exec_prefix" = xNONE
19355 am__usable_exec_prefix=$am__usable_prefix
19357 am__usable_exec_prefix=$exec_prefix
19359 case $am_cv_python_exec_prefix in
19360 $am__usable_exec_prefix*)
19361 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
19362 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
19365 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
19372 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19377 printf %s "checking for $am_display_PYTHON platform... " >&6; }
19378 if test ${am_cv_python_platform+y}
19380 printf %s "(cached) " >&6
19382 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19385 printf "%s\n" "$am_cv_python_platform" >&6; }
19386 PYTHON_PLATFORM=$am_cv_python_platform
19389 # Just factor out some code duplication.
19390 am_python_setup_sysconfig="\
19392 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19393 # with python 3.x. See automake bug#10227.
19396 except ImportError:
19397 can_use_sysconfig = 0
19399 can_use_sysconfig = 1
19400 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19401 # <https://github.com/pypa/virtualenv/issues/118>
19403 from platform import python_implementation
19404 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19405 can_use_sysconfig = 0
19406 except ImportError:
19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19411 printf %s "checking for $am_display_PYTHON script directory... " >&6; }
19412 if test ${am_cv_python_pythondir+y}
19414 printf %s "(cached) " >&6
19416 if test "x$am_cv_python_prefix" = x
19418 am_py_prefix=$am__usable_prefix
19420 am_py_prefix=$am_cv_python_prefix
19422 am_cv_python_pythondir=`$PYTHON -c "
19423 $am_python_setup_sysconfig
19424 if can_use_sysconfig:
19425 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19427 from distutils import sysconfig
19428 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19429 sys.stdout.write(sitedir)"`
19430 case $am_cv_python_pythondir in
19432 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19433 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
19436 case $am_py_prefix in
19439 am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19447 printf "%s\n" "$am_cv_python_pythondir" >&6; }
19448 pythondir=$am_cv_python_pythondir
19452 pkgpythondir=\${pythondir}/$PACKAGE
19455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19456 printf %s "checking for $am_display_PYTHON extension module directory... " >&6; }
19457 if test ${am_cv_python_pyexecdir+y}
19459 printf %s "(cached) " >&6
19461 if test "x$am_cv_python_exec_prefix" = x
19463 am_py_exec_prefix=$am__usable_exec_prefix
19465 am_py_exec_prefix=$am_cv_python_exec_prefix
19467 am_cv_python_pyexecdir=`$PYTHON -c "
19468 $am_python_setup_sysconfig
19469 if can_use_sysconfig:
19470 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
19472 from distutils import sysconfig
19473 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
19474 sys.stdout.write(sitedir)"`
19475 case $am_cv_python_pyexecdir in
19476 $am_py_exec_prefix*)
19477 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19478 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
19481 case $am_py_exec_prefix in
19484 am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
19491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19492 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
19493 pyexecdir=$am_cv_python_pyexecdir
19497 pkgpyexecdir=\${pyexecdir}/$PACKAGE
19505 if test "x$request_python_bindings" = "xyes" &&
19506 test "x$PYTHON" = "x:"; then
19507 as_fn_error $? "python was requested (enable-python-bindings) but not found" "$LINENO" 5
19510 if test "x$request_lib_only" = "xyes"; then
19512 request_hpack_tools=no
19513 request_examples=no
19514 request_python_bindings=no
19517 if test "x$request_python_bindings" != "xno" &&
19518 test "x$PYTHON" != "x:"; then
19519 # version check is broken
19522 # Allow the use of a (user set) custom python version
19526 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19527 set dummy python$PYTHON_VERSION; ac_word=$2
19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19529 printf %s "checking for $ac_word... " >&6; }
19530 if test ${ac_cv_path_PYTHON+y}
19532 printf %s "(cached) " >&6
19536 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19540 for as_dir in $PATH
19543 case $as_dir in #(((
19546 *) as_dir=$as_dir/ ;;
19548 for ac_exec_ext in '' $ac_executable_extensions; do
19549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19550 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
19551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19561 PYTHON=$ac_cv_path_PYTHON
19562 if test -n "$PYTHON"; then
19563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19564 printf "%s\n" "$PYTHON" >&6; }
19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567 printf "%s\n" "no" >&6; }
19571 if test -z "$PYTHON"; then
19572 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19577 # Check for a version of Python >= 2.1.0
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19580 printf %s "checking for a version of Python >= '2.1.0'... " >&6; }
19581 ac_supports_python_ver=`$PYTHON -c "import sys; \
19582 ver = sys.version.split ()[0]; \
19583 print (ver >= '2.1.0')"`
19584 if test "$ac_supports_python_ver" != "True"; then
19585 if test -z "$PYTHON_NOVERSIONCHECK"; then
19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 printf "%s\n" "no" >&6; }
19588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19589 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19591 This version of the AC_PYTHON_DEVEL macro
19592 doesn't work properly with versions of Python before
19593 2.1.0. You may need to re-run configure, setting the
19594 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
19595 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19596 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19597 to something else than an empty string.
19599 See \`config.log' for more details" "$LINENO" 5; }
19601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19602 printf "%s\n" "skip at user request" >&6; }
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19606 printf "%s\n" "yes" >&6; }
19610 # if the macro parameter ``version'' is set, honour it
19612 if test -n ""; then
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19614 printf %s "checking for a version of Python ... " >&6; }
19615 ac_supports_python_ver=`$PYTHON -c "import sys; \
19616 ver = sys.version.split ()[0]; \
19618 if test "$ac_supports_python_ver" = "True"; then
19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19620 printf "%s\n" "yes" >&6; }
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19623 printf "%s\n" "no" >&6; }
19624 as_fn_error $? "this package requires Python .
19625 If you have it installed, but it isn't the default Python
19626 interpreter in your system path, please pass the PYTHON_VERSION
19627 variable to configure. See \`\`configure --help'' for reference.
19634 # Check if you have distutils, else fail
19636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python package" >&5
19637 printf %s "checking for the sysconfig Python package... " >&6; }
19638 ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`
19639 if test $? -eq 0; then
19640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19641 printf "%s\n" "yes" >&6; }
19642 IMPORT_SYSCONFIG="import sysconfig"
19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19645 printf "%s\n" "no" >&6; }
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19648 printf %s "checking for the distutils Python package... " >&6; }
19649 ac_sysconfig_result=`$PYTHON -c "from distutils import sysconfig" 2>&1`
19650 if test $? -eq 0; then
19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19652 printf "%s\n" "yes" >&6; }
19653 IMPORT_SYSCONFIG="from distutils import sysconfig"
19655 as_fn_error $? "cannot import Python module \"distutils\".
19656 Please check your Python installation. The error was:
19657 $ac_sysconfig_result" "$LINENO" 5
19663 # Check for Python include path
19665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19666 printf %s "checking for Python include path... " >&6; }
19667 if test -z "$PYTHON_CPPFLAGS"; then
19668 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
19669 # sysconfig module has different functions
19670 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19671 print (sysconfig.get_path ('include'));"`
19672 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19673 print (sysconfig.get_path ('platinclude'));"`
19675 # old distutils way
19676 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19677 print (sysconfig.get_python_inc ());"`
19678 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19679 print (sysconfig.get_python_inc (plat_specific=1));"`
19681 if test -n "${python_path}"; then
19682 if test "${plat_python_path}" != "${python_path}"; then
19683 python_path="-I$python_path -I$plat_python_path"
19685 python_path="-I$python_path"
19688 PYTHON_CPPFLAGS=$python_path
19690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19691 printf "%s\n" "$PYTHON_CPPFLAGS" >&6; }
19695 # Check for Python library path
19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19698 printf %s "checking for Python library path... " >&6; }
19699 if test -z "$PYTHON_LIBS"; then
19700 # (makes two attempts to ensure we've got a version number
19701 # from the interpreter)
19702 ac_python_version=`cat<<EOD | $PYTHON -
19704 # join all versioning strings, on some systems
19705 # major/minor numbers could be in different list elements
19706 from sysconfig import *
19707 e = get_config_var('VERSION')
19712 if test -z "$ac_python_version"; then
19713 if test -n "$PYTHON_VERSION"; then
19714 ac_python_version=$PYTHON_VERSION
19716 ac_python_version=`$PYTHON -c "import sys; \
19717 print (sys.version[:3])"`
19721 # Make the versioning information available to the compiler
19723 printf "%s\n" "#define HAVE_PYTHON \"$ac_python_version\"" >>confdefs.h
19726 # First, the library directory:
19727 ac_python_libdir=`cat<<EOD | $PYTHON -
19729 # There should be only one
19731 e = sysconfig.get_config_var('LIBDIR')
19736 # Now, for the library:
19737 ac_python_library=`cat<<EOD | $PYTHON -
19740 c = sysconfig.get_config_vars()
19741 if 'LDVERSION' in c:
19742 print ('python'+c['LDVERSION'])
19744 print ('python'+c['VERSION'])
19747 # This small piece shamelessly adapted from PostgreSQL python macro;
19748 # credits goes to momjian, I think. I'd like to put the right name
19749 # in the credits, if someone can point me in the right direction... ?
19751 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19753 # use the official shared library
19754 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19755 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
19757 # old way: use libpython from python_configdir
19758 ac_python_libdir=`$PYTHON -c \
19759 "from sysconfig import get_python_lib as f; \
19761 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19762 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
19765 if test -z "PYTHON_LIBS"; then
19767 Cannot determine location of your Python DSO. Please check it was installed with
19768 dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
19773 printf "%s\n" "$PYTHON_LIBS" >&6; }
19777 # Check for site packages
19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19780 printf %s "checking for Python site-packages path... " >&6; }
19781 if test -z "$PYTHON_SITE_PKG"; then
19782 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
19783 PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19784 print (sysconfig.get_path('purelib'));"`
19786 # distutils.sysconfig way
19787 PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19788 print (sysconfig.get_python_lib(0,0));"`
19791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19792 printf "%s\n" "$PYTHON_SITE_PKG" >&6; }
19796 # Check for platform-specific site packages
19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python platform specific site-packages path" >&5
19799 printf %s "checking for Python platform specific site-packages path... " >&6; }
19800 if test -z "$PYTHON_SITE_PKG"; then
19801 if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then
19802 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19803 print (sysconfig.get_path('platlib'));"`
19805 # distutils.sysconfig way
19806 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19807 print (sysconfig.get_python_lib(1,0));"`
19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PLATFORM_SITE_PKG" >&5
19811 printf "%s\n" "$PYTHON_PLATFORM_SITE_PKG" >&6; }
19815 # libraries which must be linked in when embedding
19817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
19818 printf %s "checking python extra libraries... " >&6; }
19819 if test -z "$PYTHON_EXTRA_LIBS"; then
19820 PYTHON_EXTRA_LIBS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19821 conf = sysconfig.get_config_var; \
19822 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
19824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
19825 printf "%s\n" "$PYTHON_EXTRA_LIBS" >&6; }
19829 # linking flags needed when embedding
19831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
19832 printf %s "checking python extra linking flags... " >&6; }
19833 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
19834 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
19835 conf = sysconfig.get_config_var; \
19836 print (conf('LINKFORSHARED'))"`
19838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
19839 printf "%s\n" "$PYTHON_EXTRA_LDFLAGS" >&6; }
19843 # final check to see if everything compiles alright
19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
19846 printf %s "checking consistency of all components of python development environment... " >&6; }
19847 # save current global flags
19848 ac_save_LIBS="$LIBS"
19849 ac_save_LDFLAGS="$LDFLAGS"
19850 ac_save_CPPFLAGS="$CPPFLAGS"
19851 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
19852 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
19853 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
19855 ac_cpp='$CPP $CPPFLAGS'
19856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19863 #include <Python.h>
19873 if ac_fn_c_try_link "$LINENO"
19879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19880 conftest$ac_exeext conftest.$ac_ext
19882 ac_cpp='$CPP $CPPFLAGS'
19883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19887 # turn back to default flags
19888 CPPFLAGS="$ac_save_CPPFLAGS"
19889 LIBS="$ac_save_LIBS"
19890 LDFLAGS="$ac_save_LDFLAGS"
19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
19893 printf "%s\n" "$pythonexists" >&6; }
19895 if test ! "x$pythonexists" = "xyes"; then
19896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19899 Could not link test program to Python. Maybe the main Python library has been
19900 installed in some non-standard library path. If so, pass it to configure,
19901 via the LIBS environment variable.
19902 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
19903 ============================================================================
19905 You probably have to install the development version of the Python package
19906 for your distribution. The exact name of this package varies among them.
19907 ============================================================================
19909 See \`config.log' for more details" "$LINENO" 5; }
19919 if test "x${cython_path}" = "x"; then
19920 for ac_prog in cython.py cython
19922 # Extract the first word of "$ac_prog", so it can be a program name with args.
19923 set dummy $ac_prog; ac_word=$2
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19925 printf %s "checking for $ac_word... " >&6; }
19926 if test ${ac_cv_prog_CYTHON+y}
19928 printf %s "(cached) " >&6
19930 if test -n "$CYTHON"; then
19931 ac_cv_prog_CYTHON="$CYTHON" # Let the user override the test.
19933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19934 for as_dir in $PATH
19937 case $as_dir in #(((
19940 *) as_dir=$as_dir/ ;;
19942 for ac_exec_ext in '' $ac_executable_extensions; do
19943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19944 ac_cv_prog_CYTHON="$ac_prog"
19945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19954 CYTHON=$ac_cv_prog_CYTHON
19955 if test -n "$CYTHON"; then
19956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
19957 printf "%s\n" "$CYTHON" >&6; }
19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 printf "%s\n" "no" >&6; }
19964 test -n "$CYTHON" && break
19968 CYTHON=${cython_path}
19972 if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
19974 printf "%s\n" "#define NGHTTP2_NORETURN __attribute__((noreturn))" >>confdefs.h
19978 printf "%s\n" "#define NGHTTP2_NORETURN /**/" >>confdefs.h
19982 save_CXXFLAGS="$CXXFLAGS"
19985 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false
19987 ac_cpp='$CXXCPP $CPPFLAGS'
19988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19995 if test x$ac_success = xno; then
19996 for alternative in ${ax_cxx_compile_alternatives}; do
19997 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
19998 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
20000 printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
20001 if eval test \${$cachevar+y}
20003 printf %s "(cached) " >&6
20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h. */
20011 // If the compiler admits that it is not ready for C++11, why torture it?
20012 // Hopefully, this will speed up the test.
20014 #ifndef __cplusplus
20016 #error "This is not a C++ compiler"
20018 #elif __cplusplus < 201103L
20020 #error "This is not a C++11 compiler"
20027 namespace test_static_assert
20030 template <typename T>
20033 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20038 namespace test_final_override
20043 virtual void f() {}
20046 struct Derived : public Base
20048 virtual void f() override {}
20053 namespace test_double_right_angle_brackets
20056 template < typename T >
20059 typedef check<void> single_type;
20060 typedef check<check<void>> double_type;
20061 typedef check<check<check<void>>> triple_type;
20062 typedef check<check<check<check<void>>>> quadruple_type;
20066 namespace test_decltype
20079 namespace test_type_deduction
20082 template < typename T1, typename T2 >
20085 static const bool value = false;
20088 template < typename T >
20089 struct is_same<T, T>
20091 static const bool value = true;
20094 template < typename T1, typename T2 >
20096 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20102 test(const int c, volatile int v)
20104 static_assert(is_same<int, decltype(0)>::value == true, "");
20105 static_assert(is_same<int, decltype(c)>::value == false, "");
20106 static_assert(is_same<int, decltype(v)>::value == false, "");
20109 auto sumi = ac + av + 'x';
20110 auto sumf = ac + av + 1.0;
20111 static_assert(is_same<int, decltype(ac)>::value == true, "");
20112 static_assert(is_same<int, decltype(av)>::value == true, "");
20113 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20114 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20115 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20116 return (sumf > 0.0) ? sumi : add(c, v);
20121 namespace test_noexcept
20124 int f() { return 0; }
20125 int g() noexcept { return 0; }
20127 static_assert(noexcept(f()) == false, "");
20128 static_assert(noexcept(g()) == true, "");
20132 namespace test_constexpr
20135 template < typename CharT >
20136 unsigned long constexpr
20137 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20139 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20142 template < typename CharT >
20143 unsigned long constexpr
20144 strlen_c(const CharT *const s) noexcept
20146 return strlen_c_r(s, 0UL);
20149 static_assert(strlen_c("") == 0UL, "");
20150 static_assert(strlen_c("1") == 1UL, "");
20151 static_assert(strlen_c("example") == 7UL, "");
20152 static_assert(strlen_c("another\0example") == 7UL, "");
20156 namespace test_rvalue_references
20162 static constexpr int value = N;
20165 answer<1> f(int&) { return answer<1>(); }
20166 answer<2> f(const int&) { return answer<2>(); }
20167 answer<3> f(int&&) { return answer<3>(); }
20174 static_assert(decltype(f(i))::value == 1, "");
20175 static_assert(decltype(f(c))::value == 2, "");
20176 static_assert(decltype(f(0))::value == 3, "");
20181 namespace test_uniform_initialization
20186 static const int zero {};
20187 static const int one {1};
20190 static_assert(test::zero == 0, "");
20191 static_assert(test::one == 1, "");
20195 namespace test_lambdas
20201 auto lambda1 = [](){};
20202 auto lambda2 = lambda1;
20210 auto a = [](int i, int j){ return i + j; }(1, 2);
20211 auto b = []() -> int { return '0'; }();
20212 auto c = [=](){ return a + b; }();
20213 auto d = [&](){ return c; }();
20214 auto e = [a, &b](int x) mutable {
20215 const auto identity = [](int y){ return y; };
20216 for (auto i = 0; i < a; ++i)
20218 return x + identity(a + b);
20220 return a + b + c + d + e;
20226 const auto nullary = [](){ return 0; };
20227 const auto unary = [](int x){ return x; };
20228 using nullary_t = decltype(nullary);
20229 using unary_t = decltype(unary);
20230 const auto higher1st = [](nullary_t f){ return f(); };
20231 const auto higher2nd = [unary](nullary_t f1){
20232 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20234 return higher1st(nullary) + higher2nd(nullary)(unary);
20239 namespace test_variadic_templates
20245 template <int N0, int... N1toN>
20246 struct sum<N0, N1toN...>
20248 static constexpr auto value = N0 + sum<N1toN...>::value;
20254 static constexpr auto value = 0;
20257 static_assert(sum<>::value == 0, "");
20258 static_assert(sum<1>::value == 1, "");
20259 static_assert(sum<23>::value == 23, "");
20260 static_assert(sum<1, 2>::value == 3, "");
20261 static_assert(sum<5, 5, 11>::value == 21, "");
20262 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20266 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20267 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20268 // because of this.
20269 namespace test_template_alias_sfinae
20274 template<typename T>
20275 using member = typename T::member_type;
20277 template<typename T>
20280 template<typename T>
20281 void func(member<T>*) {}
20285 void test() { func<foo>(0); }
20289 } // namespace cxx11
20291 #endif // __cplusplus >= 201103L
20296 // If the compiler admits that it is not ready for C++14, why torture it?
20297 // Hopefully, this will speed up the test.
20299 #ifndef __cplusplus
20301 #error "This is not a C++ compiler"
20303 #elif __cplusplus < 201402L
20305 #error "This is not a C++14 compiler"
20312 namespace test_polymorphic_lambdas
20318 const auto lambda = [](auto&&... args){
20319 const auto istiny = [](auto x){
20320 return (sizeof(x) == 1UL) ? 1 : 0;
20322 const int aretiny[] = { istiny(args)... };
20325 return lambda(1, 1L, 1.0f, '1');
20330 namespace test_binary_literals
20333 constexpr auto ivii = 0b0000000000101010;
20334 static_assert(ivii == 42, "wrong value");
20338 namespace test_generalized_constexpr
20341 template < typename CharT >
20342 constexpr unsigned long
20343 strlen_c(const CharT *const s) noexcept
20346 for (auto p = s; *p; ++p)
20351 static_assert(strlen_c("") == 0UL, "");
20352 static_assert(strlen_c("x") == 1UL, "");
20353 static_assert(strlen_c("test") == 4UL, "");
20354 static_assert(strlen_c("another\0test") == 7UL, "");
20358 namespace test_lambda_init_capture
20365 const auto lambda1 = [a = x](int b){ return a + b; };
20366 const auto lambda2 = [a = lambda1(x)](){ return a; };
20372 namespace test_digit_separators
20375 constexpr auto ten_million = 100'000'000;
20376 static_assert(ten_million == 100000000, "");
20380 namespace test_return_type_deduction
20383 auto f(int& x) { return x; }
20384 decltype(auto) g(int& x) { return x; }
20386 template < typename T1, typename T2 >
20389 static constexpr auto value = false;
20392 template < typename T >
20393 struct is_same<T, T>
20395 static constexpr auto value = true;
20402 static_assert(is_same<int, decltype(f(x))>::value, "");
20403 static_assert(is_same<int&, decltype(g(x))>::value, "");
20409 } // namespace cxx14
20411 #endif // __cplusplus >= 201402L
20416 if ac_fn_cxx_try_compile "$LINENO"
20422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20425 eval ac_res=\$$cachevar
20426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20427 printf "%s\n" "$ac_res" >&6; }
20428 if eval test x\$$cachevar = xyes; then
20430 if test -n "$CXXCPP" ; then
20431 CXXCPP="$CXXCPP $switch"
20437 if test x$ac_success = xyes; then
20443 ac_cpp='$CPP $CPPFLAGS'
20444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20448 if test x$ax_cxx_compile_cxx14_required = xtrue; then
20449 if test x$ac_success = xno; then
20450 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
20453 if test x$ac_success = xno; then
20455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
20456 printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
20460 printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
20466 CXX1XCXXFLAGS="$CXXFLAGS"
20467 CXXFLAGS="$save_CXXFLAGS"
20471 ac_cpp='$CXXCPP $CPPFLAGS'
20472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20477 save_CXXFLAGS="$CXXFLAGS"
20478 CXXFLAGS="$CXXFLAGS $CXX1XCXXFLAGS"
20480 # Check that std::future is available.
20481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether std::future is available" >&5
20482 printf %s "checking whether std::future is available... " >&6; }
20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h. */
20493 std::vector<std::future<int>> v;
20500 if ac_fn_cxx_try_compile "$LINENO"
20503 printf "%s\n" "#define HAVE_STD_FUTURE 1" >>confdefs.h
20505 have_std_future=yes
20506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20507 printf "%s\n" "yes" >&6; }
20510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 printf "%s\n" "no" >&6; }
20513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20515 # Check that std::map::emplace is available for g++-4.7.
20516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether std::map::emplace is available" >&5
20517 printf %s "checking whether std::map::emplace is available... " >&6; }
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20527 std::map<int, int>().emplace(1, 2);
20533 if ac_fn_cxx_try_compile "$LINENO"
20536 printf "%s\n" "#define HAVE_STD_MAP_EMPLACE 1" >>confdefs.h
20538 have_std_map_emplace=yes
20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20540 printf "%s\n" "yes" >&6; }
20542 have_std_map_emplace=no
20543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544 printf "%s\n" "no" >&6; }
20546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20548 # Check that std::atomic_* overloads for std::shared_ptr are
20550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether std::atomic_* overloads for std::shared_ptr are available" >&5
20551 printf %s "checking whether std::atomic_* overloads for std::shared_ptr are available... " >&6; }
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20561 auto a = std::make_shared<int>(1000000007);
20562 auto p = std::atomic_load(&a);
20564 std::atomic_store(&a, p);
20570 if ac_fn_cxx_try_compile "$LINENO"
20573 printf "%s\n" "#define HAVE_ATOMIC_STD_SHARED_PTR 1" >>confdefs.h
20575 have_atomic_std_shared_ptr=yes
20576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20577 printf "%s\n" "yes" >&6; }
20579 have_atomic_std_shared_ptr=no
20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20581 printf "%s\n" "no" >&6; }
20583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20585 # Check that thread_local storage specifier is available
20586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether thread_local storage class specifier is available." >&5
20587 printf %s "checking whether thread_local storage class specifier is available.... " >&6; }
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20595 thread_local int a = 0;
20602 if ac_fn_cxx_try_compile "$LINENO"
20605 printf "%s\n" "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
20607 have_thread_local=yes
20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20609 printf "%s\n" "yes" >&6; }
20611 have_Thread_local=no
20612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20613 printf "%s\n" "no" >&6; }
20615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20617 CXXFLAGS=$save_CXXFLAGS
20620 ac_cpp='$CPP $CPPFLAGS'
20621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626 # Checks for libraries.
20628 # Additional libraries required for tests.
20631 # Additional libraries required for programs under src directory.
20637 # android does not need -pthread, but needs followng 3 libs for C++
20638 APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
20641 PTHREAD_LDFLAGS="-pthread"
20642 APPLDFLAGS="$APPLDFLAGS $PTHREAD_LDFLAGS"
20648 APPLDFLAGS="$APPLDFLAGS -lsocket -lnsl"
20654 EXTRA_DEFS="-D__APPLE_USE_RFC_3542"
20661 if test "x${request_zlib}" != "xno"; then
20664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.3" >&5
20665 printf %s "checking for zlib >= 1.2.3... " >&6; }
20667 if test -n "$ZLIB_CFLAGS"; then
20668 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20669 elif test -n "$PKG_CONFIG"; then
20670 if test -n "$PKG_CONFIG" && \
20671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
20672 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
20674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20675 test $ac_status = 0; }; then
20676 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
20677 test "x$?" != "x0" && pkg_failed=yes
20684 if test -n "$ZLIB_LIBS"; then
20685 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20686 elif test -n "$PKG_CONFIG"; then
20687 if test -n "$PKG_CONFIG" && \
20688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
20689 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
20691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20692 test $ac_status = 0; }; then
20693 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
20694 test "x$?" != "x0" && pkg_failed=yes
20704 if test $pkg_failed = yes; then
20705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20706 printf "%s\n" "no" >&6; }
20708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20709 _pkg_short_errors_supported=yes
20711 _pkg_short_errors_supported=no
20713 if test $_pkg_short_errors_supported = yes; then
20714 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
20716 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
20718 # Put the nasty error message in config.log where it belongs
20719 echo "$ZLIB_PKG_ERRORS" >&5
20722 elif test $pkg_failed = untried; then
20723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724 printf "%s\n" "no" >&6; }
20727 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20728 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20730 printf "%s\n" "yes" >&6; }
20734 if test "x${have_zlib}" = "xno"; then
20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ZLIB_PKG_ERRORS" >&5
20736 printf "%s\n" "$as_me: $ZLIB_PKG_ERRORS" >&6;}
20740 if test "x${request_zlib}" = "xyes" &&
20741 test "x${have_zlib}" != "xyes"; then
20742 as_fn_error $? "zlib was requested (--with-zlib) but not found" "$LINENO" 5
20745 # dl: openssl requires libdl when it is statically linked.
20746 case "${host_os}" in
20748 # dlopen is in libc on *BSD
20752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20753 printf %s "checking for library containing dlopen... " >&6; }
20754 if test ${ac_cv_search_dlopen+y}
20756 printf %s "(cached) " >&6
20758 ac_func_search_save_LIBS=$LIBS
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20762 /* Override any GCC internal prototype to avoid an error.
20763 Use char because int might match the return type of a GCC
20764 builtin and then its argument prototype would still apply. */
20774 for ac_lib in '' dl
20776 if test -z "$ac_lib"; then
20777 ac_res="none required"
20780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20782 if ac_fn_c_try_link "$LINENO"
20784 ac_cv_search_dlopen=$ac_res
20786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20788 if test ${ac_cv_search_dlopen+y}
20793 if test ${ac_cv_search_dlopen+y}
20797 ac_cv_search_dlopen=no
20799 rm conftest.$ac_ext
20800 LIBS=$ac_func_search_save_LIBS
20802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20803 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20804 ac_res=$ac_cv_search_dlopen
20805 if test "$ac_res" != no
20807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20808 APPLDFLAGS="-ldl $APPLDFLAGS"
20817 if test "x${request_cunit}" != "xno"; then
20820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cunit >= 2.1" >&5
20821 printf %s "checking for cunit >= 2.1... " >&6; }
20823 if test -n "$CUNIT_CFLAGS"; then
20824 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
20825 elif test -n "$PKG_CONFIG"; then
20826 if test -n "$PKG_CONFIG" && \
20827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
20828 ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
20830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20831 test $ac_status = 0; }; then
20832 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
20833 test "x$?" != "x0" && pkg_failed=yes
20840 if test -n "$CUNIT_LIBS"; then
20841 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
20842 elif test -n "$PKG_CONFIG"; then
20843 if test -n "$PKG_CONFIG" && \
20844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
20845 ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
20847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20848 test $ac_status = 0; }; then
20849 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
20850 test "x$?" != "x0" && pkg_failed=yes
20860 if test $pkg_failed = yes; then
20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20862 printf "%s\n" "no" >&6; }
20864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20865 _pkg_short_errors_supported=yes
20867 _pkg_short_errors_supported=no
20869 if test $_pkg_short_errors_supported = yes; then
20870 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
20872 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
20874 # Put the nasty error message in config.log where it belongs
20875 echo "$CUNIT_PKG_ERRORS" >&5
20878 elif test $pkg_failed = untried; then
20879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 printf "%s\n" "no" >&6; }
20883 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
20884 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
20885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886 printf "%s\n" "yes" >&6; }
20889 # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
20890 # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
20891 if test "x${have_cunit}" = "xno"; then
20892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
20893 printf "%s\n" "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
20894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
20895 printf %s "checking for CU_initialize_registry in -lcunit... " >&6; }
20896 if test ${ac_cv_lib_cunit_CU_initialize_registry+y}
20898 printf %s "(cached) " >&6
20900 ac_check_lib_save_LIBS=$LIBS
20901 LIBS="-lcunit $LIBS"
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20905 /* Override any GCC internal prototype to avoid an error.
20906 Use char because int might match the return type of a GCC
20907 builtin and then its argument prototype would still apply. */
20908 char CU_initialize_registry ();
20912 return CU_initialize_registry ();
20917 if ac_fn_c_try_link "$LINENO"
20919 ac_cv_lib_cunit_CU_initialize_registry=yes
20921 ac_cv_lib_cunit_CU_initialize_registry=no
20923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20924 conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
20928 printf "%s\n" "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
20929 if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes
20936 if test "x${have_cunit}" = "xyes"; then
20937 CUNIT_LIBS="-lcunit"
20943 if test "x${have_cunit}" = "xyes"; then
20944 # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
20945 # program can be built without -lncurses, but it emits runtime
20949 CUNIT_LIBS="$CUNIT_LIBS -lncurses"
20956 if test "x${request_cunit}" = "xyes" &&
20957 test "x${have_cunit}" != "xyes"; then
20958 as_fn_error $? "cunit was requested (--with-cunit) but not found" "$LINENO" 5
20961 if test "x${have_cunit}" = "xyes" ; then
20963 HAVE_CUNIT_FALSE='#'
20965 HAVE_CUNIT_TRUE='#'
20972 if test "x${request_libev}" != "xno"; then
20973 if test "x${LIBEV_LIBS}" = "x" && test "x${LIBEV_CFLAGS}" = "x"; then
20974 # libev does not have pkg-config file. Check it in an old way.
20976 # android requires -lm for floor
20977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
20978 printf %s "checking for ev_time in -lev... " >&6; }
20979 if test ${ac_cv_lib_ev_ev_time+y}
20981 printf %s "(cached) " >&6
20983 ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-lev -lm $LIBS"
20985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986 /* end confdefs.h. */
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
21000 if ac_fn_c_try_link "$LINENO"
21002 ac_cv_lib_ev_ev_time=yes
21004 ac_cv_lib_ev_ev_time=no
21006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21007 conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
21011 printf "%s\n" "$ac_cv_lib_ev_ev_time" >&6; }
21012 if test "x$ac_cv_lib_ev_ev_time" = xyes
21019 if test "x${have_libev}" = "xyes"; then
21020 ac_fn_c_check_header_compile "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
21021 if test "x$ac_cv_header_ev_h" = xyes
21028 if test "x${have_libev}" = "xyes"; then
21039 if test "x${request_libev}" = "xyes" &&
21040 test "x${have_libev}" != "xyes"; then
21041 as_fn_error $? "libev was requested (--with-libev) but not found" "$LINENO" 5
21044 # openssl (for src)
21046 if test "x${request_openssl}" != "xno"; then
21049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.1" >&5
21050 printf %s "checking for openssl >= 1.0.1... " >&6; }
21052 if test -n "$OPENSSL_CFLAGS"; then
21053 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
21054 elif test -n "$PKG_CONFIG"; then
21055 if test -n "$PKG_CONFIG" && \
21056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
21057 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
21059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060 test $ac_status = 0; }; then
21061 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
21062 test "x$?" != "x0" && pkg_failed=yes
21069 if test -n "$OPENSSL_LIBS"; then
21070 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
21071 elif test -n "$PKG_CONFIG"; then
21072 if test -n "$PKG_CONFIG" && \
21073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
21074 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
21076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; then
21078 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
21079 test "x$?" != "x0" && pkg_failed=yes
21089 if test $pkg_failed = yes; then
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 printf "%s\n" "no" >&6; }
21093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21094 _pkg_short_errors_supported=yes
21096 _pkg_short_errors_supported=no
21098 if test $_pkg_short_errors_supported = yes; then
21099 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
21101 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
21103 # Put the nasty error message in config.log where it belongs
21104 echo "$OPENSSL_PKG_ERRORS" >&5
21107 elif test $pkg_failed = untried; then
21108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21109 printf "%s\n" "no" >&6; }
21112 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
21113 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
21114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21115 printf "%s\n" "yes" >&6; }
21118 if test "x${have_openssl}" = "xno"; then
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $OPENSSL_PKG_ERRORS" >&5
21120 printf "%s\n" "$as_me: $OPENSSL_PKG_ERRORS" >&6;}
21122 save_CFLAGS="$CFLAGS"
21124 CFLAGS="$OPENSSL_CFLAGS $CFLAGS"
21125 LIBS="$OPENSSL_LIBS $LIBS"
21127 # quictls/openssl has SSL_is_quic.
21128 have_ssl_is_quic=no
21129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_is_quic" >&5
21130 printf %s "checking for SSL_is_quic... " >&6; }
21131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h. */
21134 #include <openssl/ssl.h>
21147 if ac_fn_c_try_link "$LINENO"
21149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21150 printf "%s\n" "yes" >&6; }; have_ssl_is_quic=yes
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21153 printf "%s\n" "no" >&6; }; have_ssl_is_quic=no
21155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21156 conftest$ac_exeext conftest.$ac_ext
21158 # boringssl has SSL_set_quic_early_data_context.
21159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_set_quic_early_data_context" >&5
21160 printf %s "checking for SSL_set_quic_early_data_context... " >&6; }
21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h. */
21164 #include <openssl/ssl.h>
21171 SSL_set_quic_early_data_context(ssl, NULL, 0);
21177 if ac_fn_c_try_link "$LINENO"
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180 printf "%s\n" "yes" >&6; }; have_boringssl_quic=yes
21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183 printf "%s\n" "no" >&6; }; have_boringssl_quic=no
21185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21186 conftest$ac_exeext conftest.$ac_ext
21188 CFLAGS="$save_CFLAGS"
21193 if test "x${request_openssl}" = "xyes" &&
21194 test "x${have_openssl}" != "xyes"; then
21195 as_fn_error $? "openssl was requested (--with-openssl) but not found" "$LINENO" 5
21200 if test "x${request_libcares}" != "xno"; then
21203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares >= 1.7.5" >&5
21204 printf %s "checking for libcares >= 1.7.5... " >&6; }
21206 if test -n "$LIBCARES_CFLAGS"; then
21207 pkg_cv_LIBCARES_CFLAGS="$LIBCARES_CFLAGS"
21208 elif test -n "$PKG_CONFIG"; then
21209 if test -n "$PKG_CONFIG" && \
21210 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
21211 ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
21213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214 test $ac_status = 0; }; then
21215 pkg_cv_LIBCARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.7.5" 2>/dev/null`
21216 test "x$?" != "x0" && pkg_failed=yes
21223 if test -n "$LIBCARES_LIBS"; then
21224 pkg_cv_LIBCARES_LIBS="$LIBCARES_LIBS"
21225 elif test -n "$PKG_CONFIG"; then
21226 if test -n "$PKG_CONFIG" && \
21227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
21228 ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
21230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21231 test $ac_status = 0; }; then
21232 pkg_cv_LIBCARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.7.5" 2>/dev/null`
21233 test "x$?" != "x0" && pkg_failed=yes
21243 if test $pkg_failed = yes; then
21244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 printf "%s\n" "no" >&6; }
21247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21248 _pkg_short_errors_supported=yes
21250 _pkg_short_errors_supported=no
21252 if test $_pkg_short_errors_supported = yes; then
21253 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
21255 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
21257 # Put the nasty error message in config.log where it belongs
21258 echo "$LIBCARES_PKG_ERRORS" >&5
21261 elif test $pkg_failed = untried; then
21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21263 printf "%s\n" "no" >&6; }
21266 LIBCARES_CFLAGS=$pkg_cv_LIBCARES_CFLAGS
21267 LIBCARES_LIBS=$pkg_cv_LIBCARES_LIBS
21268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21269 printf "%s\n" "yes" >&6; }
21272 if test "x${have_libcares}" = "xno"; then
21273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBCARES_PKG_ERRORS" >&5
21274 printf "%s\n" "$as_me: $LIBCARES_PKG_ERRORS" >&6;}
21278 if test "x${request_libcares}" = "xyes" &&
21279 test "x${have_libcares}" != "xyes"; then
21280 as_fn_error $? "libcares was requested (--with-libcares) but not found" "$LINENO" 5
21285 if test "x${request_libngtcp2}" != "xno"; then
21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 >= 0.0.0" >&5
21289 printf %s "checking for libngtcp2 >= 0.0.0... " >&6; }
21291 if test -n "$LIBNGTCP2_CFLAGS"; then
21292 pkg_cv_LIBNGTCP2_CFLAGS="$LIBNGTCP2_CFLAGS"
21293 elif test -n "$PKG_CONFIG"; then
21294 if test -n "$PKG_CONFIG" && \
21295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2 >= 0.0.0\""; } >&5
21296 ($PKG_CONFIG --exists --print-errors "libngtcp2 >= 0.0.0") 2>&5
21298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21299 test $ac_status = 0; }; then
21300 pkg_cv_LIBNGTCP2_CFLAGS=`$PKG_CONFIG --cflags "libngtcp2 >= 0.0.0" 2>/dev/null`
21301 test "x$?" != "x0" && pkg_failed=yes
21308 if test -n "$LIBNGTCP2_LIBS"; then
21309 pkg_cv_LIBNGTCP2_LIBS="$LIBNGTCP2_LIBS"
21310 elif test -n "$PKG_CONFIG"; then
21311 if test -n "$PKG_CONFIG" && \
21312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2 >= 0.0.0\""; } >&5
21313 ($PKG_CONFIG --exists --print-errors "libngtcp2 >= 0.0.0") 2>&5
21315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21316 test $ac_status = 0; }; then
21317 pkg_cv_LIBNGTCP2_LIBS=`$PKG_CONFIG --libs "libngtcp2 >= 0.0.0" 2>/dev/null`
21318 test "x$?" != "x0" && pkg_failed=yes
21328 if test $pkg_failed = yes; then
21329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21330 printf "%s\n" "no" >&6; }
21332 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21333 _pkg_short_errors_supported=yes
21335 _pkg_short_errors_supported=no
21337 if test $_pkg_short_errors_supported = yes; then
21338 LIBNGTCP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libngtcp2 >= 0.0.0" 2>&1`
21340 LIBNGTCP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libngtcp2 >= 0.0.0" 2>&1`
21342 # Put the nasty error message in config.log where it belongs
21343 echo "$LIBNGTCP2_PKG_ERRORS" >&5
21346 elif test $pkg_failed = untried; then
21347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 printf "%s\n" "no" >&6; }
21351 LIBNGTCP2_CFLAGS=$pkg_cv_LIBNGTCP2_CFLAGS
21352 LIBNGTCP2_LIBS=$pkg_cv_LIBNGTCP2_LIBS
21353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21354 printf "%s\n" "yes" >&6; }
21357 if test "x${have_libngtcp2}" = "xno"; then
21358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGTCP2_PKG_ERRORS" >&5
21359 printf "%s\n" "$as_me: $LIBNGTCP2_PKG_ERRORS" >&6;}
21363 if test "x${request_libngtcp2}" = "xyes" &&
21364 test "x${have_libngtcp2}" != "xyes"; then
21365 as_fn_error $? "libngtcp2 was requested (--with-libngtcp2) but not found" "$LINENO" 5
21368 # ngtcp2_crypto_openssl (for src)
21369 have_libngtcp2_crypto_openssl=no
21370 if test "x${have_ssl_is_quic}" = "xyes" &&
21371 test "x${request_libngtcp2}" != "xno"; then
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl >= 0.0.0" >&5
21375 printf %s "checking for libngtcp2_crypto_openssl >= 0.0.0... " >&6; }
21377 if test -n "$LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS"; then
21378 pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS="$LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS"
21379 elif test -n "$PKG_CONFIG"; then
21380 if test -n "$PKG_CONFIG" && \
21381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_openssl >= 0.0.0\""; } >&5
21382 ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_openssl >= 0.0.0") 2>&5
21384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21385 test $ac_status = 0; }; then
21386 pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libngtcp2_crypto_openssl >= 0.0.0" 2>/dev/null`
21387 test "x$?" != "x0" && pkg_failed=yes
21394 if test -n "$LIBNGTCP2_CRYPTO_OPENSSL_LIBS"; then
21395 pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_LIBS="$LIBNGTCP2_CRYPTO_OPENSSL_LIBS"
21396 elif test -n "$PKG_CONFIG"; then
21397 if test -n "$PKG_CONFIG" && \
21398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_openssl >= 0.0.0\""; } >&5
21399 ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_openssl >= 0.0.0") 2>&5
21401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21402 test $ac_status = 0; }; then
21403 pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_LIBS=`$PKG_CONFIG --libs "libngtcp2_crypto_openssl >= 0.0.0" 2>/dev/null`
21404 test "x$?" != "x0" && pkg_failed=yes
21414 if test $pkg_failed = yes; then
21415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 printf "%s\n" "no" >&6; }
21418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21419 _pkg_short_errors_supported=yes
21421 _pkg_short_errors_supported=no
21423 if test $_pkg_short_errors_supported = yes; then
21424 LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libngtcp2_crypto_openssl >= 0.0.0" 2>&1`
21426 LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libngtcp2_crypto_openssl >= 0.0.0" 2>&1`
21428 # Put the nasty error message in config.log where it belongs
21429 echo "$LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS" >&5
21431 have_libngtcp2_crypto_openssl=no
21432 elif test $pkg_failed = untried; then
21433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 printf "%s\n" "no" >&6; }
21435 have_libngtcp2_crypto_openssl=no
21437 LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS=$pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS
21438 LIBNGTCP2_CRYPTO_OPENSSL_LIBS=$pkg_cv_LIBNGTCP2_CRYPTO_OPENSSL_LIBS
21439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21440 printf "%s\n" "yes" >&6; }
21441 have_libngtcp2_crypto_openssl=yes
21443 if test "x${have_libngtcp2_crypto_openssl}" = "xno"; then
21444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS" >&5
21445 printf "%s\n" "$as_me: $LIBNGTCP2_CRYPTO_OPENSSL_PKG_ERRORS" >&6;}
21448 printf "%s\n" "#define HAVE_LIBNGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
21453 if test "x${have_ssl_is_quic}" = "xyes" &&
21454 test "x${request_libngtcp2}" = "xyes" &&
21455 test "x${have_libngtcp2_crypto_openssl}" != "xyes"; then
21456 as_fn_error $? "libngtcp2_crypto_openssl was requested (--with-libngtcp2) but not found" "$LINENO" 5
21459 # ngtcp2_crypto_boringssl (for src)
21460 have_libngtcp2_crypto_boringssl=no
21461 if test "x${have_boringssl_quic}" = "xyes" &&
21462 test "x${request_libngtcp2}" != "xno"; then
21465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_boringssl >= 0.0.0" >&5
21466 printf %s "checking for libngtcp2_crypto_boringssl >= 0.0.0... " >&6; }
21468 if test -n "$LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS"; then
21469 pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS="$LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS"
21470 elif test -n "$PKG_CONFIG"; then
21471 if test -n "$PKG_CONFIG" && \
21472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_boringssl >= 0.0.0\""; } >&5
21473 ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_boringssl >= 0.0.0") 2>&5
21475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21476 test $ac_status = 0; }; then
21477 pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS=`$PKG_CONFIG --cflags "libngtcp2_crypto_boringssl >= 0.0.0" 2>/dev/null`
21478 test "x$?" != "x0" && pkg_failed=yes
21485 if test -n "$LIBNGTCP2_CRYPTO_BORINGSSL_LIBS"; then
21486 pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_LIBS="$LIBNGTCP2_CRYPTO_BORINGSSL_LIBS"
21487 elif test -n "$PKG_CONFIG"; then
21488 if test -n "$PKG_CONFIG" && \
21489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libngtcp2_crypto_boringssl >= 0.0.0\""; } >&5
21490 ($PKG_CONFIG --exists --print-errors "libngtcp2_crypto_boringssl >= 0.0.0") 2>&5
21492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21493 test $ac_status = 0; }; then
21494 pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_LIBS=`$PKG_CONFIG --libs "libngtcp2_crypto_boringssl >= 0.0.0" 2>/dev/null`
21495 test "x$?" != "x0" && pkg_failed=yes
21505 if test $pkg_failed = yes; then
21506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21507 printf "%s\n" "no" >&6; }
21509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21510 _pkg_short_errors_supported=yes
21512 _pkg_short_errors_supported=no
21514 if test $_pkg_short_errors_supported = yes; then
21515 LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libngtcp2_crypto_boringssl >= 0.0.0" 2>&1`
21517 LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libngtcp2_crypto_boringssl >= 0.0.0" 2>&1`
21519 # Put the nasty error message in config.log where it belongs
21520 echo "$LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS" >&5
21522 have_libngtcp2_crypto_boringssl=no
21523 elif test $pkg_failed = untried; then
21524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21525 printf "%s\n" "no" >&6; }
21526 have_libngtcp2_crypto_boringssl=no
21528 LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS=$pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS
21529 LIBNGTCP2_CRYPTO_BORINGSSL_LIBS=$pkg_cv_LIBNGTCP2_CRYPTO_BORINGSSL_LIBS
21530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21531 printf "%s\n" "yes" >&6; }
21532 have_libngtcp2_crypto_boringssl=yes
21534 if test "x${have_libngtcp2_crypto_boringssl}" = "xno"; then
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS" >&5
21536 printf "%s\n" "$as_me: $LIBNGTCP2_CRYPTO_BORINGSSL_PKG_ERRORS" >&6;}
21539 printf "%s\n" "#define HAVE_LIBNGTCP2_CRYPTO_BORINGSSL 1" >>confdefs.h
21544 if test "x${have_boringssl_quic}" = "xyes" &&
21545 test "x${request_libngtcp2}" = "xyes" &&
21546 test "x${have_libngtcp2_crypto_boringssl}" != "xyes"; then
21547 as_fn_error $? "libngtcp2_crypto_boringssl was requested (--with-libngtcp2) but not found" "$LINENO" 5
21550 # nghttp3 (for src)
21552 if test "x${request_libnghttp3}" != "xno"; then
21555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 >= 0.0.0" >&5
21556 printf %s "checking for libnghttp3 >= 0.0.0... " >&6; }
21558 if test -n "$LIBNGHTTP3_CFLAGS"; then
21559 pkg_cv_LIBNGHTTP3_CFLAGS="$LIBNGHTTP3_CFLAGS"
21560 elif test -n "$PKG_CONFIG"; then
21561 if test -n "$PKG_CONFIG" && \
21562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp3 >= 0.0.0\""; } >&5
21563 ($PKG_CONFIG --exists --print-errors "libnghttp3 >= 0.0.0") 2>&5
21565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21566 test $ac_status = 0; }; then
21567 pkg_cv_LIBNGHTTP3_CFLAGS=`$PKG_CONFIG --cflags "libnghttp3 >= 0.0.0" 2>/dev/null`
21568 test "x$?" != "x0" && pkg_failed=yes
21575 if test -n "$LIBNGHTTP3_LIBS"; then
21576 pkg_cv_LIBNGHTTP3_LIBS="$LIBNGHTTP3_LIBS"
21577 elif test -n "$PKG_CONFIG"; then
21578 if test -n "$PKG_CONFIG" && \
21579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp3 >= 0.0.0\""; } >&5
21580 ($PKG_CONFIG --exists --print-errors "libnghttp3 >= 0.0.0") 2>&5
21582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21583 test $ac_status = 0; }; then
21584 pkg_cv_LIBNGHTTP3_LIBS=`$PKG_CONFIG --libs "libnghttp3 >= 0.0.0" 2>/dev/null`
21585 test "x$?" != "x0" && pkg_failed=yes
21595 if test $pkg_failed = yes; then
21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 printf "%s\n" "no" >&6; }
21599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21600 _pkg_short_errors_supported=yes
21602 _pkg_short_errors_supported=no
21604 if test $_pkg_short_errors_supported = yes; then
21605 LIBNGHTTP3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp3 >= 0.0.0" 2>&1`
21607 LIBNGHTTP3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp3 >= 0.0.0" 2>&1`
21609 # Put the nasty error message in config.log where it belongs
21610 echo "$LIBNGHTTP3_PKG_ERRORS" >&5
21613 elif test $pkg_failed = untried; then
21614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21615 printf "%s\n" "no" >&6; }
21618 LIBNGHTTP3_CFLAGS=$pkg_cv_LIBNGHTTP3_CFLAGS
21619 LIBNGHTTP3_LIBS=$pkg_cv_LIBNGHTTP3_LIBS
21620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21621 printf "%s\n" "yes" >&6; }
21622 have_libnghttp3=yes
21624 if test "x${have_libnghttp3}" = "xno"; then
21625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBNGHTTP3_PKG_ERRORS" >&5
21626 printf "%s\n" "$as_me: $LIBNGHTTP3_PKG_ERRORS" >&6;}
21630 if test "x${request_libnghttp3}" = "xyes" &&
21631 test "x${have_libnghttp3}" != "xyes"; then
21632 as_fn_error $? "libnghttp3 was requested (--with-libnghttp3) but not found" "$LINENO" 5
21637 if test "x${request_libbpf}" != "xno"; then
21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbpf >= 0.4.0" >&5
21641 printf %s "checking for libbpf >= 0.4.0... " >&6; }
21643 if test -n "$LIBBPF_CFLAGS"; then
21644 pkg_cv_LIBBPF_CFLAGS="$LIBBPF_CFLAGS"
21645 elif test -n "$PKG_CONFIG"; then
21646 if test -n "$PKG_CONFIG" && \
21647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.4.0\""; } >&5
21648 ($PKG_CONFIG --exists --print-errors "libbpf >= 0.4.0") 2>&5
21650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21651 test $ac_status = 0; }; then
21652 pkg_cv_LIBBPF_CFLAGS=`$PKG_CONFIG --cflags "libbpf >= 0.4.0" 2>/dev/null`
21653 test "x$?" != "x0" && pkg_failed=yes
21660 if test -n "$LIBBPF_LIBS"; then
21661 pkg_cv_LIBBPF_LIBS="$LIBBPF_LIBS"
21662 elif test -n "$PKG_CONFIG"; then
21663 if test -n "$PKG_CONFIG" && \
21664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbpf >= 0.4.0\""; } >&5
21665 ($PKG_CONFIG --exists --print-errors "libbpf >= 0.4.0") 2>&5
21667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21668 test $ac_status = 0; }; then
21669 pkg_cv_LIBBPF_LIBS=`$PKG_CONFIG --libs "libbpf >= 0.4.0" 2>/dev/null`
21670 test "x$?" != "x0" && pkg_failed=yes
21680 if test $pkg_failed = yes; then
21681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21682 printf "%s\n" "no" >&6; }
21684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21685 _pkg_short_errors_supported=yes
21687 _pkg_short_errors_supported=no
21689 if test $_pkg_short_errors_supported = yes; then
21690 LIBBPF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbpf >= 0.4.0" 2>&1`
21692 LIBBPF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbpf >= 0.4.0" 2>&1`
21694 # Put the nasty error message in config.log where it belongs
21695 echo "$LIBBPF_PKG_ERRORS" >&5
21698 elif test $pkg_failed = untried; then
21699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700 printf "%s\n" "no" >&6; }
21703 LIBBPF_CFLAGS=$pkg_cv_LIBBPF_CFLAGS
21704 LIBBPF_LIBS=$pkg_cv_LIBBPF_LIBS
21705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21706 printf "%s\n" "yes" >&6; }
21709 if test "x${have_libbpf}" = "xyes"; then
21711 printf "%s\n" "#define HAVE_LIBBPF 1" >>confdefs.h
21713 if test "x${BPFCFLAGS}" = "x"; then
21714 BPFCFLAGS="-Wall -O2 -g"
21716 # Add the include path for Debian
21717 EXTRABPFCFLAGS="-I/usr/include/$host_cpu-$host_os"
21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enum bpf_stats_type is defined in linux/bpf.h" >&5
21721 printf %s "checking whether enum bpf_stats_type is defined in linux/bpf.h... " >&6; }
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21725 #include <linux/bpf.h>
21731 enum bpf_stats_type foo;
21738 if ac_fn_c_try_compile "$LINENO"
21740 have_bpf_stats_type=yes
21742 have_bpf_stats_type=no
21744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21746 if test "x${have_bpf_stats_type}" = "xyes"; then
21747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21748 printf "%s\n" "yes" >&6; }
21750 printf "%s\n" "#define HAVE_BPF_STATS_TYPE 1" >>confdefs.h
21753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 printf "%s\n" "no" >&6; }
21757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBBPF_PKG_ERRORS" >&5
21758 printf "%s\n" "$as_me: $LIBBPF_PKG_ERRORS" >&6;}
21762 if test "x${request_libbpf}" = "xyes" &&
21763 test "x${have_libbpf}" != "xyes"; then
21764 as_fn_error $? "libbpf was requested (--with-libbpf) but not found" "$LINENO" 5
21767 if test "x${have_libbpf}" = "xyes" ; then
21769 HAVE_LIBBPF_FALSE='#'
21771 HAVE_LIBBPF_TRUE='#'
21776 # libevent_openssl (for examples)
21777 # 2.0.8 is required because we use evconnlistener_set_error_cb()
21778 have_libevent_openssl=no
21779 if test "x${request_libevent_openssl}" != "xno"; then
21782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent_openssl >= 2.0.8" >&5
21783 printf %s "checking for libevent_openssl >= 2.0.8... " >&6; }
21785 if test -n "$LIBEVENT_OPENSSL_CFLAGS"; then
21786 pkg_cv_LIBEVENT_OPENSSL_CFLAGS="$LIBEVENT_OPENSSL_CFLAGS"
21787 elif test -n "$PKG_CONFIG"; then
21788 if test -n "$PKG_CONFIG" && \
21789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
21790 ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
21792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793 test $ac_status = 0; }; then
21794 pkg_cv_LIBEVENT_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libevent_openssl >= 2.0.8" 2>/dev/null`
21795 test "x$?" != "x0" && pkg_failed=yes
21802 if test -n "$LIBEVENT_OPENSSL_LIBS"; then
21803 pkg_cv_LIBEVENT_OPENSSL_LIBS="$LIBEVENT_OPENSSL_LIBS"
21804 elif test -n "$PKG_CONFIG"; then
21805 if test -n "$PKG_CONFIG" && \
21806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
21807 ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
21809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21810 test $ac_status = 0; }; then
21811 pkg_cv_LIBEVENT_OPENSSL_LIBS=`$PKG_CONFIG --libs "libevent_openssl >= 2.0.8" 2>/dev/null`
21812 test "x$?" != "x0" && pkg_failed=yes
21822 if test $pkg_failed = yes; then
21823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824 printf "%s\n" "no" >&6; }
21826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21827 _pkg_short_errors_supported=yes
21829 _pkg_short_errors_supported=no
21831 if test $_pkg_short_errors_supported = yes; then
21832 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
21834 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
21836 # Put the nasty error message in config.log where it belongs
21837 echo "$LIBEVENT_OPENSSL_PKG_ERRORS" >&5
21839 have_libevent_openssl=no
21840 elif test $pkg_failed = untried; then
21841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21842 printf "%s\n" "no" >&6; }
21843 have_libevent_openssl=no
21845 LIBEVENT_OPENSSL_CFLAGS=$pkg_cv_LIBEVENT_OPENSSL_CFLAGS
21846 LIBEVENT_OPENSSL_LIBS=$pkg_cv_LIBEVENT_OPENSSL_LIBS
21847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21848 printf "%s\n" "yes" >&6; }
21849 have_libevent_openssl=yes
21851 if test "x${have_libevent_openssl}" = "xno"; then
21852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBEVENT_OPENSSL_PKG_ERRORS" >&5
21853 printf "%s\n" "$as_me: $LIBEVENT_OPENSSL_PKG_ERRORS" >&6;}
21857 if test "x${request_libevent_openssl}" = "xyes" &&
21858 test "x${have_libevent_openssl}" != "xyes"; then
21859 as_fn_error $? "libevent_openssl was requested (--with-libevent) but not found" "$LINENO" 5
21862 # jansson (for src/nghttp, src/deflatehd and src/inflatehd)
21864 if test "x${request_jansson}" != "xno"; then
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson >= 2.5" >&5
21868 printf %s "checking for jansson >= 2.5... " >&6; }
21870 if test -n "$JANSSON_CFLAGS"; then
21871 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
21872 elif test -n "$PKG_CONFIG"; then
21873 if test -n "$PKG_CONFIG" && \
21874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
21875 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
21877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; then
21879 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null`
21880 test "x$?" != "x0" && pkg_failed=yes
21887 if test -n "$JANSSON_LIBS"; then
21888 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
21889 elif test -n "$PKG_CONFIG"; then
21890 if test -n "$PKG_CONFIG" && \
21891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
21892 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
21894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21895 test $ac_status = 0; }; then
21896 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null`
21897 test "x$?" != "x0" && pkg_failed=yes
21907 if test $pkg_failed = yes; then
21908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909 printf "%s\n" "no" >&6; }
21911 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21912 _pkg_short_errors_supported=yes
21914 _pkg_short_errors_supported=no
21916 if test $_pkg_short_errors_supported = yes; then
21917 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
21919 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
21921 # Put the nasty error message in config.log where it belongs
21922 echo "$JANSSON_PKG_ERRORS" >&5
21925 elif test $pkg_failed = untried; then
21926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21927 printf "%s\n" "no" >&6; }
21930 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
21931 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
21932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21933 printf "%s\n" "yes" >&6; }
21936 if test "x${have_jansson}" = "xyes"; then
21938 printf "%s\n" "#define HAVE_JANSSON 1" >>confdefs.h
21941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $JANSSON_PKG_ERRORS" >&5
21942 printf "%s\n" "$as_me: $JANSSON_PKG_ERRORS" >&6;}
21946 if test "x${request_jansson}" = "xyes" &&
21947 test "x${have_jansson}" != "xyes"; then
21948 as_fn_error $? "jansson was requested (--with-jansson) but not found" "$LINENO" 5
21951 # libsystemd (for src/nghttpx)
21953 if test "x${request_systemd}" != "xno"; then
21956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5
21957 printf %s "checking for libsystemd >= 209... " >&6; }
21959 if test -n "$SYSTEMD_CFLAGS"; then
21960 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
21961 elif test -n "$PKG_CONFIG"; then
21962 if test -n "$PKG_CONFIG" && \
21963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
21964 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
21966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967 test $ac_status = 0; }; then
21968 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
21969 test "x$?" != "x0" && pkg_failed=yes
21976 if test -n "$SYSTEMD_LIBS"; then
21977 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
21978 elif test -n "$PKG_CONFIG"; then
21979 if test -n "$PKG_CONFIG" && \
21980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
21981 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
21983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21984 test $ac_status = 0; }; then
21985 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
21986 test "x$?" != "x0" && pkg_failed=yes
21996 if test $pkg_failed = yes; then
21997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21998 printf "%s\n" "no" >&6; }
22000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22001 _pkg_short_errors_supported=yes
22003 _pkg_short_errors_supported=no
22005 if test $_pkg_short_errors_supported = yes; then
22006 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
22008 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
22010 # Put the nasty error message in config.log where it belongs
22011 echo "$SYSTEMD_PKG_ERRORS" >&5
22014 elif test $pkg_failed = untried; then
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22016 printf "%s\n" "no" >&6; }
22019 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
22020 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
22021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022 printf "%s\n" "yes" >&6; }
22023 have_libsystemd=yes
22025 if test "x${have_libsystemd}" = "xyes"; then
22027 printf "%s\n" "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
22030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $SYSTEMD_PKG_ERRORS" >&5
22031 printf "%s\n" "$as_me: $SYSTEMD_PKG_ERRORS" >&6;}
22035 if test "x${request_systemd}" = "xyes" &&
22036 test "x${have_libsystemd}" != "xyes"; then
22037 as_fn_error $? "systemd was requested (--with-systemd) but not found" "$LINENO" 5
22040 # libxml2 (for src/nghttp)
22042 if test "x${request_libxml2}" != "xno"; then
22045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.26" >&5
22046 printf %s "checking for libxml-2.0 >= 2.6.26... " >&6; }
22048 if test -n "$LIBXML2_CFLAGS"; then
22049 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
22050 elif test -n "$PKG_CONFIG"; then
22051 if test -n "$PKG_CONFIG" && \
22052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
22053 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
22055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22056 test $ac_status = 0; }; then
22057 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.26" 2>/dev/null`
22058 test "x$?" != "x0" && pkg_failed=yes
22065 if test -n "$LIBXML2_LIBS"; then
22066 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
22067 elif test -n "$PKG_CONFIG"; then
22068 if test -n "$PKG_CONFIG" && \
22069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
22070 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
22072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22073 test $ac_status = 0; }; then
22074 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.26" 2>/dev/null`
22075 test "x$?" != "x0" && pkg_failed=yes
22085 if test $pkg_failed = yes; then
22086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087 printf "%s\n" "no" >&6; }
22089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22090 _pkg_short_errors_supported=yes
22092 _pkg_short_errors_supported=no
22094 if test $_pkg_short_errors_supported = yes; then
22095 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
22097 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
22099 # Put the nasty error message in config.log where it belongs
22100 echo "$LIBXML2_PKG_ERRORS" >&5
22103 elif test $pkg_failed = untried; then
22104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22105 printf "%s\n" "no" >&6; }
22108 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
22109 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
22110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 printf "%s\n" "yes" >&6; }
22114 if test "x${have_libxml2}" = "xyes"; then
22116 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LIBXML2_PKG_ERRORS" >&5
22120 printf "%s\n" "$as_me: $LIBXML2_PKG_ERRORS" >&6;}
22124 if test "x${request_libxml2}" = "xyes" &&
22125 test "x${have_libxml2}" != "xyes"; then
22126 as_fn_error $? "libxml2 was requested (--with-libxml2) but not found" "$LINENO" 5
22129 if test "x${have_libxml2}" = "xyes" ; then
22131 HAVE_LIBXML2_FALSE='#'
22133 HAVE_LIBXML2_TRUE='#'
22134 HAVE_LIBXML2_FALSE=
22140 if test "x${request_jemalloc}" != "xno"; then
22141 if test "x${JEMALLOC_LIBS}" = "x" && test "x${JEMALLOC_CFLAGS}" = "x"; then
22143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
22144 printf %s "checking for library containing malloc_stats_print... " >&6; }
22145 if test ${ac_cv_search_malloc_stats_print+y}
22147 printf %s "(cached) " >&6
22149 ac_func_search_save_LIBS=$LIBS
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22153 /* Override any GCC internal prototype to avoid an error.
22154 Use char because int might match the return type of a GCC
22155 builtin and then its argument prototype would still apply. */
22156 char malloc_stats_print ();
22160 return malloc_stats_print ();
22165 for ac_lib in '' jemalloc
22167 if test -z "$ac_lib"; then
22168 ac_res="none required"
22171 LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
22173 if ac_fn_c_try_link "$LINENO"
22175 ac_cv_search_malloc_stats_print=$ac_res
22177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22179 if test ${ac_cv_search_malloc_stats_print+y}
22184 if test ${ac_cv_search_malloc_stats_print+y}
22188 ac_cv_search_malloc_stats_print=no
22190 rm conftest.$ac_ext
22191 LIBS=$ac_func_search_save_LIBS
22193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
22194 printf "%s\n" "$ac_cv_search_malloc_stats_print" >&6; }
22195 ac_res=$ac_cv_search_malloc_stats_print
22196 if test "$ac_res" != no
22198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22203 if test "x${have_jemalloc}" = "xyes"; then
22204 jemalloc_libs=${ac_cv_search_malloc_stats_print}
22206 # On Darwin, malloc_stats_print is je_malloc_stats_print
22207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
22208 printf %s "checking for library containing je_malloc_stats_print... " >&6; }
22209 if test ${ac_cv_search_je_malloc_stats_print+y}
22211 printf %s "(cached) " >&6
22213 ac_func_search_save_LIBS=$LIBS
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22217 /* Override any GCC internal prototype to avoid an error.
22218 Use char because int might match the return type of a GCC
22219 builtin and then its argument prototype would still apply. */
22220 char je_malloc_stats_print ();
22224 return je_malloc_stats_print ();
22229 for ac_lib in '' jemalloc
22231 if test -z "$ac_lib"; then
22232 ac_res="none required"
22235 LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
22237 if ac_fn_c_try_link "$LINENO"
22239 ac_cv_search_je_malloc_stats_print=$ac_res
22241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22243 if test ${ac_cv_search_je_malloc_stats_print+y}
22248 if test ${ac_cv_search_je_malloc_stats_print+y}
22252 ac_cv_search_je_malloc_stats_print=no
22254 rm conftest.$ac_ext
22255 LIBS=$ac_func_search_save_LIBS
22257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
22258 printf "%s\n" "$ac_cv_search_je_malloc_stats_print" >&6; }
22259 ac_res=$ac_cv_search_je_malloc_stats_print
22260 if test "$ac_res" != no
22262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22267 if test "x${have_jemalloc}" = "xyes"; then
22268 jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
22274 if test "x${have_jemalloc}" = "xyes" &&
22275 test "x${jemalloc_libs}" != "xnone required"; then
22276 JEMALLOC_LIBS=${jemalloc_libs}
22283 if test "x${request_jemalloc}" = "xyes" &&
22284 test "x${have_jemalloc}" != "xyes"; then
22285 as_fn_error $? "jemalloc was requested (--with-jemalloc) but not found" "$LINENO" 5
22288 # Check Boost Asio library
22291 if test "x${request_asio_lib}" = "xyes"; then
22294 # Check whether --with-boost was given.
22295 if test ${with_boost+y}
22297 withval=$with_boost;
22298 if test "$withval" = "no"; then
22300 elif test "$withval" = "yes"; then
22305 ac_boost_path="$withval"
22315 # Check whether --with-boost-libdir was given.
22316 if test ${with_boost_libdir+y}
22318 withval=$with_boost_libdir;
22319 if test -d "$withval"
22321 ac_boost_lib_path="$withval"
22323 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
22327 ac_boost_lib_path=""
22332 if test "x$want_boost" = "xyes"; then
22333 boost_lib_version_req=1.54.0
22334 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
22335 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
22336 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
22337 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22338 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
22339 boost_lib_version_req_sub_minor="0"
22341 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
22342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
22343 printf %s "checking for boostlib >= $boost_lib_version_req... " >&6; }
22350 libsubdirs="lib64 libx32 lib lib64"
22352 ppc64|s390x|sparc64|aarch64|ppc64le)
22353 libsubdirs="lib64 lib lib64 ppc64le"
22358 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
22360 case ${host_cpu} in
22362 libsubdirs="lib/i386-${host_os} $libsubdirs"
22366 if test "$ac_boost_path" != ""; then
22367 BOOST_CPPFLAGS="-I$ac_boost_path/include"
22368 for ac_boost_path_tmp in $libsubdirs; do
22369 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
22370 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
22374 elif test "$cross_compiling" != yes; then
22375 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
22376 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
22377 for libsubdir in $libsubdirs ; do
22378 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
22380 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
22381 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
22387 if test "$ac_boost_lib_path" != ""; then
22388 BOOST_LDFLAGS="-L$ac_boost_lib_path"
22391 CPPFLAGS_SAVED="$CPPFLAGS"
22392 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22395 LDFLAGS_SAVED="$LDFLAGS"
22396 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22401 ac_cpp='$CXXCPP $CPPFLAGS'
22402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22409 #include <boost/version.hpp>
22415 #if BOOST_VERSION >= $WANT_BOOST_VERSION
22416 // Everything is okay
22418 # error Boost version is too old
22425 if ac_fn_cxx_try_compile "$LINENO"
22428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22429 printf "%s\n" "yes" >&6; }
22434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22444 if test "x$succeeded" != "xyes"; then
22446 if test "$ac_boost_path" != ""; then
22447 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
22448 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
22449 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
22450 V_CHECK=`expr $_version_tmp \> $_version`
22451 if test "$V_CHECK" = "1" ; then
22452 _version=$_version_tmp
22454 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
22455 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
22459 if test "$cross_compiling" != yes; then
22460 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
22461 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
22462 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
22463 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
22464 V_CHECK=`expr $_version_tmp \> $_version`
22465 if test "$V_CHECK" = "1" ; then
22466 _version=$_version_tmp
22467 best_path=$ac_boost_path
22473 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
22474 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
22475 if test "$ac_boost_lib_path" = ""; then
22476 for libsubdir in $libsubdirs ; do
22477 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
22479 BOOST_LDFLAGS="-L$best_path/$libsubdir"
22483 if test "x$BOOST_ROOT" != "x"; then
22484 for libsubdir in $libsubdirs ; do
22485 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
22487 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
22488 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
22489 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
22490 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
22491 V_CHECK=`expr $stage_version_shorten \>\= $_version`
22492 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
22493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
22494 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
22495 BOOST_CPPFLAGS="-I$BOOST_ROOT"
22496 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
22502 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22504 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22508 ac_cpp='$CXXCPP $CPPFLAGS'
22509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22516 #include <boost/version.hpp>
22522 #if BOOST_VERSION >= $WANT_BOOST_VERSION
22523 // Everything is okay
22525 # error Boost version is too old
22532 if ac_fn_cxx_try_compile "$LINENO"
22535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22536 printf "%s\n" "yes" >&6; }
22541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22543 ac_cpp='$CPP $CPPFLAGS'
22544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22550 if test "$succeeded" != "yes" ; then
22551 if test "$_version" = "0" ; then
22552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
22553 printf "%s\n" "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
22555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
22556 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
22558 # execute ACTION-IF-NOT-FOUND (if present):
22564 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
22566 # execute ACTION-IF-FOUND (if present):
22567 have_boost_base=yes
22570 CPPFLAGS="$CPPFLAGS_SAVED"
22571 LDFLAGS="$LDFLAGS_SAVED"
22576 if test "x${have_boost_base}" = "xyes"; then
22579 # Check whether --with-boost-asio was given.
22580 if test ${with_boost_asio+y}
22582 withval=$with_boost_asio;
22583 if test "$withval" = "no"; then
22585 elif test "$withval" = "yes"; then
22587 ax_boost_user_asio_lib=""
22590 ax_boost_user_asio_lib="$withval"
22599 if test "x$want_boost" = "xyes"; then
22601 CPPFLAGS_SAVED="$CPPFLAGS"
22602 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22605 LDFLAGS_SAVED="$LDFLAGS"
22606 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
22610 printf %s "checking whether the Boost::ASIO library is available... " >&6; }
22611 if test ${ax_cv_boost_asio+y}
22613 printf %s "(cached) " >&6
22616 ac_cpp='$CXXCPP $CPPFLAGS'
22617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22622 /* end confdefs.h. */
22623 #include <boost/asio.hpp>
22630 boost::asio::io_service io;
22631 boost::system::error_code timer_result;
22632 boost::asio::deadline_timer t(io);
22641 if ac_fn_cxx_try_compile "$LINENO"
22643 ax_cv_boost_asio=yes
22645 ax_cv_boost_asio=no
22647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22649 ac_cpp='$CPP $CPPFLAGS'
22650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
22657 printf "%s\n" "$ax_cv_boost_asio" >&6; }
22658 if test "x$ax_cv_boost_asio" = "xyes"; then
22660 printf "%s\n" "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
22663 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
22664 if test "x$ax_boost_user_asio_lib" = "x"; then
22665 for ax_lib in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.dylib* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_system.*\)\.a.*$;\1;' ` ; do
22666 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_main" | $as_tr_sh`
22667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
22668 printf %s "checking for main in -l$ax_lib... " >&6; }
22669 if eval test \${$as_ac_Lib+y}
22671 printf %s "(cached) " >&6
22673 ac_check_lib_save_LIBS=$LIBS
22674 LIBS="-l$ax_lib $LIBS"
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22687 if ac_fn_c_try_link "$LINENO"
22689 eval "$as_ac_Lib=yes"
22691 eval "$as_ac_Lib=no"
22693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22694 conftest$ac_exeext conftest.$ac_ext
22695 LIBS=$ac_check_lib_save_LIBS
22697 eval ac_res=\$$as_ac_Lib
22698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22699 printf "%s\n" "$ac_res" >&6; }
22700 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22702 BOOST_ASIO_LIB="-l$ax_lib" link_thread="yes" break
22709 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
22710 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_main" | $as_tr_sh`
22711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
22712 printf %s "checking for main in -l$ax_lib... " >&6; }
22713 if eval test \${$as_ac_Lib+y}
22715 printf %s "(cached) " >&6
22717 ac_check_lib_save_LIBS=$LIBS
22718 LIBS="-l$ax_lib $LIBS"
22719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22720 /* end confdefs.h. */
22731 if ac_fn_c_try_link "$LINENO"
22733 eval "$as_ac_Lib=yes"
22735 eval "$as_ac_Lib=no"
22737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22738 conftest$ac_exeext conftest.$ac_ext
22739 LIBS=$ac_check_lib_save_LIBS
22741 eval ac_res=\$$as_ac_Lib
22742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22743 printf "%s\n" "$ac_res" >&6; }
22744 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22746 BOOST_ASIO_LIB="-l$ax_lib" link_asio="yes" break
22754 if test "x$ax_lib" = "x"; then
22755 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
22757 if test "x$link_asio" = "xno"; then
22758 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
22762 CPPFLAGS="$CPPFLAGS_SAVED"
22763 LDFLAGS="$LDFLAGS_SAVED"
22768 # Check whether --with-boost-system was given.
22769 if test ${with_boost_system+y}
22771 withval=$with_boost_system;
22772 if test "$withval" = "no"; then
22774 elif test "$withval" = "yes"; then
22776 ax_boost_user_system_lib=""
22779 ax_boost_user_system_lib="$withval"
22788 if test "x$want_boost" = "xyes"; then
22791 CPPFLAGS_SAVED="$CPPFLAGS"
22792 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
22795 LDFLAGS_SAVED="$LDFLAGS"
22796 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
22799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
22800 printf %s "checking whether the Boost::System library is available... " >&6; }
22801 if test ${ax_cv_boost_system+y}
22803 printf %s "(cached) " >&6
22806 ac_cpp='$CXXCPP $CPPFLAGS'
22807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22811 CXXFLAGS_SAVE=$CXXFLAGS
22813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22814 /* end confdefs.h. */
22815 #include <boost/system/error_code.hpp>
22819 boost::system::system_category
22824 if ac_fn_cxx_try_compile "$LINENO"
22826 ax_cv_boost_system=yes
22828 ax_cv_boost_system=no
22830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22831 CXXFLAGS=$CXXFLAGS_SAVE
22833 ac_cpp='$CPP $CPPFLAGS'
22834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
22841 printf "%s\n" "$ax_cv_boost_system" >&6; }
22842 if test "x$ax_cv_boost_system" = "xyes"; then
22846 printf "%s\n" "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
22848 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
22850 LDFLAGS_SAVE=$LDFLAGS
22851 if test "x$ax_boost_user_system_lib" = "x"; then
22852 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
22853 ax_lib=${libextension}
22854 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
22855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
22856 printf %s "checking for exit in -l$ax_lib... " >&6; }
22857 if eval test \${$as_ac_Lib+y}
22859 printf %s "(cached) " >&6
22861 ac_check_lib_save_LIBS=$LIBS
22862 LIBS="-l$ax_lib $LIBS"
22863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22864 /* end confdefs.h. */
22866 /* Override any GCC internal prototype to avoid an error.
22867 Use char because int might match the return type of a GCC
22868 builtin and then its argument prototype would still apply. */
22878 if ac_fn_c_try_link "$LINENO"
22880 eval "$as_ac_Lib=yes"
22882 eval "$as_ac_Lib=no"
22884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22885 conftest$ac_exeext conftest.$ac_ext
22886 LIBS=$ac_check_lib_save_LIBS
22888 eval ac_res=\$$as_ac_Lib
22889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22890 printf "%s\n" "$ac_res" >&6; }
22891 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22893 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
22899 if test "x$link_system" != "xyes"; then
22900 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
22901 ax_lib=${libextension}
22902 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
22903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
22904 printf %s "checking for exit in -l$ax_lib... " >&6; }
22905 if eval test \${$as_ac_Lib+y}
22907 printf %s "(cached) " >&6
22909 ac_check_lib_save_LIBS=$LIBS
22910 LIBS="-l$ax_lib $LIBS"
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22914 /* Override any GCC internal prototype to avoid an error.
22915 Use char because int might match the return type of a GCC
22916 builtin and then its argument prototype would still apply. */
22926 if ac_fn_c_try_link "$LINENO"
22928 eval "$as_ac_Lib=yes"
22930 eval "$as_ac_Lib=no"
22932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22933 conftest$ac_exeext conftest.$ac_ext
22934 LIBS=$ac_check_lib_save_LIBS
22936 eval ac_res=\$$as_ac_Lib
22937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22938 printf "%s\n" "$ac_res" >&6; }
22939 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22941 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
22950 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
22951 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
22952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
22953 printf %s "checking for exit in -l$ax_lib... " >&6; }
22954 if eval test \${$as_ac_Lib+y}
22956 printf %s "(cached) " >&6
22958 ac_check_lib_save_LIBS=$LIBS
22959 LIBS="-l$ax_lib $LIBS"
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h. */
22963 /* Override any GCC internal prototype to avoid an error.
22964 Use char because int might match the return type of a GCC
22965 builtin and then its argument prototype would still apply. */
22975 if ac_fn_c_try_link "$LINENO"
22977 eval "$as_ac_Lib=yes"
22979 eval "$as_ac_Lib=no"
22981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22982 conftest$ac_exeext conftest.$ac_ext
22983 LIBS=$ac_check_lib_save_LIBS
22985 eval ac_res=\$$as_ac_Lib
22986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22987 printf "%s\n" "$ac_res" >&6; }
22988 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
22990 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
22998 if test "x$ax_lib" = "x"; then
22999 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
23001 if test "x$link_system" = "xno"; then
23002 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
23006 CPPFLAGS="$CPPFLAGS_SAVED"
23007 LDFLAGS="$LDFLAGS_SAVED"
23012 # Check whether --with-boost-thread was given.
23013 if test ${with_boost_thread+y}
23015 withval=$with_boost_thread;
23016 if test "$withval" = "no"; then
23018 elif test "$withval" = "yes"; then
23020 ax_boost_user_thread_lib=""
23023 ax_boost_user_thread_lib="$withval"
23032 if test "x$want_boost" = "xyes"; then
23035 CPPFLAGS_SAVED="$CPPFLAGS"
23036 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
23039 LDFLAGS_SAVED="$LDFLAGS"
23040 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
23043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
23044 printf %s "checking whether the Boost::Thread library is available... " >&6; }
23045 if test ${ax_cv_boost_thread+y}
23047 printf %s "(cached) " >&6
23050 ac_cpp='$CXXCPP $CPPFLAGS'
23051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23055 CXXFLAGS_SAVE=$CXXFLAGS
23057 if test "x$host_os" = "xsolaris" ; then
23058 CXXFLAGS="-pthreads $CXXFLAGS"
23059 elif test "x$host_os" = "xmingw32" ; then
23060 CXXFLAGS="-mthreads $CXXFLAGS"
23062 CXXFLAGS="-pthread $CXXFLAGS"
23064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065 /* end confdefs.h. */
23066 #include <boost/thread/thread.hpp>
23070 boost::thread_group thrds;
23076 if ac_fn_cxx_try_compile "$LINENO"
23078 ax_cv_boost_thread=yes
23080 ax_cv_boost_thread=no
23082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23083 CXXFLAGS=$CXXFLAGS_SAVE
23085 ac_cpp='$CPP $CPPFLAGS'
23086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
23093 printf "%s\n" "$ax_cv_boost_thread" >&6; }
23094 if test "x$ax_cv_boost_thread" = "xyes"; then
23095 if test "x$host_os" = "xsolaris" ; then
23096 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
23097 elif test "x$host_os" = "xmingw32" ; then
23098 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
23100 BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
23106 printf "%s\n" "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
23108 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
23110 LDFLAGS_SAVE=$LDFLAGS
23111 case "x$host_os" in
23113 LDFLAGS="-pthread $LDFLAGS"
23117 if test "x$ax_boost_user_thread_lib" = "x"; then
23118 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
23119 ax_lib=${libextension}
23120 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
23121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23122 printf %s "checking for exit in -l$ax_lib... " >&6; }
23123 if eval test \${$as_ac_Lib+y}
23125 printf %s "(cached) " >&6
23127 ac_check_lib_save_LIBS=$LIBS
23128 LIBS="-l$ax_lib $LIBS"
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h. */
23132 /* Override any GCC internal prototype to avoid an error.
23133 Use char because int might match the return type of a GCC
23134 builtin and then its argument prototype would still apply. */
23144 if ac_fn_c_try_link "$LINENO"
23146 eval "$as_ac_Lib=yes"
23148 eval "$as_ac_Lib=no"
23150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23151 conftest$ac_exeext conftest.$ac_ext
23152 LIBS=$ac_check_lib_save_LIBS
23154 eval ac_res=\$$as_ac_Lib
23155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23156 printf "%s\n" "$ac_res" >&6; }
23157 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23159 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
23165 if test "x$link_thread" != "xyes"; then
23166 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
23167 ax_lib=${libextension}
23168 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
23169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23170 printf %s "checking for exit in -l$ax_lib... " >&6; }
23171 if eval test \${$as_ac_Lib+y}
23173 printf %s "(cached) " >&6
23175 ac_check_lib_save_LIBS=$LIBS
23176 LIBS="-l$ax_lib $LIBS"
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h. */
23180 /* Override any GCC internal prototype to avoid an error.
23181 Use char because int might match the return type of a GCC
23182 builtin and then its argument prototype would still apply. */
23192 if ac_fn_c_try_link "$LINENO"
23194 eval "$as_ac_Lib=yes"
23196 eval "$as_ac_Lib=no"
23198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23199 conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23202 eval ac_res=\$$as_ac_Lib
23203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23204 printf "%s\n" "$ac_res" >&6; }
23205 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23207 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
23216 for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
23217 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
23218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23219 printf %s "checking for exit in -l$ax_lib... " >&6; }
23220 if eval test \${$as_ac_Lib+y}
23222 printf %s "(cached) " >&6
23224 ac_check_lib_save_LIBS=$LIBS
23225 LIBS="-l$ax_lib $LIBS"
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h. */
23229 /* Override any GCC internal prototype to avoid an error.
23230 Use char because int might match the return type of a GCC
23231 builtin and then its argument prototype would still apply. */
23241 if ac_fn_c_try_link "$LINENO"
23243 eval "$as_ac_Lib=yes"
23245 eval "$as_ac_Lib=no"
23247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23248 conftest$ac_exeext conftest.$ac_ext
23249 LIBS=$ac_check_lib_save_LIBS
23251 eval ac_res=\$$as_ac_Lib
23252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23253 printf "%s\n" "$ac_res" >&6; }
23254 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23256 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
23264 if test "x$ax_lib" = "x"; then
23265 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
23267 if test "x$link_thread" = "xno"; then
23268 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
23270 case "x$host_os" in
23272 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
23280 CPPFLAGS="$CPPFLAGS_SAVED"
23281 LDFLAGS="$LDFLAGS_SAVED"
23285 if test "x${ax_cv_boost_asio}" = "xyes" &&
23286 test "x${ax_cv_boost_system}" = "xyes" &&
23287 test "x${ax_cv_boost_thread}" = "xyes"; then
23293 # The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL,
23294 # libev, and libc-ares.
23296 if test "x${request_app}" != "xno" &&
23297 test "x${have_zlib}" = "xyes" &&
23298 test "x${have_openssl}" = "xyes" &&
23299 test "x${have_libev}" = "xyes" &&
23300 test "x${have_libcares}" = "xyes"; then
23304 if test "x${request_app}" = "xyes" &&
23305 test "x${enable_app}" != "xyes"; then
23306 as_fn_error $? "applications were requested (--enable-app) but dependencies are not met." "$LINENO" 5
23309 if test "x${enable_app}" = "xyes" ; then
23311 ENABLE_APP_FALSE='#'
23313 ENABLE_APP_TRUE='#'
23318 # Check HTTP/3 support
23320 if test "x${request_http3}" != "xno" &&
23321 (test "x${have_ssl_is_quic}" = "xyes" ||
23322 test "x${have_boringssl_quic}" = "xyes") &&
23323 test "x${have_libngtcp2}" = "xyes" &&
23324 (test "x${have_libngtcp2_crypto_openssl}" = "xyes" ||
23325 test "x${have_libngtcp2_crypto_boringssl}" = "xyes") &&
23326 test "x${have_libnghttp3}" = "xyes"; then
23329 printf "%s\n" "#define ENABLE_HTTP3 1" >>confdefs.h
23333 if test "x${request_http3}" = "xyes" &&
23334 test "x${enable_http3}" != "xyes"; then
23335 as_fn_error $? "HTTP/3 was requested (--enable-http3) but dependencies are not met." "$LINENO" 5
23338 if test "x${enable_http3}" = "xyes" ; then
23340 ENABLE_HTTP3_FALSE='#'
23342 ENABLE_HTTP3_TRUE='#'
23343 ENABLE_HTTP3_FALSE=
23347 enable_hpack_tools=no
23348 # HPACK tools requires jansson
23349 if test "x${request_hpack_tools}" != "xno" &&
23350 test "x${have_jansson}" = "xyes"; then
23351 enable_hpack_tools=yes
23354 if test "x${request_hpack_tools}" = "xyes" &&
23355 test "x${enable_hpack_tools}" != "xyes"; then
23356 as_fn_error $? "HPACK tools were requested (--enable-hpack-tools) but dependencies are not met." "$LINENO" 5
23359 if test "x${enable_hpack_tools}" = "xyes" ; then
23360 ENABLE_HPACK_TOOLS_TRUE=
23361 ENABLE_HPACK_TOOLS_FALSE='#'
23363 ENABLE_HPACK_TOOLS_TRUE='#'
23364 ENABLE_HPACK_TOOLS_FALSE=
23368 # C++ library libnghttp2_asio
23371 if test "x${request_asio_lib}" != "xno" &&
23372 test "x${have_asio_lib}" = "xyes"; then
23373 enable_asio_lib=yes
23376 if test "x${enable_asio_lib}" = "xyes" ; then
23377 ENABLE_ASIO_LIB_TRUE=
23378 ENABLE_ASIO_LIB_FALSE='#'
23380 ENABLE_ASIO_LIB_TRUE='#'
23381 ENABLE_ASIO_LIB_FALSE=
23385 # The example programs depend on OpenSSL and libevent_openssl
23387 if test "x${request_examples}" != "xno" &&
23388 test "x${have_openssl}" = "xyes" &&
23389 test "x${have_libevent_openssl}" = "xyes"; then
23390 enable_examples=yes
23393 if test "x${request_examples}" = "xyes" &&
23394 test "x${enable_examples}" != "xyes"; then
23395 as_fn_error $? "examples were requested (--enable-examples) but dependencies are not met." "$LINENO" 5
23398 if test "x${enable_examples}" = "xyes" ; then
23399 ENABLE_EXAMPLES_TRUE=
23400 ENABLE_EXAMPLES_FALSE='#'
23402 ENABLE_EXAMPLES_TRUE='#'
23403 ENABLE_EXAMPLES_FALSE=
23407 # third-party only be built when needed
23409 enable_third_party=no
23412 if test "x${enable_examples}" = "xyes" ||
23413 test "x${enable_app}" = "xyes" ||
23414 test "x${enable_hpack_tools}" = "xyes" ||
23415 test "x${enable_asio_lib}" = "xyes"; then
23416 enable_third_party=yes
23418 # mruby (for src/nghttpx)
23419 if test "x${request_mruby}" = "xyes"; then
23420 # We are going to build mruby
23423 printf "%s\n" "#define HAVE_MRUBY 1" >>confdefs.h
23425 LIBMRUBY_LIBS="-lmruby -lm"
23431 # neverbleed (for src/nghttpx)
23432 if test "x${request_neverbleed}" = "xyes"; then
23433 have_neverbleed=yes
23435 printf "%s\n" "#define HAVE_NEVERBLEED 1" >>confdefs.h
23440 if test "x${enable_third_party}" = "xyes" ; then
23441 ENABLE_THIRD_PARTY_TRUE=
23442 ENABLE_THIRD_PARTY_FALSE='#'
23444 ENABLE_THIRD_PARTY_TRUE='#'
23445 ENABLE_THIRD_PARTY_FALSE=
23448 if test "x${have_mruby}" = "xyes"; then
23450 HAVE_MRUBY_FALSE='#'
23452 HAVE_MRUBY_TRUE='#'
23456 if test "x${have_neverbleed}" = "xyes"; then
23457 HAVE_NEVERBLEED_TRUE=
23458 HAVE_NEVERBLEED_FALSE='#'
23460 HAVE_NEVERBLEED_TRUE='#'
23461 HAVE_NEVERBLEED_FALSE=
23466 enable_python_bindings=no
23467 if test "x${request_python_bindings}" != "xno" &&
23468 test "x${CYTHON}" != "x" &&
23469 test "x${PYTHON}" != "x:" &&
23470 test "x${PYTHON_VERSION}" != "x"; then
23471 enable_python_bindings=yes
23474 if test "x${request_python_bindings}" = "xyes" &&
23475 test "x${enable_python_bindings}" != "xyes"; then
23476 as_fn_error $? "python bindings were requested (--enable-python-bindings) but dependencies are not met." "$LINENO" 5
23479 if test "x${enable_python_bindings}" = "xyes"; then
23480 ENABLE_PYTHON_BINDINGS_TRUE=
23481 ENABLE_PYTHON_BINDINGS_FALSE='#'
23483 ENABLE_PYTHON_BINDINGS_TRUE='#'
23484 ENABLE_PYTHON_BINDINGS_FALSE=
23488 # Produce cython conditional, so that we can distribute generated C
23490 if test "x${CYTHON}" != "x"; then
23492 HAVE_CYTHON_FALSE='#'
23494 HAVE_CYTHON_TRUE='#'
23500 enable_failmalloc=no
23501 if test "x${request_failmalloc}" = "xyes"; then
23502 enable_failmalloc=yes
23505 if test "x${enable_failmalloc}" = "xyes" ; then
23506 ENABLE_FAILMALLOC_TRUE=
23507 ENABLE_FAILMALLOC_FALSE='#'
23509 ENABLE_FAILMALLOC_TRUE='#'
23510 ENABLE_FAILMALLOC_FALSE=
23514 # Checks for header files.
23516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
23517 printf %s "checking whether to enable assertions... " >&6; }
23518 # Check whether --enable-assert was given.
23519 if test ${enable_assert+y}
23521 enableval=$enable_assert; ac_enable_assert=$enableval
23522 if test "x$enableval" = xno
23525 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
23527 elif test "x$enableval" != xyes
23529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
23530 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
23531 ac_enable_assert=yes
23534 ac_enable_assert=yes
23537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
23538 printf "%s\n" "$ac_enable_assert" >&6; }
23540 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23541 if test "x$ac_cv_header_arpa_inet_h" = xyes
23543 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
23546 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
23547 if test "x$ac_cv_header_fcntl_h" = xyes
23549 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
23552 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23553 if test "x$ac_cv_header_inttypes_h" = xyes
23555 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
23558 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
23559 if test "x$ac_cv_header_limits_h" = xyes
23561 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
23564 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
23565 if test "x$ac_cv_header_netdb_h" = xyes
23567 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
23570 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23571 if test "x$ac_cv_header_netinet_in_h" = xyes
23573 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
23576 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
23577 if test "x$ac_cv_header_pwd_h" = xyes
23579 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
23582 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
23583 if test "x$ac_cv_header_stddef_h" = xyes
23585 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
23588 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23589 if test "x$ac_cv_header_stdint_h" = xyes
23591 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
23594 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23595 if test "x$ac_cv_header_stdlib_h" = xyes
23597 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
23600 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
23601 if test "x$ac_cv_header_string_h" = xyes
23603 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23606 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23607 if test "x$ac_cv_header_sys_socket_h" = xyes
23609 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
23612 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23613 if test "x$ac_cv_header_sys_time_h" = xyes
23615 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23618 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
23619 if test "x$ac_cv_header_syslog_h" = xyes
23621 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
23624 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
23625 if test "x$ac_cv_header_time_h" = xyes
23627 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
23630 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23631 if test "x$ac_cv_header_unistd_h" = xyes
23633 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
23638 # Checks for typedefs, structures, and compiler characteristics.
23639 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23640 if test "x$ac_cv_type_size_t" = xyes
23645 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
23649 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23650 if test "x$ac_cv_type_ssize_t" = xyes
23655 printf "%s\n" "#define ssize_t int" >>confdefs.h
23659 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23660 case $ac_cv_c_uint8_t in #(
23664 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
23667 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
23671 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23672 case $ac_cv_c_uint16_t in #(
23677 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
23681 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23682 case $ac_cv_c_uint32_t in #(
23686 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
23689 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
23693 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23694 case $ac_cv_c_uint64_t in #(
23698 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
23701 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
23705 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23706 case $ac_cv_c_int8_t in #(
23710 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
23714 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23715 case $ac_cv_c_int16_t in #(
23719 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
23723 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23724 case $ac_cv_c_int32_t in #(
23728 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
23732 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23733 case $ac_cv_c_int64_t in #(
23737 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
23741 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23742 if test "x$ac_cv_type_off_t" = xyes
23747 printf "%s\n" "#define off_t long int" >>confdefs.h
23752 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
23754 if test "x$ac_cv_type_pid_t" = xyes
23758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23761 #if defined _WIN64 && !defined __CYGWIN__
23774 if ac_fn_c_try_compile "$LINENO"
23778 ac_pid_type='__int64'
23780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23782 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
23789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23790 printf %s "checking for uid_t in sys/types.h... " >&6; }
23791 if test ${ac_cv_type_uid_t+y}
23793 printf %s "(cached) " >&6
23795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h. */
23797 #include <sys/types.h>
23800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23801 $EGREP "uid_t" >/dev/null 2>&1
23803 ac_cv_type_uid_t=yes
23805 ac_cv_type_uid_t=no
23810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23811 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
23812 if test $ac_cv_type_uid_t = no; then
23814 printf "%s\n" "#define uid_t int" >>confdefs.h
23817 printf "%s\n" "#define gid_t int" >>confdefs.h
23821 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23822 if test "x$ac_cv_type_ptrdiff_t" = xyes
23825 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
23830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23831 printf %s "checking whether byte ordering is bigendian... " >&6; }
23832 if test ${ac_cv_c_bigendian+y}
23834 printf %s "(cached) " >&6
23836 ac_cv_c_bigendian=unknown
23837 # See if we're dealing with a universal compiler.
23838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h. */
23840 #ifndef __APPLE_CC__
23841 not a universal capable compiler
23846 if ac_fn_c_try_compile "$LINENO"
23849 # Check for potential -arch flags. It is not universal unless
23850 # there are at least two -arch flags with different values.
23853 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23854 if test -n "$ac_prev"; then
23856 i?86 | x86_64 | ppc | ppc64)
23857 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23860 ac_cv_c_bigendian=universal
23866 elif test "x$ac_word" = "x-arch"; then
23871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23872 if test $ac_cv_c_bigendian = unknown; then
23873 # See if sys/param.h defines the BYTE_ORDER macro.
23874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23875 /* end confdefs.h. */
23876 #include <sys/types.h>
23877 #include <sys/param.h>
23882 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23885 bogus endian macros
23892 if ac_fn_c_try_compile "$LINENO"
23894 # It does; now see whether it defined to BIG_ENDIAN or not.
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23897 #include <sys/types.h>
23898 #include <sys/param.h>
23903 #if BYTE_ORDER != BIG_ENDIAN
23911 if ac_fn_c_try_compile "$LINENO"
23913 ac_cv_c_bigendian=yes
23915 ac_cv_c_bigendian=no
23917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23921 if test $ac_cv_c_bigendian = unknown; then
23922 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h. */
23925 #include <limits.h>
23930 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23931 bogus endian macros
23938 if ac_fn_c_try_compile "$LINENO"
23940 # It does; now see whether it defined to _BIG_ENDIAN or not.
23941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23942 /* end confdefs.h. */
23943 #include <limits.h>
23948 #ifndef _BIG_ENDIAN
23956 if ac_fn_c_try_compile "$LINENO"
23958 ac_cv_c_bigendian=yes
23960 ac_cv_c_bigendian=no
23962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23966 if test $ac_cv_c_bigendian = unknown; then
23967 # Compile a test program.
23968 if test "$cross_compiling" = yes
23970 # Try to guess by grepping values from an object file.
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h. */
23973 unsigned short int ascii_mm[] =
23974 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23975 unsigned short int ascii_ii[] =
23976 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23977 int use_ascii (int i) {
23978 return ascii_mm[i] + ascii_ii[i];
23980 unsigned short int ebcdic_ii[] =
23981 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23982 unsigned short int ebcdic_mm[] =
23983 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23984 int use_ebcdic (int i) {
23985 return ebcdic_mm[i] + ebcdic_ii[i];
23992 return use_ascii (foo) == use_ebcdic (foo);
23997 if ac_fn_c_try_compile "$LINENO"
23999 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24000 ac_cv_c_bigendian=yes
24002 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24003 if test "$ac_cv_c_bigendian" = unknown; then
24004 ac_cv_c_bigendian=no
24006 # finding both strings is unlikely to happen, but who knows?
24007 ac_cv_c_bigendian=unknown
24011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24014 /* end confdefs.h. */
24015 $ac_includes_default
24020 /* Are we little or big endian? From Harbison&Steele. */
24024 char c[sizeof (long int)];
24027 return u.c[sizeof (long int) - 1] == 1;
24033 if ac_fn_c_try_run "$LINENO"
24035 ac_cv_c_bigendian=no
24037 ac_cv_c_bigendian=yes
24039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24040 conftest.$ac_objext conftest.beam conftest.$ac_ext
24045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24046 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24047 case $ac_cv_c_bigendian in #(
24049 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24055 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24059 as_fn_error $? "unknown endianness
24060 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24064 printf %s "checking for inline... " >&6; }
24065 if test ${ac_cv_c_inline+y}
24067 printf %s "(cached) " >&6
24070 for ac_kw in inline __inline__ __inline; do
24071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24072 /* end confdefs.h. */
24073 #ifndef __cplusplus
24075 static $ac_kw foo_t static_foo (void) {return 0; }
24076 $ac_kw foo_t foo (void) {return 0; }
24080 if ac_fn_c_try_compile "$LINENO"
24082 ac_cv_c_inline=$ac_kw
24084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24085 test "$ac_cv_c_inline" != no && break
24089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24090 printf "%s\n" "$ac_cv_c_inline" >&6; }
24092 case $ac_cv_c_inline in
24095 case $ac_cv_c_inline in
24097 *) ac_val=$ac_cv_c_inline;;
24099 cat >>confdefs.h <<_ACEOF
24100 #ifndef __cplusplus
24101 #define inline $ac_val
24107 # Check whether --enable-largefile was given.
24108 if test ${enable_largefile+y}
24110 enableval=$enable_largefile;
24113 if test "$enable_largefile" != no; then
24115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24116 printf %s "checking for special C compiler options needed for large files... " >&6; }
24117 if test ${ac_cv_sys_largefile_CC+y}
24119 printf %s "(cached) " >&6
24121 ac_cv_sys_largefile_CC=no
24122 if test "$GCC" != yes; then
24125 # IRIX 6.2 and later do not support large files by default,
24126 # so use the C compiler's -n32 option if that helps.
24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h. */
24129 #include <sys/types.h>
24130 /* Check that off_t can represent 2**63 - 1 correctly.
24131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24132 since some C++ compilers masquerading as C compilers
24133 incorrectly reject 9223372036854775807. */
24134 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24136 && LARGE_OFF_T % 2147483647 == 1)
24146 if ac_fn_c_try_compile "$LINENO"
24150 rm -f core conftest.err conftest.$ac_objext conftest.beam
24152 if ac_fn_c_try_compile "$LINENO"
24154 ac_cv_sys_largefile_CC=' -n32'; break
24156 rm -f core conftest.err conftest.$ac_objext conftest.beam
24160 rm -f conftest.$ac_ext
24163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24164 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
24165 if test "$ac_cv_sys_largefile_CC" != no; then
24166 CC=$CC$ac_cv_sys_largefile_CC
24169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24170 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24171 if test ${ac_cv_sys_file_offset_bits+y}
24173 printf %s "(cached) " >&6
24176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24177 /* end confdefs.h. */
24178 #include <sys/types.h>
24179 /* Check that off_t can represent 2**63 - 1 correctly.
24180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24181 since some C++ compilers masquerading as C compilers
24182 incorrectly reject 9223372036854775807. */
24183 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24185 && LARGE_OFF_T % 2147483647 == 1)
24195 if ac_fn_c_try_compile "$LINENO"
24197 ac_cv_sys_file_offset_bits=no; break
24199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h. */
24202 #define _FILE_OFFSET_BITS 64
24203 #include <sys/types.h>
24204 /* Check that off_t can represent 2**63 - 1 correctly.
24205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24206 since some C++ compilers masquerading as C compilers
24207 incorrectly reject 9223372036854775807. */
24208 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24210 && LARGE_OFF_T % 2147483647 == 1)
24220 if ac_fn_c_try_compile "$LINENO"
24222 ac_cv_sys_file_offset_bits=64; break
24224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24225 ac_cv_sys_file_offset_bits=unknown
24229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24230 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
24231 case $ac_cv_sys_file_offset_bits in #(
24234 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
24238 if test $ac_cv_sys_file_offset_bits = unknown; then
24239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24240 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
24241 if test ${ac_cv_sys_large_files+y}
24243 printf %s "(cached) " >&6
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h. */
24248 #include <sys/types.h>
24249 /* Check that off_t can represent 2**63 - 1 correctly.
24250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24251 since some C++ compilers masquerading as C compilers
24252 incorrectly reject 9223372036854775807. */
24253 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24255 && LARGE_OFF_T % 2147483647 == 1)
24265 if ac_fn_c_try_compile "$LINENO"
24267 ac_cv_sys_large_files=no; break
24269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24271 /* end confdefs.h. */
24272 #define _LARGE_FILES 1
24273 #include <sys/types.h>
24274 /* Check that off_t can represent 2**63 - 1 correctly.
24275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24276 since some C++ compilers masquerading as C compilers
24277 incorrectly reject 9223372036854775807. */
24278 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
24279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24280 && LARGE_OFF_T % 2147483647 == 1)
24290 if ac_fn_c_try_compile "$LINENO"
24292 ac_cv_sys_large_files=1; break
24294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24295 ac_cv_sys_large_files=unknown
24299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24300 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
24301 case $ac_cv_sys_large_files in #(
24304 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
24312 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
24314 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
24316 have_struct_tm_tm_gmtoff=yes
24318 have_struct_tm_tm_gmtoff=no
24322 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
24323 #include <sys/types.h>
24324 #include <sys/socket.h>
24325 #include <netinet/in.h>
24328 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
24331 printf "%s\n" "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
24336 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "
24337 #include <sys/types.h>
24338 #include <sys/socket.h>
24339 #include <netinet/in.h>
24342 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
24345 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
24350 if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
24352 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
24356 # Check size of pointer to decide we need 8 bytes alignment
24358 # The cast to long int works around a bug in the HP C Compiler
24359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24361 # This bug is HP SR number 8606223364.
24362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
24363 printf %s "checking size of int *... " >&6; }
24364 if test ${ac_cv_sizeof_int_p+y}
24366 printf %s "(cached) " >&6
24368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"
24372 if test "$ac_cv_type_int_p" = yes; then
24373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24374 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24375 as_fn_error 77 "cannot compute sizeof (int *)
24376 See \`config.log' for more details" "$LINENO" 5; }
24378 ac_cv_sizeof_int_p=0
24383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
24384 printf "%s\n" "$ac_cv_sizeof_int_p" >&6; }
24388 printf "%s\n" "#define SIZEOF_INT_P $ac_cv_sizeof_int_p" >>confdefs.h
24392 # The cast to long int works around a bug in the HP C Compiler
24393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24395 # This bug is HP SR number 8606223364.
24396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
24397 printf %s "checking size of time_t... " >&6; }
24398 if test ${ac_cv_sizeof_time_t+y}
24400 printf %s "(cached) " >&6
24402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
24406 if test "$ac_cv_type_time_t" = yes; then
24407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24409 as_fn_error 77 "cannot compute sizeof (time_t)
24410 See \`config.log' for more details" "$LINENO" 5; }
24412 ac_cv_sizeof_time_t=0
24417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
24418 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
24422 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
24426 # Checks for library functions.
24428 # Don't check malloc, since it does not play nicely with C++ stdlib
24431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
24432 printf %s "checking for working chown... " >&6; }
24433 if test ${ac_cv_func_chown_works+y}
24435 printf %s "(cached) " >&6
24437 if test "$cross_compiling" = yes
24439 case "$host_os" in # ((
24440 # Guess yes on glibc systems.
24441 *-gnu*) ac_cv_func_chown_works=yes ;;
24442 # If we don't know, assume the worst.
24443 *) ac_cv_func_chown_works=no ;;
24446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h. */
24448 $ac_includes_default
24454 char *f = "conftest.chown";
24455 struct stat before, after;
24457 if (creat (f, 0600) < 0)
24459 if (stat (f, &before) < 0)
24461 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
24463 if (stat (f, &after) < 0)
24465 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
24471 if ac_fn_c_try_run "$LINENO"
24473 ac_cv_func_chown_works=yes
24475 ac_cv_func_chown_works=no
24477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24478 conftest.$ac_objext conftest.beam conftest.$ac_ext
24481 rm -f conftest.chown
24484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
24485 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
24486 if test $ac_cv_func_chown_works = yes; then
24488 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
24492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
24493 printf %s "checking for error_at_line... " >&6; }
24494 if test ${ac_cv_lib_error_at_line+y}
24496 printf %s "(cached) " >&6
24498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h. */
24504 error_at_line (0, 0, "", 0, "an error occurred");
24509 if ac_fn_c_try_link "$LINENO"
24511 ac_cv_lib_error_at_line=yes
24513 ac_cv_lib_error_at_line=no
24515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24516 conftest$ac_exeext conftest.$ac_ext
24518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
24519 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
24520 if test $ac_cv_lib_error_at_line = no; then
24521 case " $LIBOBJS " in
24522 *" error.$ac_objext "* ) ;;
24523 *) LIBOBJS="$LIBOBJS error.$ac_objext"
24531 for ac_item in $ac_func_c_list
24533 if test $ac_func; then
24534 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
24535 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
24536 echo "#define $ac_item 1" >> confdefs.h
24546 if test "x$ac_cv_func_fork" = xyes; then
24547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24548 printf %s "checking for working fork... " >&6; }
24549 if test ${ac_cv_func_fork_works+y}
24551 printf %s "(cached) " >&6
24553 if test "$cross_compiling" = yes
24555 ac_cv_func_fork_works=cross
24557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24558 /* end confdefs.h. */
24559 $ac_includes_default
24564 /* By Ruediger Kuhlmann. */
24565 return fork () < 0;
24571 if ac_fn_c_try_run "$LINENO"
24573 ac_cv_func_fork_works=yes
24575 ac_cv_func_fork_works=no
24577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24578 conftest.$ac_objext conftest.beam conftest.$ac_ext
24582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24583 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
24586 ac_cv_func_fork_works=$ac_cv_func_fork
24588 if test "x$ac_cv_func_fork_works" = xcross; then
24590 *-*-amigaos* | *-*-msdosdjgpp*)
24591 # Override, as these systems have only a dummy fork() stub
24592 ac_cv_func_fork_works=no
24595 ac_cv_func_fork_works=yes
24598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24599 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24601 ac_cv_func_vfork_works=$ac_cv_func_vfork
24602 if test "x$ac_cv_func_vfork" = xyes; then
24603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24604 printf %s "checking for working vfork... " >&6; }
24605 if test ${ac_cv_func_vfork_works+y}
24607 printf %s "(cached) " >&6
24609 if test "$cross_compiling" = yes
24611 ac_cv_func_vfork_works=cross
24613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h. */
24615 /* Thanks to Paul Eggert for this test. */
24616 $ac_includes_default
24617 #include <signal.h>
24618 #include <sys/wait.h>
24619 #ifdef HAVE_VFORK_H
24620 # include <vfork.h>
24624 do_nothing (int sig)
24629 /* On some sparc systems, changes by the child to local and incoming
24630 argument registers are propagated back to the parent. The compiler
24631 is told about this with #include <vfork.h>, but some compilers
24632 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24633 static variable whose address is put into a register that is
24634 clobbered by the vfork. */
24636 sparc_address_test (int arg)
24638 static pid_t child;
24656 pid_t parent = getpid ();
24659 sparc_address_test (0);
24661 /* On Solaris 2.4, changes by the child to the signal handler
24662 also munge signal handlers in the parent. To detect this,
24663 start by putting the parent's handler in a known state. */
24664 signal (SIGTERM, SIG_DFL);
24669 /* Here is another test for sparc vfork register problems. This
24670 test uses lots of local variables, at least as many local
24671 variables as main has allocated so far including compiler
24672 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24673 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24674 reuse the register of parent for one of the local variables,
24675 since it will think that parent can't possibly be used any more
24676 in this routine. Assigning to the local variable will thus
24677 munge parent in the parent process. */
24679 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24680 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24681 /* Convince the compiler that p..p7 are live; otherwise, it might
24682 use the same hardware register for all 8 local variables. */
24683 if (p != p1 || p != p2 || p != p3 || p != p4
24684 || p != p5 || p != p6 || p != p7)
24687 /* Alter the child's signal handler. */
24688 if (signal (SIGTERM, do_nothing) != SIG_DFL)
24691 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24692 from child file descriptors. If the child closes a descriptor
24693 before it execs or exits, this munges the parent's descriptor
24694 as well. Test for this by closing stdout in the child. */
24695 _exit(close(fileno(stdout)) != 0);
24700 while (wait(&status) != child)
24703 /* Was there some problem with vforking? */
24706 /* Did the child munge the parent's signal handler? */
24707 || signal (SIGTERM, SIG_DFL) != SIG_DFL
24709 /* Did the child fail? (This shouldn't happen.) */
24712 /* Did the vfork/compiler bug occur? */
24713 || parent != getpid()
24715 /* Did the file descriptor bug occur? */
24716 || fstat(fileno(stdout), &st) != 0
24721 if ac_fn_c_try_run "$LINENO"
24723 ac_cv_func_vfork_works=yes
24725 ac_cv_func_vfork_works=no
24727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24728 conftest.$ac_objext conftest.beam conftest.$ac_ext
24732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24733 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
24736 if test "x$ac_cv_func_fork_works" = xcross; then
24737 ac_cv_func_vfork_works=$ac_cv_func_vfork
24738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24739 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24742 if test "x$ac_cv_func_vfork_works" = xyes; then
24744 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24748 printf "%s\n" "#define vfork fork" >>confdefs.h
24751 if test "x$ac_cv_func_fork_works" = xyes; then
24753 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
24757 # Don't check realloc, since LeakSanitizer detects memory leak during check
24759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
24760 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
24761 if test ${ac_cv_c_undeclared_builtin_options+y}
24763 printf %s "(cached) " >&6
24765 ac_save_CFLAGS=$CFLAGS
24766 ac_cv_c_undeclared_builtin_options='cannot detect'
24767 for ac_arg in '' -fno-builtin; do
24768 CFLAGS="$ac_save_CFLAGS $ac_arg"
24769 # This test program should *not* compile successfully.
24770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24771 /* end confdefs.h. */
24781 if ac_fn_c_try_compile "$LINENO"
24785 # This test program should compile successfully.
24786 # No library function is consistently available on
24787 # freestanding implementations, so test against a dummy
24788 # declaration. Include always-available headers on the
24789 # off chance that they somehow elicit warnings.
24790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24791 /* end confdefs.h. */
24793 #include <limits.h>
24794 #include <stdarg.h>
24795 #include <stddef.h>
24796 extern void ac_decl (int, char *);
24801 (void) ac_decl (0, (char *) 0);
24808 if ac_fn_c_try_compile "$LINENO"
24810 if test x"$ac_arg" = x
24812 ac_cv_c_undeclared_builtin_options='none needed'
24814 ac_cv_c_undeclared_builtin_options=$ac_arg
24818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24822 CFLAGS=$ac_save_CFLAGS
24825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
24826 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
24827 case $ac_cv_c_undeclared_builtin_options in #(
24829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24830 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24831 as_fn_error $? "cannot make $CC report undeclared builtins
24832 See \`config.log' for more details" "$LINENO" 5; } ;; #(
24834 ac_c_undeclared_builtin_options='' ;; #(
24836 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
24839 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24840 if test "x$ac_cv_have_decl_strerror_r" = xyes
24846 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
24849 if test $ac_cv_have_decl_strerror_r = yes; then
24850 # For backward compatibility's sake, define HAVE_STRERROR_R.
24851 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
24852 # as AC_CHECK_DECLS_ONCE.)
24854 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
24858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24859 printf %s "checking whether strerror_r returns char *... " >&6; }
24860 if test ${ac_cv_func_strerror_r_char_p+y}
24862 printf %s "(cached) " >&6
24865 ac_cv_func_strerror_r_char_p=no
24866 if test $ac_cv_have_decl_strerror_r = yes; then
24867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24868 /* end confdefs.h. */
24869 #include <string.h>
24875 char x = *strerror_r (0, buf, sizeof buf);
24876 char *p = strerror_r (0, buf, sizeof buf);
24883 if ac_fn_c_try_compile "$LINENO"
24885 ac_cv_func_strerror_r_char_p=yes
24887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24893 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
24894 if test $ac_cv_func_strerror_r_char_p = yes; then
24896 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24901 printf %s "checking for working strnlen... " >&6; }
24902 if test ${ac_cv_func_strnlen_working+y}
24904 printf %s "(cached) " >&6
24906 if test "$cross_compiling" = yes
24908 # Guess no on AIX systems, yes otherwise.
24910 aix*) ac_cv_func_strnlen_working=no;;
24911 *) ac_cv_func_strnlen_working=yes;;
24914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h. */
24916 $ac_includes_default
24922 #define S_LEN (sizeof S - 1)
24924 /* At least one implementation is buggy: that of AIX 4.3 would
24925 give strnlen (S, 1) == 3. */
24928 for (i = 0; i < S_LEN + 1; ++i)
24930 int expected = i <= S_LEN ? i : S_LEN;
24931 if (strnlen (S, i) != expected)
24940 if ac_fn_c_try_run "$LINENO"
24942 ac_cv_func_strnlen_working=yes
24944 ac_cv_func_strnlen_working=no
24946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24947 conftest.$ac_objext conftest.beam conftest.$ac_ext
24951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24952 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
24953 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
24954 *" strnlen.$ac_objext "* ) ;;
24955 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
24961 ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
24962 if test "x$ac_cv_func__Exit" = xyes
24964 printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
24967 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
24968 if test "x$ac_cv_func_accept4" = xyes
24970 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
24973 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
24974 if test "x$ac_cv_func_dup2" = xyes
24976 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
24979 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
24980 if test "x$ac_cv_func_getcwd" = xyes
24982 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
24985 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
24986 if test "x$ac_cv_func_getpwnam" = xyes
24988 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
24991 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
24992 if test "x$ac_cv_func_localtime_r" = xyes
24994 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
24997 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24998 if test "x$ac_cv_func_memchr" = xyes
25000 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
25003 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
25004 if test "x$ac_cv_func_memmove" = xyes
25006 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
25009 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
25010 if test "x$ac_cv_func_memset" = xyes
25012 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
25015 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
25016 if test "x$ac_cv_func_mkostemp" = xyes
25018 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
25021 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
25022 if test "x$ac_cv_func_socket" = xyes
25024 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
25027 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
25028 if test "x$ac_cv_func_sqrt" = xyes
25030 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
25033 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
25034 if test "x$ac_cv_func_strchr" = xyes
25036 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
25039 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
25040 if test "x$ac_cv_func_strdup" = xyes
25042 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
25045 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
25046 if test "x$ac_cv_func_strerror" = xyes
25048 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
25051 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
25052 if test "x$ac_cv_func_strndup" = xyes
25054 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
25057 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
25058 if test "x$ac_cv_func_strstr" = xyes
25060 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
25063 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
25064 if test "x$ac_cv_func_strtol" = xyes
25066 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
25069 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
25070 if test "x$ac_cv_func_strtoul" = xyes
25072 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
25075 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25076 if test "x$ac_cv_func_timegm" = xyes
25078 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
25083 # timerfd_create was added in linux kernel 2.6.25
25085 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
25086 if test "x$ac_cv_func_timerfd_create" = xyes
25088 have_timerfd_create=yes
25090 have_timerfd_create=no
25094 # For cygwin: we can link initgroups, so AC_CHECK_FUNCS succeeds, but
25095 # cygwin disables initgroups due to feature test macro magic with our
25096 # configuration. FreeBSD declares initgroups() in unistd.h.
25097 ac_fn_check_decl "$LINENO" "initgroups" "ac_cv_have_decl_initgroups" "
25098 #ifdef HAVE_UNISTD_H
25099 # include <unistd.h>
25103 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25104 if test "x$ac_cv_have_decl_initgroups" = xyes
25110 printf "%s\n" "#define HAVE_DECL_INITGROUPS $ac_have_decl" >>confdefs.h
25113 save_CFLAGS=$CFLAGS
25114 save_CXXFLAGS=$CXXFLAGS
25119 if test "x$werror" != "xno"; then
25121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
25122 printf %s "checking whether C compiler accepts -Wall... " >&6; }
25123 if test ${ax_cv_check_cflags___Wall+y}
25125 printf %s "(cached) " >&6
25128 ax_check_save_flags=$CFLAGS
25129 CFLAGS="$CFLAGS -Wall"
25130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25131 /* end confdefs.h. */
25141 if ac_fn_c_try_compile "$LINENO"
25143 ax_cv_check_cflags___Wall=yes
25145 ax_cv_check_cflags___Wall=no
25147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25148 CFLAGS=$ax_check_save_flags
25150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
25151 printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; }
25152 if test "x$ax_cv_check_cflags___Wall" = xyes
25154 CFLAGS="$CFLAGS -Wall"
25159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
25160 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
25161 if test ${ax_cv_check_cflags___Wextra+y}
25163 printf %s "(cached) " >&6
25166 ax_check_save_flags=$CFLAGS
25167 CFLAGS="$CFLAGS -Wextra"
25168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h. */
25179 if ac_fn_c_try_compile "$LINENO"
25181 ax_cv_check_cflags___Wextra=yes
25183 ax_cv_check_cflags___Wextra=no
25185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25186 CFLAGS=$ax_check_save_flags
25188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
25189 printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; }
25190 if test "x$ax_cv_check_cflags___Wextra" = xyes
25192 CFLAGS="$CFLAGS -Wextra"
25197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
25198 printf %s "checking whether C compiler accepts -Werror... " >&6; }
25199 if test ${ax_cv_check_cflags___Werror+y}
25201 printf %s "(cached) " >&6
25204 ax_check_save_flags=$CFLAGS
25205 CFLAGS="$CFLAGS -Werror"
25206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25207 /* end confdefs.h. */
25217 if ac_fn_c_try_compile "$LINENO"
25219 ax_cv_check_cflags___Werror=yes
25221 ax_cv_check_cflags___Werror=no
25223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25224 CFLAGS=$ax_check_save_flags
25226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
25227 printf "%s\n" "$ax_cv_check_cflags___Werror" >&6; }
25228 if test "x$ax_cv_check_cflags___Werror" = xyes
25230 CFLAGS="$CFLAGS -Werror"
25235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
25236 printf %s "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
25237 if test ${ax_cv_check_cflags___Wmissing_prototypes+y}
25239 printf %s "(cached) " >&6
25242 ax_check_save_flags=$CFLAGS
25243 CFLAGS="$CFLAGS -Wmissing-prototypes"
25244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25245 /* end confdefs.h. */
25255 if ac_fn_c_try_compile "$LINENO"
25257 ax_cv_check_cflags___Wmissing_prototypes=yes
25259 ax_cv_check_cflags___Wmissing_prototypes=no
25261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25262 CFLAGS=$ax_check_save_flags
25264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
25265 printf "%s\n" "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
25266 if test "x$ax_cv_check_cflags___Wmissing_prototypes" = xyes
25268 CFLAGS="$CFLAGS -Wmissing-prototypes"
25273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
25274 printf %s "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
25275 if test ${ax_cv_check_cflags___Wstrict_prototypes+y}
25277 printf %s "(cached) " >&6
25280 ax_check_save_flags=$CFLAGS
25281 CFLAGS="$CFLAGS -Wstrict-prototypes"
25282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25283 /* end confdefs.h. */
25293 if ac_fn_c_try_compile "$LINENO"
25295 ax_cv_check_cflags___Wstrict_prototypes=yes
25297 ax_cv_check_cflags___Wstrict_prototypes=no
25299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25300 CFLAGS=$ax_check_save_flags
25302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
25303 printf "%s\n" "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
25304 if test "x$ax_cv_check_cflags___Wstrict_prototypes" = xyes
25306 CFLAGS="$CFLAGS -Wstrict-prototypes"
25311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
25312 printf %s "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
25313 if test ${ax_cv_check_cflags___Wmissing_declarations+y}
25315 printf %s "(cached) " >&6
25318 ax_check_save_flags=$CFLAGS
25319 CFLAGS="$CFLAGS -Wmissing-declarations"
25320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h. */
25331 if ac_fn_c_try_compile "$LINENO"
25333 ax_cv_check_cflags___Wmissing_declarations=yes
25335 ax_cv_check_cflags___Wmissing_declarations=no
25337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25338 CFLAGS=$ax_check_save_flags
25340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
25341 printf "%s\n" "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
25342 if test "x$ax_cv_check_cflags___Wmissing_declarations" = xyes
25344 CFLAGS="$CFLAGS -Wmissing-declarations"
25349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
25350 printf %s "checking whether C compiler accepts -Wpointer-arith... " >&6; }
25351 if test ${ax_cv_check_cflags___Wpointer_arith+y}
25353 printf %s "(cached) " >&6
25356 ax_check_save_flags=$CFLAGS
25357 CFLAGS="$CFLAGS -Wpointer-arith"
25358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h. */
25369 if ac_fn_c_try_compile "$LINENO"
25371 ax_cv_check_cflags___Wpointer_arith=yes
25373 ax_cv_check_cflags___Wpointer_arith=no
25375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25376 CFLAGS=$ax_check_save_flags
25378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
25379 printf "%s\n" "$ax_cv_check_cflags___Wpointer_arith" >&6; }
25380 if test "x$ax_cv_check_cflags___Wpointer_arith" = xyes
25382 CFLAGS="$CFLAGS -Wpointer-arith"
25387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
25388 printf %s "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
25389 if test ${ax_cv_check_cflags___Wdeclaration_after_statement+y}
25391 printf %s "(cached) " >&6
25394 ax_check_save_flags=$CFLAGS
25395 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h. */
25407 if ac_fn_c_try_compile "$LINENO"
25409 ax_cv_check_cflags___Wdeclaration_after_statement=yes
25411 ax_cv_check_cflags___Wdeclaration_after_statement=no
25413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25414 CFLAGS=$ax_check_save_flags
25416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
25417 printf "%s\n" "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
25418 if test "x$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes
25420 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
25426 printf %s "checking whether C compiler accepts -Wformat-security... " >&6; }
25427 if test ${ax_cv_check_cflags___Wformat_security+y}
25429 printf %s "(cached) " >&6
25432 ax_check_save_flags=$CFLAGS
25433 CFLAGS="$CFLAGS -Wformat-security"
25434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25435 /* end confdefs.h. */
25445 if ac_fn_c_try_compile "$LINENO"
25447 ax_cv_check_cflags___Wformat_security=yes
25449 ax_cv_check_cflags___Wformat_security=no
25451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25452 CFLAGS=$ax_check_save_flags
25454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
25455 printf "%s\n" "$ax_cv_check_cflags___Wformat_security" >&6; }
25456 if test "x$ax_cv_check_cflags___Wformat_security" = xyes
25458 CFLAGS="$CFLAGS -Wformat-security"
25463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
25464 printf %s "checking whether C compiler accepts -Wwrite-strings... " >&6; }
25465 if test ${ax_cv_check_cflags___Wwrite_strings+y}
25467 printf %s "(cached) " >&6
25470 ax_check_save_flags=$CFLAGS
25471 CFLAGS="$CFLAGS -Wwrite-strings"
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473 /* end confdefs.h. */
25483 if ac_fn_c_try_compile "$LINENO"
25485 ax_cv_check_cflags___Wwrite_strings=yes
25487 ax_cv_check_cflags___Wwrite_strings=no
25489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25490 CFLAGS=$ax_check_save_flags
25492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
25493 printf "%s\n" "$ax_cv_check_cflags___Wwrite_strings" >&6; }
25494 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes
25496 CFLAGS="$CFLAGS -Wwrite-strings"
25501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
25502 printf %s "checking whether C compiler accepts -Wshadow... " >&6; }
25503 if test ${ax_cv_check_cflags___Wshadow+y}
25505 printf %s "(cached) " >&6
25508 ax_check_save_flags=$CFLAGS
25509 CFLAGS="$CFLAGS -Wshadow"
25510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 /* end confdefs.h. */
25521 if ac_fn_c_try_compile "$LINENO"
25523 ax_cv_check_cflags___Wshadow=yes
25525 ax_cv_check_cflags___Wshadow=no
25527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25528 CFLAGS=$ax_check_save_flags
25530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
25531 printf "%s\n" "$ax_cv_check_cflags___Wshadow" >&6; }
25532 if test "x$ax_cv_check_cflags___Wshadow" = xyes
25534 CFLAGS="$CFLAGS -Wshadow"
25539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
25540 printf %s "checking whether C compiler accepts -Winline... " >&6; }
25541 if test ${ax_cv_check_cflags___Winline+y}
25543 printf %s "(cached) " >&6
25546 ax_check_save_flags=$CFLAGS
25547 CFLAGS="$CFLAGS -Winline"
25548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h. */
25559 if ac_fn_c_try_compile "$LINENO"
25561 ax_cv_check_cflags___Winline=yes
25563 ax_cv_check_cflags___Winline=no
25565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25566 CFLAGS=$ax_check_save_flags
25568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
25569 printf "%s\n" "$ax_cv_check_cflags___Winline" >&6; }
25570 if test "x$ax_cv_check_cflags___Winline" = xyes
25572 CFLAGS="$CFLAGS -Winline"
25577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
25578 printf %s "checking whether C compiler accepts -Wnested-externs... " >&6; }
25579 if test ${ax_cv_check_cflags___Wnested_externs+y}
25581 printf %s "(cached) " >&6
25584 ax_check_save_flags=$CFLAGS
25585 CFLAGS="$CFLAGS -Wnested-externs"
25586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25587 /* end confdefs.h. */
25597 if ac_fn_c_try_compile "$LINENO"
25599 ax_cv_check_cflags___Wnested_externs=yes
25601 ax_cv_check_cflags___Wnested_externs=no
25603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25604 CFLAGS=$ax_check_save_flags
25606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
25607 printf "%s\n" "$ax_cv_check_cflags___Wnested_externs" >&6; }
25608 if test "x$ax_cv_check_cflags___Wnested_externs" = xyes
25610 CFLAGS="$CFLAGS -Wnested-externs"
25615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
25616 printf %s "checking whether C compiler accepts -Wfloat-equal... " >&6; }
25617 if test ${ax_cv_check_cflags___Wfloat_equal+y}
25619 printf %s "(cached) " >&6
25622 ax_check_save_flags=$CFLAGS
25623 CFLAGS="$CFLAGS -Wfloat-equal"
25624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h. */
25635 if ac_fn_c_try_compile "$LINENO"
25637 ax_cv_check_cflags___Wfloat_equal=yes
25639 ax_cv_check_cflags___Wfloat_equal=no
25641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25642 CFLAGS=$ax_check_save_flags
25644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
25645 printf "%s\n" "$ax_cv_check_cflags___Wfloat_equal" >&6; }
25646 if test "x$ax_cv_check_cflags___Wfloat_equal" = xyes
25648 CFLAGS="$CFLAGS -Wfloat-equal"
25653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
25654 printf %s "checking whether C compiler accepts -Wundef... " >&6; }
25655 if test ${ax_cv_check_cflags___Wundef+y}
25657 printf %s "(cached) " >&6
25660 ax_check_save_flags=$CFLAGS
25661 CFLAGS="$CFLAGS -Wundef"
25662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663 /* end confdefs.h. */
25673 if ac_fn_c_try_compile "$LINENO"
25675 ax_cv_check_cflags___Wundef=yes
25677 ax_cv_check_cflags___Wundef=no
25679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25680 CFLAGS=$ax_check_save_flags
25682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
25683 printf "%s\n" "$ax_cv_check_cflags___Wundef" >&6; }
25684 if test "x$ax_cv_check_cflags___Wundef" = xyes
25686 CFLAGS="$CFLAGS -Wundef"
25691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
25692 printf %s "checking whether C compiler accepts -Wendif-labels... " >&6; }
25693 if test ${ax_cv_check_cflags___Wendif_labels+y}
25695 printf %s "(cached) " >&6
25698 ax_check_save_flags=$CFLAGS
25699 CFLAGS="$CFLAGS -Wendif-labels"
25700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25701 /* end confdefs.h. */
25711 if ac_fn_c_try_compile "$LINENO"
25713 ax_cv_check_cflags___Wendif_labels=yes
25715 ax_cv_check_cflags___Wendif_labels=no
25717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25718 CFLAGS=$ax_check_save_flags
25720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
25721 printf "%s\n" "$ax_cv_check_cflags___Wendif_labels" >&6; }
25722 if test "x$ax_cv_check_cflags___Wendif_labels" = xyes
25724 CFLAGS="$CFLAGS -Wendif-labels"
25729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
25730 printf %s "checking whether C compiler accepts -Wempty-body... " >&6; }
25731 if test ${ax_cv_check_cflags___Wempty_body+y}
25733 printf %s "(cached) " >&6
25736 ax_check_save_flags=$CFLAGS
25737 CFLAGS="$CFLAGS -Wempty-body"
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25749 if ac_fn_c_try_compile "$LINENO"
25751 ax_cv_check_cflags___Wempty_body=yes
25753 ax_cv_check_cflags___Wempty_body=no
25755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25756 CFLAGS=$ax_check_save_flags
25758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
25759 printf "%s\n" "$ax_cv_check_cflags___Wempty_body" >&6; }
25760 if test "x$ax_cv_check_cflags___Wempty_body" = xyes
25762 CFLAGS="$CFLAGS -Wempty-body"
25767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
25768 printf %s "checking whether C compiler accepts -Wcast-align... " >&6; }
25769 if test ${ax_cv_check_cflags___Wcast_align+y}
25771 printf %s "(cached) " >&6
25774 ax_check_save_flags=$CFLAGS
25775 CFLAGS="$CFLAGS -Wcast-align"
25776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h. */
25787 if ac_fn_c_try_compile "$LINENO"
25789 ax_cv_check_cflags___Wcast_align=yes
25791 ax_cv_check_cflags___Wcast_align=no
25793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25794 CFLAGS=$ax_check_save_flags
25796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
25797 printf "%s\n" "$ax_cv_check_cflags___Wcast_align" >&6; }
25798 if test "x$ax_cv_check_cflags___Wcast_align" = xyes
25800 CFLAGS="$CFLAGS -Wcast-align"
25805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
25806 printf %s "checking whether C compiler accepts -Wclobbered... " >&6; }
25807 if test ${ax_cv_check_cflags___Wclobbered+y}
25809 printf %s "(cached) " >&6
25812 ax_check_save_flags=$CFLAGS
25813 CFLAGS="$CFLAGS -Wclobbered"
25814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25815 /* end confdefs.h. */
25825 if ac_fn_c_try_compile "$LINENO"
25827 ax_cv_check_cflags___Wclobbered=yes
25829 ax_cv_check_cflags___Wclobbered=no
25831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25832 CFLAGS=$ax_check_save_flags
25834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
25835 printf "%s\n" "$ax_cv_check_cflags___Wclobbered" >&6; }
25836 if test "x$ax_cv_check_cflags___Wclobbered" = xyes
25838 CFLAGS="$CFLAGS -Wclobbered"
25843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
25844 printf %s "checking whether C compiler accepts -Wvla... " >&6; }
25845 if test ${ax_cv_check_cflags___Wvla+y}
25847 printf %s "(cached) " >&6
25850 ax_check_save_flags=$CFLAGS
25851 CFLAGS="$CFLAGS -Wvla"
25852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h. */
25863 if ac_fn_c_try_compile "$LINENO"
25865 ax_cv_check_cflags___Wvla=yes
25867 ax_cv_check_cflags___Wvla=no
25869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25870 CFLAGS=$ax_check_save_flags
25872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
25873 printf "%s\n" "$ax_cv_check_cflags___Wvla" >&6; }
25874 if test "x$ax_cv_check_cflags___Wvla" = xyes
25876 CFLAGS="$CFLAGS -Wvla"
25881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
25882 printf %s "checking whether C compiler accepts -Wpragmas... " >&6; }
25883 if test ${ax_cv_check_cflags___Wpragmas+y}
25885 printf %s "(cached) " >&6
25888 ax_check_save_flags=$CFLAGS
25889 CFLAGS="$CFLAGS -Wpragmas"
25890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25891 /* end confdefs.h. */
25901 if ac_fn_c_try_compile "$LINENO"
25903 ax_cv_check_cflags___Wpragmas=yes
25905 ax_cv_check_cflags___Wpragmas=no
25907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25908 CFLAGS=$ax_check_save_flags
25910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
25911 printf "%s\n" "$ax_cv_check_cflags___Wpragmas" >&6; }
25912 if test "x$ax_cv_check_cflags___Wpragmas" = xyes
25914 CFLAGS="$CFLAGS -Wpragmas"
25919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
25920 printf %s "checking whether C compiler accepts -Wunreachable-code... " >&6; }
25921 if test ${ax_cv_check_cflags___Wunreachable_code+y}
25923 printf %s "(cached) " >&6
25926 ax_check_save_flags=$CFLAGS
25927 CFLAGS="$CFLAGS -Wunreachable-code"
25928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25929 /* end confdefs.h. */
25939 if ac_fn_c_try_compile "$LINENO"
25941 ax_cv_check_cflags___Wunreachable_code=yes
25943 ax_cv_check_cflags___Wunreachable_code=no
25945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25946 CFLAGS=$ax_check_save_flags
25948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
25949 printf "%s\n" "$ax_cv_check_cflags___Wunreachable_code" >&6; }
25950 if test "x$ax_cv_check_cflags___Wunreachable_code" = xyes
25952 CFLAGS="$CFLAGS -Wunreachable-code"
25957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
25958 printf %s "checking whether C compiler accepts -Waddress... " >&6; }
25959 if test ${ax_cv_check_cflags___Waddress+y}
25961 printf %s "(cached) " >&6
25964 ax_check_save_flags=$CFLAGS
25965 CFLAGS="$CFLAGS -Waddress"
25966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967 /* end confdefs.h. */
25977 if ac_fn_c_try_compile "$LINENO"
25979 ax_cv_check_cflags___Waddress=yes
25981 ax_cv_check_cflags___Waddress=no
25983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25984 CFLAGS=$ax_check_save_flags
25986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
25987 printf "%s\n" "$ax_cv_check_cflags___Waddress" >&6; }
25988 if test "x$ax_cv_check_cflags___Waddress" = xyes
25990 CFLAGS="$CFLAGS -Waddress"
25995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
25996 printf %s "checking whether C compiler accepts -Wattributes... " >&6; }
25997 if test ${ax_cv_check_cflags___Wattributes+y}
25999 printf %s "(cached) " >&6
26002 ax_check_save_flags=$CFLAGS
26003 CFLAGS="$CFLAGS -Wattributes"
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26015 if ac_fn_c_try_compile "$LINENO"
26017 ax_cv_check_cflags___Wattributes=yes
26019 ax_cv_check_cflags___Wattributes=no
26021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26022 CFLAGS=$ax_check_save_flags
26024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
26025 printf "%s\n" "$ax_cv_check_cflags___Wattributes" >&6; }
26026 if test "x$ax_cv_check_cflags___Wattributes" = xyes
26028 CFLAGS="$CFLAGS -Wattributes"
26033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
26034 printf %s "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
26035 if test ${ax_cv_check_cflags___Wdiv_by_zero+y}
26037 printf %s "(cached) " >&6
26040 ax_check_save_flags=$CFLAGS
26041 CFLAGS="$CFLAGS -Wdiv-by-zero"
26042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h. */
26053 if ac_fn_c_try_compile "$LINENO"
26055 ax_cv_check_cflags___Wdiv_by_zero=yes
26057 ax_cv_check_cflags___Wdiv_by_zero=no
26059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26060 CFLAGS=$ax_check_save_flags
26062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
26063 printf "%s\n" "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
26064 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes
26066 CFLAGS="$CFLAGS -Wdiv-by-zero"
26071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
26072 printf %s "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
26073 if test ${ax_cv_check_cflags___Wshorten_64_to_32+y}
26075 printf %s "(cached) " >&6
26078 ax_check_save_flags=$CFLAGS
26079 CFLAGS="$CFLAGS -Wshorten-64-to-32"
26080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26081 /* end confdefs.h. */
26091 if ac_fn_c_try_compile "$LINENO"
26093 ax_cv_check_cflags___Wshorten_64_to_32=yes
26095 ax_cv_check_cflags___Wshorten_64_to_32=no
26097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26098 CFLAGS=$ax_check_save_flags
26100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
26101 printf "%s\n" "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
26102 if test "x$ax_cv_check_cflags___Wshorten_64_to_32" = xyes
26104 CFLAGS="$CFLAGS -Wshorten-64-to-32"
26110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wconversion" >&5
26111 printf %s "checking whether C compiler accepts -Wconversion... " >&6; }
26112 if test ${ax_cv_check_cflags___Wconversion+y}
26114 printf %s "(cached) " >&6
26117 ax_check_save_flags=$CFLAGS
26118 CFLAGS="$CFLAGS -Wconversion"
26119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26120 /* end confdefs.h. */
26130 if ac_fn_c_try_compile "$LINENO"
26132 ax_cv_check_cflags___Wconversion=yes
26134 ax_cv_check_cflags___Wconversion=no
26136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26137 CFLAGS=$ax_check_save_flags
26139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wconversion" >&5
26140 printf "%s\n" "$ax_cv_check_cflags___Wconversion" >&6; }
26141 if test "x$ax_cv_check_cflags___Wconversion" = xyes
26143 CFLAGS="$CFLAGS -Wconversion"
26148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextended-offsetof" >&5
26149 printf %s "checking whether C compiler accepts -Wextended-offsetof... " >&6; }
26150 if test ${ax_cv_check_cflags___Wextended_offsetof+y}
26152 printf %s "(cached) " >&6
26155 ax_check_save_flags=$CFLAGS
26156 CFLAGS="$CFLAGS -Wextended-offsetof"
26157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158 /* end confdefs.h. */
26168 if ac_fn_c_try_compile "$LINENO"
26170 ax_cv_check_cflags___Wextended_offsetof=yes
26172 ax_cv_check_cflags___Wextended_offsetof=no
26174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26175 CFLAGS=$ax_check_save_flags
26177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextended_offsetof" >&5
26178 printf "%s\n" "$ax_cv_check_cflags___Wextended_offsetof" >&6; }
26179 if test "x$ax_cv_check_cflags___Wextended_offsetof" = xyes
26181 CFLAGS="$CFLAGS -Wextended-offsetof"
26186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
26187 printf %s "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
26188 if test ${ax_cv_check_cflags___Wformat_nonliteral+y}
26190 printf %s "(cached) " >&6
26193 ax_check_save_flags=$CFLAGS
26194 CFLAGS="$CFLAGS -Wformat-nonliteral"
26195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h. */
26206 if ac_fn_c_try_compile "$LINENO"
26208 ax_cv_check_cflags___Wformat_nonliteral=yes
26210 ax_cv_check_cflags___Wformat_nonliteral=no
26212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26213 CFLAGS=$ax_check_save_flags
26215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5
26216 printf "%s\n" "$ax_cv_check_cflags___Wformat_nonliteral" >&6; }
26217 if test "x$ax_cv_check_cflags___Wformat_nonliteral" = xyes
26219 CFLAGS="$CFLAGS -Wformat-nonliteral"
26224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlanguage-extension-token" >&5
26225 printf %s "checking whether C compiler accepts -Wlanguage-extension-token... " >&6; }
26226 if test ${ax_cv_check_cflags___Wlanguage_extension_token+y}
26228 printf %s "(cached) " >&6
26231 ax_check_save_flags=$CFLAGS
26232 CFLAGS="$CFLAGS -Wlanguage-extension-token"
26233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h. */
26244 if ac_fn_c_try_compile "$LINENO"
26246 ax_cv_check_cflags___Wlanguage_extension_token=yes
26248 ax_cv_check_cflags___Wlanguage_extension_token=no
26250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26251 CFLAGS=$ax_check_save_flags
26253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wlanguage_extension_token" >&5
26254 printf "%s\n" "$ax_cv_check_cflags___Wlanguage_extension_token" >&6; }
26255 if test "x$ax_cv_check_cflags___Wlanguage_extension_token" = xyes
26257 CFLAGS="$CFLAGS -Wlanguage-extension-token"
26262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5
26263 printf %s "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; }
26264 if test ${ax_cv_check_cflags___Wmissing_field_initializers+y}
26266 printf %s "(cached) " >&6
26269 ax_check_save_flags=$CFLAGS
26270 CFLAGS="$CFLAGS -Wmissing-field-initializers"
26271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26272 /* end confdefs.h. */
26282 if ac_fn_c_try_compile "$LINENO"
26284 ax_cv_check_cflags___Wmissing_field_initializers=yes
26286 ax_cv_check_cflags___Wmissing_field_initializers=no
26288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26289 CFLAGS=$ax_check_save_flags
26291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_field_initializers" >&5
26292 printf "%s\n" "$ax_cv_check_cflags___Wmissing_field_initializers" >&6; }
26293 if test "x$ax_cv_check_cflags___Wmissing_field_initializers" = xyes
26295 CFLAGS="$CFLAGS -Wmissing-field-initializers"
26300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-noreturn" >&5
26301 printf %s "checking whether C compiler accepts -Wmissing-noreturn... " >&6; }
26302 if test ${ax_cv_check_cflags___Wmissing_noreturn+y}
26304 printf %s "(cached) " >&6
26307 ax_check_save_flags=$CFLAGS
26308 CFLAGS="$CFLAGS -Wmissing-noreturn"
26309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26310 /* end confdefs.h. */
26320 if ac_fn_c_try_compile "$LINENO"
26322 ax_cv_check_cflags___Wmissing_noreturn=yes
26324 ax_cv_check_cflags___Wmissing_noreturn=no
26326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26327 CFLAGS=$ax_check_save_flags
26329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_noreturn" >&5
26330 printf "%s\n" "$ax_cv_check_cflags___Wmissing_noreturn" >&6; }
26331 if test "x$ax_cv_check_cflags___Wmissing_noreturn" = xyes
26333 CFLAGS="$CFLAGS -Wmissing-noreturn"
26338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-variable-declarations" >&5
26339 printf %s "checking whether C compiler accepts -Wmissing-variable-declarations... " >&6; }
26340 if test ${ax_cv_check_cflags___Wmissing_variable_declarations+y}
26342 printf %s "(cached) " >&6
26345 ax_check_save_flags=$CFLAGS
26346 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
26347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h. */
26358 if ac_fn_c_try_compile "$LINENO"
26360 ax_cv_check_cflags___Wmissing_variable_declarations=yes
26362 ax_cv_check_cflags___Wmissing_variable_declarations=no
26364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26365 CFLAGS=$ax_check_save_flags
26367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_variable_declarations" >&5
26368 printf "%s\n" "$ax_cv_check_cflags___Wmissing_variable_declarations" >&6; }
26369 if test "x$ax_cv_check_cflags___Wmissing_variable_declarations" = xyes
26371 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
26376 # Not used because we cannot change public structs
26377 # AX_CHECK_COMPILE_FLAG([-Wpadded], [CFLAGS="$CFLAGS -Wpadded"])
26378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-conversion" >&5
26379 printf %s "checking whether C compiler accepts -Wsign-conversion... " >&6; }
26380 if test ${ax_cv_check_cflags___Wsign_conversion+y}
26382 printf %s "(cached) " >&6
26385 ax_check_save_flags=$CFLAGS
26386 CFLAGS="$CFLAGS -Wsign-conversion"
26387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h. */
26398 if ac_fn_c_try_compile "$LINENO"
26400 ax_cv_check_cflags___Wsign_conversion=yes
26402 ax_cv_check_cflags___Wsign_conversion=no
26404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26405 CFLAGS=$ax_check_save_flags
26407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsign_conversion" >&5
26408 printf "%s\n" "$ax_cv_check_cflags___Wsign_conversion" >&6; }
26409 if test "x$ax_cv_check_cflags___Wsign_conversion" = xyes
26411 CFLAGS="$CFLAGS -Wsign-conversion"
26416 # Not used because this basically disallows default case
26417 # AX_CHECK_COMPILE_FLAG([-Wswitch-enum], [CFLAGS="$CFLAGS -Wswitch-enum"])
26418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code-break" >&5
26419 printf %s "checking whether C compiler accepts -Wunreachable-code-break... " >&6; }
26420 if test ${ax_cv_check_cflags___Wunreachable_code_break+y}
26422 printf %s "(cached) " >&6
26425 ax_check_save_flags=$CFLAGS
26426 CFLAGS="$CFLAGS -Wunreachable-code-break"
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h. */
26438 if ac_fn_c_try_compile "$LINENO"
26440 ax_cv_check_cflags___Wunreachable_code_break=yes
26442 ax_cv_check_cflags___Wunreachable_code_break=no
26444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26445 CFLAGS=$ax_check_save_flags
26447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code_break" >&5
26448 printf "%s\n" "$ax_cv_check_cflags___Wunreachable_code_break" >&6; }
26449 if test "x$ax_cv_check_cflags___Wunreachable_code_break" = xyes
26451 CFLAGS="$CFLAGS -Wunreachable-code-break"
26456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-macros" >&5
26457 printf %s "checking whether C compiler accepts -Wunused-macros... " >&6; }
26458 if test ${ax_cv_check_cflags___Wunused_macros+y}
26460 printf %s "(cached) " >&6
26463 ax_check_save_flags=$CFLAGS
26464 CFLAGS="$CFLAGS -Wunused-macros"
26465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26466 /* end confdefs.h. */
26476 if ac_fn_c_try_compile "$LINENO"
26478 ax_cv_check_cflags___Wunused_macros=yes
26480 ax_cv_check_cflags___Wunused_macros=no
26482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26483 CFLAGS=$ax_check_save_flags
26485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_macros" >&5
26486 printf "%s\n" "$ax_cv_check_cflags___Wunused_macros" >&6; }
26487 if test "x$ax_cv_check_cflags___Wunused_macros" = xyes
26489 CFLAGS="$CFLAGS -Wunused-macros"
26494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
26495 printf %s "checking whether C compiler accepts -Wunused-parameter... " >&6; }
26496 if test ${ax_cv_check_cflags___Wunused_parameter+y}
26498 printf %s "(cached) " >&6
26501 ax_check_save_flags=$CFLAGS
26502 CFLAGS="$CFLAGS -Wunused-parameter"
26503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26504 /* end confdefs.h. */
26514 if ac_fn_c_try_compile "$LINENO"
26516 ax_cv_check_cflags___Wunused_parameter=yes
26518 ax_cv_check_cflags___Wunused_parameter=no
26520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26521 CFLAGS=$ax_check_save_flags
26523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_parameter" >&5
26524 printf "%s\n" "$ax_cv_check_cflags___Wunused_parameter" >&6; }
26525 if test "x$ax_cv_check_cflags___Wunused_parameter" = xyes
26527 CFLAGS="$CFLAGS -Wunused-parameter"
26532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wredundant-decls" >&5
26533 printf %s "checking whether C compiler accepts -Wredundant-decls... " >&6; }
26534 if test ${ax_cv_check_cflags___Wredundant_decls+y}
26536 printf %s "(cached) " >&6
26539 ax_check_save_flags=$CFLAGS
26540 CFLAGS="$CFLAGS -Wredundant-decls"
26541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h. */
26552 if ac_fn_c_try_compile "$LINENO"
26554 ax_cv_check_cflags___Wredundant_decls=yes
26556 ax_cv_check_cflags___Wredundant_decls=no
26558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26559 CFLAGS=$ax_check_save_flags
26561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wredundant_decls" >&5
26562 printf "%s\n" "$ax_cv_check_cflags___Wredundant_decls" >&6; }
26563 if test "x$ax_cv_check_cflags___Wredundant_decls" = xyes
26565 CFLAGS="$CFLAGS -Wredundant-decls"
26570 # Only work with Clang for the moment
26571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
26572 printf %s "checking whether C compiler accepts -Wheader-guard... " >&6; }
26573 if test ${ax_cv_check_cflags___Wheader_guard+y}
26575 printf %s "(cached) " >&6
26578 ax_check_save_flags=$CFLAGS
26579 CFLAGS="$CFLAGS -Wheader-guard"
26580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26581 /* end confdefs.h. */
26591 if ac_fn_c_try_compile "$LINENO"
26593 ax_cv_check_cflags___Wheader_guard=yes
26595 ax_cv_check_cflags___Wheader_guard=no
26597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26598 CFLAGS=$ax_check_save_flags
26600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
26601 printf "%s\n" "$ax_cv_check_cflags___Wheader_guard" >&6; }
26602 if test "x$ax_cv_check_cflags___Wheader_guard" = xyes
26604 CFLAGS="$CFLAGS -Wheader-guard"
26609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
26610 printf %s "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
26611 if test ${ax_cv_check_cflags___Wsometimes_uninitialized+y}
26613 printf %s "(cached) " >&6
26616 ax_check_save_flags=$CFLAGS
26617 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h. */
26629 if ac_fn_c_try_compile "$LINENO"
26631 ax_cv_check_cflags___Wsometimes_uninitialized=yes
26633 ax_cv_check_cflags___Wsometimes_uninitialized=no
26635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26636 CFLAGS=$ax_check_save_flags
26638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
26639 printf "%s\n" "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
26640 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes
26642 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
26648 # This is required because we pass format string as "const char*.
26649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-nonliteral" >&5
26650 printf %s "checking whether C compiler accepts -Wno-format-nonliteral... " >&6; }
26651 if test ${ax_cv_check_cflags___Wno_format_nonliteral+y}
26653 printf %s "(cached) " >&6
26656 ax_check_save_flags=$CFLAGS
26657 CFLAGS="$CFLAGS -Wno-format-nonliteral"
26658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26659 /* end confdefs.h. */
26669 if ac_fn_c_try_compile "$LINENO"
26671 ax_cv_check_cflags___Wno_format_nonliteral=yes
26673 ax_cv_check_cflags___Wno_format_nonliteral=no
26675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26676 CFLAGS=$ax_check_save_flags
26678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_nonliteral" >&5
26679 printf "%s\n" "$ax_cv_check_cflags___Wno_format_nonliteral" >&6; }
26680 if test "x$ax_cv_check_cflags___Wno_format_nonliteral" = xyes
26682 CFLAGS="$CFLAGS -Wno-format-nonliteral"
26690 ac_cpp='$CXXCPP $CPPFLAGS'
26691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wall" >&5
26696 printf %s "checking whether C++ compiler accepts -Wall... " >&6; }
26697 if test ${ax_cv_check_cxxflags___Wall+y}
26699 printf %s "(cached) " >&6
26702 ax_check_save_flags=$CXXFLAGS
26703 CXXFLAGS="$CXXFLAGS -Wall"
26704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h. */
26715 if ac_fn_cxx_try_compile "$LINENO"
26717 ax_cv_check_cxxflags___Wall=yes
26719 ax_cv_check_cxxflags___Wall=no
26721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26722 CXXFLAGS=$ax_check_save_flags
26724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wall" >&5
26725 printf "%s\n" "$ax_cv_check_cxxflags___Wall" >&6; }
26726 if test "x$ax_cv_check_cxxflags___Wall" = xyes
26728 CXXFLAGS="$CXXFLAGS -Wall"
26733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror" >&5
26734 printf %s "checking whether C++ compiler accepts -Werror... " >&6; }
26735 if test ${ax_cv_check_cxxflags___Werror+y}
26737 printf %s "(cached) " >&6
26740 ax_check_save_flags=$CXXFLAGS
26741 CXXFLAGS="$CXXFLAGS -Werror"
26742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26743 /* end confdefs.h. */
26753 if ac_fn_cxx_try_compile "$LINENO"
26755 ax_cv_check_cxxflags___Werror=yes
26757 ax_cv_check_cxxflags___Werror=no
26759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26760 CXXFLAGS=$ax_check_save_flags
26762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror" >&5
26763 printf "%s\n" "$ax_cv_check_cxxflags___Werror" >&6; }
26764 if test "x$ax_cv_check_cxxflags___Werror" = xyes
26766 CXXFLAGS="$CXXFLAGS -Werror"
26771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wformat-security" >&5
26772 printf %s "checking whether C++ compiler accepts -Wformat-security... " >&6; }
26773 if test ${ax_cv_check_cxxflags___Wformat_security+y}
26775 printf %s "(cached) " >&6
26778 ax_check_save_flags=$CXXFLAGS
26779 CXXFLAGS="$CXXFLAGS -Wformat-security"
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26791 if ac_fn_cxx_try_compile "$LINENO"
26793 ax_cv_check_cxxflags___Wformat_security=yes
26795 ax_cv_check_cxxflags___Wformat_security=no
26797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26798 CXXFLAGS=$ax_check_save_flags
26800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wformat_security" >&5
26801 printf "%s\n" "$ax_cv_check_cxxflags___Wformat_security" >&6; }
26802 if test "x$ax_cv_check_cxxflags___Wformat_security" = xyes
26804 CXXFLAGS="$CXXFLAGS -Wformat-security"
26809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wsometimes-uninitialized" >&5
26810 printf %s "checking whether C++ compiler accepts -Wsometimes-uninitialized... " >&6; }
26811 if test ${ax_cv_check_cxxflags___Wsometimes_uninitialized+y}
26813 printf %s "(cached) " >&6
26816 ax_check_save_flags=$CXXFLAGS
26817 CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
26818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26819 /* end confdefs.h. */
26829 if ac_fn_cxx_try_compile "$LINENO"
26831 ax_cv_check_cxxflags___Wsometimes_uninitialized=yes
26833 ax_cv_check_cxxflags___Wsometimes_uninitialized=no
26835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26836 CXXFLAGS=$ax_check_save_flags
26838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wsometimes_uninitialized" >&5
26839 printf "%s\n" "$ax_cv_check_cxxflags___Wsometimes_uninitialized" >&6; }
26840 if test "x$ax_cv_check_cxxflags___Wsometimes_uninitialized" = xyes
26842 CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
26847 # Disable noexcept-type warning of g++-7. This is not harmful as
26848 # long as all source files are compiled with the same compiler.
26849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-noexcept-type" >&5
26850 printf %s "checking whether C++ compiler accepts -Wno-noexcept-type... " >&6; }
26851 if test ${ax_cv_check_cxxflags___Wno_noexcept_type+y}
26853 printf %s "(cached) " >&6
26856 ax_check_save_flags=$CXXFLAGS
26857 CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
26858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26859 /* end confdefs.h. */
26869 if ac_fn_cxx_try_compile "$LINENO"
26871 ax_cv_check_cxxflags___Wno_noexcept_type=yes
26873 ax_cv_check_cxxflags___Wno_noexcept_type=no
26875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26876 CXXFLAGS=$ax_check_save_flags
26878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_noexcept_type" >&5
26879 printf "%s\n" "$ax_cv_check_cxxflags___Wno_noexcept_type" >&6; }
26880 if test "x$ax_cv_check_cxxflags___Wno_noexcept_type" = xyes
26882 CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
26888 ac_cpp='$CPP $CPPFLAGS'
26889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26896 WARNCXXFLAGS=$CXXFLAGS
26898 CFLAGS=$save_CFLAGS
26899 CXXFLAGS=$save_CXXFLAGS
26905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
26906 printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
26907 if test ${ax_cv_check_cflags___fvisibility_hidden+y}
26909 printf %s "(cached) " >&6
26912 ax_check_save_flags=$CFLAGS
26913 CFLAGS="$CFLAGS -fvisibility=hidden"
26914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h. */
26925 if ac_fn_c_try_compile "$LINENO"
26927 ax_cv_check_cflags___fvisibility_hidden=yes
26929 ax_cv_check_cflags___fvisibility_hidden=no
26931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26932 CFLAGS=$ax_check_save_flags
26934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
26935 printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
26936 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes
26938 EXTRACFLAG="-fvisibility=hidden"
26946 if test "x$debug" != "xno"; then
26948 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
26953 # Some platform does not have working std::future. We disable
26954 # threading for those platforms.
26955 if test "x$threads" != "xyes" ||
26956 test "x$have_std_future" != "xyes"; then
26959 printf "%s\n" "#define NOTHREADS 1" >>confdefs.h
26963 # propagate $enable_static to tests/Makefile.am
26964 if test "x$enable_static" = "xyes"; then
26965 ENABLE_STATIC_TRUE=
26966 ENABLE_STATIC_FALSE='#'
26968 ENABLE_STATIC_TRUE='#'
26969 ENABLE_STATIC_FALSE=
26976 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libnghttp2.pc lib/includes/Makefile lib/includes/nghttp2/nghttp2ver.h tests/Makefile tests/testdata/Makefile third-party/Makefile src/Makefile src/includes/Makefile src/libnghttp2_asio.pc bpf/Makefile examples/Makefile python/Makefile python/setup.py integration-tests/Makefile integration-tests/config.go integration-tests/setenv doc/Makefile doc/conf.py doc/index.rst doc/package_README.rst doc/tutorial-client.rst doc/tutorial-server.rst doc/tutorial-hpack.rst doc/nghttpx-howto.rst doc/h2load-howto.rst doc/libnghttp2_asio.rst doc/python-apiref.rst doc/building-android-binary.rst doc/nghttp2.h.rst doc/nghttp2ver.h.rst doc/asio_http2.h.rst doc/asio_http2_server.h.rst doc/asio_http2_client.h.rst doc/contribute.rst contrib/Makefile script/Makefile"
26978 cat >confcache <<\_ACEOF
26979 # This file is a shell script that caches the results of configure
26980 # tests run on this system so they can be shared between configure
26981 # scripts and configure runs, see configure's option --config-cache.
26982 # It is not useful on other systems. If it contains results you don't
26983 # want to keep, you may remove or edit it.
26985 # config.status only pays attention to the cache file if you give it
26986 # the --recheck option to rerun configure.
26988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26990 # following values.
26994 # The following way of writing the cache mishandles newlines in values,
26995 # but we know of no workaround that is simple, portable, and efficient.
26996 # So, we kill variables containing newlines.
26997 # Ultrix sh set writes to stderr and can't be redirected directly,
26998 # and sets the high bit in the cache file unless we assign to the vars.
27000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27001 eval ac_val=\$$ac_var
27005 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27006 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27009 _ | IFS | as_nl) ;; #(
27010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27011 *) { eval $ac_var=; unset $ac_var;} ;;
27017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27018 *${as_nl}ac_space=\ *)
27019 # `set' does not quote correctly, so add quotes: double-quote
27020 # substitution turns \\\\ into \\, and sed turns \\ into \.
27023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27026 # `set' quotes correctly as required by POSIX, so do not add quotes.
27027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27036 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
27038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27041 if test -w "$cache_file"; then
27042 if test "x$cache_file" != "x/dev/null"; then
27043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27044 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
27045 if test ! -f "$cache_file" || test -h "$cache_file"; then
27046 cat confcache >"$cache_file"
27048 case $cache_file in #(
27050 mv -f confcache "$cache_file"$$ &&
27051 mv -f "$cache_file"$$ "$cache_file" ;; #(
27053 mv -f confcache "$cache_file" ;;
27058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27059 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
27064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27065 # Let make expand exec_prefix.
27066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27068 DEFS=-DHAVE_CONFIG_H
27073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27074 # 1. Remove the extension, and $U if already installed.
27075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27076 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
27077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27078 # will be set to the directory where LIBOBJS objects are built.
27079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27082 LIBOBJS=$ac_libobjs
27084 LTLIBOBJS=$ac_ltlibobjs
27087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27088 printf %s "checking that generated files are newer than configure... " >&6; }
27089 if test -n "$am_sleep_pid"; then
27090 # Hide warnings about reused PIDs.
27091 wait $am_sleep_pid 2>/dev/null
27093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27094 printf "%s\n" "done" >&6; }
27095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27096 as_fn_error $? "conditional \"AMDEP\" was never defined.
27097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27099 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27100 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27103 if test -n "$EXEEXT"; then
27105 am__EXEEXT_FALSE='#'
27107 am__EXEEXT_TRUE='#'
27111 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27112 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
27113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27115 if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
27116 as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
27117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27119 if test -z "${HAVE_LIBBPF_TRUE}" && test -z "${HAVE_LIBBPF_FALSE}"; then
27120 as_fn_error $? "conditional \"HAVE_LIBBPF\" was never defined.
27121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27123 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
27124 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
27125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27127 if test -z "${ENABLE_APP_TRUE}" && test -z "${ENABLE_APP_FALSE}"; then
27128 as_fn_error $? "conditional \"ENABLE_APP\" was never defined.
27129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27131 if test -z "${ENABLE_HTTP3_TRUE}" && test -z "${ENABLE_HTTP3_FALSE}"; then
27132 as_fn_error $? "conditional \"ENABLE_HTTP3\" was never defined.
27133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27135 if test -z "${ENABLE_HPACK_TOOLS_TRUE}" && test -z "${ENABLE_HPACK_TOOLS_FALSE}"; then
27136 as_fn_error $? "conditional \"ENABLE_HPACK_TOOLS\" was never defined.
27137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27139 if test -z "${ENABLE_ASIO_LIB_TRUE}" && test -z "${ENABLE_ASIO_LIB_FALSE}"; then
27140 as_fn_error $? "conditional \"ENABLE_ASIO_LIB\" was never defined.
27141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27143 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
27144 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
27145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27147 if test -z "${ENABLE_THIRD_PARTY_TRUE}" && test -z "${ENABLE_THIRD_PARTY_FALSE}"; then
27148 as_fn_error $? "conditional \"ENABLE_THIRD_PARTY\" was never defined.
27149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27151 if test -z "${HAVE_MRUBY_TRUE}" && test -z "${HAVE_MRUBY_FALSE}"; then
27152 as_fn_error $? "conditional \"HAVE_MRUBY\" was never defined.
27153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27155 if test -z "${HAVE_NEVERBLEED_TRUE}" && test -z "${HAVE_NEVERBLEED_FALSE}"; then
27156 as_fn_error $? "conditional \"HAVE_NEVERBLEED\" was never defined.
27157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27159 if test -z "${ENABLE_PYTHON_BINDINGS_TRUE}" && test -z "${ENABLE_PYTHON_BINDINGS_FALSE}"; then
27160 as_fn_error $? "conditional \"ENABLE_PYTHON_BINDINGS\" was never defined.
27161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27163 if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
27164 as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
27165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27167 if test -z "${ENABLE_FAILMALLOC_TRUE}" && test -z "${ENABLE_FAILMALLOC_FALSE}"; then
27168 as_fn_error $? "conditional \"ENABLE_FAILMALLOC\" was never defined.
27169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27172 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
27173 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
27174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27177 : "${CONFIG_STATUS=./config.status}"
27179 ac_clean_files_save=$ac_clean_files
27180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27182 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
27184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27186 # Generated by $as_me.
27187 # Run this file to recreate the current configuration.
27188 # Compiler output produced by configure, useful for debugging
27189 # configure, is in config.log if it exists.
27192 ac_cs_recheck=false
27195 SHELL=\${CONFIG_SHELL-$SHELL}
27198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27199 ## -------------------- ##
27200 ## M4sh Initialization. ##
27201 ## -------------------- ##
27203 # Be more Bourne compatible
27204 DUALCASE=1; export DUALCASE # for MKS sh
27206 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27210 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27211 # is contrary to our usage. Disable this feature.
27212 alias -g '${1+"$@"}'='"$@"'
27213 setopt NO_GLOB_SUBST
27215 case `(set -o) 2>/dev/null` in #(
27225 # Reset variables that may have inherited troublesome values from
27228 # IFS needs to be set, to space, tab, and newline, in precisely that order.
27229 # (If _AS_PATH_WALK were called with IFS unset, it would have the
27230 # side effect of setting IFS to empty, thus disabling word splitting.)
27231 # Quoting is to prevent editors from complaining about space-tab.
27241 # Ensure predictable behavior from utilities with locale-dependent output.
27247 # We cannot yet rely on "unset" to work, but we need these variables
27248 # to be unset--not just set to an empty or harmless value--now, to
27249 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
27250 # also avoids known problems related to "unset" and subshell syntax
27251 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
27252 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
27253 do eval test \${$as_var+y} \
27254 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27257 # Ensure that fds 0, 1, and 2 are open.
27258 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
27259 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
27260 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
27262 # The user is always right.
27263 if ${PATH_SEPARATOR+false} :; then
27265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27266 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27272 # Find who we are. Look in the path if we contain no directory separator.
27275 *[\\/]* ) as_myself=$0 ;;
27276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277 for as_dir in $PATH
27280 case $as_dir in #(((
27283 *) as_dir=$as_dir/ ;;
27285 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
27291 # We did not find ourselves, most probably we were run as `sh COMMAND'
27292 # in which case we are not to be found in the path.
27293 if test "x$as_myself" = x; then
27296 if test ! -f "$as_myself"; then
27297 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27304 # ----------------------------------------
27305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27307 # script with STATUS, using 1 if that was 0.
27310 as_status=$1; test $as_status -eq 0 && as_status=1
27312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27315 printf "%s\n" "$as_me: error: $2" >&2
27316 as_fn_exit $as_status
27321 # as_fn_set_status STATUS
27322 # -----------------------
27323 # Set $? to STATUS, without forking.
27324 as_fn_set_status ()
27327 } # as_fn_set_status
27329 # as_fn_exit STATUS
27330 # -----------------
27331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27335 as_fn_set_status $1
27341 # Portably unset VAR.
27344 { eval $1=; unset $1;}
27346 as_unset=as_fn_unset
27348 # as_fn_append VAR VALUE
27349 # ----------------------
27350 # Append the text in VALUE to the end of the definition contained in VAR. Take
27351 # advantage of any shell optimizations that allow amortized linear growth over
27352 # repeated appends, instead of the typical quadratic growth present in naive
27354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
27356 eval 'as_fn_append ()
27367 # as_fn_arith ARG...
27368 # ------------------
27369 # Perform arithmetic evaluation on the ARGs, and store the result in the
27370 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27371 # must be portable across $(()) and expr.
27372 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
27374 eval 'as_fn_arith ()
27381 as_val=`expr "$@" || test $? -eq 1`
27386 if expr a : '\(a\)' >/dev/null 2>&1 &&
27387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27394 as_basename=basename
27399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27405 as_me=`$as_basename -- "$0" ||
27406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27407 X"$0" : 'X\(//\)$' \| \
27408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27409 printf "%s\n" X/"$0" |
27410 sed '/^.*\/\([^/][^/]*\)\/*$/{
27424 # Avoid depending upon Character Ranges.
27425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27428 as_cr_digits='0123456789'
27429 as_cr_alnum=$as_cr_Letters$as_cr_digits
27432 # Determine whether it's possible to make 'echo' print without a newline.
27433 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
27434 # for compatibility with existing Makefiles.
27435 ECHO_C= ECHO_N= ECHO_T=
27436 case `echo -n x` in #(((((
27438 case `echo 'xy\c'` in
27439 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27441 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27448 # For backward compatibility with old third-party macros, we provide
27449 # the shell variables $as_echo and $as_echo_n. New code should use
27450 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
27451 as_echo='printf %s\n'
27452 as_echo_n='printf %s'
27454 rm -f conf$$ conf$$.exe conf$$.file
27455 if test -d conf$$.dir; then
27456 rm -f conf$$.dir/conf$$.file
27459 mkdir conf$$.dir 2>/dev/null
27461 if (echo >conf$$.file) 2>/dev/null; then
27462 if ln -s conf$$.file conf$$ 2>/dev/null; then
27464 # ... but there are two gotchas:
27465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27467 # In both cases, we have to default to `cp -pR'.
27468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27470 elif ln conf$$.file conf$$ 2>/dev/null; then
27478 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27479 rmdir conf$$.dir 2>/dev/null
27484 # Create "$as_dir" as a directory, including parents if necessary.
27489 -*) as_dir=./$as_dir;;
27491 test -d "$as_dir" || eval $as_mkdir_p || {
27495 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27496 *) as_qdir=$as_dir;;
27498 as_dirs="'$as_qdir' $as_dirs"
27499 as_dir=`$as_dirname -- "$as_dir" ||
27500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27501 X"$as_dir" : 'X\(//\)[^/]' \| \
27502 X"$as_dir" : 'X\(//\)$' \| \
27503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27504 printf "%s\n" X"$as_dir" |
27505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27509 /^X\(\/\/\)[^/].*/{
27522 test -d "$as_dir" && break
27524 test -z "$as_dirs" || eval "mkdir $as_dirs"
27525 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27529 if mkdir -p . 2>/dev/null; then
27530 as_mkdir_p='mkdir -p "$as_dir"'
27532 test -d ./-p && rmdir ./-p
27537 # as_fn_executable_p FILE
27538 # -----------------------
27539 # Test if FILE is an executable regular file.
27540 as_fn_executable_p ()
27542 test -f "$1" && test -x "$1"
27543 } # as_fn_executable_p
27544 as_test_x='test -x'
27545 as_executable_p=as_fn_executable_p
27547 # Sed expression to map a string onto a valid CPP name.
27548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27550 # Sed expression to map a string onto a valid variable name.
27551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27555 ## ----------------------------------- ##
27556 ## Main body of $CONFIG_STATUS script. ##
27557 ## ----------------------------------- ##
27559 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27562 # Save the log message, to keep $0 and so on meaningful, and to
27563 # report actual input values of CONFIG_FILES etc. instead of their
27564 # values after options handling.
27566 This file was extended by nghttp2 $as_me 1.46.0, which was
27567 generated by GNU Autoconf 2.71. Invocation command line was
27569 CONFIG_FILES = $CONFIG_FILES
27570 CONFIG_HEADERS = $CONFIG_HEADERS
27571 CONFIG_LINKS = $CONFIG_LINKS
27572 CONFIG_COMMANDS = $CONFIG_COMMANDS
27575 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27580 case $ac_config_files in *"
27581 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27584 case $ac_config_headers in *"
27585 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27590 # Files that config.status was made for.
27591 config_files="$ac_config_files"
27592 config_headers="$ac_config_headers"
27593 config_commands="$ac_config_commands"
27597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27599 \`$as_me' instantiates files and other configuration actions
27600 from templates according to the current configuration. Unless the files
27601 and actions are specified as TAGs, all are instantiated by default.
27603 Usage: $0 [OPTION]... [TAG]...
27605 -h, --help print this help, then exit
27606 -V, --version print version number and configuration settings, then exit
27607 --config print configuration, then exit
27608 -q, --quiet, --silent
27609 do not print progress messages
27610 -d, --debug don't remove temporary files
27611 --recheck update $as_me by reconfiguring in the same conditions
27612 --file=FILE[:TEMPLATE]
27613 instantiate the configuration file FILE
27614 --header=FILE[:TEMPLATE]
27615 instantiate the configuration header FILE
27617 Configuration files:
27620 Configuration headers:
27623 Configuration commands:
27626 Report bugs to <t-tujikawa@users.sourceforge.net>."
27629 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
27630 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
27631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27632 ac_cs_config='$ac_cs_config_escaped'
27634 nghttp2 config.status 1.46.0
27635 configured by $0, generated by GNU Autoconf 2.71,
27636 with options \\"\$ac_cs_config\\"
27638 Copyright (C) 2021 Free Software Foundation, Inc.
27639 This config.status script is free software; the Free Software Foundation
27640 gives unlimited permission to copy, distribute and modify it."
27647 test -n "\$AWK" || AWK=awk
27650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27651 # The default lists apply if the user does not specify any file.
27657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27674 # Handling of the options.
27675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27678 printf "%s\n" "$ac_cs_version"; exit ;;
27679 --config | --confi | --conf | --con | --co | --c )
27680 printf "%s\n" "$ac_cs_config"; exit ;;
27681 --debug | --debu | --deb | --de | --d | -d )
27683 --file | --fil | --fi | --f )
27686 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27687 '') as_fn_error $? "missing file argument" ;;
27689 as_fn_append CONFIG_FILES " '$ac_optarg'"
27690 ac_need_defaults=false;;
27691 --header | --heade | --head | --hea )
27694 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27696 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27697 ac_need_defaults=false;;
27699 # Conflict between --help and --header
27700 as_fn_error $? "ambiguous option: \`$1'
27701 Try \`$0 --help' for more information.";;
27702 --help | --hel | -h )
27703 printf "%s\n" "$ac_cs_usage"; exit ;;
27704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27708 # This is an error.
27709 -*) as_fn_error $? "unrecognized option: \`$1'
27710 Try \`$0 --help' for more information." ;;
27712 *) as_fn_append ac_config_targets " $1"
27713 ac_need_defaults=false ;;
27719 ac_configure_extra_args=
27721 if $ac_cs_silent; then
27723 ac_configure_extra_args="$ac_configure_extra_args --silent"
27727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27728 if \$ac_cs_recheck; then
27729 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27731 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27732 CONFIG_SHELL='$SHELL'
27733 export CONFIG_SHELL
27738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27743 ## Running $as_me. ##
27745 printf "%s\n" "$ac_log"
27749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27755 # The HP-UX ksh and POSIX shell print the target directory to stdout
27756 # if CDPATH is set.
27757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27759 sed_quote_subst='$sed_quote_subst'
27760 double_quote_subst='$double_quote_subst'
27761 delay_variable_subst='$delay_variable_subst'
27762 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27763 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27764 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27766 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27767 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27768 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27771 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27792 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27793 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27794 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27795 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27796 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27797 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27798 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27799 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27800 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27801 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27802 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27803 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27804 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27805 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27806 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27807 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27808 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27809 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27810 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27811 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27812 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27813 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27814 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27815 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27816 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27817 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27818 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27819 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27820 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27821 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27822 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27823 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27824 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27825 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27826 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27827 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27828 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27829 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27830 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27831 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27832 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27833 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27834 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27835 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27836 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27837 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27838 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27839 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27840 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27841 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27842 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27843 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27844 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27845 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27846 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27847 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27848 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27849 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27850 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27851 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27852 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27853 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27854 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27855 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27856 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27857 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27858 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27859 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27860 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27861 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27862 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27863 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27864 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27865 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27866 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27867 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27868 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27869 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27870 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27871 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27872 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27873 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27874 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27875 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27876 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27877 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27878 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27879 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27880 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27881 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27882 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27883 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27884 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27885 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27886 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27887 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27888 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27889 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27890 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27891 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27892 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27893 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27894 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27895 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27896 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27897 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27898 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27899 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27900 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27901 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27902 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27903 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27904 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27905 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27906 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27907 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27908 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27909 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27910 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27911 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27912 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27913 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27914 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27915 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27916 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27917 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27918 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27919 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27920 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27921 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27922 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27923 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27924 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27925 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27926 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27927 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27928 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27929 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27930 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27931 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27932 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27933 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27934 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27935 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27936 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27937 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27938 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27939 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27940 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27941 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27942 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27943 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27944 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27945 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27946 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27947 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27948 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27949 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27950 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27953 LTCFLAGS='$LTCFLAGS'
27954 compiler='$compiler_DEFAULT'
27956 # A function that is used when there is no print builtin or printf.
27957 func_fallback_echo ()
27959 eval 'cat <<_LTECHO_EOF
27964 # Quote evaled strings.
27979 deplibs_check_method \
27984 sharedlib_from_linklib_cmd \
27987 archiver_list_spec \
27993 lt_cv_sys_global_symbol_pipe \
27994 lt_cv_sys_global_symbol_to_cdecl \
27995 lt_cv_sys_global_symbol_to_import \
27996 lt_cv_sys_global_symbol_to_c_name_address \
27997 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27998 lt_cv_nm_interface \
27999 nm_file_list_spec \
28000 lt_cv_truncate_bin \
28001 lt_prog_compiler_no_builtin_flag \
28002 lt_prog_compiler_pic \
28003 lt_prog_compiler_wl \
28004 lt_prog_compiler_static \
28005 lt_cv_prog_compiler_c_o \
28014 export_dynamic_flag_spec \
28015 whole_archive_flag_spec \
28016 compiler_needs_object \
28018 allow_undefined_flag \
28019 no_undefined_flag \
28020 hardcode_libdir_flag_spec \
28021 hardcode_libdir_separator \
28025 variables_saved_for_relink \
28027 library_names_spec \
28029 install_override_mode \
28033 compiler_lib_search_dirs \
28038 compiler_lib_search_path \
28042 lt_prog_compiler_no_builtin_flag_CXX \
28043 lt_prog_compiler_pic_CXX \
28044 lt_prog_compiler_wl_CXX \
28045 lt_prog_compiler_static_CXX \
28046 lt_cv_prog_compiler_c_o_CXX \
28047 export_dynamic_flag_spec_CXX \
28048 whole_archive_flag_spec_CXX \
28049 compiler_needs_object_CXX \
28051 allow_undefined_flag_CXX \
28052 no_undefined_flag_CXX \
28053 hardcode_libdir_flag_spec_CXX \
28054 hardcode_libdir_separator_CXX \
28055 exclude_expsyms_CXX \
28056 include_expsyms_CXX \
28057 file_list_spec_CXX \
28058 compiler_lib_search_dirs_CXX \
28059 predep_objects_CXX \
28060 postdep_objects_CXX \
28063 compiler_lib_search_path_CXX; do
28064 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28065 *[\\\\\\\`\\"\\\$]*)
28066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28074 # Double-quote double-evaled strings.
28075 for var in reload_cmds \
28076 old_postinstall_cmds \
28077 old_postuninstall_cmds \
28079 extract_expsyms_cmds \
28080 old_archive_from_new_cmds \
28081 old_archive_from_expsyms_cmds \
28083 archive_expsym_cmds \
28085 module_expsym_cmds \
28086 export_symbols_cmds \
28090 postuninstall_cmds \
28092 sys_lib_search_path_spec \
28093 configure_time_dlsearch_path \
28094 configure_time_lt_sys_library_path \
28096 old_archive_cmds_CXX \
28097 old_archive_from_new_cmds_CXX \
28098 old_archive_from_expsyms_cmds_CXX \
28100 archive_expsym_cmds_CXX \
28102 module_expsym_cmds_CXX \
28103 export_symbols_cmds_CXX \
28105 postlink_cmds_CXX; do
28106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28107 *[\\\\\\\`\\"\\\$]*)
28108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28116 ac_aux_dir='$ac_aux_dir'
28118 # See if we are running on zsh, and set the options that allow our
28119 # commands through without removal of \ escapes INIT.
28120 if test -n "\${ZSH_VERSION+set}"; then
28121 setopt NO_GLOB_SUBST
28134 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28140 # Handling of arguments.
28141 for ac_config_target in $ac_config_targets
28143 case $ac_config_target in
28144 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28145 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28146 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28147 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28148 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28149 "lib/libnghttp2.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp2.pc" ;;
28150 "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
28151 "lib/includes/nghttp2/nghttp2ver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp2/nghttp2ver.h" ;;
28152 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28153 "tests/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testdata/Makefile" ;;
28154 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
28155 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28156 "src/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/includes/Makefile" ;;
28157 "src/libnghttp2_asio.pc") CONFIG_FILES="$CONFIG_FILES src/libnghttp2_asio.pc" ;;
28158 "bpf/Makefile") CONFIG_FILES="$CONFIG_FILES bpf/Makefile" ;;
28159 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28160 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
28161 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
28162 "integration-tests/Makefile") CONFIG_FILES="$CONFIG_FILES integration-tests/Makefile" ;;
28163 "integration-tests/config.go") CONFIG_FILES="$CONFIG_FILES integration-tests/config.go" ;;
28164 "integration-tests/setenv") CONFIG_FILES="$CONFIG_FILES integration-tests/setenv" ;;
28165 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28166 "doc/conf.py") CONFIG_FILES="$CONFIG_FILES doc/conf.py" ;;
28167 "doc/index.rst") CONFIG_FILES="$CONFIG_FILES doc/index.rst" ;;
28168 "doc/package_README.rst") CONFIG_FILES="$CONFIG_FILES doc/package_README.rst" ;;
28169 "doc/tutorial-client.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-client.rst" ;;
28170 "doc/tutorial-server.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-server.rst" ;;
28171 "doc/tutorial-hpack.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-hpack.rst" ;;
28172 "doc/nghttpx-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttpx-howto.rst" ;;
28173 "doc/h2load-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/h2load-howto.rst" ;;
28174 "doc/libnghttp2_asio.rst") CONFIG_FILES="$CONFIG_FILES doc/libnghttp2_asio.rst" ;;
28175 "doc/python-apiref.rst") CONFIG_FILES="$CONFIG_FILES doc/python-apiref.rst" ;;
28176 "doc/building-android-binary.rst") CONFIG_FILES="$CONFIG_FILES doc/building-android-binary.rst" ;;
28177 "doc/nghttp2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2.h.rst" ;;
28178 "doc/nghttp2ver.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2ver.h.rst" ;;
28179 "doc/asio_http2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2.h.rst" ;;
28180 "doc/asio_http2_server.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_server.h.rst" ;;
28181 "doc/asio_http2_client.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_client.h.rst" ;;
28182 "doc/contribute.rst") CONFIG_FILES="$CONFIG_FILES doc/contribute.rst" ;;
28183 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
28184 "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
28186 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28191 # If the user did not use the arguments to specify the items to instantiate,
28192 # then the envvar interface is used. Set only those that are not.
28193 # We use the long form for the default assignment because of an extremely
28194 # bizarre bug on SunOS 4.1.3.
28195 if $ac_need_defaults; then
28196 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
28197 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
28198 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
28201 # Have a temporary directory for convenience. Make it in the build tree
28202 # simply because there is no reason against having it here, and in addition,
28203 # creating and moving files from /tmp can sometimes cause problems.
28204 # Hook for its removal unless debugging.
28205 # Note that there is a small window in which the directory will not be cleaned:
28206 # after its creation but before its name has been assigned to `$tmp'.
28210 trap 'exit_status=$?
28211 : "${ac_tmp:=$tmp}"
28212 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28214 trap 'as_fn_exit 1' 1 2 13 15
28216 # Create a (secure) tmp directory for tmp files.
28219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28223 tmp=./conf$$-$RANDOM
28224 (umask 077 && mkdir "$tmp")
28225 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28228 # Set up the scripts for CONFIG_FILES section.
28229 # No need to generate them if there are no CONFIG_FILES.
28230 # This happens for instance with `./config.status config.h'.
28231 if test -n "$CONFIG_FILES"; then
28234 ac_cr=`echo X | tr X '\015'`
28235 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28236 # But we know of no other shell where ac_cr would be empty at this
28237 # point, so we can use a bashism as a fallback.
28238 if test "x$ac_cr" = x; then
28239 eval ac_cr=\$\'\\r\'
28241 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28242 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28245 ac_cs_awk_cr=$ac_cr
28248 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28253 echo "cat >conf$$subs.awk <<_ACEOF" &&
28254 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28256 } >conf$$subs.sh ||
28257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28258 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28260 for ac_last_try in false false false false false :; do
28261 . ./conf$$subs.sh ||
28262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28264 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28265 if test $ac_delim_n = $ac_delim_num; then
28267 elif $ac_last_try; then
28268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28273 rm -f conf$$subs.sh
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28276 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28280 s/^/S["/; s/!.*/"]=/
28290 s/\(.\{148\}\)..*/\1/
28292 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28297 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28304 s/\(.\{148\}\)..*/\1/
28306 s/["\\]/\\&/g; s/^/"/; s/$/"/
28310 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28315 ' <conf$$subs.awk | sed '
28320 ' >>$CONFIG_STATUS || ac_write_fail=1
28321 rm -f conf$$subs.awk
28322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28324 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28325 for (key in S) S_is_set[key] = 1
28331 nfields = split(line, field, "@")
28333 len = length(field[1])
28334 for (i = 2; i < nfields; i++) {
28336 keylen = length(key)
28337 if (S_is_set[key]) {
28339 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28340 len += length(value) + length(field[++i])
28351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28352 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28353 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28356 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28357 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28360 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28361 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28362 # trailing colons and then remove the whole line if VPATH becomes empty
28363 # (actually we leave an empty line to preserve line numbers).
28364 if test "x$srcdir" = x.; then
28365 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28384 fi # test -n "$CONFIG_FILES"
28386 # Set up the scripts for CONFIG_HEADERS section.
28387 # No need to generate them if there are no CONFIG_HEADERS.
28388 # This happens for instance with `./config.status Makefile'.
28389 if test -n "$CONFIG_HEADERS"; then
28390 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28394 # Transform confdefs.h into an awk script `defines.awk', embedded as
28395 # here-document in config.status, that substitutes the proper values into
28396 # config.h.in to produce config.h.
28398 # Create a delimiter string that does not exist in confdefs.h, to ease
28399 # handling of long lines.
28401 for ac_last_try in false false :; do
28402 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28403 if test -z "$ac_tt"; then
28405 elif $ac_last_try; then
28406 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28412 # For the awk script, D is an array of macro values keyed by name,
28413 # likewise P contains macro parameters if any. Preserve backslash
28414 # newline sequences.
28416 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28418 s/.\{148\}/&'"$ac_delim"'/g
28421 s/^[ ]*#[ ]*define[ ][ ]*/ /
28428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28435 D["\1"]=" \3\\\\\\n"\\/p
28437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28442 s/.\{148\}/&'"$ac_delim"'/g
28447 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28450 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28452 ' <confdefs.h | sed '
28453 s/'"$ac_delim"'/"\\\
28454 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28457 for (key in D) D_is_set[key] = 1
28460 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28462 split(line, arg, " ")
28463 if (arg[1] == "#") {
28467 defundef = substr(arg[1], 2)
28470 split(mac1, mac2, "(") #)
28472 prefix = substr(line, 1, index(line, defundef) - 1)
28473 if (D_is_set[macro]) {
28474 # Preserve the white space surrounding the "#".
28475 print prefix "define", macro P[macro] D[macro]
28478 # Replace #undef with comments. This is necessary, for example,
28479 # in the case of _POSIX_SOURCE, which is predefined and required
28480 # on some systems where configure will not decide to define it.
28481 if (defundef == "undef") {
28482 print "/*", prefix defundef, macro, "*/"
28490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28491 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28492 fi # test -n "$CONFIG_HEADERS"
28495 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28500 :[FHLC]) ac_mode=$ac_tag; continue;;
28502 case $ac_mode$ac_tag in
28504 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28505 :[FH]-) ac_tag=-:-;;
28506 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28523 -) ac_f="$ac_tmp/stdin";;
28524 *) # Look for the file first in the build tree, then in the source tree
28525 # (if the path is not absolute). The absolute path cannot be DOS-style,
28526 # because $ac_f cannot contain `:'.
28530 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28532 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28534 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28535 as_fn_append ac_file_inputs " '$ac_f'"
28538 # Let's still pretend it is `configure' which instantiates (i.e., don't
28539 # use $as_me), people would be surprised to read:
28540 # /* config.h. Generated by config.status. */
28541 configure_input='Generated from '`
28542 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28544 if test x"$ac_file" != x-; then
28545 configure_input="$ac_file. $configure_input"
28546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28547 printf "%s\n" "$as_me: creating $ac_file" >&6;}
28549 # Neutralize special characters interpreted by sed in replacement strings.
28550 case $configure_input in #(
28551 *\&* | *\|* | *\\* )
28552 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
28553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28554 *) ac_sed_conf_input=$configure_input;;
28558 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28564 ac_dir=`$as_dirname -- "$ac_file" ||
28565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28566 X"$ac_file" : 'X\(//\)[^/]' \| \
28567 X"$ac_file" : 'X\(//\)$' \| \
28568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28569 printf "%s\n" X"$ac_file" |
28570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28574 /^X\(\/\/\)[^/].*/{
28587 as_dir="$ac_dir"; as_fn_mkdir_p
28591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28593 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
28594 # A ".." for each directory in $ac_dir_suffix.
28595 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28596 case $ac_top_builddir_sub in
28597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28601 ac_abs_top_builddir=$ac_pwd
28602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28603 # for backward compatibility:
28604 ac_top_builddir=$ac_top_build_prefix
28607 .) # We are building in place.
28609 ac_top_srcdir=$ac_top_builddir_sub
28610 ac_abs_top_srcdir=$ac_pwd ;;
28611 [\\/]* | ?:[\\/]* ) # Absolute name.
28612 ac_srcdir=$srcdir$ac_dir_suffix;
28613 ac_top_srcdir=$srcdir
28614 ac_abs_top_srcdir=$srcdir ;;
28615 *) # Relative name.
28616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28617 ac_top_srcdir=$ac_top_build_prefix$srcdir
28618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28633 ac_MKDIR_P=$MKDIR_P
28635 [\\/$]* | ?:[\\/]* ) ;;
28636 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28641 # If the template does not know about datarootdir, expand it.
28642 # FIXME: This hack should be removed a few years after 2.60.
28643 ac_datarootdir_hack=; ac_datarootdir_seen=
28654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28655 *datarootdir*) ac_datarootdir_seen=yes;;
28656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28658 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28661 ac_datarootdir_hack='
28662 s&@datadir@&$datadir&g
28663 s&@docdir@&$docdir&g
28664 s&@infodir@&$infodir&g
28665 s&@localedir@&$localedir&g
28666 s&@mandir@&$mandir&g
28667 s&\\\${datarootdir}&$datarootdir&g' ;;
28671 # Neutralize VPATH when `$srcdir' = `.'.
28672 # Shell code in configure.ac might set extrasub.
28673 # FIXME: do we really want to maintain this feature?
28674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28675 ac_sed_extra="$ac_vpsub
28678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28681 s|@configure_input@|$ac_sed_conf_input|;t t
28682 s&@top_builddir@&$ac_top_builddir_sub&;t t
28683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28684 s&@srcdir@&$ac_srcdir&;t t
28685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28686 s&@top_srcdir@&$ac_top_srcdir&;t t
28687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28688 s&@builddir@&$ac_builddir&;t t
28689 s&@abs_builddir@&$ac_abs_builddir&;t t
28690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28691 s&@INSTALL@&$ac_INSTALL&;t t
28692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28693 $ac_datarootdir_hack
28695 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28696 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28699 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28701 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28703 which seems to be undefined. Please make sure it is defined" >&5
28704 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28705 which seems to be undefined. Please make sure it is defined" >&2;}
28707 rm -f "$ac_tmp/stdin"
28709 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28710 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28718 if test x"$ac_file" != x-; then
28720 printf "%s\n" "/* $configure_input */" >&1 \
28721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28722 } >"$ac_tmp/config.h" \
28723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28724 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28726 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
28729 mv "$ac_tmp/config.h" "$ac_file" \
28730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28733 printf "%s\n" "/* $configure_input */" >&1 \
28734 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28735 || as_fn_error $? "could not create -" "$LINENO" 5
28737 # Compute "$ac_file"'s index in $config_headers.
28740 for _am_header in $config_headers :; do
28741 case $_am_header in
28742 $_am_arg | $_am_arg:* )
28745 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28748 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28749 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28750 X"$_am_arg" : 'X\(//\)[^/]' \| \
28751 X"$_am_arg" : 'X\(//\)$' \| \
28752 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28753 printf "%s\n" X"$_am_arg" |
28754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28758 /^X\(\/\/\)[^/].*/{
28770 s/.*/./; q'`/stamp-h$_am_stamp_count
28773 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28774 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
28779 case $ac_file$ac_mode in
28782 # See if we are running on zsh, and set the options that allow our
28783 # commands through without removal of \ escapes.
28784 if test -n "${ZSH_VERSION+set}"; then
28785 setopt NO_GLOB_SUBST
28789 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28792 cat <<_LT_EOF >> "$cfgfile"
28794 # Generated automatically by $as_me ($PACKAGE) $VERSION
28795 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28797 # Provide generalized library-building support services.
28798 # Written by Gordon Matzigkeit, 1996
28800 # Copyright (C) 2014 Free Software Foundation, Inc.
28801 # This is free software; see the source for copying conditions. There is NO
28802 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28804 # GNU Libtool is free software; you can redistribute it and/or modify
28805 # it under the terms of the GNU General Public License as published by
28806 # the Free Software Foundation; either version 2 of of the License, or
28807 # (at your option) any later version.
28809 # As a special exception to the GNU General Public License, if you
28810 # distribute this file as part of a program or library that is built
28811 # using GNU Libtool, you may include this file under the same
28812 # distribution terms that you use for the rest of that program.
28814 # GNU Libtool is distributed in the hope that it will be useful, but
28815 # WITHOUT ANY WARRANTY; without even the implied warranty of
28816 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28817 # GNU General Public License for more details.
28819 # You should have received a copy of the GNU General Public License
28820 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28823 # The names of the tagged configurations supported by this script.
28824 available_tags='CXX '
28826 # Configured defaults for sys_lib_dlsearch_path munging.
28827 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28829 # ### BEGIN LIBTOOL CONFIG
28831 # Which release of libtool.m4 was used?
28832 macro_version=$macro_version
28833 macro_revision=$macro_revision
28835 # Whether or not to build shared libraries.
28836 build_libtool_libs=$enable_shared
28838 # Whether or not to build static libraries.
28839 build_old_libs=$enable_static
28841 # What type of objects to build.
28844 # Whether or not to optimize for fast installation.
28845 fast_install=$enable_fast_install
28847 # Shared archive member basename,for filename based shared library versioning on AIX.
28848 shared_archive_member_spec=$shared_archive_member_spec
28850 # Shell to use when invoking shell scripts.
28853 # An echo program that protects backslashes.
28856 # The PATH separator for the build system.
28857 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28860 host_alias=$host_alias
28864 # The build system.
28865 build_alias=$build_alias
28869 # A sed program that does not truncate output.
28872 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28873 Xsed="\$SED -e 1s/^X//"
28875 # A grep program that handles long lines.
28881 # A literal string matcher.
28884 # A BSD- or MS-compatible name lister.
28887 # Whether we need soft or hard links.
28890 # What is the maximum length of a command?
28891 max_cmd_len=$max_cmd_len
28893 # Object file suffix (normally "o").
28896 # Executable file suffix (normally "").
28899 # whether the shell understands "unset".
28902 # turn spaces into newlines.
28905 # turn newlines into spaces.
28908 # convert \$build file names to \$host format.
28909 to_host_file_cmd=$lt_cv_to_host_file_cmd
28911 # convert \$build files to toolchain format.
28912 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28914 # An object symbol dumper.
28915 OBJDUMP=$lt_OBJDUMP
28917 # Method to check whether dependent libraries are shared objects.
28918 deplibs_check_method=$lt_deplibs_check_method
28920 # Command to use when deplibs_check_method = "file_magic".
28921 file_magic_cmd=$lt_file_magic_cmd
28923 # How to find potential files when deplibs_check_method = "file_magic".
28924 file_magic_glob=$lt_file_magic_glob
28926 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28927 want_nocaseglob=$lt_want_nocaseglob
28929 # DLL creation program.
28930 DLLTOOL=$lt_DLLTOOL
28932 # Command to associate shared and link libraries.
28933 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28938 # Flags to create an archive.
28939 AR_FLAGS=$lt_AR_FLAGS
28941 # How to feed a file listing to the archiver.
28942 archiver_list_spec=$lt_archiver_list_spec
28944 # A symbol stripping program.
28947 # Commands used to install an old-style archive.
28949 old_postinstall_cmds=$lt_old_postinstall_cmds
28950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28952 # Whether to use a lock for old archive extraction.
28953 lock_old_archive_extraction=$lock_old_archive_extraction
28958 # LTCC compiler flags.
28959 LTCFLAGS=$lt_CFLAGS
28961 # Take the output of nm and produce a listing of raw symbols and C names.
28962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28964 # Transform the output of nm in a proper C declaration.
28965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28967 # Transform the output of nm into a list of symbols to manually relocate.
28968 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28970 # Transform the output of nm in a C name address pair.
28971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28973 # Transform the output of nm in a C name address pair when lib prefix is needed.
28974 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28976 # The name lister interface.
28977 nm_interface=$lt_lt_cv_nm_interface
28979 # Specify filename containing input files for \$NM.
28980 nm_file_list_spec=$lt_nm_file_list_spec
28982 # The root where to search for dependent libraries,and where our libraries should be installed.
28983 lt_sysroot=$lt_sysroot
28985 # Command to truncate a binary pipe.
28986 lt_truncate_bin=$lt_lt_cv_truncate_bin
28988 # The name of the directory that contains temporary libtool files.
28991 # Used to examine libraries when file_magic_cmd begins with "file".
28992 MAGIC_CMD=$MAGIC_CMD
28994 # Must we lock files when doing compilation?
28995 need_locks=$lt_need_locks
28998 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29000 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29001 DSYMUTIL=$lt_DSYMUTIL
29003 # Tool to change global to local symbols on Mac OS X.
29006 # Tool to manipulate fat objects and archives on Mac OS X.
29009 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29012 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29013 OTOOL64=$lt_OTOOL64
29015 # Old archive suffix (normally "a").
29018 # Shared library suffix (normally ".so").
29019 shrext_cmds=$lt_shrext_cmds
29021 # The commands to extract the exported symbol list from a shared archive.
29022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29024 # Variables whose values should be saved in libtool wrapper scripts and
29025 # restored at link time.
29026 variables_saved_for_relink=$lt_variables_saved_for_relink
29028 # Do we need the "lib" prefix for modules?
29029 need_lib_prefix=$need_lib_prefix
29031 # Do we need a version for libraries?
29032 need_version=$need_version
29034 # Library versioning type.
29035 version_type=$version_type
29037 # Shared library runtime path variable.
29038 runpath_var=$runpath_var
29040 # Shared library path variable.
29041 shlibpath_var=$shlibpath_var
29043 # Is shlibpath searched before the hard-coded library search path?
29044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29046 # Format of library name prefix.
29047 libname_spec=$lt_libname_spec
29049 # List of archive names. First name is the real one, the rest are links.
29050 # The last name is the one that the linker finds with -lNAME
29051 library_names_spec=$lt_library_names_spec
29053 # The coded name of the library, if different from the real name.
29054 soname_spec=$lt_soname_spec
29056 # Permission mode override for installation of shared libraries.
29057 install_override_mode=$lt_install_override_mode
29059 # Command to use after installation of a shared archive.
29060 postinstall_cmds=$lt_postinstall_cmds
29062 # Command to use after uninstallation of a shared archive.
29063 postuninstall_cmds=$lt_postuninstall_cmds
29065 # Commands used to finish a libtool library installation in a directory.
29066 finish_cmds=$lt_finish_cmds
29068 # As "finish_cmds", except a single script fragment to be evaled but
29070 finish_eval=$lt_finish_eval
29072 # Whether we should hardcode library paths into libraries.
29073 hardcode_into_libs=$hardcode_into_libs
29075 # Compile-time system search path for libraries.
29076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29078 # Detected run-time system search path for libraries.
29079 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29081 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29082 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29084 # Whether dlopen is supported.
29085 dlopen_support=$enable_dlopen
29087 # Whether dlopen of programs is supported.
29088 dlopen_self=$enable_dlopen_self
29090 # Whether dlopen of statically linked programs is supported.
29091 dlopen_self_static=$enable_dlopen_self_static
29093 # Commands to strip libraries.
29094 old_striplib=$lt_old_striplib
29095 striplib=$lt_striplib
29098 # The linker used to build libraries.
29101 # How to create reloadable object files.
29102 reload_flag=$lt_reload_flag
29103 reload_cmds=$lt_reload_cmds
29105 # Commands used to build an old-style archive.
29106 old_archive_cmds=$lt_old_archive_cmds
29108 # A language specific compiler.
29111 # Is the compiler the GNU compiler?
29114 # Compiler flag to turn off builtin functions.
29115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29117 # Additional compiler flags for building library objects.
29118 pic_flag=$lt_lt_prog_compiler_pic
29120 # How to pass a linker flag through the compiler.
29121 wl=$lt_lt_prog_compiler_wl
29123 # Compiler flag to prevent dynamic linking.
29124 link_static_flag=$lt_lt_prog_compiler_static
29126 # Does compiler simultaneously support -c and -o options?
29127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29129 # Whether or not to add -lc for building shared libraries.
29130 build_libtool_need_lc=$archive_cmds_need_lc
29132 # Whether or not to disallow shared libs when runtime libs are static.
29133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29135 # Compiler flag to allow reflexive dlopens.
29136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29138 # Compiler flag to generate shared objects directly from archives.
29139 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29141 # Whether the compiler copes with passing no objects directly.
29142 compiler_needs_object=$lt_compiler_needs_object
29144 # Create an old-style archive from a shared archive.
29145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29147 # Create a temporary old-style archive to link instead of a shared archive.
29148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29150 # Commands used to build a shared archive.
29151 archive_cmds=$lt_archive_cmds
29152 archive_expsym_cmds=$lt_archive_expsym_cmds
29154 # Commands used to build a loadable module if different from building
29155 # a shared archive.
29156 module_cmds=$lt_module_cmds
29157 module_expsym_cmds=$lt_module_expsym_cmds
29159 # Whether we are building with GNU ld or not.
29160 with_gnu_ld=$lt_with_gnu_ld
29162 # Flag that allows shared libraries with undefined symbols to be built.
29163 allow_undefined_flag=$lt_allow_undefined_flag
29165 # Flag that enforces no undefined symbols.
29166 no_undefined_flag=$lt_no_undefined_flag
29168 # Flag to hardcode \$libdir into a binary during linking.
29169 # This must work even if \$libdir does not exist
29170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29172 # Whether we need a single "-rpath" flag with a separated argument.
29173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29175 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29176 # DIR into the resulting binary.
29177 hardcode_direct=$hardcode_direct
29179 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29180 # DIR into the resulting binary and the resulting library dependency is
29181 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29182 # library is relocated.
29183 hardcode_direct_absolute=$hardcode_direct_absolute
29185 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29186 # into the resulting binary.
29187 hardcode_minus_L=$hardcode_minus_L
29189 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29190 # into the resulting binary.
29191 hardcode_shlibpath_var=$hardcode_shlibpath_var
29193 # Set to "yes" if building a shared library automatically hardcodes DIR
29194 # into the library and all subsequent libraries and executables linked
29196 hardcode_automatic=$hardcode_automatic
29198 # Set to yes if linker adds runtime paths of dependent libraries
29199 # to runtime path list.
29200 inherit_rpath=$inherit_rpath
29202 # Whether libtool must link a program against all its dependency libraries.
29203 link_all_deplibs=$link_all_deplibs
29205 # Set to "yes" if exported symbols are required.
29206 always_export_symbols=$always_export_symbols
29208 # The commands to list exported symbols.
29209 export_symbols_cmds=$lt_export_symbols_cmds
29211 # Symbols that should not be listed in the preloaded symbols.
29212 exclude_expsyms=$lt_exclude_expsyms
29214 # Symbols that must always be exported.
29215 include_expsyms=$lt_include_expsyms
29217 # Commands necessary for linking programs (against libraries) with templates.
29218 prelink_cmds=$lt_prelink_cmds
29220 # Commands necessary for finishing linking programs.
29221 postlink_cmds=$lt_postlink_cmds
29223 # Specify filename containing input files.
29224 file_list_spec=$lt_file_list_spec
29226 # How to hardcode a shared library path into an executable.
29227 hardcode_action=$hardcode_action
29229 # The directories searched by this compiler when creating a shared library.
29230 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29232 # Dependencies to place before and after the objects being linked to
29233 # create a shared library.
29234 predep_objects=$lt_predep_objects
29235 postdep_objects=$lt_postdep_objects
29236 predeps=$lt_predeps
29237 postdeps=$lt_postdeps
29239 # The library search path used internally by the compiler when linking
29240 # a shared library.
29241 compiler_lib_search_path=$lt_compiler_lib_search_path
29243 # ### END LIBTOOL CONFIG
29247 cat <<'_LT_EOF' >> "$cfgfile"
29249 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29251 # func_munge_path_list VARIABLE PATH
29252 # -----------------------------------
29253 # VARIABLE is name of variable containing _space_ separated list of
29254 # directories to be munged by the contents of PATH, which is string
29257 # string "DIR[ DIR]" will be prepended to VARIABLE
29259 # string "DIR[ DIR]" will be appended to VARIABLE
29260 # "DIRP[:DIRP]::[DIRA:]DIRA"
29261 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29262 # "DIRA[ DIRA]" will be appended to VARIABLE
29264 # VARIABLE will be replaced by "DIR[ DIR]"
29265 func_munge_path_list ()
29271 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29274 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29277 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29278 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29281 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29287 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
29288 func_cc_basename ()
29290 for cc_temp in $*""; do
29292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29298 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29302 # ### END FUNCTIONS SHARED WITH CONFIGURE
29308 cat <<\_LT_EOF >> "$cfgfile"
29309 # AIX sometimes has problems with the GCC collect2 program. For some
29310 # reason, if we set the COLLECT_NAMES environment variable, the problems
29311 # vanish in a puff of smoke.
29312 if test set != "${COLLECT_NAMES+set}"; then
29314 export COLLECT_NAMES
29322 ltmain=$ac_aux_dir/ltmain.sh
29325 # We use sed instead of cat because bash on DJGPP gets confused if
29326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29327 # text mode, it properly converts lines to CR/LF. This bash problem
29328 # is reportedly fixed, but why not run on old versions too?
29329 sed '$q' "$ltmain" >> "$cfgfile" \
29330 || (rm -f "$cfgfile"; exit 1)
29332 mv -f "$cfgfile" "$ofile" ||
29333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29337 cat <<_LT_EOF >> "$ofile"
29339 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29341 # The linker used to build libraries.
29344 # How to create reloadable object files.
29345 reload_flag=$lt_reload_flag_CXX
29346 reload_cmds=$lt_reload_cmds_CXX
29348 # Commands used to build an old-style archive.
29349 old_archive_cmds=$lt_old_archive_cmds_CXX
29351 # A language specific compiler.
29352 CC=$lt_compiler_CXX
29354 # Is the compiler the GNU compiler?
29357 # Compiler flag to turn off builtin functions.
29358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29360 # Additional compiler flags for building library objects.
29361 pic_flag=$lt_lt_prog_compiler_pic_CXX
29363 # How to pass a linker flag through the compiler.
29364 wl=$lt_lt_prog_compiler_wl_CXX
29366 # Compiler flag to prevent dynamic linking.
29367 link_static_flag=$lt_lt_prog_compiler_static_CXX
29369 # Does compiler simultaneously support -c and -o options?
29370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29372 # Whether or not to add -lc for building shared libraries.
29373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29375 # Whether or not to disallow shared libs when runtime libs are static.
29376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29378 # Compiler flag to allow reflexive dlopens.
29379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29381 # Compiler flag to generate shared objects directly from archives.
29382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29384 # Whether the compiler copes with passing no objects directly.
29385 compiler_needs_object=$lt_compiler_needs_object_CXX
29387 # Create an old-style archive from a shared archive.
29388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29390 # Create a temporary old-style archive to link instead of a shared archive.
29391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29393 # Commands used to build a shared archive.
29394 archive_cmds=$lt_archive_cmds_CXX
29395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29397 # Commands used to build a loadable module if different from building
29398 # a shared archive.
29399 module_cmds=$lt_module_cmds_CXX
29400 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29402 # Whether we are building with GNU ld or not.
29403 with_gnu_ld=$lt_with_gnu_ld_CXX
29405 # Flag that allows shared libraries with undefined symbols to be built.
29406 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29408 # Flag that enforces no undefined symbols.
29409 no_undefined_flag=$lt_no_undefined_flag_CXX
29411 # Flag to hardcode \$libdir into a binary during linking.
29412 # This must work even if \$libdir does not exist
29413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29415 # Whether we need a single "-rpath" flag with a separated argument.
29416 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29418 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29419 # DIR into the resulting binary.
29420 hardcode_direct=$hardcode_direct_CXX
29422 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29423 # DIR into the resulting binary and the resulting library dependency is
29424 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29425 # library is relocated.
29426 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29429 # into the resulting binary.
29430 hardcode_minus_L=$hardcode_minus_L_CXX
29432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29433 # into the resulting binary.
29434 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29436 # Set to "yes" if building a shared library automatically hardcodes DIR
29437 # into the library and all subsequent libraries and executables linked
29439 hardcode_automatic=$hardcode_automatic_CXX
29441 # Set to yes if linker adds runtime paths of dependent libraries
29442 # to runtime path list.
29443 inherit_rpath=$inherit_rpath_CXX
29445 # Whether libtool must link a program against all its dependency libraries.
29446 link_all_deplibs=$link_all_deplibs_CXX
29448 # Set to "yes" if exported symbols are required.
29449 always_export_symbols=$always_export_symbols_CXX
29451 # The commands to list exported symbols.
29452 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29454 # Symbols that should not be listed in the preloaded symbols.
29455 exclude_expsyms=$lt_exclude_expsyms_CXX
29457 # Symbols that must always be exported.
29458 include_expsyms=$lt_include_expsyms_CXX
29460 # Commands necessary for linking programs (against libraries) with templates.
29461 prelink_cmds=$lt_prelink_cmds_CXX
29463 # Commands necessary for finishing linking programs.
29464 postlink_cmds=$lt_postlink_cmds_CXX
29466 # Specify filename containing input files.
29467 file_list_spec=$lt_file_list_spec_CXX
29469 # How to hardcode a shared library path into an executable.
29470 hardcode_action=$hardcode_action_CXX
29472 # The directories searched by this compiler when creating a shared library.
29473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29475 # Dependencies to place before and after the objects being linked to
29476 # create a shared library.
29477 predep_objects=$lt_predep_objects_CXX
29478 postdep_objects=$lt_postdep_objects_CXX
29479 predeps=$lt_predeps_CXX
29480 postdeps=$lt_postdeps_CXX
29482 # The library search path used internally by the compiler when linking
29483 # a shared library.
29484 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29486 # ### END LIBTOOL TAG CONFIG: CXX
29490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29491 # Older Autoconf quotes --file arguments for eval, but not when files
29492 # are listed without --file. Let's play safe and only enable the eval
29493 # if we detect the quoting.
29494 # TODO: see whether this extra hack can be removed once we start
29495 # requiring Autoconf 2.70 or later.
29496 case $CONFIG_FILES in #(
29498 eval set x "$CONFIG_FILES" ;; #(
29500 set x $CONFIG_FILES ;; #(
29505 # Used to flag and report bootstrapping failures.
29509 # Strip MF so we end up with the name of the file.
29510 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
29511 # Check whether this is an Automake generated Makefile which includes
29512 # dependency-tracking related rules and includes.
29513 # Grep'ing the whole file directly is not great: AIX grep has a line
29514 # limit of 2048, but all sed's we know have understand at least 4000.
29515 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29517 am_dirpart=`$as_dirname -- "$am_mf" ||
29518 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29519 X"$am_mf" : 'X\(//\)[^/]' \| \
29520 X"$am_mf" : 'X\(//\)$' \| \
29521 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29522 printf "%s\n" X"$am_mf" |
29523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29527 /^X\(\/\/\)[^/].*/{
29540 am_filepart=`$as_basename -- "$am_mf" ||
29541 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29542 X"$am_mf" : 'X\(//\)$' \| \
29543 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29544 printf "%s\n" X/"$am_mf" |
29545 sed '/^.*\/\([^/][^/]*\)\/*$/{
29558 { echo "$as_me:$LINENO: cd "$am_dirpart" \
29559 && sed -e '/# am--include-marker/d' "$am_filepart" \
29560 | $MAKE -f - am--depfiles" >&5
29561 (cd "$am_dirpart" \
29562 && sed -e '/# am--include-marker/d' "$am_filepart" \
29563 | $MAKE -f - am--depfiles) >&5 2>&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } || am_rc=$?
29568 if test $am_rc -ne 0; then
29569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29570 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29571 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29572 for automatic dependency tracking. If GNU make was not used, consider
29573 re-running the configure script with MAKE=\"gmake\" (or whatever is
29574 necessary). You can also try re-running configure with the
29575 '--disable-dependency-tracking' option to at least be able to build
29576 the package (albeit without support for automatic dependency tracking).
29577 See \`config.log' for more details" "$LINENO" 5; }
29579 { am_dirpart=; unset am_dirpart;}
29580 { am_filepart=; unset am_filepart;}
29581 { am_mf=; unset am_mf;}
29582 { am_rc=; unset am_rc;}
29583 rm -f conftest-deps.mk
29593 ac_clean_files=$ac_clean_files_save
29595 test $ac_write_fail = 0 ||
29596 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29599 # configure is writing to config.log, and then calls config.status.
29600 # config.status does its own redirection, appending to config.log.
29601 # Unfortunately, on DOS this fails, as config.log is still kept open
29602 # by configure, so config.status won't be able to write to it; its
29603 # output is simply discarded. So we exec the FD to /dev/null,
29604 # effectively closing config.log, so it can be properly (re)opened and
29605 # appended to by config.status. When coming back to configure, we
29606 # need to make the FD available again.
29607 if test "$no_create" != yes; then
29609 ac_config_status_args=
29610 test "$silent" = yes &&
29611 ac_config_status_args="$ac_config_status_args --quiet"
29613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29616 # would make configure fail if this is the last instruction.
29617 $ac_cs_success || as_fn_exit 1
29619 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29621 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:
29627 Package version: ${VERSION}
29628 Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
29629 Install prefix: ${prefix}
29637 LDFLAGS: ${LDFLAGS}
29638 C++ compiler: ${CXX}
29639 CXXFLAGS: ${CXXFLAGS}
29641 C preprocessor: ${CPP}
29642 CPPFLAGS: ${CPPFLAGS}
29643 WARNCFLAGS: ${WARNCFLAGS}
29644 WARNCXXFLAGS: ${WARNCXXFLAGS}
29645 CXX1XCXXFLAGS: ${CXX1XCXXFLAGS}
29646 EXTRACFLAG: ${EXTRACFLAG}
29647 BPFCFLAGS: ${BPFCFLAGS}
29648 EXTRABPFCFLAGS: ${EXTRABPFCFLAGS}
29651 EXTRA_DEFS: ${EXTRA_DEFS}
29653 Shared: ${enable_shared}
29654 Static: ${enable_static}
29656 LIBTOOL_LDFLAGS: ${LIBTOOL_LDFLAGS}
29659 PYTHON_VERSION: ${PYTHON_VERSION}
29660 pyexecdir: ${pyexecdir}
29661 PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
29662 PYTHON_LIBS: ${PYTHON_LIBS}
29665 CUnit: ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
29666 Failmalloc: ${enable_failmalloc}
29668 OpenSSL: ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
29669 Libxml2: ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
29670 Libev: ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
29671 Libc-ares: ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
29672 libngtcp2: ${have_libngtcp2} (CFLAGS='${LIBNGTCP2_CFLAGS}' LIBS='${LIBNGTCP2_LIBS}')
29673 libngtcp2_crypto_openssl: ${have_libngtcp2_crypto_openssl} (CFLAGS='${LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_OPENSSL_LIBS}')
29674 libngtcp2_crypto_boringssl: ${have_libngtcp2_crypto_boringssl} (CFLAGS='${LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_BORINGSSL_LIBS}')
29675 libnghttp3: ${have_libnghttp3} (CFLAGS='${LIBNGHTTP3_CFLAGS}' LIBS='${LIBNGHTTP3_LIBS}')
29676 libbpf: ${have_libbpf} (CFLAGS='${LIBBPF_CFLAGS}' LIBS='${LIBBPF_LIBS}')
29677 Libevent(SSL): ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
29678 Jansson: ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
29679 Jemalloc: ${have_jemalloc} (CFLAGS='${JEMALLOC_CFLAGS}' LIBS='${JEMALLOC_LIBS}')
29680 Zlib: ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
29681 Systemd: ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
29682 Boost CPPFLAGS: ${BOOST_CPPFLAGS}
29683 Boost LDFLAGS: ${BOOST_LDFLAGS}
29684 Boost::ASIO: ${BOOST_ASIO_LIB}
29685 Boost::System: ${BOOST_SYSTEM_LIB}
29686 Boost::Thread: ${BOOST_THREAD_LIB}
29688 http-parser: ${enable_third_party}
29689 MRuby: ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
29690 Neverbleed: ${have_neverbleed}
29692 Applications: ${enable_app}
29693 HPACK tools: ${enable_hpack_tools}
29694 Libnghttp2_asio:${enable_asio_lib}
29695 Examples: ${enable_examples}
29696 Python bindings:${enable_python_bindings}
29697 Threading: ${enable_threads}
29698 HTTP/3 (EXPERIMENTAL): ${enable_http3}
29700 printf "%s\n" "$as_me: summary of build options:
29702 Package version: ${VERSION}
29703 Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
29704 Install prefix: ${prefix}
29712 LDFLAGS: ${LDFLAGS}
29713 C++ compiler: ${CXX}
29714 CXXFLAGS: ${CXXFLAGS}
29716 C preprocessor: ${CPP}
29717 CPPFLAGS: ${CPPFLAGS}
29718 WARNCFLAGS: ${WARNCFLAGS}
29719 WARNCXXFLAGS: ${WARNCXXFLAGS}
29720 CXX1XCXXFLAGS: ${CXX1XCXXFLAGS}
29721 EXTRACFLAG: ${EXTRACFLAG}
29722 BPFCFLAGS: ${BPFCFLAGS}
29723 EXTRABPFCFLAGS: ${EXTRABPFCFLAGS}
29726 EXTRA_DEFS: ${EXTRA_DEFS}
29728 Shared: ${enable_shared}
29729 Static: ${enable_static}
29731 LIBTOOL_LDFLAGS: ${LIBTOOL_LDFLAGS}
29734 PYTHON_VERSION: ${PYTHON_VERSION}
29735 pyexecdir: ${pyexecdir}
29736 PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
29737 PYTHON_LIBS: ${PYTHON_LIBS}
29740 CUnit: ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
29741 Failmalloc: ${enable_failmalloc}
29743 OpenSSL: ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
29744 Libxml2: ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
29745 Libev: ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
29746 Libc-ares: ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
29747 libngtcp2: ${have_libngtcp2} (CFLAGS='${LIBNGTCP2_CFLAGS}' LIBS='${LIBNGTCP2_LIBS}')
29748 libngtcp2_crypto_openssl: ${have_libngtcp2_crypto_openssl} (CFLAGS='${LIBNGTCP2_CRYPTO_OPENSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_OPENSSL_LIBS}')
29749 libngtcp2_crypto_boringssl: ${have_libngtcp2_crypto_boringssl} (CFLAGS='${LIBNGTCP2_CRYPTO_BORINGSSL_CFLAGS}' LIBS='${LIBNGTCP2_CRYPTO_BORINGSSL_LIBS}')
29750 libnghttp3: ${have_libnghttp3} (CFLAGS='${LIBNGHTTP3_CFLAGS}' LIBS='${LIBNGHTTP3_LIBS}')
29751 libbpf: ${have_libbpf} (CFLAGS='${LIBBPF_CFLAGS}' LIBS='${LIBBPF_LIBS}')
29752 Libevent(SSL): ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
29753 Jansson: ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
29754 Jemalloc: ${have_jemalloc} (CFLAGS='${JEMALLOC_CFLAGS}' LIBS='${JEMALLOC_LIBS}')
29755 Zlib: ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
29756 Systemd: ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
29757 Boost CPPFLAGS: ${BOOST_CPPFLAGS}
29758 Boost LDFLAGS: ${BOOST_LDFLAGS}
29759 Boost::ASIO: ${BOOST_ASIO_LIB}
29760 Boost::System: ${BOOST_SYSTEM_LIB}
29761 Boost::Thread: ${BOOST_THREAD_LIB}
29763 http-parser: ${enable_third_party}
29764 MRuby: ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
29765 Neverbleed: ${have_neverbleed}
29767 Applications: ${enable_app}
29768 HPACK tools: ${enable_hpack_tools}
29769 Libnghttp2_asio:${enable_asio_lib}
29770 Examples: ${enable_examples}
29771 Python bindings:${enable_python_bindings}
29772 Threading: ${enable_threads}
29773 HTTP/3 (EXPERIMENTAL): ${enable_http3}