2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cyassl 3.1.0.
5 # Report bugs to <https://github.com/cyassl/cyassl/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/cyassl/cyassl/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='cyassl'
592 PACKAGE_TARNAME='cyassl'
593 PACKAGE_VERSION='3.1.0'
594 PACKAGE_STRING='cyassl 3.1.0'
595 PACKAGE_BUGREPORT='https://github.com/cyassl/cyassl/issues'
596 PACKAGE_URL='http://www.wolfssl.com'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
645 IS_VCS_CHECKOUT_FALSE
664 BUILD_CRL_MONITOR_FALSE
665 BUILD_CRL_MONITOR_TRUE
723 BUILD_SNIFFTEST_FALSE
737 am__fastdepCCAS_FALSE
790 CYASSL_LIBRARY_VERSION
803 INSTALL_STRIP_PROGRAM
853 program_transform_name
866 enable_option_checking
872 enable_dependency_tracking
877 enable_singlethreaded
941 enable_renegotiation_indication
942 enable_supportedcurves
959 ac_precious_vars='build_alias
976 # Initialize some variables set by options.
978 ac_init_version=false
979 ac_unrecognized_opts=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
990 program_transform_name=s,x,x,
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1283 -site=* | --site=* | --sit=*)
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1339 eval with_$ac_useropt=no ;;
1342 # Obsolete; use --with-x.
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error $? "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1392 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1410 # Be sure to have absolute directory names.
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 elif test "x$build_alias" != "x$host_alias"; then
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437 test "$silent" = yes && exec 6>/dev/null
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1480 ac_srcdir_defaulted=no
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures cyassl 3.1.0 to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/cyassl]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of cyassl 3.1.0:";;
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --enable-silent-rules less verbose build output (undo: "make V=1")
1593 --disable-silent-rules verbose build output (undo: "make V=0")
1594 --enable-static[=PKGS] build static libraries [default=no]
1595 --enable-shared[=PKGS] build shared libraries [default=yes]
1596 --enable-fast-install[=PKGS]
1597 optimize for fast installation [default=yes]
1598 --enable-dependency-tracking
1599 do not reject slow dependency extractors
1600 --disable-dependency-tracking
1601 speeds up one-time build
1602 --disable-libtool-lock avoid locking (might break parallel builds)
1603 --enable-debug Add debug code/turns off optimizations (yes|no)
1605 --enable-singlethreaded Enable CyaSSL single threaded (default: disabled)
1606 --enable-dtls Enable CyaSSL DTLS (default: disabled)
1607 --enable-opensslextra Enable extra OpenSSL API, size+ (default: disabled)
1608 --enable-ipv6 Enable testing of IPV6 (default: disabled)
1609 --enable-fortress Enable SSL fortress build (default: disabled)
1610 --enable-bump Enable SSL Bump build (default: disabled)
1611 --enable-leanpsk Enable Lean PSK build (default: disabled)
1612 --enable-bigcache Enable big session cache (default: disabled)
1613 --enable-hugecache Enable huge session cache (default: disabled)
1614 --enable-smallcache Enable small session cache (default: disabled)
1615 --enable-savesession Enable persistent session cache (default: disabled)
1616 --enable-savecert Enable persistent cert cache (default: disabled)
1617 --enable-atomicuser Enable Atomic User Record Layer (default: disabled)
1618 --enable-pkcallbacks Enable Public Key Callbacks (default: disabled)
1619 --enable-sniffer Enable CyaSSL sniffer support (default: disabled)
1620 --enable-aesgcm Enable CyaSSL AES-GCM support (default: disabled)
1621 --enable-aesccm Enable CyaSSL AES-CCM support (default: disabled)
1622 --enable-aesni Enable CyaSSL AES-NI support (default: disabled)
1623 --enable-camellia Enable CyaSSL Camellia support (default: disabled)
1624 --enable-md2 Enable CyaSSL MD2 support (default: disabled)
1625 --enable-nullcipher Enable CyaSSL NULL cipher support (default: disabled)
1626 --enable-ripemd Enable CyaSSL RIPEMD-160 support (default: disabled)
1627 --enable-blake2 Enable CyaSSL BLAKE2 support (default: disabled)
1628 --enable-sha512 Enable CyaSSL SHA-512 support (default: disabled)
1629 --enable-sessioncerts Enable session cert storing (default: disabled)
1630 --enable-keygen Enable key generation (default: disabled)
1631 --enable-certgen Enable cert generation (default: disabled)
1632 --enable-certreq Enable cert request generation (default: disabled)
1633 --enable-sep Enable sep extensions (default: disabled)
1634 --enable-hkdf Enable HKDF (HMAC-KDF) support (default: disabled)
1635 --enable-dsa Enable DSA (default: disabled)
1636 --enable-ecc Enable ECC (default: disabled)
1637 --enable-fpecc Enable Fixed Point cache ECC (default: disabled)
1638 --enable-eccencrypt Enable ECC encrypt (default: disabled)
1639 --enable-psk Enable PSK (default: disabled)
1640 --enable-errorstrings Enable error strings table (default: enabled)
1641 --enable-oldtls Enable old TLS versions < 1.2 (default: enabled)
1642 --enable-stacksize Enable stack size info on examples (default: disabled)
1643 --enable-memory Enable memory callbacks (default: enabled)
1644 --enable-rsa Enable RSA (default: enabled)
1645 --enable-dh Enable DH (default: disabled)
1646 --enable-asn Enable ASN (default: enabled)
1647 --enable-aes Enable AES (default: enabled)
1648 --enable-coding Enable Coding base 16/64 (default: enabled)
1649 --enable-des3 Enable DES3 (default: enabled)
1650 --enable-arc4 Enable ARC4 (default: enabled)
1651 --enable-md5 Enable MD5 (default: enabled)
1652 --enable-sha Enable SHA (default: enabled)
1653 --enable-md4 Enable MD4 (default: disabled)
1654 --enable-webserver Enable Web Server (default: disabled)
1655 --enable-pwdbased Enable PWDBASED (default: disabled)
1656 --enable-hc128 Enable HC-128 (default: disabled)
1657 --enable-rabbit Enable RABBIT (default: disabled)
1658 --enable-fips Enable FIPS 140-2 (default: disabled)
1659 --enable-hashdrbg Enable Hash DRBG support (default: disabled)
1660 --enable-filesystem Enable Filesystem support (default: enabled)
1661 --enable-inline Enable inline functions (default: enabled)
1662 --enable-ocsp Enable OCSP (default: disabled)
1663 --enable-crl Enable CRL (default: disabled)
1664 --enable-crl-monitor Enable CRL Monitor (default: disabled)
1665 --enable-sni Enable SNI (default: disabled)
1666 --enable-maxfragment Enable Maximum Fragment Length (default: disabled)
1667 --enable-truncatedhmac Enable Truncated HMAC (default: disabled)
1668 --enable-renegotiation-indication Enable Renegotiation Indication (default: disabled)
1669 --enable-supportedcurves Enable Supported Elliptic Curves (default: disabled)
1670 --enable-tlsx Enable all TLS Extensions (default: disabled)
1671 --enable-pkcs7 Enable PKCS7 (default: disabled)
1672 --enable-scep Enable wolfSCEP (default: disabled)
1673 --enable-smallstack Enable Small Stack Usage (default: disabled)
1674 --enable-valgrind Enable valgrind for unit tests (default: disabled)
1675 --enable-testcert Enable Test Cert (default: disabled)
1676 --enable-iopool Enable I/O Pool example (default: disabled)
1677 --enable-certservice Enable cert service (default: disabled)
1678 --enable-fastmath Enable fast math ops (default: enabled on x86_64)
1679 --enable-fasthugemath Enable fast math + huge code (default: disabled)
1680 --enable-examples Enable Examples (default: enabled)
1681 --enable-mcapi Enable Microchip API (default: disabled)
1682 --enable-jobserver[=no/yes/#] default=yes
1683 Enable up to # make jobs
1684 yes: enable one more than CPU count
1688 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1689 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1690 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1692 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1693 --with-sysroot=DIR Search for dependent libraries within DIR
1694 (or the compiler's sysroot if not specified).
1695 --with-ntru=PATH Path to NTRU install (default /usr/)
1696 --with-libz=PATH PATH to libz install (default /usr/)
1697 --with-cavium=PATH PATH to cavium/software dir
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1710 CXXCPP C++ preprocessor
1711 CCAS assembler compiler command (defaults to CC)
1712 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1714 Use these variables to override the choices made by `configure' or to help
1715 it to find libraries and programs with nonstandard names/locations.
1717 Report bugs to <https://github.com/cyassl/cyassl/issues>.
1718 cyassl home page: <http://www.wolfssl.com>.
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1748 .) # We are building in place.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1781 cyassl configure 3.1.0
1782 generated by GNU Autoconf 2.69
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 test -x conftest$ac_exeext
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_header_compile
1910 # ac_fn_c_try_cpp LINENO
1911 # ----------------------
1912 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { { ac_try="$ac_cpp conftest.$ac_ext"
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } > conftest.i && {
1932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>&5
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965 { { case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_try") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; }; }; then :
1977 $as_echo "$as_me: program exited with status $ac_status" >&5
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 ac_retval=$ac_status
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1989 # ac_fn_c_check_func LINENO FUNC VAR
1990 # ----------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_c_check_func ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2004 #define $2 innocuous_$2
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char $2 (); below.
2008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009 <limits.h> exists even on freestanding compilers. */
2012 # include <limits.h>
2014 # include <assert.h>
2019 /* Override any GCC internal prototype to avoid an error.
2020 Use char because int might match the return type of a GCC
2021 builtin and then its argument prototype would still apply. */
2026 /* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029 #if defined __stub_$2 || defined __stub___$2
2041 if ac_fn_c_try_link "$LINENO"; then :
2046 rm -f core conftest.err conftest.$ac_objext \
2047 conftest$ac_exeext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$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
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 $as_echo "$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 $as_echo "$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; then :
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_compile
2094 # ac_fn_cxx_try_cpp LINENO
2095 # ------------------------
2096 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2097 ac_fn_cxx_try_cpp ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 if test -s conftest.err; then
2110 grep -v '^ *+' conftest.err >conftest.er1
2111 cat conftest.er1 >&5
2112 mv -f conftest.er1 conftest.err
2114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115 test $ac_status = 0; } > conftest.i && {
2116 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2117 test ! -s conftest.err
2121 $as_echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 as_fn_set_status $ac_retval
2129 } # ac_fn_cxx_try_cpp
2131 # ac_fn_cxx_try_link LINENO
2132 # -------------------------
2133 # Try to link conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_link ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 rm -f conftest.$ac_objext conftest$ac_exeext
2138 if { { ac_try="$ac_link"
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_link") 2>conftest.err
2147 if test -s conftest.err; then
2148 grep -v '^ *+' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
2150 mv -f conftest.er1 conftest.err
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } && {
2154 test -z "$ac_cxx_werror_flag" ||
2155 test ! -s conftest.err
2156 } && test -s conftest$ac_exeext && {
2157 test "$cross_compiling" = yes ||
2158 test -x conftest$ac_exeext
2162 $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2168 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2169 # interfere with the next link command; also delete a directory that is
2170 # left behind by Apple's compiler. We do this before executing the actions.
2171 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status $ac_retval
2175 } # ac_fn_cxx_try_link
2177 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2178 # -------------------------------------------------------
2179 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2180 # the include files in INCLUDES and setting the cache variable VAR
2182 ac_fn_c_check_header_mongrel ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if eval \${$3+:} false; then :
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 # Is the header compilable?
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2197 $as_echo_n "checking $2 usability... " >&6; }
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_header_compiler=yes
2206 ac_header_compiler=no
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2210 $as_echo "$ac_header_compiler" >&6; }
2212 # Is the header present?
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2214 $as_echo_n "checking $2 presence... " >&6; }
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2219 if ac_fn_c_try_cpp "$LINENO"; then :
2220 ac_header_preproc=yes
2222 ac_header_preproc=no
2224 rm -f conftest.err conftest.i conftest.$ac_ext
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2226 $as_echo "$ac_header_preproc" >&6; }
2228 # So? What about this header?
2229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2232 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2238 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2240 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2242 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2244 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2247 ( $as_echo "## ------------------------------------------------------ ##
2248 ## Report this to https://github.com/cyassl/cyassl/issues ##
2249 ## ------------------------------------------------------ ##"
2250 ) | sed "s/^/$as_me: WARNING: /" >&2
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2258 eval "$3=\$ac_header_compiler"
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266 } # ac_fn_c_check_header_mongrel
2268 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2269 # --------------------------------------------
2270 # Tries to find the compile-time value of EXPR in a program that includes
2271 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2273 ac_fn_c_compute_int ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 if test "$cross_compiling" = yes; then
2277 # Depending upon the size, compute the lo and hi bounds.
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 static int test_array [1 - 2 * !(($2) >= 0)];
2286 return test_array [0];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 ac_hi=$ac_mid; break
2312 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2313 if test $ac_lo -le $ac_mid; then
2317 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2328 static int test_array [1 - 2 * !(($2) < 0)];
2330 return test_array [0];
2336 if ac_fn_c_try_compile "$LINENO"; then :
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2345 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2347 return test_array [0];
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 ac_lo=$ac_mid; break
2356 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2357 if test $ac_mid -le $ac_hi; then
2361 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 # Binary search between lo and hi bounds.
2372 while test "x$ac_lo" != "x$ac_hi"; do
2373 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2380 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2382 return test_array [0];
2388 if ac_fn_c_try_compile "$LINENO"; then :
2391 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2403 static long int longval () { return $2; }
2404 static unsigned long int ulongval () { return $2; }
2411 FILE *f = fopen ("conftest.val", "w");
2416 long int i = longval ();
2419 fprintf (f, "%ld", i);
2423 unsigned long int i = ulongval ();
2426 fprintf (f, "%lu", i);
2428 /* Do not output a trailing newline, as this causes \r\n confusion
2429 on some platforms. */
2430 return ferror (f) || fclose (f) != 0;
2436 if ac_fn_c_try_run "$LINENO"; then :
2437 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2442 conftest.$ac_objext conftest.beam conftest.$ac_ext
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 as_fn_set_status $ac_retval
2449 } # ac_fn_c_compute_int
2451 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2452 # -------------------------------------------
2453 # Tests whether TYPE exists after having included INCLUDES, setting cache
2454 # variable VAR accordingly.
2455 ac_fn_c_check_type ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if eval \${$3+:} false; then :
2461 $as_echo_n "(cached) " >&6
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2489 if ac_fn_c_try_compile "$LINENO"; then :
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503 } # ac_fn_c_check_type
2505 # ac_fn_c_find_uintX_t LINENO BITS VAR
2506 # ------------------------------------
2507 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2509 ac_fn_c_find_uintX_t ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2513 $as_echo_n "checking for uint$2_t... " >&6; }
2514 if eval \${$3+:} false; then :
2515 $as_echo_n "(cached) " >&6
2518 # Order is important - never check a type that is potentially smaller
2519 # than half of the expected target width.
2520 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2521 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2524 $ac_includes_default
2528 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2530 return test_array [0];
2536 if ac_fn_c_try_compile "$LINENO"; then :
2541 eval "$3=\$ac_type" ;;
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 if eval test \"x\$"$3"\" = x"no"; then :
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_c_find_uintX_t
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2562 It was created by cyassl $as_me 3.1.0, which was
2563 generated by GNU Autoconf 2.69. Invocation command line was
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 $as_echo "PATH: $as_dir"
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2623 ac_must_keep_next=false
2629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631 | -silent | --silent | --silen | --sile | --sil)
2634 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2639 as_fn_append ac_configure_args1 " '$ac_arg'"
2640 if test $ac_must_keep_next = true; then
2641 ac_must_keep_next=false # Got value, back to normal.
2644 *=* | --config-cache | -C | -disable-* | --disable-* \
2645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647 | -with-* | --with-* | -without-* | --without-* | --x)
2648 case "$ac_configure_args0 " in
2649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2652 -* ) ac_must_keep_next=true ;;
2655 as_fn_append ac_configure_args " '$ac_arg'"
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log. We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669 # Save into config.log some information that might help in debugging.
2673 $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2677 # The following way of writing the cache mishandles newlines in values,
2679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680 eval ac_val=\$$ac_var
2684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2688 _ | IFS | as_nl) ;; #(
2689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690 *) { eval $ac_var=; unset $ac_var;} ;;
2695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696 *${as_nl}ac_space=\ *)
2698 "s/'\''/'\''\\\\'\'''\''/g;
2699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2709 $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2713 for ac_var in $ac_subst_vars
2715 eval ac_val=\$$ac_var
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2719 $as_echo "$ac_var='\''$ac_val'\''"
2723 if test -n "$ac_subst_files"; then
2724 $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2728 for ac_var in $ac_subst_files
2730 eval ac_val=\$$ac_var
2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2734 $as_echo "$ac_var='\''$ac_val'\''"
2739 if test -s confdefs.h; then
2740 $as_echo "## ----------- ##
2747 test "$ac_signal" != 0 &&
2748 $as_echo "$as_me: caught signal $ac_signal"
2749 $as_echo "$as_me: exit $exit_status"
2751 rm -f core *.core core.conftest.* &&
2752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2755 for ac_signal in 1 2 13 15; do
2756 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2763 $as_echo "/* confdefs.h */" > confdefs.h
2765 # Predefined preprocessor variables.
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2796 if test -n "$CONFIG_SITE"; then
2797 # We do not want a PATH search for config.site.
2798 case $CONFIG_SITE in #((
2799 -*) ac_site_file1=./$CONFIG_SITE;;
2800 */*) ac_site_file1=$CONFIG_SITE;;
2801 *) ac_site_file1=./$CONFIG_SITE;;
2803 elif test "x$prefix" != xNONE; then
2804 ac_site_file1=$prefix/share/config.site
2805 ac_site_file2=$prefix/etc/config.site
2807 ac_site_file1=$ac_default_prefix/share/config.site
2808 ac_site_file2=$ac_default_prefix/etc/config.site
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812 test "x$ac_site_file" = xNONE && continue
2813 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816 sed 's/^/| /' "$ac_site_file" >&5
2818 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2825 if test -r "$cache_file"; then
2826 # Some versions of bash will fail to source /dev/null (special files
2827 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2828 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833 *) . "./$cache_file";;
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2842 # Check that the precious variables saved in the cache have kept the same
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847 eval ac_new_set=\$ac_env_${ac_var}_set
2848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849 eval ac_new_val=\$ac_env_${ac_var}_value
2850 case $ac_old_set,$ac_new_set in
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854 ac_cache_corrupted=: ;;
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858 ac_cache_corrupted=: ;;
2861 if test "x$ac_old_val" != "x$ac_new_val"; then
2862 # differences in whitespace do not lead to failure.
2863 ac_old_val_w=`echo x $ac_old_val`
2864 ac_new_val_w=`echo x $ac_new_val`
2865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868 ac_cache_corrupted=:
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872 eval $ac_var=\$ac_old_val
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2875 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2880 # Pass precious variables to config.status.
2881 if test "$ac_new_set" = set; then
2883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 *) ac_arg=$ac_var=$ac_new_val ;;
2886 case " $ac_configure_args " in
2887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2888 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2892 if $ac_cache_corrupted; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 for ac_dir in build-aux "$srcdir"/build-aux; do
2913 if test -f "$ac_dir/install-sh"; then
2915 ac_install_sh="$ac_aux_dir/install-sh -c"
2917 elif test -f "$ac_dir/install.sh"; then
2919 ac_install_sh="$ac_aux_dir/install.sh -c"
2921 elif test -f "$ac_dir/shtool"; then
2923 ac_install_sh="$ac_aux_dir/shtool install -c"
2927 if test -z "$ac_aux_dir"; then
2928 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2931 # These three variables are undocumented and unsupported,
2932 # and are intended to be withdrawn in a future Autoconf release.
2933 # They can cause serious problems if a builder's source tree is in a directory
2934 # whose full name contains unusual characters.
2935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2941 # Make sure we can run config.sub.
2942 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2943 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2946 $as_echo_n "checking build system type... " >&6; }
2947 if ${ac_cv_build+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 ac_build_alias=$build_alias
2951 test "x$ac_build_alias" = x &&
2952 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2953 test "x$ac_build_alias" = x &&
2954 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2956 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2960 $as_echo "$ac_cv_build" >&6; }
2961 case $ac_cv_build in
2963 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2966 ac_save_IFS=$IFS; IFS='-'
2972 # Remember, the first character of IFS is used to create $*,
2973 # except with old shells:
2976 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2980 $as_echo_n "checking host system type... " >&6; }
2981 if ${ac_cv_host+:} false; then :
2982 $as_echo_n "(cached) " >&6
2984 if test "x$host_alias" = x; then
2985 ac_cv_host=$ac_cv_build
2987 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2988 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2993 $as_echo "$ac_cv_host" >&6; }
2996 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2999 ac_save_IFS=$IFS; IFS='-'
3005 # Remember, the first character of IFS is used to create $*,
3006 # except with old shells:
3009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3014 am__api_version='1.14'
3016 # Find a good install program. We prefer a C program (faster),
3017 # so one script is as good as another. But avoid the broken or
3018 # incompatible versions:
3019 # SysV /etc/install, /usr/sbin/install
3020 # SunOS /usr/etc/install
3021 # IRIX /sbin/install
3023 # AmigaOS /C/install, which installs bootblocks on floppy discs
3024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027 # OS/2's system install, which has a completely different semantic
3028 # ./install, which can be erroneously created by make from ./install.sh.
3029 # Reject install programs that cannot install multiple files.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3031 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3032 if test -z "$INSTALL"; then
3033 if ${ac_cv_path_install+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 # Account for people who put trailing slashes in PATH elements.
3042 case $as_dir/ in #((
3043 ./ | .// | /[cC]/* | \
3044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3045 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3048 # OSF1 and SCO ODT 3.0 have their own names for install.
3049 # Don't use installbsd from OSF since it installs stuff as root
3051 for ac_prog in ginstall scoinst install; do
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3054 if test $ac_prog = install &&
3055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # AIX install. It has an incompatible calling convention.
3058 elif test $ac_prog = install &&
3059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060 # program-specific install script used by HP pwplus--don't use.
3063 rm -rf conftest.one conftest.two conftest.dir
3064 echo one > conftest.one
3065 echo two > conftest.two
3067 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3068 test -s conftest.one && test -s conftest.two &&
3069 test -s conftest.dir/conftest.one &&
3070 test -s conftest.dir/conftest.two
3072 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3085 rm -rf conftest.one conftest.two conftest.dir
3088 if test "${ac_cv_path_install+set}" = set; then
3089 INSTALL=$ac_cv_path_install
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for INSTALL within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the value is a relative name.
3095 INSTALL=$ac_install_sh
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3099 $as_echo "$INSTALL" >&6; }
3101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3102 # It thinks the first close brace ends the variable substitution.
3103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3110 $as_echo_n "checking whether build environment is sane... " >&6; }
3111 # Reject unsafe characters in $srcdir or the absolute working directory
3112 # name. Accept space and tab only in the latter.
3116 *[\\\"\#\$\&\'\`$am_lf]*)
3117 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3120 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3121 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3124 # Do 'set' in a subshell so we don't clobber the current shell's
3125 # arguments. Must try -L first in case configure is actually a
3126 # symlink; some systems play weird games with the mod time of symlinks
3127 # (eg FreeBSD returns the mod time of the symlink's containing
3131 for am_try in 1 2; do
3132 echo "timestamp, slept: $am_has_slept" > conftest.file
3133 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3134 if test "$*" = "X"; then
3136 set X `ls -t "$srcdir/configure" conftest.file`
3138 if test "$*" != "X $srcdir/configure conftest.file" \
3139 && test "$*" != "X conftest.file $srcdir/configure"; then
3141 # If neither matched, then we have a broken ls. This can happen
3142 # if, for instance, CONFIG_SHELL is bash and it inherits a
3143 # broken ls alias from the environment. This has actually
3144 # happened. Such a system could not be considered "sane".
3145 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3146 alias in your environment" "$LINENO" 5
3148 if test "$2" = conftest.file || test $am_try -eq 2; then
3155 test "$2" = conftest.file
3161 as_fn_error $? "newly created file is older than distributed files!
3162 Check your system clock" "$LINENO" 5
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3166 # If we didn't sleep, we still need to ensure time stamps of config.status and
3167 # generated files are strictly newer.
3169 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3176 test "$program_prefix" != NONE &&
3177 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3178 # Use a double $ so make ignores it.
3179 test "$program_suffix" != NONE &&
3180 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3181 # Double any \ or $.
3182 # By default was `s,x,x', remove it if useless.
3183 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3184 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3186 # expand $ac_aux_dir to an absolute path
3187 am_aux_dir=`cd $ac_aux_dir && pwd`
3189 if test x"${MISSING+set}" != xset; then
3192 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3194 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3197 # Use eval to expand $SHELL
3198 if eval "$MISSING --is-lightweight"; then
3199 am_missing_run="$MISSING "
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3203 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3206 if test x"${install_sh}" != xset; then
3209 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3211 install_sh="\${SHELL} $am_aux_dir/install-sh"
3215 # Installed binaries are usually stripped using 'strip' when the user
3216 # run "make install-strip". However 'strip' might not be the right
3217 # tool to use in cross-compilation environments, therefore Automake
3218 # will honor the 'STRIP' environment variable to overrule this program.
3219 if test "$cross_compiling" != no; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}strip; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_STRIP+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$STRIP"; then
3229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 STRIP=$ac_cv_prog_STRIP
3249 if test -n "$STRIP"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251 $as_echo "$STRIP" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$ac_cv_prog_STRIP"; then
3261 # Extract the first word of "strip", so it can be a program name with args.
3262 set dummy strip; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$ac_ct_STRIP"; then
3269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_STRIP="strip"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3289 if test -n "$ac_ct_STRIP"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3291 $as_echo "$ac_ct_STRIP" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3297 if test "x$ac_ct_STRIP" = x; then
3300 case $cross_compiling:$ac_tool_warned in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3309 STRIP="$ac_cv_prog_STRIP"
3313 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3316 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3317 if test -z "$MKDIR_P"; then
3318 if ${ac_cv_path_mkdir+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3325 test -z "$as_dir" && as_dir=.
3326 for ac_prog in mkdir gmkdir; do
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3329 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3330 'mkdir (GNU coreutils) '* | \
3331 'mkdir (coreutils) '* | \
3332 'mkdir (fileutils) '4.1*)
3333 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3343 test -d ./--version && rmdir ./--version
3344 if test "${ac_cv_path_mkdir+set}" = set; then
3345 MKDIR_P="$ac_cv_path_mkdir -p"
3347 # As a last resort, use the slow shell script. Don't cache a
3348 # value for MKDIR_P within a source directory, because that will
3349 # break other packages using the cache if that directory is
3350 # removed, or if the value is a relative name.
3351 MKDIR_P="$ac_install_sh -d"
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3355 $as_echo "$MKDIR_P" >&6; }
3357 for ac_prog in gawk mawk nawk awk
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_AWK+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$AWK"; then
3367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_AWK="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test -n "$AWK"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389 $as_echo "$AWK" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3396 test -n "$AWK" && break
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3403 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 cat >conftest.make <<\_ACEOF
3409 @echo '@@@%%%=$(MAKE)=@@@%%%'
3411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3414 eval ac_cv_prog_make_${ac_make}_set=yes;;
3416 eval ac_cv_prog_make_${ac_make}_set=no;;
3420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422 $as_echo "yes" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 SET_MAKE="MAKE=${MAKE-make}"
3430 rm -rf .tst 2>/dev/null
3431 mkdir .tst 2>/dev/null
3432 if test -d .tst; then
3437 rmdir .tst 2>/dev/null
3439 # Check whether --enable-silent-rules was given.
3440 if test "${enable_silent_rules+set}" = set; then :
3441 enableval=$enable_silent_rules;
3444 case $enable_silent_rules in # (((
3445 yes) AM_DEFAULT_VERBOSITY=0;;
3446 no) AM_DEFAULT_VERBOSITY=1;;
3447 *) AM_DEFAULT_VERBOSITY=1;;
3449 am_make=${MAKE-make}
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3451 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3452 if ${am_cv_make_support_nested_variables+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 if $as_echo 'TRUE=$(BAR$(V))
3461 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3462 am_cv_make_support_nested_variables=yes
3464 am_cv_make_support_nested_variables=no
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3468 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3469 if test $am_cv_make_support_nested_variables = yes; then
3471 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3473 AM_V=$AM_DEFAULT_VERBOSITY
3474 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3478 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3479 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3480 # is not polluted with repeated "-I."
3481 am__isrc=' -I$(srcdir)'
3482 # test to see if srcdir already configured
3483 if test -f $srcdir/config.status; then
3484 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3488 # test whether we have cygpath
3489 if test -z "$CYGPATH_W"; then
3490 if (cygpath --version) >/dev/null 2>/dev/null; then
3491 CYGPATH_W='cygpath -w'
3498 # Define the identity of the package.
3503 # Some tools Automake needs.
3505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3519 # For better backward compatibility. To be removed once Automake 1.9.x
3520 # dies out for good. For more background, see:
3521 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3522 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3523 mkdir_p='$(MKDIR_P)'
3525 # We need awk for the "check" target. The system "awk" is bad on
3527 # Always define AMTAR for backward compatibility. Yes, it's still used
3528 # in the wild :-( We should find a proper way to deprecate it ...
3532 # We'll loop over all known methods to create a tar archive until one works.
3533 _am_tools='gnutar plaintar pax cpio none'
3535 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3536 # There is notably a 21 bits limit for the UID and the GID. In fact,
3537 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3539 am_max_uid=2097151 # 2^21 - 1
3540 am_max_gid=$am_max_uid
3541 # The $UID and $GID variables are not portable, so we need to resort
3542 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3543 # below are definitely unexpected, so allow the users to see them
3544 # (that is, avoid stderr redirection).
3545 am_uid=`id -u || echo unknown`
3546 am_gid=`id -g || echo unknown`
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3548 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3549 if test $am_uid -le $am_max_uid; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3558 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3559 if test $am_gid -le $am_max_gid; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561 $as_echo "yes" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3569 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3571 # Go ahead even if we have the value already cached. We do so because we
3572 # need to set the values for the 'am__tar' and 'am__untar' variables.
3573 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3575 for _am_tool in $_am_tools; do
3578 for _am_tar in tar gnutar gtar; do
3579 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3580 ($_am_tar --version) >&5 2>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } && break
3585 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3586 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3587 am__untar="$_am_tar -xf -"
3590 # Must skip GNU tar: if it does not support --format= it doesn't create
3591 # ustar tarball either.
3592 (tar --version) >/dev/null 2>&1 && continue
3593 am__tar='tar chf - "$$tardir"'
3594 am__tar_='tar chf - "$tardir"'
3595 am__untar='tar xf -'
3598 am__tar='pax -L -x ustar -w "$$tardir"'
3599 am__tar_='pax -L -x ustar -w "$tardir"'
3603 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3604 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3605 am__untar='cpio -i -H ustar -d'
3614 # If the value was cached, stop now. We just wanted to have am__tar
3615 # and am__untar set.
3616 test -n "${am_cv_prog_tar_ustar}" && break
3618 # tar/untar a dummy directory, and stop if the command works.
3621 echo GrepMe > conftest.dir/file
3622 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3623 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }
3628 if test -s conftest.tar; then
3629 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3630 ($am__untar <conftest.tar) >&5 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }
3634 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3635 (cat conftest.dir/file) >&5 2>&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }
3639 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3644 if ${am_cv_prog_tar_ustar+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 am_cv_prog_tar_ustar=$_am_tool
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3651 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3658 # POSIX will say in a future version that running "rm -f" with no argument
3659 # is OK; and we want to be able to make that assumption in our Makefile
3660 # recipes. So use an aggressive probe to check that the usage we want is
3661 # actually supported "in the wild" to an acceptable degree.
3662 # See automake bug#10828.
3663 # To make any issue more visible, cause the running configure to be aborted
3664 # by default if the 'rm' program in use doesn't match our expectations; the
3665 # user can still override this though.
3666 if rm -f && rm -fr && rm -rf; then : OK; else
3670 Your 'rm' program seems unable to run without file operands specified
3671 on the command line, even when the '-f' option is present. This is contrary
3672 to the behaviour of most rm programs out there, and not conforming with
3673 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3675 Please tell bug-automake@gnu.org about your system, including the value
3676 of your $PATH and any error possibly output before this message. This
3677 can help us improve future automake versions.
3680 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3681 echo 'Configuration will proceed anyway, since you have set the' >&2
3682 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3686 Aborting the configuration process, to ensure you take notice of the issue.
3688 You can download and install GNU coreutils to get an 'rm' implementation
3689 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3691 If you want to complete the configuration process using your problematic
3692 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3693 to "yes", and re-run configure.
3696 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3703 #PROTECT_AC_USE_SYSTEM_EXTENSIONS
3707 ac_config_headers="$ac_config_headers config.h:config.in"
3709 #shared library versioning
3710 CYASSL_LIBRARY_VERSION=5:6:0
3714 # current:revision:age
3716 # | | +- increment if interfaces have been added
3717 # | | set to zero if interfaces have been removed
3719 # | +- increment if source code has changed
3720 # | set to zero if current is incremented
3721 # +- increment if interfaces have been added, removed or changed
3724 # capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
3725 # if user doesn't override, no way to tell
3726 USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3732 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3737 macro_version='2.4.2'
3738 macro_revision='1.3337'
3752 ltmain="$ac_aux_dir/ltmain.sh"
3754 # Backslashify metacharacters that are still active within
3755 # double-quoted strings.
3756 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3758 # Same as above, but do not quote variable references.
3759 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3761 # Sed substitution to delay expansion of an escaped shell variable in a
3762 # double_quote_subst'ed string.
3763 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3765 # Sed substitution to delay expansion of an escaped single quote.
3766 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3768 # Sed substitution to avoid accidental globbing in evaled expressions
3769 no_glob_subst='s/\*/\\\*/g'
3771 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3772 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3773 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3776 $as_echo_n "checking how to print strings... " >&6; }
3777 # Test print first, because it will be a builtin if present.
3778 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3779 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3781 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3784 # Use this function as a fallback that always works.
3785 func_fallback_echo ()
3787 eval 'cat <<_LTECHO_EOF
3791 ECHO='func_fallback_echo'
3794 # func_echo_all arg...
3795 # Invoke $ECHO with all args, space-separated.
3802 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3803 $as_echo "printf" >&6; } ;;
3804 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3805 $as_echo "print -r" >&6; } ;;
3806 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3807 $as_echo "cat" >&6; } ;;
3823 DEPDIR="${am__leading_dot}deps"
3825 ac_config_commands="$ac_config_commands depfiles"
3828 am_make=${MAKE-make}
3829 cat > confinc << 'END'
3831 @echo this is the am__doit target
3834 # If we don't find an include directive, just comment out the code.
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3836 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3840 # First try GNU make style include.
3841 echo "include confinc" > confmf
3842 # Ignore all kinds of additional output from 'make'.
3843 case `$am_make -s -f confmf 2> /dev/null` in #(
3844 *the\ am__doit\ target*)
3850 # Now try BSD make style include.
3851 if test "$am__include" = "#"; then
3852 echo '.include "confinc"' > confmf
3853 case `$am_make -s -f confmf 2> /dev/null` in #(
3854 *the\ am__doit\ target*)
3855 am__include=.include
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3864 $as_echo "$_am_result" >&6; }
3865 rm -f confinc confmf
3867 # Check whether --enable-dependency-tracking was given.
3868 if test "${enable_dependency_tracking+set}" = set; then :
3869 enableval=$enable_dependency_tracking;
3872 if test "x$enable_dependency_tracking" != xno; then
3873 am_depcomp="$ac_aux_dir/depcomp"
3877 if test "x$enable_dependency_tracking" != xno; then
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$ac_cv_prog_CC"; then
3932 # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$ac_ct_CC"; then
3940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_ac_ct_CC="gcc"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3960 if test -n "$ac_ct_CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3962 $as_echo "$ac_ct_CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 if test "x$ac_ct_CC" = x; then
3971 case $cross_compiling:$ac_tool_warned in
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned=yes ;;
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_CC="${ac_tool_prefix}cc"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 if test -n "$CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4024 if test -z "$CC"; then
4025 # Extract the first word of "cc", so it can be a program name with args.
4026 set dummy cc; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_CC+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC="$CC" # Let the user override the test.
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4044 ac_prog_rejected=yes
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 if test $ac_prog_rejected = yes; then
4056 # We found a bogon in the path, so make sure we never use it.
4057 set dummy $ac_cv_prog_CC
4059 if test $# != 0; then
4060 # We chose a different compiler from the bogus one.
4061 # However, it has the same basename, so the bogon will be chosen
4062 # first if we set CC to just the basename; use the full file name.
4064 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4080 if test -z "$CC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 for ac_prog in cl.exe
4084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 test -n "$CC" && break
4124 if test -z "$CC"; then
4126 for ac_prog in cl.exe
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy $ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$ac_ct_CC"; then
4136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_CC="$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4156 if test -n "$ac_ct_CC"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4158 $as_echo "$ac_ct_CC" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$ac_ct_CC" && break
4168 if test "x$ac_ct_CC" = x; then
4171 case $cross_compiling:$ac_tool_warned in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4175 ac_tool_warned=yes ;;
4184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $? "no acceptable C compiler found in \$PATH
4187 See \`config.log' for more details" "$LINENO" 5; }
4189 # Provide some information about the compiler.
4190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4193 for ac_option in --version -v -V -qversion; do
4194 { { ac_try="$ac_compiler $ac_option >&5"
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200 $as_echo "$ac_try_echo"; } >&5
4201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4203 if test -s conftest.err; then
4205 ... rest of stderr output deleted ...
4206 10q' conftest.err >conftest.er1
4207 cat conftest.er1 >&5
4209 rm -f conftest.er1 conftest.err
4210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211 test $ac_status = 0; }
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4225 ac_clean_files_save=$ac_clean_files
4226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4227 # Try to create an executable without -o first, disregard a.out.
4228 # It will help us diagnose broken compilers, and finding out an intuition
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4231 $as_echo_n "checking whether the C compiler works... " >&6; }
4232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4234 # The possible output files:
4235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4238 for ac_file in $ac_files
4241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4242 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4247 if { { ac_try="$ac_link_default"
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link_default") 2>&5
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
4258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4261 # so that the user can short-circuit this test for compilers unknown to
4263 for ac_file in $ac_files ''
4265 test -f "$ac_file" || continue
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4270 # We found the default executable, but exeext='' is most
4274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4278 # We set ac_cv_exeext here because the later test for it is not
4279 # safe: cross compilers may not add the suffix if given an `-o'
4280 # argument, so we may need to know it at that point already.
4281 # Even if this section looks crufty: it has the advantage of
4288 test "$ac_cv_exeext" = no && ac_cv_exeext=
4293 if test -z "$ac_file"; then :
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error 77 "C compiler cannot create executables
4302 See \`config.log' for more details" "$LINENO" 5; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4308 $as_echo_n "checking for C compiler default output file name... " >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4310 $as_echo "$ac_file" >&6; }
4311 ac_exeext=$ac_cv_exeext
4313 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4314 ac_clean_files=$ac_clean_files_save
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4316 $as_echo_n "checking for suffix of executables... " >&6; }
4317 if { { ac_try="$ac_link"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_link") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; then :
4328 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4330 # work properly (i.e., refer to `conftest.exe'), while it won't with
4332 for ac_file in conftest.exe conftest conftest.*; do
4333 test -f "$ac_file" || continue
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4344 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4345 See \`config.log' for more details" "$LINENO" 5; }
4347 rm -f conftest conftest$ac_cv_exeext
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4349 $as_echo "$ac_cv_exeext" >&6; }
4351 rm -f conftest.$ac_ext
4352 EXEEXT=$ac_cv_exeext
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4360 FILE *f = fopen ("conftest.out", "w");
4361 return ferror (f) || fclose (f) != 0;
4367 ac_clean_files="$ac_clean_files conftest.out"
4368 # Check that the compiler produces executables we can run. If not, either
4369 # the compiler is broken, or we cross compile.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4371 $as_echo_n "checking whether we are cross compiling... " >&6; }
4372 if test "$cross_compiling" != yes; then
4373 { { ac_try="$ac_link"
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_link") 2>&5
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }
4384 if { ac_try='./conftest$ac_cv_exeext'
4385 { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }; }; then
4397 if test "$cross_compiling" = maybe; then
4400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 as_fn_error $? "cannot run C compiled programs.
4403 If you meant to cross compile, use \`--host'.
4404 See \`config.log' for more details" "$LINENO" 5; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4409 $as_echo "$cross_compiling" >&6; }
4411 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4412 ac_clean_files=$ac_clean_files_save
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4414 $as_echo_n "checking for suffix of object files... " >&6; }
4415 if ${ac_cv_objext+:} false; then :
4416 $as_echo_n "(cached) " >&6
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4429 rm -f conftest.o conftest.obj
4430 if { { ac_try="$ac_compile"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compile") 2>&5
4439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; }; then :
4441 for ac_file in conftest.o conftest.obj conftest.*; do
4442 test -f "$ac_file" || continue;
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of object files: cannot compile
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4461 $as_echo "$ac_cv_objext" >&6; }
4462 OBJEXT=$ac_cv_objext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4466 if ${ac_cv_c_compiler_gnu+:} false; then :
4467 $as_echo_n "(cached) " >&6
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4483 if ac_fn_c_try_compile "$LINENO"; then :
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4494 if test $ac_compiler_gnu = yes; then
4499 ac_test_CFLAGS=${CFLAGS+set}
4500 ac_save_CFLAGS=$CFLAGS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4503 if ${ac_cv_prog_cc_g+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 ac_save_c_werror_flag=$ac_c_werror_flag
4507 ac_c_werror_flag=yes
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 if ac_fn_c_try_compile "$LINENO"; then :
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4536 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_c_werror_flag=$ac_save_c_werror_flag
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 if ac_fn_c_try_compile "$LINENO"; then :
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4563 $as_echo "$ac_cv_prog_cc_g" >&6; }
4564 if test "$ac_test_CFLAGS" = set; then
4565 CFLAGS=$ac_save_CFLAGS
4566 elif test $ac_cv_prog_cc_g = yes; then
4567 if test "$GCC" = yes; then
4573 if test "$GCC" = yes; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4581 if ${ac_cv_prog_cc_c89+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 ac_cv_prog_cc_c89=no
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4592 struct buf { int x; };
4593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4594 static char *e (p, i)
4600 static char *f (char * (*g) (char **, int), char **p, ...)
4605 s = g (p, va_arg (v,int));
4610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4611 function prototypes and stuff, but not '\xHH' hex character constants.
4612 These don't provoke an error unfortunately, instead are silently treated
4613 as 'x'. The following induces an error, until -std is added to get
4614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4615 array size at least. It's necessary to write '\x00'==0 to get something
4616 that's true only with -std. */
4617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4620 inside strings and character constants. */
4622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4624 int test (int i, double x);
4625 struct s1 {int (*f) (int a);};
4626 struct s2 {int (*f) (double a);};
4627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4641 CC="$ac_save_CC $ac_arg"
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_c89=$ac_arg
4645 rm -f core conftest.err conftest.$ac_objext
4646 test "x$ac_cv_prog_cc_c89" != "xno" && break
4648 rm -f conftest.$ac_ext
4653 case "x$ac_cv_prog_cc_c89" in
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4656 $as_echo "none needed" >&6; } ;;
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4659 $as_echo "unsupported" >&6; } ;;
4661 CC="$CC $ac_cv_prog_cc_c89"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4665 if test "x$ac_cv_prog_cc_c89" != xno; then :
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4681 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4682 if ${am_cv_prog_cc_c_o+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4696 # Make sure it works both with $CC and with simple cc.
4697 # Following AC_PROG_CC_C_O, we do the test twice because some
4698 # compilers refuse to overwrite an existing .o file with -o,
4699 # though they will create one.
4700 am_cv_prog_cc_c_o=yes
4702 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4703 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } \
4707 && test -f conftest2.$ac_objext; then
4710 am_cv_prog_cc_c_o=no
4714 rm -f core conftest*
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4718 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4719 if test "$am_cv_prog_cc_c_o" != yes; then
4720 # Losing compiler, so override with the script.
4721 # FIXME: It is wrong to rewrite CC.
4722 # But if we don't then we get into trouble of one sort or another.
4723 # A longer-term fix would be to have automake use am__CC in this case,
4724 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4725 CC="$am_aux_dir/compile $CC"
4728 ac_cpp='$CPP $CPPFLAGS'
4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734 depcc="$CC" am_compiler_list=
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4737 $as_echo_n "checking dependency style of $depcc... " >&6; }
4738 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4742 # We make a subdir and do the tests there. Otherwise we can end up
4743 # making bogus files that we don't know about and never remove. For
4744 # instance it was reported that on HP-UX the gcc test will end up
4745 # making a dummy file named 'D' -- because '-MD' means "put the output
4749 # Copy depcomp to subdir because otherwise we won't find it if we're
4750 # using a relative directory.
4751 cp "$am_depcomp" conftest.dir
4753 # We will build objects and dependencies in a subdirectory because
4754 # it helps to detect inapplicable dependency modes. For instance
4755 # both Tru64's cc and ICC support -MD to output dependencies as a
4756 # side effect of compilation, but ICC will put the dependencies in
4757 # the current directory while Tru64 will put them in the object
4761 am_cv_CC_dependencies_compiler_type=none
4762 if test "$am_compiler_list" = ""; then
4763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4766 case " $depcc " in #(
4767 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4770 for depmode in $am_compiler_list; do
4771 # Setup a source with many dependencies, because some compilers
4772 # like to wrap large dependency lists on column 80 (with \), and
4773 # we should not choose a depcomp mode which is confused by this.
4775 # We need to recreate these files for each test, as the compiler may
4776 # overwrite some of them when testing with obscure command lines.
4777 # This happens at least with the AIX C compiler.
4779 for i in 1 2 3 4 5 6; do
4780 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4781 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4782 # Solaris 10 /bin/sh.
4783 echo '/* dummy */' > sub/conftst$i.h
4785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4787 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4788 # mode. It turns out that the SunPro C++ compiler does not properly
4789 # handle '-M -o', and we need to detect this. Also, some Intel
4790 # versions had trouble with output in subdirs.
4791 am__obj=sub/conftest.${OBJEXT-o}
4792 am__minus_obj="-o $am__obj"
4795 # This depmode causes a compiler race in universal mode.
4796 test "$am__universal" = false || continue
4799 # After this tag, mechanisms are not by side-effect, so they'll
4800 # only be used when explicitly requested.
4801 if test "x$enable_dependency_tracking" = xyes; then
4807 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4808 # This compiler won't grok '-c -o', but also, the minuso test has
4809 # not run yet. These depmodes are late enough in the game, and
4810 # so weak that their functioning should not be impacted.
4811 am__obj=conftest.${OBJEXT-o}
4816 if depmode=$depmode \
4817 source=sub/conftest.c object=$am__obj \
4818 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4819 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4820 >/dev/null 2>conftest.err &&
4821 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4823 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4825 # icc doesn't choke on unknown options, it will just issue warnings
4826 # or remarks (even with -Werror). So we grep stderr for any message
4827 # that says an option was ignored or not supported.
4828 # When given -MP, icc 7.0 and 7.1 complain thusly:
4829 # icc: Command line warning: ignoring option '-M'; no argument required
4830 # The diagnosis changed in icc 8.0:
4831 # icc: Command line remark: option '-MP' not supported
4832 if (grep 'ignoring option' conftest.err ||
4833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4834 am_cv_CC_dependencies_compiler_type=$depmode
4843 am_cv_CC_dependencies_compiler_type=none
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4848 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4849 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4852 test "x$enable_dependency_tracking" != xno \
4853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4855 am__fastdepCC_FALSE='#'
4857 am__fastdepCC_TRUE='#'
4858 am__fastdepCC_FALSE=
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4863 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4864 if ${ac_cv_path_SED+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4868 for ac_i in 1 2 3 4 5 6 7; do
4869 ac_script="$ac_script$as_nl$ac_script"
4871 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4872 { ac_script=; unset ac_script;}
4873 if test -z "$SED"; then
4874 ac_path_SED_found=false
4875 # Loop through the user's path and test for each of PROGNAME-LIST
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_prog in sed gsed; do
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4884 as_fn_executable_p "$ac_path_SED" || continue
4885 # Check for GNU ac_path_SED and select it if it is found.
4886 # Check for GNU $ac_path_SED
4887 case `"$ac_path_SED" --version 2>&1` in
4889 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4892 $as_echo_n 0123456789 >"conftest.in"
4895 cat "conftest.in" "conftest.in" >"conftest.tmp"
4896 mv "conftest.tmp" "conftest.in"
4897 cp "conftest.in" "conftest.nl"
4898 $as_echo '' >> "conftest.nl"
4899 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4901 as_fn_arith $ac_count + 1 && ac_count=$as_val
4902 if test $ac_count -gt ${ac_path_SED_max-0}; then
4903 # Best one so far, save it but keep looking for a better one
4904 ac_cv_path_SED="$ac_path_SED"
4905 ac_path_SED_max=$ac_count
4907 # 10*(2^10) chars as input seems more than enough
4908 test $ac_count -gt 10 && break
4910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913 $ac_path_SED_found && break 3
4918 if test -z "$ac_cv_path_SED"; then
4919 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4927 $as_echo "$ac_cv_path_SED" >&6; }
4928 SED="$ac_cv_path_SED"
4931 test -z "$SED" && SED=sed
4932 Xsed="$SED -e 1s/^X//"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4945 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4946 if ${ac_cv_path_GREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -z "$GREP"; then
4950 ac_path_GREP_found=false
4951 # Loop through the user's path and test for each of PROGNAME-LIST
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 test -z "$as_dir" && as_dir=.
4957 for ac_prog in grep ggrep; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4960 as_fn_executable_p "$ac_path_GREP" || continue
4961 # Check for GNU ac_path_GREP and select it if it is found.
4962 # Check for GNU $ac_path_GREP
4963 case `"$ac_path_GREP" --version 2>&1` in
4965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4968 $as_echo_n 0123456789 >"conftest.in"
4971 cat "conftest.in" "conftest.in" >"conftest.tmp"
4972 mv "conftest.tmp" "conftest.in"
4973 cp "conftest.in" "conftest.nl"
4974 $as_echo 'GREP' >> "conftest.nl"
4975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977 as_fn_arith $ac_count + 1 && ac_count=$as_val
4978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4979 # Best one so far, save it but keep looking for a better one
4980 ac_cv_path_GREP="$ac_path_GREP"
4981 ac_path_GREP_max=$ac_count
4983 # 10*(2^10) chars as input seems more than enough
4984 test $ac_count -gt 10 && break
4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4989 $ac_path_GREP_found && break 3
4994 if test -z "$ac_cv_path_GREP"; then
4995 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998 ac_cv_path_GREP=$GREP
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5003 $as_echo "$ac_cv_path_GREP" >&6; }
5004 GREP="$ac_cv_path_GREP"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5008 $as_echo_n "checking for egrep... " >&6; }
5009 if ${ac_cv_path_EGREP+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5013 then ac_cv_path_EGREP="$GREP -E"
5015 if test -z "$EGREP"; then
5016 ac_path_EGREP_found=false
5017 # Loop through the user's path and test for each of PROGNAME-LIST
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 test -z "$as_dir" && as_dir=.
5023 for ac_prog in egrep; do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5026 as_fn_executable_p "$ac_path_EGREP" || continue
5027 # Check for GNU ac_path_EGREP and select it if it is found.
5028 # Check for GNU $ac_path_EGREP
5029 case `"$ac_path_EGREP" --version 2>&1` in
5031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5034 $as_echo_n 0123456789 >"conftest.in"
5037 cat "conftest.in" "conftest.in" >"conftest.tmp"
5038 mv "conftest.tmp" "conftest.in"
5039 cp "conftest.in" "conftest.nl"
5040 $as_echo 'EGREP' >> "conftest.nl"
5041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043 as_fn_arith $ac_count + 1 && ac_count=$as_val
5044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5045 # Best one so far, save it but keep looking for a better one
5046 ac_cv_path_EGREP="$ac_path_EGREP"
5047 ac_path_EGREP_max=$ac_count
5049 # 10*(2^10) chars as input seems more than enough
5050 test $ac_count -gt 10 && break
5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 $ac_path_EGREP_found && break 3
5060 if test -z "$ac_cv_path_EGREP"; then
5061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064 ac_cv_path_EGREP=$EGREP
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5070 $as_echo "$ac_cv_path_EGREP" >&6; }
5071 EGREP="$ac_cv_path_EGREP"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if ${ac_cv_path_FGREP+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080 then ac_cv_path_FGREP="$GREP -F"
5082 if test -z "$FGREP"; then
5083 ac_path_FGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in fgrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 as_fn_executable_p "$ac_path_FGREP" || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095 # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5101 $as_echo_n 0123456789 >"conftest.in"
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'FGREP' >> "conftest.nl"
5108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_FGREP="$ac_path_FGREP"
5114 ac_path_FGREP_max=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 $ac_path_FGREP_found && break 3
5127 if test -z "$ac_cv_path_FGREP"; then
5128 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131 ac_cv_path_FGREP=$FGREP
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138 FGREP="$ac_cv_path_FGREP"
5141 test -z "$GREP" && GREP=grep
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5169 if test "$GCC" = yes; then
5170 # Check if gcc -print-prog-name=ld gives a path.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5175 # gcc leaves a trailing carriage return which upsets mingw
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181 # Accept absolute paths.
5183 re_direlt='/[^/][^/]*/\.\./'
5184 # Canonicalize the pathname of ld
5185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5189 test -z "$LD" && LD="$ac_prog"
5192 # If it fails, then pretend we aren't using GCC.
5196 # If it is relative, then search for the first ld in PATH.
5200 elif test "$with_gnu_ld" = yes; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5207 if ${lt_cv_path_LD+:} false; then :
5208 $as_echo_n "(cached) " >&6
5210 if test -z "$LD"; then
5211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212 for ac_dir in $PATH; do
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some variants of GNU ld only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221 *GNU* | *'with BFD'*)
5222 test "$with_gnu_ld" != no && break
5225 test "$with_gnu_ld" != yes && break
5232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5237 if test -n "$LD"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if ${lt_cv_prog_gnu_ld+:} false; then :
5248 $as_echo_n "(cached) " >&6
5250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 lt_cv_prog_gnu_ld=yes
5256 lt_cv_prog_gnu_ld=no
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if ${lt_cv_path_NM+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5281 lt_nm_to_check="${ac_tool_prefix}nm"
5282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283 lt_nm_to_check="$lt_nm_to_check nm"
5285 for lt_tmp_nm in $lt_nm_to_check; do
5286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5289 test -z "$ac_dir" && ac_dir=.
5290 tmp_nm="$ac_dir/$lt_tmp_nm"
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292 # Check to see if the nm accepts a BSD-compat flag.
5293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294 # nm: unknown option "B" ignored
5295 # Tru64's nm complains that /dev/null is an invalid object file
5296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297 */dev/null* | *'Invalid file or object type'*)
5298 lt_cv_path_NM="$tmp_nm -B"
5302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5304 lt_cv_path_NM="$tmp_nm -p"
5308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309 continue # so that we can try to find one that supports BSD flags
5318 : ${lt_cv_path_NM=no}
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5326 # Didn't find any BSD compatible name lister, look for dumpbin.
5327 if test -n "$DUMPBIN"; then :
5328 # Let the user override the test.
5330 if test -n "$ac_tool_prefix"; then
5331 for ac_prog in dumpbin "link -dump"
5333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_DUMPBIN+:} false; then :
5338 $as_echo_n "(cached) " >&6
5340 if test -n "$DUMPBIN"; then
5341 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 DUMPBIN=$ac_cv_prog_DUMPBIN
5361 if test -n "$DUMPBIN"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5363 $as_echo "$DUMPBIN" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5370 test -n "$DUMPBIN" && break
5373 if test -z "$DUMPBIN"; then
5374 ac_ct_DUMPBIN=$DUMPBIN
5375 for ac_prog in dumpbin "link -dump"
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$ac_ct_DUMPBIN"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5405 if test -n "$ac_ct_DUMPBIN"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5407 $as_echo "$ac_ct_DUMPBIN" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5414 test -n "$ac_ct_DUMPBIN" && break
5417 if test "x$ac_ct_DUMPBIN" = x; then
5420 case $cross_compiling:$ac_tool_warned in
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5426 DUMPBIN=$ac_ct_DUMPBIN
5430 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5432 DUMPBIN="$DUMPBIN -symbols"
5440 if test "$DUMPBIN" != ":"; then
5444 test -z "$NM" && NM=nm
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5452 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5453 if ${lt_cv_nm_interface+:} false; then :
5454 $as_echo_n "(cached) " >&6
5456 lt_cv_nm_interface="BSD nm"
5457 echo "int some_variable = 0;" > conftest.$ac_ext
5458 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5459 (eval "$ac_compile" 2>conftest.err)
5460 cat conftest.err >&5
5461 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5462 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5463 cat conftest.err >&5
5464 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5465 cat conftest.out >&5
5466 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5467 lt_cv_nm_interface="MS dumpbin"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5472 $as_echo "$lt_cv_nm_interface" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5475 $as_echo_n "checking whether ln -s works... " >&6; }
5477 if test "$LN_S" = "ln -s"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5482 $as_echo "no, using $LN_S" >&6; }
5485 # find the maximum length of command line arguments
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5487 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5488 if ${lt_cv_sys_max_cmd_len+:} false; then :
5489 $as_echo_n "(cached) " >&6
5496 # On DJGPP, this test can blow up pretty badly due to problems in libc
5497 # (any single argument exceeding 2000 bytes causes a buffer overrun
5498 # during glob expansion). Even if it were fixed, the result of this
5499 # check would be larger than it should be.
5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5504 # Under GNU Hurd, this test is not required because there is
5505 # no limit to the length of command line arguments.
5506 # Libtool will interpret -1 as no limit whatsoever
5507 lt_cv_sys_max_cmd_len=-1;
5510 cygwin* | mingw* | cegcc*)
5511 # On Win9x/ME, this test blows up -- it succeeds, but takes
5512 # about 5 minutes as the teststring grows exponentially.
5513 # Worse, since 9x/ME are not pre-emptively multitasking,
5514 # you end up with a "frozen" computer, even though with patience
5515 # the test eventually succeeds (with a max line length of 256k).
5516 # Instead, let's just punt: use the minimum linelength reported by
5517 # all of the supported platforms: 8192 (on NT/2K/XP).
5518 lt_cv_sys_max_cmd_len=8192;
5522 # On MiNT this can take a long time and run out of memory.
5523 lt_cv_sys_max_cmd_len=8192;
5527 # On AmigaOS with pdksh, this test takes hours, literally.
5528 # So we just punt and use a minimum line length of 8192.
5529 lt_cv_sys_max_cmd_len=8192;
5532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5533 # This has been around since 386BSD, at least. Likely further.
5534 if test -x /sbin/sysctl; then
5535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5536 elif test -x /usr/sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5541 # And add a safety zone
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5547 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5548 lt_cv_sys_max_cmd_len=196608
5552 # The test takes a long time on OS/2.
5553 lt_cv_sys_max_cmd_len=8192
5557 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5558 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5559 # nice to cause kernel panics so lets avoid the loop below.
5560 # First set a reasonable default.
5561 lt_cv_sys_max_cmd_len=16384
5563 if test -x /sbin/sysconfig; then
5564 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5565 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570 lt_cv_sys_max_cmd_len=102400
5572 sysv5* | sco5v6* | sysv4.2uw2*)
5573 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5574 if test -n "$kargmax"; then
5575 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5577 lt_cv_sys_max_cmd_len=32768
5581 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5582 if test -n "$lt_cv_sys_max_cmd_len"; then
5583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5586 # Make teststring a little bigger before we do anything with it.
5587 # a 1K string should be a reasonable start.
5588 for i in 1 2 3 4 5 6 7 8 ; do
5589 teststring=$teststring$teststring
5591 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5592 # If test is not a shell built-in, we'll probably end up computing a
5593 # maximum length that is only half of the actual maximum length, but
5595 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5596 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5597 test $i != 17 # 1/2 MB should be enough
5600 teststring=$teststring$teststring
5602 # Only check the string length outside the loop.
5603 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5605 # Add a significant safety factor because C++ compilers can tack on
5606 # massive amounts of additional arguments before passing them to the
5607 # linker. It appears as though 1/2 is a usable value.
5608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5615 if test -n $lt_cv_sys_max_cmd_len ; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5617 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5620 $as_echo "none" >&6; }
5622 max_cmd_len=$lt_cv_sys_max_cmd_len
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5634 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5635 # Try some XSI features
5638 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5640 && eval 'test $(( 1 + 1 )) -eq 2 \
5641 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5644 $as_echo "$xsi_shell" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5648 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5650 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5652 && lt_shell_append=yes
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5654 $as_echo "$lt_shell_append" >&6; }
5657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5667 # test EBCDIC or ASCII
5668 case `echo X|tr X '\101'` in
5669 A) # ASCII based system
5670 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5671 lt_SP2NL='tr \040 \012'
5672 lt_NL2SP='tr \015\012 \040\040'
5674 *) # EBCDIC based system
5675 lt_SP2NL='tr \100 \n'
5676 lt_NL2SP='tr \r\n \100\100'
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5689 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5690 if ${lt_cv_to_host_file_cmd+:} false; then :
5691 $as_echo_n "(cached) " >&6
5696 *-*-mingw* ) # actually msys
5697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5700 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5702 * ) # otherwise, assume *nix
5703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5709 *-*-mingw* ) # actually msys
5710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5713 lt_cv_to_host_file_cmd=func_convert_file_noop
5715 * ) # otherwise, assume *nix
5716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5720 * ) # unhandled hosts (and "normal" native builds)
5721 lt_cv_to_host_file_cmd=func_convert_file_noop
5727 to_host_file_cmd=$lt_cv_to_host_file_cmd
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5729 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5736 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5737 if ${lt_cv_to_tool_file_cmd+:} false; then :
5738 $as_echo_n "(cached) " >&6
5740 #assume ordinary cross tools, or native build.
5741 lt_cv_to_tool_file_cmd=func_convert_file_noop
5745 *-*-mingw* ) # actually msys
5746 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5756 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5763 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5764 if ${lt_cv_ld_reload_flag+:} false; then :
5765 $as_echo_n "(cached) " >&6
5767 lt_cv_ld_reload_flag='-r'
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5770 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5771 reload_flag=$lt_cv_ld_reload_flag
5772 case $reload_flag in
5774 *) reload_flag=" $reload_flag" ;;
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5778 cygwin* | mingw* | pw32* | cegcc*)
5779 if test "$GCC" != yes; then
5784 if test "$GCC" = yes; then
5785 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_OBJDUMP+:} false; then :
5806 $as_echo_n "(cached) " >&6
5808 if test -n "$OBJDUMP"; then
5809 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 OBJDUMP=$ac_cv_prog_OBJDUMP
5829 if test -n "$OBJDUMP"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5831 $as_echo "$OBJDUMP" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5839 if test -z "$ac_cv_prog_OBJDUMP"; then
5840 ac_ct_OBJDUMP=$OBJDUMP
5841 # Extract the first word of "objdump", so it can be a program name with args.
5842 set dummy objdump; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$ac_ct_OBJDUMP"; then
5849 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5869 if test -n "$ac_ct_OBJDUMP"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5871 $as_echo "$ac_ct_OBJDUMP" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5877 if test "x$ac_ct_OBJDUMP" = x; then
5880 case $cross_compiling:$ac_tool_warned in
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5886 OBJDUMP=$ac_ct_OBJDUMP
5889 OBJDUMP="$ac_cv_prog_OBJDUMP"
5892 test -z "$OBJDUMP" && OBJDUMP=objdump
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5903 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5904 if ${lt_cv_deplibs_check_method+:} false; then :
5905 $as_echo_n "(cached) " >&6
5907 lt_cv_file_magic_cmd='$MAGIC_CMD'
5908 lt_cv_file_magic_test_file=
5909 lt_cv_deplibs_check_method='unknown'
5910 # Need to set the preceding variable on all platforms that support
5911 # interlibrary dependencies.
5912 # 'none' -- dependencies not supported.
5913 # `unknown' -- same as none, but documents that we really don't know.
5914 # 'pass_all' -- all dependencies passed with no checks.
5915 # 'test_compile' -- check by making test program.
5916 # 'file_magic [[regex]]' -- check by looking for files in library path
5917 # which responds to the $file_magic_cmd with a given extended regex.
5918 # If you have `file' or equivalent on your system and you're not sure
5919 # whether `pass_all' will *always* work, you probably want this one.
5923 lt_cv_deplibs_check_method=pass_all
5927 lt_cv_deplibs_check_method=pass_all
5931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5932 lt_cv_file_magic_cmd='/usr/bin/file -L'
5933 lt_cv_file_magic_test_file=/shlib/libc.so
5937 # func_win32_libid is a shell function defined in ltmain.sh
5938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5939 lt_cv_file_magic_cmd='func_win32_libid'
5943 # Base MSYS/MinGW do not provide the 'file' command needed by
5944 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5945 # unless we find 'file', for example because we are cross-compiling.
5946 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5947 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5949 lt_cv_file_magic_cmd='func_win32_libid'
5951 # Keep this pattern in sync with the one in func_win32_libid.
5952 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5953 lt_cv_file_magic_cmd='$OBJDUMP -f'
5958 # use the weaker test based on 'objdump'. See mingw*.
5959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5960 lt_cv_file_magic_cmd='$OBJDUMP -f'
5963 darwin* | rhapsody*)
5964 lt_cv_deplibs_check_method=pass_all
5967 freebsd* | dragonfly*)
5968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971 # Not sure whether the presence of OpenBSD here was a mistake.
5972 # Let's accept both of them until this is cleared up.
5973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5974 lt_cv_file_magic_cmd=/usr/bin/file
5975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5979 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5988 lt_cv_deplibs_check_method=pass_all
5991 hpux10.20* | hpux11*)
5992 lt_cv_file_magic_cmd=/usr/bin/file
5995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5996 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5999 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]'
6000 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6004 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6010 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6014 irix5* | irix6* | nonstopux*)
6016 *-32|*"-32 ") libmagic=32-bit;;
6017 *-n32|*"-n32 ") libmagic=N32;;
6018 *-64|*"-64 ") libmagic=64-bit;;
6019 *) libmagic=never-match;;
6021 lt_cv_deplibs_check_method=pass_all
6024 # This must be glibc/ELF.
6025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6026 lt_cv_deplibs_check_method=pass_all
6030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6039 lt_cv_file_magic_cmd=/usr/bin/file
6040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6044 lt_cv_deplibs_check_method=pass_all
6048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6055 osf3* | osf4* | osf5*)
6056 lt_cv_deplibs_check_method=pass_all
6060 lt_cv_deplibs_check_method=pass_all
6064 lt_cv_deplibs_check_method=pass_all
6067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6068 lt_cv_deplibs_check_method=pass_all
6072 case $host_vendor in
6074 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]'
6075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6078 lt_cv_deplibs_check_method=pass_all
6081 lt_cv_file_magic_cmd='/bin/file'
6082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6085 lt_cv_file_magic_cmd='/bin/file'
6086 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6087 lt_cv_file_magic_test_file=/lib/libc.so
6090 lt_cv_deplibs_check_method=pass_all
6093 lt_cv_deplibs_check_method=pass_all
6099 lt_cv_deplibs_check_method=pass_all
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6109 if test "$build" = "$host"; then
6112 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6115 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6121 file_magic_cmd=$lt_cv_file_magic_cmd
6122 deplibs_check_method=$lt_cv_deplibs_check_method
6123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_DLLTOOL+:} false; then :
6152 $as_echo_n "(cached) " >&6
6154 if test -n "$DLLTOOL"; then
6155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 DLLTOOL=$ac_cv_prog_DLLTOOL
6175 if test -n "$DLLTOOL"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6177 $as_echo "$DLLTOOL" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6185 if test -z "$ac_cv_prog_DLLTOOL"; then
6186 ac_ct_DLLTOOL=$DLLTOOL
6187 # Extract the first word of "dlltool", so it can be a program name with args.
6188 set dummy dlltool; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 if test -n "$ac_ct_DLLTOOL"; then
6195 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6215 if test -n "$ac_ct_DLLTOOL"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6217 $as_echo "$ac_ct_DLLTOOL" >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6223 if test "x$ac_ct_DLLTOOL" = x; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6232 DLLTOOL=$ac_ct_DLLTOOL
6235 DLLTOOL="$ac_cv_prog_DLLTOOL"
6238 test -z "$DLLTOOL" && DLLTOOL=dlltool
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6250 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6251 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 lt_cv_sharedlib_from_linklib_cmd='unknown'
6257 cygwin* | mingw* | pw32* | cegcc*)
6258 # two different shell functions defined in ltmain.sh
6259 # decide which to use based on capabilities of $DLLTOOL
6260 case `$DLLTOOL --help 2>&1` in
6261 *--identify-strict*)
6262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6265 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6270 # fallback: assume linklib IS sharedlib
6271 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6277 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6278 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6279 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6288 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_AR+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$AR"; then
6299 ac_cv_prog_AR="$AR" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 if test -n "$AR"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6321 $as_echo "$AR" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6328 test -n "$AR" && break
6331 if test -z "$AR"; then
6335 # Extract the first word of "$ac_prog", so it can be a program name with args.
6336 set dummy $ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 if test -n "$ac_ct_AR"; then
6343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_ac_ct_AR="$ac_prog"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6363 if test -n "$ac_ct_AR"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6365 $as_echo "$ac_ct_AR" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6372 test -n "$ac_ct_AR" && break
6375 if test "x$ac_ct_AR" = x; then
6378 case $cross_compiling:$ac_tool_warned in
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6402 $as_echo_n "checking for archiver @FILE support... " >&6; }
6403 if ${lt_cv_ar_at_file+:} false; then :
6404 $as_echo_n "(cached) " >&6
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 echo conftest.$ac_objext > conftest.lst
6420 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6422 (eval $lt_ar_try) 2>&5
6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425 test $ac_status = 0; }
6426 if test "$ac_status" -eq 0; then
6427 # Ensure the archiver fails upon bogus file names.
6428 rm -f conftest.$ac_objext libconftest.a
6429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6430 (eval $lt_ar_try) 2>&5
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }
6434 if test "$ac_status" -ne 0; then
6438 rm -f conftest.* libconftest.a
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6445 $as_echo "$lt_cv_ar_at_file" >&6; }
6447 if test "x$lt_cv_ar_at_file" = xno; then
6450 archiver_list_spec=$lt_cv_ar_at_file
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_STRIP+:} false; then :
6465 $as_echo_n "(cached) " >&6
6467 if test -n "$STRIP"; then
6468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6490 $as_echo "$STRIP" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6498 if test -z "$ac_cv_prog_STRIP"; then
6500 # Extract the first word of "strip", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$ac_ct_STRIP"; then
6508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_STRIP="strip"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6528 if test -n "$ac_ct_STRIP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6530 $as_echo "$ac_ct_STRIP" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_ct_STRIP" = x; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6548 STRIP="$ac_cv_prog_STRIP"
6551 test -z "$STRIP" && STRIP=:
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_RANLIB+:} false; then :
6564 $as_echo_n "(cached) " >&6
6566 if test -n "$RANLIB"; then
6567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 RANLIB=$ac_cv_prog_RANLIB
6587 if test -n "$RANLIB"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6589 $as_echo "$RANLIB" >&6; }
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6597 if test -z "$ac_cv_prog_RANLIB"; then
6598 ac_ct_RANLIB=$RANLIB
6599 # Extract the first word of "ranlib", so it can be a program name with args.
6600 set dummy ranlib; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 if test -n "$ac_ct_RANLIB"; then
6607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_ac_ct_RANLIB="ranlib"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6627 if test -n "$ac_ct_RANLIB"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6629 $as_echo "$ac_ct_RANLIB" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6635 if test "x$ac_ct_RANLIB" = x; then
6638 case $cross_compiling:$ac_tool_warned in
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6644 RANLIB=$ac_ct_RANLIB
6647 RANLIB="$ac_cv_prog_RANLIB"
6650 test -z "$RANLIB" && RANLIB=:
6657 # Determine commands to create old-style static archives.
6658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6659 old_postinstall_cmds='chmod 644 $oldlib'
6660 old_postuninstall_cmds=
6662 if test -n "$RANLIB"; then
6665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6676 lock_old_archive_extraction=yes ;;
6678 lock_old_archive_extraction=no ;;
6719 # If no C compiler was specified, use CC.
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6725 # Allow CC to be a program name with arguments.
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6733 $as_echo_n "(cached) " >&6
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Define system-specific variables.
6750 cygwin* | mingw* | pw32* | cegcc*)
6751 symcode='[ABCDGISTW]'
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDEGRST]'
6759 symcode='[BCDEGRST]'
6762 symcode='[BCDEGQRST]'
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784 symcode='[ABCDGIRSTW]' ;;
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6794 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6796 # Handle CRLF in mingw tool chain
6800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6804 # Try without a prefix underscore, then with it.
6805 for ac_symprfx in "" "_"; do
6807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6808 symxfrm="\\1 $ac_symprfx\\2 \\2"
6810 # Write the raw and C identifiers.
6811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6812 # Fake it for dumpbin and say T for any non-static function
6813 # and D for any global variable.
6814 # Also find C++ and __fastcall symbols from MSVC++,
6815 # which start with @ or ?.
6816 lt_cv_sys_global_symbol_pipe="$AWK '"\
6817 " {last_section=section; section=\$ 3};"\
6818 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6819 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6820 " \$ 0!~/External *\|/{next};"\
6821 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6822 " {if(hide[section]) next};"\
6823 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6824 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6825 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6826 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6827 " ' prfx=^$ac_symprfx"
6829 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6831 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6833 # Check to see that the pipe works correctly.
6837 cat > conftest.$ac_ext <<_LT_EOF
6842 void nm_test_func(void);
6843 void nm_test_func(void){}
6847 int main(){nm_test_var='a';nm_test_func();return(0);}
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 # Now try to grab the symbols.
6857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6858 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861 test $ac_status = 0; } && test -s "$nlist"; then
6862 # Try sorting and uniquifying the output.
6863 if sort "$nlist" | uniq > "$nlist"T; then
6864 mv -f "$nlist"T "$nlist"
6869 # Make sure that we snagged all the symbols we need.
6870 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6871 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6872 cat <<_LT_EOF > conftest.$ac_ext
6873 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6874 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6875 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6876 relocations are performed -- see ld's documentation on pseudo-relocs. */
6877 # define LT_DLSYM_CONST
6878 #elif defined(__osf__)
6879 /* This system does not cope well with relocations in const data. */
6880 # define LT_DLSYM_CONST
6882 # define LT_DLSYM_CONST const
6890 # Now generate the symbol file.
6891 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6893 cat <<_LT_EOF >> conftest.$ac_ext
6895 /* The mapping between symbol names and symbols. */
6896 LT_DLSYM_CONST struct {
6900 lt__PROGRAM__LTX_preloaded_symbols[] =
6902 { "@PROGRAM@", (void *) 0 },
6904 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6905 cat <<\_LT_EOF >> conftest.$ac_ext
6909 /* This works around a problem in FreeBSD linker */
6910 #ifdef FREEBSD_WORKAROUND
6911 static const void *lt_preloaded_setup() {
6912 return lt__PROGRAM__LTX_preloaded_symbols;
6920 # Now try linking the two files.
6921 mv conftest.$ac_objext conftstm.$ac_objext
6922 lt_globsym_save_LIBS=$LIBS
6923 lt_globsym_save_CFLAGS=$CFLAGS
6924 LIBS="conftstm.$ac_objext"
6925 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6927 (eval $ac_link) 2>&5
6929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6933 LIBS=$lt_globsym_save_LIBS
6934 CFLAGS=$lt_globsym_save_CFLAGS
6936 echo "cannot find nm_test_func in $nlist" >&5
6939 echo "cannot find nm_test_var in $nlist" >&5
6942 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6945 echo "$progname: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 rm -rf conftest* conftst*
6950 # Do not use the global_symbol_pipe unless it works.
6951 if test "$pipe_works" = yes; then
6954 lt_cv_sys_global_symbol_pipe=
6960 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6961 lt_cv_sys_global_symbol_to_cdecl=
6963 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6965 $as_echo "failed" >&6; }
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6968 $as_echo "ok" >&6; }
6971 # Response file support.
6972 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6973 nm_file_list_spec='@'
6974 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6975 nm_file_list_spec='@'
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7005 $as_echo_n "checking for sysroot... " >&6; }
7007 # Check whether --with-sysroot was given.
7008 if test "${with_sysroot+set}" = set; then :
7009 withval=$with_sysroot;
7016 case ${with_sysroot} in #(
7018 if test "$GCC" = yes; then
7019 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7023 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7029 $as_echo "${with_sysroot}" >&6; }
7030 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7035 $as_echo "${lt_sysroot:-no}" >&6; }
7041 # Check whether --enable-libtool-lock was given.
7042 if test "${enable_libtool_lock+set}" = set; then :
7043 enableval=$enable_libtool_lock;
7046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7048 # Some flags need to be propagated to the compiler or linker for good
7052 # Find out which ABI we are using.
7053 echo 'int i;' > conftest.$ac_ext
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055 (eval $ac_compile) 2>&5
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; }; then
7059 case `/usr/bin/file conftest.$ac_objext` in
7071 # Find out which ABI we are using.
7072 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074 (eval $ac_compile) 2>&5
7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077 test $ac_status = 0; }; then
7078 if test "$lt_cv_prog_gnu_ld" = yes; then
7079 case `/usr/bin/file conftest.$ac_objext` in
7081 LD="${LD-ld} -melf32bsmip"
7084 LD="${LD-ld} -melf32bmipn32"
7087 LD="${LD-ld} -melf64bmip"
7091 case `/usr/bin/file conftest.$ac_objext` in
7107 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7108 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7109 # Find out which ABI we are using.
7110 echo 'int i;' > conftest.$ac_ext
7111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7112 (eval $ac_compile) 2>&5
7114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7115 test $ac_status = 0; }; then
7116 case `/usr/bin/file conftest.o` in
7119 x86_64-*kfreebsd*-gnu)
7120 LD="${LD-ld} -m elf_i386_fbsd"
7123 LD="${LD-ld} -m elf_i386"
7125 ppc64-*linux*|powerpc64-*linux*)
7126 LD="${LD-ld} -m elf32ppclinux"
7129 LD="${LD-ld} -m elf_s390"
7132 LD="${LD-ld} -m elf32_sparc"
7138 x86_64-*kfreebsd*-gnu)
7139 LD="${LD-ld} -m elf_x86_64_fbsd"
7142 LD="${LD-ld} -m elf_x86_64"
7144 ppc*-*linux*|powerpc*-*linux*)
7145 LD="${LD-ld} -m elf64ppc"
7147 s390*-*linux*|s390*-*tpf*)
7148 LD="${LD-ld} -m elf64_s390"
7151 LD="${LD-ld} -m elf64_sparc"
7161 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7162 SAVE_CFLAGS="$CFLAGS"
7163 CFLAGS="$CFLAGS -belf"
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7165 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7166 if ${lt_cv_cc_needs_belf+:} false; then :
7167 $as_echo_n "(cached) " >&6
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7186 if ac_fn_c_try_link "$LINENO"; then :
7187 lt_cv_cc_needs_belf=yes
7189 lt_cv_cc_needs_belf=no
7191 rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7201 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7202 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7203 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7204 CFLAGS="$SAVE_CFLAGS"
7208 # Find out which ABI we are using.
7209 echo 'int i;' > conftest.$ac_ext
7210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7211 (eval $ac_compile) 2>&5
7213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; }; then
7215 case `/usr/bin/file conftest.o` in
7217 case $lt_cv_prog_gnu_ld in
7221 LD="${LD-ld} -m elf_x86_64"
7224 LD="${LD-ld} -m elf64_sparc"
7227 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7228 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7233 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7245 need_locks="$enable_libtool_lock"
7247 if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}mt; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 if test -n "$MANIFEST_TOOL"; then
7256 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7276 if test -n "$MANIFEST_TOOL"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7278 $as_echo "$MANIFEST_TOOL" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7286 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7287 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7288 # Extract the first word of "mt", so it can be a program name with args.
7289 set dummy mt; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$ac_ct_MANIFEST_TOOL"; then
7296 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7316 if test -n "$ac_ct_MANIFEST_TOOL"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7318 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7324 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7327 case $cross_compiling:$ac_tool_warned in
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7333 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7336 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7339 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7341 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7342 if ${lt_cv_path_mainfest_tool+:} false; then :
7343 $as_echo_n "(cached) " >&6
7345 lt_cv_path_mainfest_tool=no
7346 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7347 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7348 cat conftest.err >&5
7349 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7350 lt_cv_path_mainfest_tool=yes
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7355 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7356 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7366 rhapsody* | darwin*)
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$DSYMUTIL"; then
7376 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7396 if test -n "$DSYMUTIL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7398 $as_echo "$DSYMUTIL" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7406 if test -z "$ac_cv_prog_DSYMUTIL"; then
7407 ac_ct_DSYMUTIL=$DSYMUTIL
7408 # Extract the first word of "dsymutil", so it can be a program name with args.
7409 set dummy dsymutil; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7413 $as_echo_n "(cached) " >&6
7415 if test -n "$ac_ct_DSYMUTIL"; then
7416 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7436 if test -n "$ac_ct_DSYMUTIL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7438 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7444 if test "x$ac_ct_DSYMUTIL" = x; then
7447 case $cross_compiling:$ac_tool_warned in
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451 ac_tool_warned=yes ;;
7453 DSYMUTIL=$ac_ct_DSYMUTIL
7456 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_NMEDIT+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$NMEDIT"; then
7468 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 NMEDIT=$ac_cv_prog_NMEDIT
7488 if test -n "$NMEDIT"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7490 $as_echo "$NMEDIT" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7498 if test -z "$ac_cv_prog_NMEDIT"; then
7499 ac_ct_NMEDIT=$NMEDIT
7500 # Extract the first word of "nmedit", so it can be a program name with args.
7501 set dummy nmedit; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$ac_ct_NMEDIT"; then
7508 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7528 if test -n "$ac_ct_NMEDIT"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7530 $as_echo "$ac_ct_NMEDIT" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7536 if test "x$ac_ct_NMEDIT" = x; then
7539 case $cross_compiling:$ac_tool_warned in
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7545 NMEDIT=$ac_ct_NMEDIT
7548 NMEDIT="$ac_cv_prog_NMEDIT"
7551 if test -n "$ac_tool_prefix"; then
7552 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7553 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_LIPO+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$LIPO"; then
7560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 LIPO=$ac_cv_prog_LIPO
7580 if test -n "$LIPO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7582 $as_echo "$LIPO" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7590 if test -z "$ac_cv_prog_LIPO"; then
7592 # Extract the first word of "lipo", so it can be a program name with args.
7593 set dummy lipo; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 if test -n "$ac_ct_LIPO"; then
7600 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_ac_ct_LIPO="lipo"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7620 if test -n "$ac_ct_LIPO"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7622 $as_echo "$ac_ct_LIPO" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7628 if test "x$ac_ct_LIPO" = x; then
7631 case $cross_compiling:$ac_tool_warned in
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7640 LIPO="$ac_cv_prog_LIPO"
7643 if test -n "$ac_tool_prefix"; then
7644 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_OTOOL+:} false; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$OTOOL"; then
7652 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 OTOOL=$ac_cv_prog_OTOOL
7672 if test -n "$OTOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7674 $as_echo "$OTOOL" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7682 if test -z "$ac_cv_prog_OTOOL"; then
7684 # Extract the first word of "otool", so it can be a program name with args.
7685 set dummy otool; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7689 $as_echo_n "(cached) " >&6
7691 if test -n "$ac_ct_OTOOL"; then
7692 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_ac_ct_OTOOL="otool"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712 if test -n "$ac_ct_OTOOL"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7714 $as_echo "$ac_ct_OTOOL" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7720 if test "x$ac_ct_OTOOL" = x; then
7723 case $cross_compiling:$ac_tool_warned in
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7732 OTOOL="$ac_cv_prog_OTOOL"
7735 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_OTOOL64+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 if test -n "$OTOOL64"; then
7744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7766 $as_echo "$OTOOL64" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775 ac_ct_OTOOL64=$OTOOL64
7776 # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 if test -n "$ac_ct_OTOOL64"; then
7784 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_ac_ct_OTOOL64="otool64"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7806 $as_echo "$ac_ct_OTOOL64" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7812 if test "x$ac_ct_OTOOL64" = x; then
7815 case $cross_compiling:$ac_tool_warned in
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819 ac_tool_warned=yes ;;
7821 OTOOL64=$ac_ct_OTOOL64
7824 OTOOL64="$ac_cv_prog_OTOOL64"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7854 $as_echo_n "checking for -single_module linker flag... " >&6; }
7855 if ${lt_cv_apple_cc_single_mod+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 lt_cv_apple_cc_single_mod=no
7859 if test -z "${LT_MULTI_MODULE}"; then
7860 # By default we will add the -single_module flag. You can override
7861 # by either setting the environment variable LT_MULTI_MODULE
7862 # non-empty at configure time, or by adding -multi_module to the
7864 rm -rf libconftest.dylib*
7865 echo "int foo(void){return 1;}" > conftest.c
7866 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7867 -dynamiclib -Wl,-single_module conftest.c" >&5
7868 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7869 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7871 # If there is a non-empty error log, and "single_module"
7872 # appears in it, assume the flag caused a linker warning
7873 if test -s conftest.err && $GREP single_module conftest.err; then
7874 cat conftest.err >&5
7875 # Otherwise, if the output was created with a 0 exit code from
7876 # the compiler, it worked.
7877 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7878 lt_cv_apple_cc_single_mod=yes
7880 cat conftest.err >&5
7882 rm -rf libconftest.dylib*
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7887 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7890 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7891 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7892 $as_echo_n "(cached) " >&6
7894 lt_cv_ld_exported_symbols_list=no
7895 save_LDFLAGS=$LDFLAGS
7896 echo "_main" > conftest.sym
7897 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 lt_cv_ld_exported_symbols_list=yes
7912 lt_cv_ld_exported_symbols_list=no
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 LDFLAGS="$save_LDFLAGS"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7920 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7923 $as_echo_n "checking for -force_load linker flag... " >&6; }
7924 if ${lt_cv_ld_force_load+:} false; then :
7925 $as_echo_n "(cached) " >&6
7927 lt_cv_ld_force_load=no
7928 cat > conftest.c << _LT_EOF
7929 int forced_loaded() { return 2;}
7931 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7932 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7933 echo "$AR cru libconftest.a conftest.o" >&5
7934 $AR cru libconftest.a conftest.o 2>&5
7935 echo "$RANLIB libconftest.a" >&5
7936 $RANLIB libconftest.a 2>&5
7937 cat > conftest.c << _LT_EOF
7938 int main() { return 0;}
7940 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7941 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7943 if test -s conftest.err && $GREP force_load conftest.err; then
7944 cat conftest.err >&5
7945 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7946 lt_cv_ld_force_load=yes
7948 cat conftest.err >&5
7950 rm -f conftest.err libconftest.a conftest conftest.c
7951 rm -rf conftest.dSYM
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7955 $as_echo "$lt_cv_ld_force_load" >&6; }
7957 rhapsody* | darwin1.[012])
7958 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7960 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961 darwin*) # darwin 5.x on
7962 # if running on 10.5 or later, the deployment target defaults
7963 # to the OS version, if on x86, and 10.4, the deployment
7964 # target defaults to 10.4. Don't you love it?
7965 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7966 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7967 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7969 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7971 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7975 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7976 _lt_dar_single_mod='$single_module'
7978 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7979 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7981 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7983 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7984 _lt_dsymutil='~$DSYMUTIL $lib || :'
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7997 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7998 # On Suns, sometimes $CPP names a directory.
7999 if test -n "$CPP" && test -d "$CPP"; then
8002 if test -z "$CPP"; then
8003 if ${ac_cv_prog_CPP+:} false; then :
8004 $as_echo_n "(cached) " >&6
8006 # Double quotes because CPP needs to be expanded
8007 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8010 for ac_c_preproc_warn_flag in '' yes
8012 # Use a header file that comes with gcc, so configuring glibc
8013 # with a fresh cross-compiler works.
8014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8015 # <limits.h> exists even on freestanding compilers.
8016 # On the NeXT, cc -E runs the code through the compiler's parser,
8017 # not just through cpp. "Syntax error" is here to catch this case.
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8021 # include <limits.h>
8023 # include <assert.h>
8027 if ac_fn_c_try_cpp "$LINENO"; then :
8030 # Broken: fails on valid input.
8033 rm -f conftest.err conftest.i conftest.$ac_ext
8035 # OK, works on sane cases. Now check whether nonexistent headers
8036 # can be detected and how.
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <ac_nonexistent.h>
8041 if ac_fn_c_try_cpp "$LINENO"; then :
8042 # Broken: success on invalid input.
8045 # Passes both tests.
8049 rm -f conftest.err conftest.i conftest.$ac_ext
8052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8053 rm -f conftest.i conftest.err conftest.$ac_ext
8054 if $ac_preproc_ok; then :
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8067 $as_echo "$CPP" >&6; }
8069 for ac_c_preproc_warn_flag in '' yes
8071 # Use a header file that comes with gcc, so configuring glibc
8072 # with a fresh cross-compiler works.
8073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074 # <limits.h> exists even on freestanding compilers.
8075 # On the NeXT, cc -E runs the code through the compiler's parser,
8076 # not just through cpp. "Syntax error" is here to catch this case.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8080 # include <limits.h>
8082 # include <assert.h>
8086 if ac_fn_c_try_cpp "$LINENO"; then :
8089 # Broken: fails on valid input.
8092 rm -f conftest.err conftest.i conftest.$ac_ext
8094 # OK, works on sane cases. Now check whether nonexistent headers
8095 # can be detected and how.
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 #include <ac_nonexistent.h>
8100 if ac_fn_c_try_cpp "$LINENO"; then :
8101 # Broken: success on invalid input.
8104 # Passes both tests.
8108 rm -f conftest.err conftest.i conftest.$ac_ext
8111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8112 rm -f conftest.i conftest.err conftest.$ac_ext
8113 if $ac_preproc_ok; then :
8116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8118 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8119 See \`config.log' for more details" "$LINENO" 5; }
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8130 $as_echo_n "checking for ANSI C header files... " >&6; }
8131 if ${ac_cv_header_stdc+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150 ac_cv_header_stdc=yes
8152 ac_cv_header_stdc=no
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 if test $ac_cv_header_stdc = yes; then
8157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8164 $EGREP "memchr" >/dev/null 2>&1; then :
8167 ac_cv_header_stdc=no
8173 if test $ac_cv_header_stdc = yes; then
8174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8181 $EGREP "free" >/dev/null 2>&1; then :
8184 ac_cv_header_stdc=no
8190 if test $ac_cv_header_stdc = yes; then
8191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8192 if test "$cross_compiling" = yes; then :
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8199 #if ((' ' & 0x0FF) == 0x020)
8200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8203 # define ISLOWER(c) \
8204 (('a' <= (c) && (c) <= 'i') \
8205 || ('j' <= (c) && (c) <= 'r') \
8206 || ('s' <= (c) && (c) <= 'z'))
8207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8215 for (i = 0; i < 256; i++)
8216 if (XOR (islower (i), ISLOWER (i))
8217 || toupper (i) != TOUPPER (i))
8222 if ac_fn_c_try_run "$LINENO"; then :
8225 ac_cv_header_stdc=no
8227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8228 conftest.$ac_objext conftest.beam conftest.$ac_ext
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8234 $as_echo "$ac_cv_header_stdc" >&6; }
8235 if test $ac_cv_header_stdc = yes; then
8237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8243 inttypes.h stdint.h unistd.h
8245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8249 cat >>confdefs.h <<_ACEOF
8250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8258 for ac_header in dlfcn.h
8260 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8262 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8263 cat >>confdefs.h <<_ACEOF
8264 #define HAVE_DLFCN_H 1
8276 # Check whether --enable-static was given.
8277 if test "${enable_static+set}" = set; then :
8278 enableval=$enable_static; p=${PACKAGE-default}
8280 yes) enable_static=yes ;;
8281 no) enable_static=no ;;
8284 # Look at the argument we got. We use all the common list separators.
8285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8286 for pkg in $enableval; do
8288 if test "X$pkg" = "X$p"; then
8314 # Check whether --enable-shared was given.
8315 if test "${enable_shared+set}" = set; then :
8316 enableval=$enable_shared; p=${PACKAGE-default}
8318 yes) enable_shared=yes ;;
8319 no) enable_shared=no ;;
8322 # Look at the argument we got. We use all the common list separators.
8323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8324 for pkg in $enableval; do
8326 if test "X$pkg" = "X$p"; then
8347 # Check whether --with-pic was given.
8348 if test "${with_pic+set}" = set; then :
8349 withval=$with_pic; lt_p=${PACKAGE-default}
8351 yes|no) pic_mode=$withval ;;
8354 # Look at the argument we got. We use all the common list separators.
8355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8356 for lt_pkg in $withval; do
8358 if test "X$lt_pkg" = "X$lt_p"; then
8370 test -z "$pic_mode" && pic_mode=default
8378 # Check whether --enable-fast-install was given.
8379 if test "${enable_fast_install+set}" = set; then :
8380 enableval=$enable_fast_install; p=${PACKAGE-default}
8382 yes) enable_fast_install=yes ;;
8383 no) enable_fast_install=no ;;
8385 enable_fast_install=no
8386 # Look at the argument we got. We use all the common list separators.
8387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8388 for pkg in $enableval; do
8390 if test "X$pkg" = "X$p"; then
8391 enable_fast_install=yes
8398 enable_fast_install=yes
8411 # This can be used to rebuild libtool when needed
8412 LIBTOOL_DEPS="$ltmain"
8414 # Always use our own libtool.
8415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8446 test -z "$LN_S" && LN_S="ln -s"
8461 if test -n "${ZSH_VERSION+set}" ; then
8462 setopt NO_GLOB_SUBST
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8466 $as_echo_n "checking for objdir... " >&6; }
8467 if ${lt_cv_objdir+:} false; then :
8468 $as_echo_n "(cached) " >&6
8470 rm -f .libs 2>/dev/null
8471 mkdir .libs 2>/dev/null
8472 if test -d .libs; then
8475 # MS-DOS does not allow filenames that begin with a dot.
8478 rmdir .libs 2>/dev/null
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8481 $as_echo "$lt_cv_objdir" >&6; }
8482 objdir=$lt_cv_objdir
8488 cat >>confdefs.h <<_ACEOF
8489 #define LT_OBJDIR "$lt_cv_objdir/"
8497 # AIX sometimes has problems with the GCC collect2 program. For some
8498 # reason, if we set the COLLECT_NAMES environment variable, the problems
8499 # vanish in a puff of smoke.
8500 if test "X${COLLECT_NAMES+set}" != Xset; then
8502 export COLLECT_NAMES
8509 can_build_shared=yes
8511 # All known linkers require a `.a' archive for static linking (except MSVC,
8512 # which needs '.lib').
8515 with_gnu_ld="$lt_cv_prog_gnu_ld"
8518 old_CFLAGS="$CFLAGS"
8520 # Set sane defaults for various variables
8521 test -z "$CC" && CC=cc
8522 test -z "$LTCC" && LTCC=$CC
8523 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8524 test -z "$LD" && LD=ld
8525 test -z "$ac_objext" && ac_objext=o
8527 for cc_temp in $compiler""; do
8529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8535 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8538 # Only perform the check for file, if the check method requires it
8539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8540 case $deplibs_check_method in
8542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8544 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8546 $as_echo_n "(cached) " >&6
8550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8553 lt_save_MAGIC_CMD="$MAGIC_CMD"
8554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8556 for ac_dir in $ac_dummy; do
8558 test -z "$ac_dir" && ac_dir=.
8559 if test -f $ac_dir/${ac_tool_prefix}file; then
8560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8561 if test -n "$file_magic_test_file"; then
8562 case $deplibs_check_method in
8564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8567 $EGREP "$file_magic_regex" > /dev/null; then
8572 *** Warning: the command libtool uses to detect shared libraries,
8573 *** $file_magic_cmd, produces output that libtool cannot recognize.
8574 *** The result is that libtool may fail to recognize shared libraries
8575 *** as such. This will affect the creation of libtool libraries that
8576 *** depend on shared libraries, but programs linked with such libtool
8577 *** libraries will work regardless of this problem. Nevertheless, you
8578 *** may want to report the problem to your system manager and/or to
8579 *** bug-libtool@gnu.org
8589 MAGIC_CMD="$lt_save_MAGIC_CMD"
8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595 if test -n "$MAGIC_CMD"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8597 $as_echo "$MAGIC_CMD" >&6; }
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8607 if test -z "$lt_cv_path_MAGIC_CMD"; then
8608 if test -n "$ac_tool_prefix"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8610 $as_echo_n "checking for file... " >&6; }
8611 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8612 $as_echo_n "(cached) " >&6
8616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8619 lt_save_MAGIC_CMD="$MAGIC_CMD"
8620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8622 for ac_dir in $ac_dummy; do
8624 test -z "$ac_dir" && ac_dir=.
8625 if test -f $ac_dir/file; then
8626 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8627 if test -n "$file_magic_test_file"; then
8628 case $deplibs_check_method in
8630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8633 $EGREP "$file_magic_regex" > /dev/null; then
8638 *** Warning: the command libtool uses to detect shared libraries,
8639 *** $file_magic_cmd, produces output that libtool cannot recognize.
8640 *** The result is that libtool may fail to recognize shared libraries
8641 *** as such. This will affect the creation of libtool libraries that
8642 *** depend on shared libraries, but programs linked with such libtool
8643 *** libraries will work regardless of this problem. Nevertheless, you
8644 *** may want to report the problem to your system manager and/or to
8645 *** bug-libtool@gnu.org
8655 MAGIC_CMD="$lt_save_MAGIC_CMD"
8660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8661 if test -n "$MAGIC_CMD"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8663 $as_echo "$MAGIC_CMD" >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8679 # Use C for the default configuration in the libtool script
8683 ac_cpp='$CPP $CPPFLAGS'
8684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689 # Source file extension for C test sources.
8692 # Object file extension for compiled C test sources.
8696 # Code to be used in simple compile tests
8697 lt_simple_compile_test_code="int some_variable = 0;"
8699 # Code to be used in simple link tests
8700 lt_simple_link_test_code='int main(){return(0);}'
8708 # If no C compiler was specified, use CC.
8711 # If no C compiler flags were specified, use CFLAGS.
8712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8714 # Allow CC to be a program name with arguments.
8717 # Save the default compiler, since it gets overwritten when the other
8718 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8719 compiler_DEFAULT=$CC
8721 # save warnings/boilerplate of simple test code
8722 ac_outfile=conftest.$ac_objext
8723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8725 _lt_compiler_boilerplate=`cat conftest.err`
8728 ac_outfile=conftest.$ac_objext
8729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8731 _lt_linker_boilerplate=`cat conftest.err`
8736 ## There is no encapsulation within the following macros, do not change
8737 ## the running order or otherwise move them around unless you know exactly
8738 ## what you are doing...
8739 if test -n "$compiler"; then
8741 lt_prog_compiler_no_builtin_flag=
8743 if test "$GCC" = yes; then
8744 case $cc_basename in
8746 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8748 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8752 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8753 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 lt_cv_prog_compiler_rtti_exceptions=no
8757 ac_outfile=conftest.$ac_objext
8758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8759 lt_compiler_flag="-fno-rtti -fno-exceptions"
8760 # Insert the option either (1) after the last *FLAGS variable, or
8761 # (2) before a word containing "conftest.", or (3) at the end.
8762 # Note that $ac_compile itself does not contain backslashes and begins
8763 # with a dollar sign (not a hyphen), so the echo should work correctly.
8764 # The option is referenced via a variable to avoid confusing sed.
8765 lt_compile=`echo "$ac_compile" | $SED \
8766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768 -e 's:$: $lt_compiler_flag:'`
8769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8770 (eval "$lt_compile" 2>conftest.err)
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 if (exit $ac_status) && test -s "$ac_outfile"; then
8775 # The compiler can only warn and ignore the option if not recognized
8776 # So say no if there are warnings other than the usual output.
8777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8780 lt_cv_prog_compiler_rtti_exceptions=yes
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8787 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8802 lt_prog_compiler_wl=
8803 lt_prog_compiler_pic=
8804 lt_prog_compiler_static=
8807 if test "$GCC" = yes; then
8808 lt_prog_compiler_wl='-Wl,'
8809 lt_prog_compiler_static='-static'
8813 # All AIX code is PIC.
8814 if test "$host_cpu" = ia64; then
8815 # AIX 5 now supports IA64 processor
8816 lt_prog_compiler_static='-Bstatic'
8823 # see comment about AmigaOS4 .so support
8824 lt_prog_compiler_pic='-fPIC'
8827 # FIXME: we need at least 68020 code to build shared libraries, but
8828 # adding the `-m68020' flag to GCC prevents building anything better,
8830 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8835 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8836 # PIC is the default for these OSes.
8839 mingw* | cygwin* | pw32* | os2* | cegcc*)
8840 # This hack is so that the source file can tell whether it is being
8841 # built for inclusion in a dll (and should export symbols for example).
8842 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8843 # (--disable-auto-import) libraries
8844 lt_prog_compiler_pic='-DDLL_EXPORT'
8847 darwin* | rhapsody*)
8848 # PIC is the default on this platform
8849 # Common symbols not allowed in MH_DYLIB files
8850 lt_prog_compiler_pic='-fno-common'
8854 # PIC is the default for Haiku.
8855 # The "-static" flag exists, but is broken.
8856 lt_prog_compiler_static=
8860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8862 # sets the default TLS model and affects inlining.
8868 lt_prog_compiler_pic='-fPIC'
8874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8875 # Instead, we relocate shared libraries at runtime.
8879 # Just because we use GCC doesn't mean we suddenly get shared libraries
8880 # on systems that don't support them.
8881 lt_prog_compiler_can_build_shared=no
8886 # QNX uses GNU C++, but need to define -shared option too, otherwise
8888 lt_prog_compiler_pic='-fPIC -shared'
8892 if test -d /usr/nec; then
8893 lt_prog_compiler_pic=-Kconform_pic
8898 lt_prog_compiler_pic='-fPIC'
8902 case $cc_basename in
8903 nvcc*) # Cuda Compiler Driver 2.2
8904 lt_prog_compiler_wl='-Xlinker '
8905 if test -n "$lt_prog_compiler_pic"; then
8906 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8911 # PORTME Check for flag to pass linker flags through the system compiler.
8914 lt_prog_compiler_wl='-Wl,'
8915 if test "$host_cpu" = ia64; then
8916 # AIX 5 now supports IA64 processor
8917 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8923 mingw* | cygwin* | pw32* | os2* | cegcc*)
8924 # This hack is so that the source file can tell whether it is being
8925 # built for inclusion in a dll (and should export symbols for example).
8926 lt_prog_compiler_pic='-DDLL_EXPORT'
8929 hpux9* | hpux10* | hpux11*)
8930 lt_prog_compiler_wl='-Wl,'
8931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8938 lt_prog_compiler_pic='+Z'
8941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8942 lt_prog_compiler_static='${wl}-a ${wl}archive'
8945 irix5* | irix6* | nonstopux*)
8946 lt_prog_compiler_wl='-Wl,'
8947 # PIC (with -KPIC) is the default.
8948 lt_prog_compiler_static='-non_shared'
8951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8952 case $cc_basename in
8953 # old Intel for x86_64 which still supported -KPIC.
8955 lt_prog_compiler_wl='-Wl,'
8956 lt_prog_compiler_pic='-KPIC'
8957 lt_prog_compiler_static='-static'
8959 # icc used to be incompatible with GCC.
8960 # ICC 10 doesn't accept -KPIC any more.
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-fPIC'
8964 lt_prog_compiler_static='-static'
8966 # Lahey Fortran 8.1.
8968 lt_prog_compiler_wl='-Wl,'
8969 lt_prog_compiler_pic='--shared'
8970 lt_prog_compiler_static='--static'
8973 # NAG Fortran compiler
8974 lt_prog_compiler_wl='-Wl,-Wl,,'
8975 lt_prog_compiler_pic='-PIC'
8976 lt_prog_compiler_static='-Bstatic'
8978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8979 # Portland Group compilers (*not* the Pentium gcc compiler,
8980 # which looks to be a dead project)
8981 lt_prog_compiler_wl='-Wl,'
8982 lt_prog_compiler_pic='-fpic'
8983 lt_prog_compiler_static='-Bstatic'
8986 lt_prog_compiler_wl='-Wl,'
8987 # All Alpha code is PIC.
8988 lt_prog_compiler_static='-non_shared'
8990 xl* | bgxl* | bgf* | mpixl*)
8991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_pic='-qpic'
8994 lt_prog_compiler_static='-qstaticlink'
8997 case `$CC -V 2>&1 | sed 5q` in
8998 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 lt_prog_compiler_wl=''
9004 *Sun\ F* | *Sun*Fortran*)
9005 lt_prog_compiler_pic='-KPIC'
9006 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_wl='-Qoption ld '
9011 lt_prog_compiler_pic='-KPIC'
9012 lt_prog_compiler_static='-Bstatic'
9013 lt_prog_compiler_wl='-Wl,'
9015 *Intel*\ [CF]*Compiler*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-fPIC'
9018 lt_prog_compiler_static='-static'
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-fpic'
9023 lt_prog_compiler_static='-Bstatic'
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9036 # QNX uses GNU C++, but need to define -shared option too, otherwise
9038 lt_prog_compiler_pic='-fPIC -shared'
9041 osf3* | osf4* | osf5*)
9042 lt_prog_compiler_wl='-Wl,'
9043 # All OSF/1 code is PIC.
9044 lt_prog_compiler_static='-non_shared'
9048 lt_prog_compiler_static='-non_shared'
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9054 case $cc_basename in
9055 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9056 lt_prog_compiler_wl='-Qoption ld ';;
9058 lt_prog_compiler_wl='-Wl,';;
9063 lt_prog_compiler_wl='-Qoption ld '
9064 lt_prog_compiler_pic='-PIC'
9065 lt_prog_compiler_static='-Bstatic'
9068 sysv4 | sysv4.2uw2* | sysv4.3*)
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_pic='-KPIC'
9071 lt_prog_compiler_static='-Bstatic'
9075 if test -d /usr/nec ;then
9076 lt_prog_compiler_pic='-Kconform_pic'
9077 lt_prog_compiler_static='-Bstatic'
9081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_can_build_shared=no
9093 lt_prog_compiler_pic='-pic'
9094 lt_prog_compiler_static='-Bstatic'
9098 lt_prog_compiler_can_build_shared=no
9104 # For platforms which do not support PIC, -DPIC is meaningless:
9106 lt_prog_compiler_pic=
9109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9114 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9115 if ${lt_cv_prog_compiler_pic+:} false; then :
9116 $as_echo_n "(cached) " >&6
9118 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9121 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9122 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9125 # Check to make sure the PIC flag actually works.
9127 if test -n "$lt_prog_compiler_pic"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9129 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9130 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9131 $as_echo_n "(cached) " >&6
9133 lt_cv_prog_compiler_pic_works=no
9134 ac_outfile=conftest.$ac_objext
9135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9137 # Insert the option either (1) after the last *FLAGS variable, or
9138 # (2) before a word containing "conftest.", or (3) at the end.
9139 # Note that $ac_compile itself does not contain backslashes and begins
9140 # with a dollar sign (not a hyphen), so the echo should work correctly.
9141 # The option is referenced via a variable to avoid confusing sed.
9142 lt_compile=`echo "$ac_compile" | $SED \
9143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9145 -e 's:$: $lt_compiler_flag:'`
9146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9147 (eval "$lt_compile" 2>conftest.err)
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 if (exit $ac_status) && test -s "$ac_outfile"; then
9152 # The compiler can only warn and ignore the option if not recognized
9153 # So say no if there are warnings other than the usual output.
9154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_pic_works=yes
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9164 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9166 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9167 case $lt_prog_compiler_pic in
9169 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9172 lt_prog_compiler_pic=
9173 lt_prog_compiler_can_build_shared=no
9189 # Check to make sure the static flag actually works.
9191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9194 if ${lt_cv_prog_compiler_static_works+:} false; then :
9195 $as_echo_n "(cached) " >&6
9197 lt_cv_prog_compiler_static_works=no
9198 save_LDFLAGS="$LDFLAGS"
9199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202 # The linker can only warn and ignore the option if not recognized
9203 # So say no if there are warnings
9204 if test -s conftest.err; then
9205 # Append any errors to the config.log.
9206 cat conftest.err 1>&5
9207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209 if diff conftest.exp conftest.er2 >/dev/null; then
9210 lt_cv_prog_compiler_static_works=yes
9213 lt_cv_prog_compiler_static_works=yes
9217 LDFLAGS="$save_LDFLAGS"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9221 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9223 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9226 lt_prog_compiler_static=
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9237 if ${lt_cv_prog_compiler_c_o+:} false; then :
9238 $as_echo_n "(cached) " >&6
9240 lt_cv_prog_compiler_c_o=no
9241 $RM -r conftest 2>/dev/null
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247 lt_compiler_flag="-o out/conftest2.$ac_objext"
9248 # Insert the option either (1) after the last *FLAGS variable, or
9249 # (2) before a word containing "conftest.", or (3) at the end.
9250 # Note that $ac_compile itself does not contain backslashes and begins
9251 # with a dollar sign (not a hyphen), so the echo should work correctly.
9252 lt_compile=`echo "$ac_compile" | $SED \
9253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255 -e 's:$: $lt_compiler_flag:'`
9256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257 (eval "$lt_compile" 2>out/conftest.err)
9259 cat out/conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9263 # The compiler can only warn and ignore the option if not recognized
9264 # So say no if there are warnings
9265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9268 lt_cv_prog_compiler_c_o=yes
9273 # SGI C++ compiler will create directory out/ii_files/ for
9274 # template instantiation
9275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9276 $RM out/* && rmdir out
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9283 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9292 if ${lt_cv_prog_compiler_c_o+:} false; then :
9293 $as_echo_n "(cached) " >&6
9295 lt_cv_prog_compiler_c_o=no
9296 $RM -r conftest 2>/dev/null
9300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302 lt_compiler_flag="-o out/conftest2.$ac_objext"
9303 # Insert the option either (1) after the last *FLAGS variable, or
9304 # (2) before a word containing "conftest.", or (3) at the end.
9305 # Note that $ac_compile itself does not contain backslashes and begins
9306 # with a dollar sign (not a hyphen), so the echo should work correctly.
9307 lt_compile=`echo "$ac_compile" | $SED \
9308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310 -e 's:$: $lt_compiler_flag:'`
9311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312 (eval "$lt_compile" 2>out/conftest.err)
9314 cat out/conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9318 # The compiler can only warn and ignore the option if not recognized
9319 # So say no if there are warnings
9320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9323 lt_cv_prog_compiler_c_o=yes
9328 # SGI C++ compiler will create directory out/ii_files/ for
9329 # template instantiation
9330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9331 $RM out/* && rmdir out
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9343 hard_links="nottested"
9344 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9345 # do not overwrite the value of need_locks provided by the user
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9347 $as_echo_n "checking if we can lock with hard links... " >&6; }
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9352 ln conftest.a conftest.b 2>&5 || hard_links=no
9353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9355 $as_echo "$hard_links" >&6; }
9356 if test "$hard_links" = no; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9358 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9371 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9374 allow_undefined_flag=
9375 always_export_symbols=no
9377 archive_expsym_cmds=
9378 compiler_needs_object=no
9379 enable_shared_with_static_runtimes=no
9380 export_dynamic_flag_spec=
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9382 hardcode_automatic=no
9384 hardcode_direct_absolute=no
9385 hardcode_libdir_flag_spec=
9386 hardcode_libdir_separator=
9388 hardcode_shlibpath_var=unsupported
9390 link_all_deplibs=unknown
9393 old_archive_from_new_cmds=
9394 old_archive_from_expsyms_cmds=
9395 thread_safe_flag_spec=
9396 whole_archive_flag_spec=
9397 # include_expsyms should be a list of space-separated symbols to be *always*
9398 # included in the symbol list
9400 # exclude_expsyms can be an extended regexp of symbols to exclude
9401 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9403 # as well as any symbol that contains `d'.
9404 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9406 # platforms (ab)use it in PIC code, but their linkers get confused if
9407 # the symbol is explicitly referenced. Since portable code cannot
9408 # rely on this symbol name, it's probably fine to never include it in
9409 # preloaded symbol tables.
9410 # Exclude shared library initialization/finalization symbols.
9411 extract_expsyms_cmds=
9414 cygwin* | mingw* | pw32* | cegcc*)
9415 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9416 # When not using gcc, we currently assume that we are using
9417 # Microsoft Visual C++.
9418 if test "$GCC" != yes; then
9423 # we just hope/assume this is gcc and not c89 (= MSVC++)
9433 # On some targets, GNU ld is compatible enough with the native linker
9434 # that we're better off using the native interface for both.
9435 lt_use_gnu_ld_interface=no
9436 if test "$with_gnu_ld" = yes; then
9439 # The AIX port of GNU ld has always aspired to compatibility
9440 # with the native linker. However, as the warning in the GNU ld
9441 # block says, versions before 2.19.5* couldn't really create working
9442 # shared libraries, regardless of the interface used.
9443 case `$LD -v 2>&1` in
9444 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9445 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9446 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9448 lt_use_gnu_ld_interface=yes
9453 lt_use_gnu_ld_interface=yes
9458 if test "$lt_use_gnu_ld_interface" = yes; then
9459 # If archive_cmds runs LD, not CC, wlarc should be empty
9462 # Set some defaults for GNU ld with shared library support. These
9463 # are reset later if shared libraries are not supported. Putting them
9464 # here allows them to be overridden if necessary.
9465 runpath_var=LD_RUN_PATH
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 export_dynamic_flag_spec='${wl}--export-dynamic'
9468 # ancient GNU ld didn't support --whole-archive et. al.
9469 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9470 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9472 whole_archive_flag_spec=
9474 supports_anon_versioning=no
9475 case `$LD -v 2>&1` in
9476 *GNU\ gold*) supports_anon_versioning=yes ;;
9477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9480 *\ 2.11.*) ;; # other 2.11 versions
9481 *) supports_anon_versioning=yes ;;
9484 # See if GNU ld supports shared libraries.
9487 # On AIX/PPC, the GNU linker is very broken
9488 if test "$host_cpu" != ia64; then
9492 *** Warning: the GNU linker, at least up to release 2.19, is reported
9493 *** to be unable to reliably create shared libraries on AIX.
9494 *** Therefore, libtool is disabling shared libraries support. If you
9495 *** really care for shared libraries, you may want to install binutils
9496 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9497 *** You will then need to restart the configuration process.
9506 # see comment about AmigaOS4 .so support
9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508 archive_expsym_cmds=''
9511 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)'
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_minus_L=yes
9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 allow_undefined_flag=unsupported
9521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9522 # support --undefined. This deserves some investigation. FIXME
9523 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 cygwin* | mingw* | pw32* | cegcc*)
9530 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9531 # as there is no search path for DLLs.
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 export_dynamic_flag_spec='${wl}--export-all-symbols'
9534 allow_undefined_flag=unsupported
9535 always_export_symbols=no
9536 enable_shared_with_static_runtimes=yes
9537 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'
9538 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9540 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9542 # If the export-symbols file already is a .def file (1st line
9543 # is EXPORTS), use it as is; otherwise, prepend...
9544 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9545 cp $export_symbols $output_objdir/$soname.def;
9547 echo EXPORTS > $output_objdir/$soname.def;
9548 cat $export_symbols >> $output_objdir/$soname.def;
9550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 link_all_deplibs=yes
9563 hardcode_shlibpath_var=no
9564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565 export_dynamic_flag_spec='${wl}-E'
9566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9567 # Instead, shared libraries are loaded at an image base (0x10000000 by
9568 # default) and relocated if they conflict, which is a slow very memory
9569 # consuming and fragmenting process. To avoid this, we pick a random,
9570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9571 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9573 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'
9576 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9578 if test "$host_os" = linux-dietlibc; then
9579 case $cc_basename in
9580 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9583 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9584 && test "$tmp_diet" = no
9586 tmp_addflag=' $pic_flag'
9587 tmp_sharedflag='-shared'
9588 case $cc_basename,$host_cpu in
9589 pgcc*) # Portland Group C compiler
9590 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'
9591 tmp_addflag=' $pic_flag'
9593 pgf77* | pgf90* | pgf95* | pgfortran*)
9594 # Portland Group f77 and f90 compilers
9595 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'
9596 tmp_addflag=' $pic_flag -Mnomain' ;;
9597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9598 tmp_addflag=' -i_dynamic' ;;
9599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9600 tmp_addflag=' -i_dynamic -nofor_main' ;;
9601 ifc* | ifort*) # Intel Fortran compiler
9602 tmp_addflag=' -nofor_main' ;;
9603 lf95*) # Lahey Fortran 8.1
9604 whole_archive_flag_spec=
9605 tmp_sharedflag='--shared' ;;
9606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9607 tmp_sharedflag='-qmkshrobj'
9609 nvcc*) # Cuda Compiler Driver 2.2
9610 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'
9611 compiler_needs_object=yes
9614 case `$CC -V 2>&1 | sed 5q` in
9615 *Sun\ C*) # Sun C 5.9
9616 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'
9617 compiler_needs_object=yes
9618 tmp_sharedflag='-G' ;;
9619 *Sun\ F*) # Sun Fortran 8.3
9620 tmp_sharedflag='-G' ;;
9622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 if test "x$supports_anon_versioning" = xyes; then
9625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9627 echo "local: *; };" >> $output_objdir/$libname.ver~
9628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9631 case $cc_basename in
9632 xlf* | bgf* | bgxlf* | mpixlf*)
9633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9637 if test "x$supports_anon_versioning" = xyes; then
9638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9640 echo "local: *; };" >> $output_objdir/$libname.ver~
9641 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9666 *** create shared libraries on Solaris systems. Therefore, libtool
9667 *** is disabling shared libraries support. We urge you to upgrade GNU
9668 *** binutils to release 2.9.1 or newer. Another option is to modify
9669 *** your PATH or compiler configuration so that the native linker is
9670 *** used, and then restart.
9673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9682 case `$LD -v 2>&1` in
9683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9688 *** reliably create shared libraries on SCO systems. Therefore, libtool
9689 *** is disabling shared libraries support. We urge you to upgrade GNU
9690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9691 *** your PATH or compiler configuration so that the native linker is
9692 *** used, and then restart.
9697 # For security reasons, it is highly recommended that you always
9698 # use absolute paths for naming shared libraries, and exclude the
9699 # DT_RUNPATH tag from executables and libraries. But doing so
9700 # requires that you compile everything twice, which is a pain.
9701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_shlibpath_var=no
9720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729 if test "$ld_shlibs" = no; then
9731 hardcode_libdir_flag_spec=
9732 export_dynamic_flag_spec=
9733 whole_archive_flag_spec=
9736 # PORTME fill in a description of your system's linker (not GNU ld)
9739 allow_undefined_flag=unsupported
9740 always_export_symbols=yes
9741 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'
9742 # Note: this linker hardcodes the directories in LIBPATH if there
9743 # are no directories specified by -L.
9744 hardcode_minus_L=yes
9745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9746 # Neither direct hardcoding nor static linking is supported with a
9748 hardcode_direct=unsupported
9753 if test "$host_cpu" = ia64; then
9754 # On IA64, the linker does run time linking by default, so we don't
9755 # have to do anything special.
9756 aix_use_runtimelinking=no
9757 exp_sym_flag='-Bexport'
9760 # If we're using GNU nm, then we don't want the "-C" option.
9761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9762 # Also, AIX nm treats weak defined symbols like other global
9763 # defined symbols, whereas GNU nm marks them as "W".
9764 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9765 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9767 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9769 aix_use_runtimelinking=no
9771 # Test if we are trying to use run time linking or normal
9772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9773 # need to do runtime linking.
9774 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9775 for ld_flag in $LDFLAGS; do
9776 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9777 aix_use_runtimelinking=yes
9784 exp_sym_flag='-bexport'
9785 no_entry_flag='-bnoentry'
9788 # When large executables or shared objects are built, AIX ld can
9789 # have problems creating the table of contents. If linking a library
9790 # or program results in "error TOC overflow" add -mminimal-toc to
9791 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9792 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9796 hardcode_direct_absolute=yes
9797 hardcode_libdir_separator=':'
9798 link_all_deplibs=yes
9799 file_list_spec='${wl}-f,'
9801 if test "$GCC" = yes; then
9802 case $host_os in aix4.[012]|aix4.[012].*)
9803 # We only want to do this on AIX 4.2 and lower, the check
9804 # below for broken collect2 doesn't work under 4.3+
9805 collect2name=`${CC} -print-prog-name=collect2`
9806 if test -f "$collect2name" &&
9807 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9809 # We have reworked collect2
9812 # We have old collect2
9813 hardcode_direct=unsupported
9814 # It fails to find uninstalled libraries when the uninstalled
9815 # path is not listed in the libpath. Setting hardcode_minus_L
9816 # to unsupported forces relinking
9817 hardcode_minus_L=yes
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 hardcode_libdir_separator=
9823 shared_flag='-shared'
9824 if test "$aix_use_runtimelinking" = yes; then
9825 shared_flag="$shared_flag "'${wl}-G'
9829 if test "$host_cpu" = ia64; then
9830 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9831 # chokes on -Wl,-G. The following line is correct:
9834 if test "$aix_use_runtimelinking" = yes; then
9835 shared_flag='${wl}-G'
9837 shared_flag='${wl}-bM:SRE'
9842 export_dynamic_flag_spec='${wl}-bexpall'
9843 # It seems that -bexpall does not export symbols beginning with
9844 # underscore (_), so it is better to generate a list of symbols to export.
9845 always_export_symbols=yes
9846 if test "$aix_use_runtimelinking" = yes; then
9847 # Warning - without using the other runtime loading flags (-brtl),
9848 # -berok will link without error, but may produce a broken library.
9849 allow_undefined_flag='-berok'
9850 # Determine the default libpath from the value encoded in an
9852 if test "${lt_cv_aix_libpath+set}" = set; then
9853 aix_libpath=$lt_cv_aix_libpath
9855 if ${lt_cv_aix_libpath_+:} false; then :
9856 $as_echo_n "(cached) " >&6
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9869 if ac_fn_c_try_link "$LINENO"; then :
9871 lt_aix_libpath_sed='
9872 /Import File Strings/,/^$/ {
9874 s/^0 *\([^ ]*\) *$/\1/
9878 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879 # Check for a 64-bit object if we didn't find anything.
9880 if test -z "$lt_cv_aix_libpath_"; then
9881 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9884 rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 if test -z "$lt_cv_aix_libpath_"; then
9887 lt_cv_aix_libpath_="/usr/lib:/lib"
9892 aix_libpath=$lt_cv_aix_libpath_
9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9898 if test "$host_cpu" = ia64; then
9899 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9900 allow_undefined_flag="-z nodefs"
9901 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"
9903 # Determine the default libpath from the value encoded in an
9905 if test "${lt_cv_aix_libpath+set}" = set; then
9906 aix_libpath=$lt_cv_aix_libpath
9908 if ${lt_cv_aix_libpath_+:} false; then :
9909 $as_echo_n "(cached) " >&6
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9922 if ac_fn_c_try_link "$LINENO"; then :
9924 lt_aix_libpath_sed='
9925 /Import File Strings/,/^$/ {
9927 s/^0 *\([^ ]*\) *$/\1/
9931 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9932 # Check for a 64-bit object if we didn't find anything.
9933 if test -z "$lt_cv_aix_libpath_"; then
9934 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9937 rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939 if test -z "$lt_cv_aix_libpath_"; then
9940 lt_cv_aix_libpath_="/usr/lib:/lib"
9945 aix_libpath=$lt_cv_aix_libpath_
9948 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9949 # Warning - without using the other run time loading flags,
9950 # -berok will link without error, but may produce a broken library.
9951 no_undefined_flag=' ${wl}-bernotok'
9952 allow_undefined_flag=' ${wl}-berok'
9953 if test "$with_gnu_ld" = yes; then
9954 # We only use this code for GNU lds that support --whole-archive.
9955 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9957 # Exported symbols can be pulled into shared objects from archives
9958 whole_archive_flag_spec='$convenience'
9960 archive_cmds_need_lc=yes
9961 # This is similar to how AIX traditionally builds its shared libraries.
9962 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9970 # see comment about AmigaOS4 .so support
9971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 archive_expsym_cmds=''
9975 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)'
9976 hardcode_libdir_flag_spec='-L$libdir'
9977 hardcode_minus_L=yes
9983 export_dynamic_flag_spec=-rdynamic
9986 cygwin* | mingw* | pw32* | cegcc*)
9987 # When not using gcc, we currently assume that we are using
9988 # Microsoft Visual C++.
9989 # hardcode_libdir_flag_spec is actually meaningless, as there is
9990 # no search path for DLLs.
9991 case $cc_basename in
9994 hardcode_libdir_flag_spec=' '
9995 allow_undefined_flag=unsupported
9996 always_export_symbols=yes
9998 # Tell ltmain to make .lib files, not .a files.
10000 # Tell ltmain to make .dll files, not .so files.
10002 # FIXME: Setting linknames here is a bad hack.
10003 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10004 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10005 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10007 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10009 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10011 # The linker will not automatically build a static lib if we build a DLL.
10012 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10013 enable_shared_with_static_runtimes=yes
10014 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10017 old_postinstall_cmds='chmod 644 $oldlib'
10018 postlink_cmds='lt_outputfile="@OUTPUT@"~
10019 lt_tool_outputfile="@TOOL_OUTPUT@"~
10020 case $lt_outputfile in
10023 lt_outputfile="$lt_outputfile.exe"
10024 lt_tool_outputfile="$lt_tool_outputfile.exe"
10027 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10028 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10029 $RM "$lt_outputfile.manifest";
10033 # Assume MSVC wrapper
10034 hardcode_libdir_flag_spec=' '
10035 allow_undefined_flag=unsupported
10036 # Tell ltmain to make .lib files, not .a files.
10038 # Tell ltmain to make .dll files, not .so files.
10040 # FIXME: Setting linknames here is a bad hack.
10041 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10042 # The linker will automatically build a .lib file if we build a DLL.
10043 old_archive_from_new_cmds='true'
10044 # FIXME: Should let the user specify the lib program.
10045 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10046 enable_shared_with_static_runtimes=yes
10051 darwin* | rhapsody*)
10054 archive_cmds_need_lc=no
10056 hardcode_automatic=yes
10057 hardcode_shlibpath_var=unsupported
10058 if test "$lt_cv_ld_force_load" = "yes"; then
10059 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\"`'
10062 whole_archive_flag_spec=''
10064 link_all_deplibs=yes
10065 allow_undefined_flag="$_lt_dar_allow_undefined"
10066 case $cc_basename in
10067 ifort*) _lt_dar_can_shared=yes ;;
10068 *) _lt_dar_can_shared=$GCC ;;
10070 if test "$_lt_dar_can_shared" = "yes"; then
10071 output_verbose_link_cmd=func_echo_all
10072 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10073 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10074 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}"
10075 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}"
10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_libdir_flag_spec='-L$libdir'
10086 hardcode_shlibpath_var=no
10089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10090 # support. Future versions do this automatically, but an explicit c++rt0.o
10091 # does not break anything, and helps significantly (at the cost of a little
10094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10095 hardcode_libdir_flag_spec='-R$libdir'
10096 hardcode_direct=yes
10097 hardcode_shlibpath_var=no
10100 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_direct=yes
10104 hardcode_minus_L=yes
10105 hardcode_shlibpath_var=no
10108 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10109 freebsd* | dragonfly*)
10110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10111 hardcode_libdir_flag_spec='-R$libdir'
10112 hardcode_direct=yes
10113 hardcode_shlibpath_var=no
10117 if test "$GCC" = yes; then
10118 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10120 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10123 hardcode_libdir_separator=:
10124 hardcode_direct=yes
10126 # hardcode_minus_L: Not really in the search PATH,
10127 # but as the default location of the library.
10128 hardcode_minus_L=yes
10129 export_dynamic_flag_spec='${wl}-E'
10133 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10134 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10136 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10138 if test "$with_gnu_ld" = no; then
10139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141 hardcode_direct=yes
10142 hardcode_direct_absolute=yes
10143 export_dynamic_flag_spec='${wl}-E'
10144 # hardcode_minus_L: Not really in the search PATH,
10145 # but as the default location of the library.
10146 hardcode_minus_L=yes
10151 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10173 # Older versions of the 11.00 compiler do not understand -b yet
10174 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10176 $as_echo_n "checking if $CC understands -b... " >&6; }
10177 if ${lt_cv_prog_compiler__b+:} false; then :
10178 $as_echo_n "(cached) " >&6
10180 lt_cv_prog_compiler__b=no
10181 save_LDFLAGS="$LDFLAGS"
10182 LDFLAGS="$LDFLAGS -b"
10183 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10185 # The linker can only warn and ignore the option if not recognized
10186 # So say no if there are warnings
10187 if test -s conftest.err; then
10188 # Append any errors to the config.log.
10189 cat conftest.err 1>&5
10190 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10192 if diff conftest.exp conftest.er2 >/dev/null; then
10193 lt_cv_prog_compiler__b=yes
10196 lt_cv_prog_compiler__b=yes
10200 LDFLAGS="$save_LDFLAGS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10204 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10206 if test x"$lt_cv_prog_compiler__b" = xyes; then
10207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10215 if test "$with_gnu_ld" = no; then
10216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10217 hardcode_libdir_separator=:
10222 hardcode_shlibpath_var=no
10225 hardcode_direct=yes
10226 hardcode_direct_absolute=yes
10227 export_dynamic_flag_spec='${wl}-E'
10229 # hardcode_minus_L: Not really in the search PATH,
10230 # but as the default location of the library.
10231 hardcode_minus_L=yes
10237 irix5* | irix6* | nonstopux*)
10238 if test "$GCC" = yes; then
10239 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'
10240 # Try to use the -exported_symbol ld option, if it does not
10241 # work, assume that -exports_file does not work either and
10242 # implicitly export all symbols.
10243 # This should be the same for all languages, so no per-tag cache variable.
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10245 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10246 if ${lt_cv_irix_exported_symbol+:} false; then :
10247 $as_echo_n "(cached) " >&6
10249 save_LDFLAGS="$LDFLAGS"
10250 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 int foo (void) { return 0; }
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 lt_cv_irix_exported_symbol=yes
10258 lt_cv_irix_exported_symbol=no
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LDFLAGS="$save_LDFLAGS"
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10265 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10266 if test "$lt_cv_irix_exported_symbol" = yes; then
10267 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'
10270 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'
10271 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'
10273 archive_cmds_need_lc='no'
10274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275 hardcode_libdir_separator=:
10277 link_all_deplibs=yes
10281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10286 hardcode_libdir_flag_spec='-R$libdir'
10287 hardcode_direct=yes
10288 hardcode_shlibpath_var=no
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_direct=yes
10294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10295 hardcode_libdir_separator=:
10296 hardcode_shlibpath_var=no
10303 if test -f /usr/libexec/ld.so; then
10304 hardcode_direct=yes
10305 hardcode_shlibpath_var=no
10306 hardcode_direct_absolute=yes
10307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10311 export_dynamic_flag_spec='${wl}-E'
10314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_libdir_flag_spec='-R$libdir'
10319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10330 hardcode_libdir_flag_spec='-L$libdir'
10331 hardcode_minus_L=yes
10332 allow_undefined_flag=unsupported
10333 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10334 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10338 if test "$GCC" = yes; then
10339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10340 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'
10342 allow_undefined_flag=' -expect_unresolved \*'
10343 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'
10345 archive_cmds_need_lc='no'
10346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10347 hardcode_libdir_separator=:
10350 osf4* | osf5*) # as osf3* with the addition of -msym flag
10351 if test "$GCC" = yes; then
10352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10353 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'
10354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10356 allow_undefined_flag=' -expect_unresolved \*'
10357 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'
10358 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~
10359 $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'
10361 # Both c and cxx compiler support -rpath directly
10362 hardcode_libdir_flag_spec='-rpath $libdir'
10364 archive_cmds_need_lc='no'
10365 hardcode_libdir_separator=:
10369 no_undefined_flag=' -z defs'
10370 if test "$GCC" = yes; then
10372 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10374 $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'
10376 case `$CC -V 2>&1` in
10379 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10385 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10387 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10391 hardcode_libdir_flag_spec='-R$libdir'
10392 hardcode_shlibpath_var=no
10394 solaris2.[0-5] | solaris2.[0-5].*) ;;
10396 # The compiler driver will combine and reorder linker options,
10397 # but understands `-z linker_flag'. GCC discards it without `$wl',
10398 # but is careful enough not to reorder.
10399 # Supported since Solaris 2.6 (maybe 2.5.1?)
10400 if test "$GCC" = yes; then
10401 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10403 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10407 link_all_deplibs=yes
10411 if test "x$host_vendor" = xsequent; then
10412 # Use $CC to link under sequent, because it throws in some extra .o
10413 # files that make .init and .fini sections work.
10414 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10416 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10418 hardcode_libdir_flag_spec='-L$libdir'
10419 hardcode_direct=yes
10420 hardcode_minus_L=yes
10421 hardcode_shlibpath_var=no
10425 case $host_vendor in
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_direct=yes # is this really true???
10431 ## LD is ld it makes a PLAMLIB
10432 ## CC just makes a GrossModule.
10433 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10434 reload_cmds='$CC -r -o $output$reload_objs'
10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10442 runpath_var='LD_RUN_PATH'
10443 hardcode_shlibpath_var=no
10447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10448 hardcode_shlibpath_var=no
10449 export_dynamic_flag_spec='-Bexport'
10453 if test -d /usr/nec; then
10454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455 hardcode_shlibpath_var=no
10456 runpath_var=LD_RUN_PATH
10457 hardcode_runpath_var=yes
10462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10463 no_undefined_flag='${wl}-z,text'
10464 archive_cmds_need_lc=no
10465 hardcode_shlibpath_var=no
10466 runpath_var='LD_RUN_PATH'
10468 if test "$GCC" = yes; then
10469 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477 sysv5* | sco3.2v5* | sco5v6*)
10478 # Note: We can NOT use -z defs as we might desire, because we do not
10479 # link with -lc, and that would cause any symbols used from libc to
10480 # always be unresolved, which means just about no library would
10481 # ever link correctly. If we're not using GNU ld we use -z text
10482 # though, which does catch some bad symbols but isn't as heavy-handed
10484 no_undefined_flag='${wl}-z,text'
10485 allow_undefined_flag='${wl}-z,nodefs'
10486 archive_cmds_need_lc=no
10487 hardcode_shlibpath_var=no
10488 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10489 hardcode_libdir_separator=':'
10490 link_all_deplibs=yes
10491 export_dynamic_flag_spec='${wl}-Bexport'
10492 runpath_var='LD_RUN_PATH'
10494 if test "$GCC" = yes; then
10495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10505 hardcode_libdir_flag_spec='-L$libdir'
10506 hardcode_shlibpath_var=no
10514 if test x$host_vendor = xsni; then
10516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10517 export_dynamic_flag_spec='${wl}-Blargedynsym'
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10524 $as_echo "$ld_shlibs" >&6; }
10525 test "$ld_shlibs" = no && can_build_shared=no
10527 with_gnu_ld=$with_gnu_ld
10544 # Do we need to explicitly link libc?
10546 case "x$archive_cmds_need_lc" in
10548 # Assume -lc should be added
10549 archive_cmds_need_lc=yes
10551 if test "$enable_shared" = yes && test "$GCC" = yes; then
10552 case $archive_cmds in
10554 # FIXME: we may have to deal with multi-command sequences.
10557 # Test whether the compiler implicitly links with -lc since on some
10558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10559 # to ld, don't add -lc before -lgcc.
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10561 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10562 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10563 $as_echo_n "(cached) " >&6
10566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10569 (eval $ac_compile) 2>&5
10571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10572 test $ac_status = 0; } 2>conftest.err; then
10575 libobjs=conftest.$ac_objext
10577 wl=$lt_prog_compiler_wl
10578 pic_flag=$lt_prog_compiler_pic
10584 lt_save_allow_undefined_flag=$allow_undefined_flag
10585 allow_undefined_flag=
10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10587 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; }
10592 lt_cv_archive_cmds_need_lc=no
10594 lt_cv_archive_cmds_need_lc=yes
10596 allow_undefined_flag=$lt_save_allow_undefined_flag
10598 cat conftest.err 1>&5
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10604 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10605 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10764 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10766 if test "$GCC" = yes; then
10768 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10769 *) lt_awk_arg="/^libraries:/" ;;
10772 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10773 *) lt_sed_strip_eq="s,=/,/,g" ;;
10775 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10776 case $lt_search_path_spec in
10778 # if the path contains ";" then we assume it to be the separator
10779 # otherwise default to the standard path separator (i.e. ":") - it is
10780 # assumed that no part of a normal pathname contains ";" but that should
10781 # okay in the real world where ";" in dirpaths is itself problematic.
10782 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10785 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10788 # Ok, now we have the path, separated by spaces, we can step through it
10789 # and add multilib dir if necessary.
10790 lt_tmp_lt_search_path_spec=
10791 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10792 for lt_sys_path in $lt_search_path_spec; do
10793 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10794 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10796 test -d "$lt_sys_path" && \
10797 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10800 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10801 BEGIN {RS=" "; FS="/|\n";} {
10804 for (lt_i = NF; lt_i > 0; lt_i--) {
10805 if ($lt_i != "" && $lt_i != ".") {
10806 if ($lt_i == "..") {
10809 if (lt_count == 0) {
10810 lt_foo="/" $lt_i lt_foo;
10817 if (lt_foo != "") { lt_freq[lt_foo]++; }
10818 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10820 # AWK program above erroneously prepends '/' to C:/dos/paths
10823 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10824 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10826 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10830 library_names_spec=
10831 libname_spec='lib$name'
10835 postuninstall_cmds=
10839 shlibpath_overrides_runpath=unknown
10841 dynamic_linker="$host_os ld.so"
10842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10843 need_lib_prefix=unknown
10844 hardcode_into_libs=no
10846 # when you set need_version to no, make sure it does not cause -set_version
10847 # flags to be left without arguments
10848 need_version=unknown
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10854 shlibpath_var=LIBPATH
10856 # AIX 3 has no versioning support, so we append a major version to the name.
10857 soname_spec='${libname}${release}${shared_ext}$major'
10861 version_type=linux # correct to gnu/linux during the next big refactor
10864 hardcode_into_libs=yes
10865 if test "$host_cpu" = ia64; then
10866 # AIX 5 supports IA64
10867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10868 shlibpath_var=LD_LIBRARY_PATH
10870 # With GCC up to 2.95.x, collect2 would create an import file
10871 # for dependence libraries. The import file would start with
10872 # the line `#! .'. This would cause the generated library to
10873 # depend on `.', always an invalid library. This was fixed in
10874 # development snapshots of GCC prior to 3.0.
10876 aix4 | aix4.[01] | aix4.[01].*)
10877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10879 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10882 can_build_shared=no
10886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10887 # soname into executable. Probably we can add versioning support to
10888 # collect2, so additional links can be useful in future.
10889 if test "$aix_use_runtimelinking" = yes; then
10890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10891 # instead of lib<name>.a to let people know that these are not
10892 # typical AIX shared libraries.
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 # We preserve .a as extension for shared libraries through AIX4.2
10896 # and later when we are not doing run time linking.
10897 library_names_spec='${libname}${release}.a $libname.a'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LIBPATH
10907 # Since July 2007 AmigaOS4 officially supports .so libraries.
10908 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 library_names_spec='$libname.ixlibrary $libname.a'
10913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10914 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10920 library_names_spec='${libname}${shared_ext}'
10921 dynamic_linker="$host_os ld.so"
10922 shlibpath_var=LIBRARY_PATH
10926 version_type=linux # correct to gnu/linux during the next big refactor
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10934 # the default ld.so.conf also contains /usr/contrib/lib and
10935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10936 # libtool to hard-code these into programs
10939 cygwin* | mingw* | pw32* | cegcc*)
10940 version_type=windows
10945 case $GCC,$cc_basename in
10948 library_names_spec='$libname.dll.a'
10949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950 postinstall_cmds='base_file=`basename \${file}`~
10951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952 dldir=$destdir/`dirname \$dlpath`~
10953 test -d \$dldir || mkdir -p \$dldir~
10954 $install_prog $dir/$dlname \$dldir/$dlname~
10955 chmod a+x \$dldir/$dlname~
10956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10960 dlpath=$dir/\$dldll~
10962 shlibpath_overrides_runpath=yes
10966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10972 # MinGW DLLs use traditional 'lib' prefix
10973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10976 # pw32 DLLs use 'pw' prefix rather than 'lib'
10977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10980 dynamic_linker='Win32 ld.exe'
10985 libname_spec='$name'
10986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10987 library_names_spec='${libname}.dll.lib'
10991 sys_lib_search_path_spec=
10994 for lt_path in $LIB
10997 # Let DOS variable expansion print the short 8.3 style file name.
10998 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10999 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11002 # Convert to MSYS style.
11003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11006 # Convert to unix form, then to dos form, then back to unix form
11007 # but this time dos style (no spaces!) so that the unix form looks
11008 # like /cygdrive/c/PROGRA~1:/cygdr...
11009 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11010 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11011 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11014 sys_lib_search_path_spec="$LIB"
11015 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11016 # It is most probably a Windows format PATH.
11017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11021 # FIXME: find the short name or the path components, as spaces are
11022 # common. (e.g. "Program Files" -> "PROGRA~1")
11026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027 postinstall_cmds='base_file=`basename \${file}`~
11028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11029 dldir=$destdir/`dirname \$dlpath`~
11030 test -d \$dldir || mkdir -p \$dldir~
11031 $install_prog $dir/$dlname \$dldir/$dlname'
11032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033 dlpath=$dir/\$dldll~
11035 shlibpath_overrides_runpath=yes
11036 dynamic_linker='Win32 link.exe'
11040 # Assume MSVC wrapper
11041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11042 dynamic_linker='Win32 ld.exe'
11045 # FIXME: first we should search . and the directory the executable is in
11049 darwin* | rhapsody*)
11050 dynamic_linker="$host_os dyld"
11051 version_type=darwin
11054 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11055 soname_spec='${libname}${release}${major}$shared_ext'
11056 shlibpath_overrides_runpath=yes
11057 shlibpath_var=DYLD_LIBRARY_PATH
11058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11060 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11065 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11073 freebsd* | dragonfly*)
11074 # DragonFly does not have aout. When/if they implement a new
11075 # versioning mechanism, adjust this.
11076 if test -x /usr/bin/objformat; then
11077 objformat=`/usr/bin/objformat`
11080 freebsd[23].*) objformat=aout ;;
11081 *) objformat=elf ;;
11084 version_type=freebsd-$objformat
11085 case $version_type in
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11096 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11101 freebsd3.[01]* | freebsdelf3.[01]*)
11102 shlibpath_overrides_runpath=yes
11103 hardcode_into_libs=yes
11105 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11106 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11107 shlibpath_overrides_runpath=no
11108 hardcode_into_libs=yes
11110 *) # from 4.6 on, and DragonFly
11111 shlibpath_overrides_runpath=yes
11112 hardcode_into_libs=yes
11118 version_type=linux # correct to gnu/linux during the next big refactor
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=no
11125 hardcode_into_libs=yes
11129 version_type=linux # correct to gnu/linux during the next big refactor
11132 dynamic_linker="$host_os runtime_loader"
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11138 hardcode_into_libs=yes
11141 hpux9* | hpux10* | hpux11*)
11142 # Give a soname corresponding to the major version so that dld.sl refuses to
11143 # link against other versions.
11150 hardcode_into_libs=yes
11151 dynamic_linker="$host_os dld.so"
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 if test "X$HPUX_IA64_MODE" = X32; then
11157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11165 hardcode_into_libs=yes
11166 dynamic_linker="$host_os dld.sl"
11167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11176 dynamic_linker="$host_os dld.sl"
11177 shlibpath_var=SHLIB_PATH
11178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11183 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11184 postinstall_cmds='chmod 555 $lib'
11185 # or fails outright, so override atomically:
11186 install_override_mode=555
11190 version_type=linux # correct to gnu/linux during the next big refactor
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11201 irix5* | irix6* | nonstopux*)
11203 nonstopux*) version_type=nonstopux ;;
11205 if test "$lt_cv_prog_gnu_ld" = yes; then
11206 version_type=linux # correct to gnu/linux during the next big refactor
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11216 irix5* | nonstopux*)
11217 libsuff= shlibsuff=
11220 case $LD in # libtool.m4 will add one of these switches to LD
11221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11222 libsuff= shlibsuff= libmagic=32-bit;;
11223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11224 libsuff=32 shlibsuff=N32 libmagic=N32;;
11225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11226 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11227 *) libsuff= shlibsuff= libmagic=never-match;;
11231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11232 shlibpath_overrides_runpath=no
11233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11235 hardcode_into_libs=yes
11238 # No shared lib support for Linux oldld, aout, or coff.
11239 linux*oldld* | linux*aout* | linux*coff*)
11243 # This must be glibc/ELF.
11244 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11245 version_type=linux # correct to gnu/linux during the next big refactor
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=no
11254 # Some binutils ld are patched to set DT_RUNPATH
11255 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11256 $as_echo_n "(cached) " >&6
11258 lt_cv_shlibpath_overrides_runpath=no
11259 save_LDFLAGS=$LDFLAGS
11260 save_libdir=$libdir
11261 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11262 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11276 lt_cv_shlibpath_overrides_runpath=yes
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LDFLAGS=$save_LDFLAGS
11282 libdir=$save_libdir
11286 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11288 # This implies no fast_install, which is unacceptable.
11289 # Some rework will be needed to allow for fast_install
11290 # before this can be enabled.
11291 hardcode_into_libs=yes
11293 # Append ld.so.conf contents to the search path
11294 if test -f /etc/ld.so.conf; then
11295 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' ' '`
11296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11299 # We used to test for /lib/ld.so.1 and disable shared libraries on
11300 # powerpc, because MkLinux only supported shared libraries with the
11301 # GNU dynamic linker. Since this was broken with cross compilers,
11302 # most powerpc-linux boxes support dynamic linking these days and
11303 # people can always --disable-shared, the test was removed, and we
11304 # assume the GNU/Linux dynamic linker is in use.
11305 dynamic_linker='GNU/Linux ld.so'
11312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11315 dynamic_linker='NetBSD (a.out) ld.so'
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 dynamic_linker='NetBSD ld.elf_so'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11323 hardcode_into_libs=yes
11327 version_type=linux # correct to gnu/linux during the next big refactor
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=yes
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=no
11341 hardcode_into_libs=yes
11342 dynamic_linker='ldqnx.so'
11347 sys_lib_dlsearch_path_spec="/usr/lib"
11349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11351 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11352 *) need_version=no ;;
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11359 openbsd2.[89] | openbsd2.[89].*)
11360 shlibpath_overrides_runpath=no
11363 shlibpath_overrides_runpath=yes
11367 shlibpath_overrides_runpath=yes
11372 libname_spec='$name'
11375 library_names_spec='$libname${shared_ext} $libname.a'
11376 dynamic_linker='OS/2 ld.exe'
11377 shlibpath_var=LIBPATH
11380 osf3* | osf4* | osf5*)
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11396 version_type=linux # correct to gnu/linux during the next big refactor
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes
11403 hardcode_into_libs=yes
11404 # ldd complains unless libraries are executable
11405 postinstall_cmds='chmod +x $lib'
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=yes
11414 if test "$with_gnu_ld" = yes; then
11421 version_type=linux # correct to gnu/linux during the next big refactor
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 case $host_vendor in
11427 shlibpath_overrides_runpath=no
11429 runpath_var=LD_RUN_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11444 if test -d /usr/nec ;then
11445 version_type=linux # correct to gnu/linux during the next big refactor
11446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11447 soname_spec='$libname${shared_ext}.$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11453 version_type=freebsd-elf
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11460 hardcode_into_libs=yes
11461 if test "$with_gnu_ld" = yes; then
11462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11471 sys_lib_dlsearch_path_spec='/usr/lib'
11475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11476 version_type=linux # correct to gnu/linux during the next big refactor
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11486 version_type=linux # correct to gnu/linux during the next big refactor
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11497 $as_echo "$dynamic_linker" >&6; }
11498 test "$dynamic_linker" = no && can_build_shared=no
11500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11501 if test "$GCC" = yes; then
11502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11505 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11506 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11508 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11509 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11604 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11606 if test -n "$hardcode_libdir_flag_spec" ||
11607 test -n "$runpath_var" ||
11608 test "X$hardcode_automatic" = "Xyes" ; then
11610 # We can hardcode non-existent directories.
11611 if test "$hardcode_direct" != no &&
11612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11613 # have to relink, otherwise we might link with an installed library
11614 # when we should be linking with a yet-to-be-installed one
11615 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11616 test "$hardcode_minus_L" != no; then
11617 # Linking always hardcodes the temporary library directory.
11618 hardcode_action=relink
11620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11621 hardcode_action=immediate
11624 # We cannot hardcode anything, or else we can only hardcode existing
11626 hardcode_action=unsupported
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11629 $as_echo "$hardcode_action" >&6; }
11631 if test "$hardcode_action" = relink ||
11632 test "$inherit_rpath" = yes; then
11633 # Fast installation is not supported
11634 enable_fast_install=no
11635 elif test "$shlibpath_overrides_runpath" = yes ||
11636 test "$enable_shared" = no; then
11637 # Fast installation is not necessary
11638 enable_fast_install=needless
11646 if test "x$enable_dlopen" != xyes; then
11647 enable_dlopen=unknown
11648 enable_dlopen_self=unknown
11649 enable_dlopen_self_static=unknown
11656 lt_cv_dlopen="load_add_on"
11658 lt_cv_dlopen_self=yes
11661 mingw* | pw32* | cegcc*)
11662 lt_cv_dlopen="LoadLibrary"
11667 lt_cv_dlopen="dlopen"
11672 # if libdl is installed we need to link against it
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11675 if ${ac_cv_lib_dl_dlopen+:} false; then :
11676 $as_echo_n "(cached) " >&6
11678 ac_check_lib_save_LIBS=$LIBS
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_lib_dl_dlopen=yes
11701 ac_cv_lib_dl_dlopen=no
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11713 lt_cv_dlopen="dyld"
11715 lt_cv_dlopen_self=yes
11722 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11723 if test "x$ac_cv_func_shl_load" = xyes; then :
11724 lt_cv_dlopen="shl_load"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11727 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11728 if ${ac_cv_lib_dld_shl_load+:} false; then :
11729 $as_echo_n "(cached) " >&6
11731 ac_check_lib_save_LIBS=$LIBS
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11746 return shl_load ();
11751 if ac_fn_c_try_link "$LINENO"; then :
11752 ac_cv_lib_dld_shl_load=yes
11754 ac_cv_lib_dld_shl_load=no
11756 rm -f core conftest.err conftest.$ac_objext \
11757 conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11761 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11762 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11763 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11765 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11766 if test "x$ac_cv_func_dlopen" = xyes; then :
11767 lt_cv_dlopen="dlopen"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11771 if ${ac_cv_lib_dl_dlopen+:} false; then :
11772 $as_echo_n "(cached) " >&6
11774 ac_check_lib_save_LIBS=$LIBS
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11794 if ac_fn_c_try_link "$LINENO"; then :
11795 ac_cv_lib_dl_dlopen=yes
11797 ac_cv_lib_dl_dlopen=no
11799 rm -f core conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11804 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11805 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11809 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11810 if ${ac_cv_lib_svld_dlopen+:} false; then :
11811 $as_echo_n "(cached) " >&6
11813 ac_check_lib_save_LIBS=$LIBS
11814 LIBS="-lsvld $LIBS"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11818 /* Override any GCC internal prototype to avoid an error.
11819 Use char because int might match the return type of a GCC
11820 builtin and then its argument prototype would still apply. */
11833 if ac_fn_c_try_link "$LINENO"; then :
11834 ac_cv_lib_svld_dlopen=yes
11836 ac_cv_lib_svld_dlopen=no
11838 rm -f core conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11843 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11844 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11848 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11849 if ${ac_cv_lib_dld_dld_link+:} false; then :
11850 $as_echo_n "(cached) " >&6
11852 ac_check_lib_save_LIBS=$LIBS
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11867 return dld_link ();
11872 if ac_fn_c_try_link "$LINENO"; then :
11873 ac_cv_lib_dld_dld_link=yes
11875 ac_cv_lib_dld_dld_link=no
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11882 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11883 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11884 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11905 if test "x$lt_cv_dlopen" != xno; then
11911 case $lt_cv_dlopen in
11913 save_CPPFLAGS="$CPPFLAGS"
11914 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11916 save_LDFLAGS="$LDFLAGS"
11917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11920 LIBS="$lt_cv_dlopen_libs $LIBS"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11923 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11924 if ${lt_cv_dlopen_self+:} false; then :
11925 $as_echo_n "(cached) " >&6
11927 if test "$cross_compiling" = yes; then :
11928 lt_cv_dlopen_self=cross
11930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11931 lt_status=$lt_dlunknown
11932 cat > conftest.$ac_ext <<_LT_EOF
11933 #line $LINENO "configure"
11934 #include "confdefs.h"
11943 # define LT_DLGLOBAL RTLD_GLOBAL
11946 # define LT_DLGLOBAL DL_GLOBAL
11948 # define LT_DLGLOBAL 0
11952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11953 find out it does not work in some platform. */
11954 #ifndef LT_DLLAZY_OR_NOW
11956 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11959 # define LT_DLLAZY_OR_NOW DL_LAZY
11962 # define LT_DLLAZY_OR_NOW RTLD_NOW
11965 # define LT_DLLAZY_OR_NOW DL_NOW
11967 # define LT_DLLAZY_OR_NOW 0
11974 /* When -fvisbility=hidden is used, assume the code has been annotated
11975 correspondingly for the symbols needed. */
11976 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11977 int fnord () __attribute__((visibility("default")));
11980 int fnord () { return 42; }
11983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11984 int status = $lt_dlunknown;
11988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11991 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11992 else puts (dlerror ());
11994 /* dlclose (self); */
12002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12003 (eval $ac_link) 2>&5
12005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12006 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12007 (./conftest; exit; ) >&5 2>/dev/null
12009 case x$lt_status in
12010 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12011 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12012 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12015 # compilation failed
12016 lt_cv_dlopen_self=no
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12024 $as_echo "$lt_cv_dlopen_self" >&6; }
12026 if test "x$lt_cv_dlopen_self" = xyes; then
12027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12029 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12030 if ${lt_cv_dlopen_self_static+:} false; then :
12031 $as_echo_n "(cached) " >&6
12033 if test "$cross_compiling" = yes; then :
12034 lt_cv_dlopen_self_static=cross
12036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12037 lt_status=$lt_dlunknown
12038 cat > conftest.$ac_ext <<_LT_EOF
12039 #line $LINENO "configure"
12040 #include "confdefs.h"
12049 # define LT_DLGLOBAL RTLD_GLOBAL
12052 # define LT_DLGLOBAL DL_GLOBAL
12054 # define LT_DLGLOBAL 0
12058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12059 find out it does not work in some platform. */
12060 #ifndef LT_DLLAZY_OR_NOW
12062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12065 # define LT_DLLAZY_OR_NOW DL_LAZY
12068 # define LT_DLLAZY_OR_NOW RTLD_NOW
12071 # define LT_DLLAZY_OR_NOW DL_NOW
12073 # define LT_DLLAZY_OR_NOW 0
12080 /* When -fvisbility=hidden is used, assume the code has been annotated
12081 correspondingly for the symbols needed. */
12082 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12083 int fnord () __attribute__((visibility("default")));
12086 int fnord () { return 42; }
12089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12090 int status = $lt_dlunknown;
12094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12098 else puts (dlerror ());
12100 /* dlclose (self); */
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12109 (eval $ac_link) 2>&5
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12113 (./conftest; exit; ) >&5 2>/dev/null
12115 case x$lt_status in
12116 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12117 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12118 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12121 # compilation failed
12122 lt_cv_dlopen_self_static=no
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12130 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12133 CPPFLAGS="$save_CPPFLAGS"
12134 LDFLAGS="$save_LDFLAGS"
12139 case $lt_cv_dlopen_self in
12140 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12141 *) enable_dlopen_self=unknown ;;
12144 case $lt_cv_dlopen_self_static in
12145 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12146 *) enable_dlopen_self_static=unknown ;;
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12169 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12170 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12171 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12172 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12174 $as_echo "yes" >&6; }
12176 # FIXME - insert some real tests, host_os isn't really good enough
12179 if test -n "$STRIP" ; then
12180 striplib="$STRIP -x"
12181 old_striplib="$STRIP -S"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183 $as_echo "yes" >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12207 # Report which library types will actually be built
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12209 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12211 $as_echo "$can_build_shared" >&6; }
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12214 $as_echo_n "checking whether to build shared libraries... " >&6; }
12215 test "$can_build_shared" = "no" && enable_shared=no
12217 # On AIX, shared libraries and static libraries use the same namespace, and
12218 # are all built from PIC.
12221 test "$enable_shared" = yes && enable_static=no
12222 if test -n "$RANLIB"; then
12223 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12224 postinstall_cmds='$RANLIB $lib'
12229 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12230 test "$enable_shared" = yes && enable_static=no
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12235 $as_echo "$enable_shared" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12238 $as_echo_n "checking whether to build static libraries... " >&6; }
12239 # Make sure either enable_shared or enable_static is yes.
12240 test "$enable_shared" = yes || enable_static=yes
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12242 $as_echo "$enable_static" >&6; }
12249 ac_cpp='$CPP $CPPFLAGS'
12250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12270 ac_config_commands="$ac_config_commands libtool"
12275 # Only expand once:
12279 ac_cpp='$CXXCPP $CPPFLAGS'
12280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12283 if test -z "$CXX"; then
12284 if test -n "$CCC"; then
12287 if test -n "$ac_tool_prefix"; then
12288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_CXX+:} false; then :
12295 $as_echo_n "(cached) " >&6
12297 if test -n "$CXX"; then
12298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 CXX=$ac_cv_prog_CXX
12318 if test -n "$CXX"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12320 $as_echo "$CXX" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12327 test -n "$CXX" && break
12330 if test -z "$CXX"; then
12332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12334 # Extract the first word of "$ac_prog", so it can be a program name with args.
12335 set dummy $ac_prog; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12339 $as_echo_n "(cached) " >&6
12341 if test -n "$ac_ct_CXX"; then
12342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_prog_ac_ct_CXX="$ac_prog"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12362 if test -n "$ac_ct_CXX"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12364 $as_echo "$ac_ct_CXX" >&6; }
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12371 test -n "$ac_ct_CXX" && break
12374 if test "x$ac_ct_CXX" = x; then
12377 case $cross_compiling:$ac_tool_warned in
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12381 ac_tool_warned=yes ;;
12389 # Provide some information about the compiler.
12390 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12393 for ac_option in --version -v -V -qversion; do
12394 { { ac_try="$ac_compiler $ac_option >&5"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12400 $as_echo "$ac_try_echo"; } >&5
12401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12403 if test -s conftest.err; then
12405 ... rest of stderr output deleted ...
12406 10q' conftest.err >conftest.er1
12407 cat conftest.er1 >&5
12409 rm -f conftest.er1 conftest.err
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12416 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12417 $as_echo_n "(cached) " >&6
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12433 if ac_fn_cxx_try_compile "$LINENO"; then :
12434 ac_compiler_gnu=yes
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12444 if test $ac_compiler_gnu = yes; then
12449 ac_test_CXXFLAGS=${CXXFLAGS+set}
12450 ac_save_CXXFLAGS=$CXXFLAGS
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12453 if ${ac_cv_prog_cxx_g+:} false; then :
12454 $as_echo_n "(cached) " >&6
12456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12457 ac_cxx_werror_flag=yes
12458 ac_cv_prog_cxx_g=no
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12471 if ac_fn_cxx_try_compile "$LINENO"; then :
12472 ac_cv_prog_cxx_g=yes
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12486 if ac_fn_cxx_try_compile "$LINENO"; then :
12489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12502 if ac_fn_cxx_try_compile "$LINENO"; then :
12503 ac_cv_prog_cxx_g=yes
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12514 if test "$ac_test_CXXFLAGS" = set; then
12515 CXXFLAGS=$ac_save_CXXFLAGS
12516 elif test $ac_cv_prog_cxx_g = yes; then
12517 if test "$GXX" = yes; then
12523 if test "$GXX" = yes; then
12530 ac_cpp='$CPP $CPPFLAGS'
12531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535 depcc="$CXX" am_compiler_list=
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12538 $as_echo_n "checking dependency style of $depcc... " >&6; }
12539 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12540 $as_echo_n "(cached) " >&6
12542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12543 # We make a subdir and do the tests there. Otherwise we can end up
12544 # making bogus files that we don't know about and never remove. For
12545 # instance it was reported that on HP-UX the gcc test will end up
12546 # making a dummy file named 'D' -- because '-MD' means "put the output
12548 rm -rf conftest.dir
12550 # Copy depcomp to subdir because otherwise we won't find it if we're
12551 # using a relative directory.
12552 cp "$am_depcomp" conftest.dir
12554 # We will build objects and dependencies in a subdirectory because
12555 # it helps to detect inapplicable dependency modes. For instance
12556 # both Tru64's cc and ICC support -MD to output dependencies as a
12557 # side effect of compilation, but ICC will put the dependencies in
12558 # the current directory while Tru64 will put them in the object
12562 am_cv_CXX_dependencies_compiler_type=none
12563 if test "$am_compiler_list" = ""; then
12564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12566 am__universal=false
12567 case " $depcc " in #(
12568 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12571 for depmode in $am_compiler_list; do
12572 # Setup a source with many dependencies, because some compilers
12573 # like to wrap large dependency lists on column 80 (with \), and
12574 # we should not choose a depcomp mode which is confused by this.
12576 # We need to recreate these files for each test, as the compiler may
12577 # overwrite some of them when testing with obscure command lines.
12578 # This happens at least with the AIX C compiler.
12580 for i in 1 2 3 4 5 6; do
12581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12582 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12583 # Solaris 10 /bin/sh.
12584 echo '/* dummy */' > sub/conftst$i.h
12586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12588 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12589 # mode. It turns out that the SunPro C++ compiler does not properly
12590 # handle '-M -o', and we need to detect this. Also, some Intel
12591 # versions had trouble with output in subdirs.
12592 am__obj=sub/conftest.${OBJEXT-o}
12593 am__minus_obj="-o $am__obj"
12596 # This depmode causes a compiler race in universal mode.
12597 test "$am__universal" = false || continue
12600 # After this tag, mechanisms are not by side-effect, so they'll
12601 # only be used when explicitly requested.
12602 if test "x$enable_dependency_tracking" = xyes; then
12608 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12609 # This compiler won't grok '-c -o', but also, the minuso test has
12610 # not run yet. These depmodes are late enough in the game, and
12611 # so weak that their functioning should not be impacted.
12612 am__obj=conftest.${OBJEXT-o}
12617 if depmode=$depmode \
12618 source=sub/conftest.c object=$am__obj \
12619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12620 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12621 >/dev/null 2>conftest.err &&
12622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12624 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12626 # icc doesn't choke on unknown options, it will just issue warnings
12627 # or remarks (even with -Werror). So we grep stderr for any message
12628 # that says an option was ignored or not supported.
12629 # When given -MP, icc 7.0 and 7.1 complain thusly:
12630 # icc: Command line warning: ignoring option '-M'; no argument required
12631 # The diagnosis changed in icc 8.0:
12632 # icc: Command line remark: option '-MP' not supported
12633 if (grep 'ignoring option' conftest.err ||
12634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12635 am_cv_CXX_dependencies_compiler_type=$depmode
12642 rm -rf conftest.dir
12644 am_cv_CXX_dependencies_compiler_type=none
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12649 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12650 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12653 test "x$enable_dependency_tracking" != xno \
12654 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12655 am__fastdepCXX_TRUE=
12656 am__fastdepCXX_FALSE='#'
12658 am__fastdepCXX_TRUE='#'
12659 am__fastdepCXX_FALSE=
12666 func_stripname_cnf ()
12669 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12670 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12672 } # func_stripname_cnf
12674 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12675 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12676 (test "X$CXX" != "Xg++"))) ; then
12678 ac_cpp='$CXXCPP $CPPFLAGS'
12679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12683 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12684 if test -z "$CXXCPP"; then
12685 if ${ac_cv_prog_CXXCPP+:} false; then :
12686 $as_echo_n "(cached) " >&6
12688 # Double quotes because CXXCPP needs to be expanded
12689 for CXXCPP in "$CXX -E" "/lib/cpp"
12691 ac_preproc_ok=false
12692 for ac_cxx_preproc_warn_flag in '' yes
12694 # Use a header file that comes with gcc, so configuring glibc
12695 # with a fresh cross-compiler works.
12696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12697 # <limits.h> exists even on freestanding compilers.
12698 # On the NeXT, cc -E runs the code through the compiler's parser,
12699 # not just through cpp. "Syntax error" is here to catch this case.
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12703 # include <limits.h>
12705 # include <assert.h>
12709 if ac_fn_cxx_try_cpp "$LINENO"; then :
12712 # Broken: fails on valid input.
12715 rm -f conftest.err conftest.i conftest.$ac_ext
12717 # OK, works on sane cases. Now check whether nonexistent headers
12718 # can be detected and how.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <ac_nonexistent.h>
12723 if ac_fn_cxx_try_cpp "$LINENO"; then :
12724 # Broken: success on invalid input.
12727 # Passes both tests.
12731 rm -f conftest.err conftest.i conftest.$ac_ext
12734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12735 rm -f conftest.i conftest.err conftest.$ac_ext
12736 if $ac_preproc_ok; then :
12741 ac_cv_prog_CXXCPP=$CXXCPP
12744 CXXCPP=$ac_cv_prog_CXXCPP
12746 ac_cv_prog_CXXCPP=$CXXCPP
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12749 $as_echo "$CXXCPP" >&6; }
12750 ac_preproc_ok=false
12751 for ac_cxx_preproc_warn_flag in '' yes
12753 # Use a header file that comes with gcc, so configuring glibc
12754 # with a fresh cross-compiler works.
12755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12756 # <limits.h> exists even on freestanding compilers.
12757 # On the NeXT, cc -E runs the code through the compiler's parser,
12758 # not just through cpp. "Syntax error" is here to catch this case.
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 # include <limits.h>
12764 # include <assert.h>
12768 if ac_fn_cxx_try_cpp "$LINENO"; then :
12771 # Broken: fails on valid input.
12774 rm -f conftest.err conftest.i conftest.$ac_ext
12776 # OK, works on sane cases. Now check whether nonexistent headers
12777 # can be detected and how.
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <ac_nonexistent.h>
12782 if ac_fn_cxx_try_cpp "$LINENO"; then :
12783 # Broken: success on invalid input.
12786 # Passes both tests.
12790 rm -f conftest.err conftest.i conftest.$ac_ext
12793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12794 rm -f conftest.i conftest.err conftest.$ac_ext
12795 if $ac_preproc_ok; then :
12798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12800 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12801 See \`config.log' for more details" "$LINENO" 5; }
12805 ac_cpp='$CPP $CPPFLAGS'
12806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12811 _lt_caught_CXX_error=yes
12815 ac_cpp='$CXXCPP $CPPFLAGS'
12816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12820 archive_cmds_need_lc_CXX=no
12821 allow_undefined_flag_CXX=
12822 always_export_symbols_CXX=no
12823 archive_expsym_cmds_CXX=
12824 compiler_needs_object_CXX=no
12825 export_dynamic_flag_spec_CXX=
12826 hardcode_direct_CXX=no
12827 hardcode_direct_absolute_CXX=no
12828 hardcode_libdir_flag_spec_CXX=
12829 hardcode_libdir_separator_CXX=
12830 hardcode_minus_L_CXX=no
12831 hardcode_shlibpath_var_CXX=unsupported
12832 hardcode_automatic_CXX=no
12833 inherit_rpath_CXX=no
12835 module_expsym_cmds_CXX=
12836 link_all_deplibs_CXX=unknown
12837 old_archive_cmds_CXX=$old_archive_cmds
12838 reload_flag_CXX=$reload_flag
12839 reload_cmds_CXX=$reload_cmds
12840 no_undefined_flag_CXX=
12841 whole_archive_flag_spec_CXX=
12842 enable_shared_with_static_runtimes_CXX=no
12844 # Source file extension for C++ test sources.
12847 # Object file extension for compiled C++ test sources.
12851 # No sense in running all these tests if we already determined that
12852 # the CXX compiler isn't working. Some variables (like enable_shared)
12853 # are currently assumed to apply to all compilers on this platform,
12854 # and will be corrupted by setting them based on a non-working compiler.
12855 if test "$_lt_caught_CXX_error" != yes; then
12856 # Code to be used in simple compile tests
12857 lt_simple_compile_test_code="int some_variable = 0;"
12859 # Code to be used in simple link tests
12860 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12869 # If no C compiler was specified, use CC.
12872 # If no C compiler flags were specified, use CFLAGS.
12873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12875 # Allow CC to be a program name with arguments.
12879 # save warnings/boilerplate of simple test code
12880 ac_outfile=conftest.$ac_objext
12881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12883 _lt_compiler_boilerplate=`cat conftest.err`
12886 ac_outfile=conftest.$ac_objext
12887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12889 _lt_linker_boilerplate=`cat conftest.err`
12893 # Allow CC to be a program name with arguments.
12895 lt_save_CFLAGS=$CFLAGS
12899 lt_save_with_gnu_ld=$with_gnu_ld
12900 lt_save_path_LD=$lt_cv_path_LD
12901 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12902 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12904 $as_unset lt_cv_prog_gnu_ld
12906 if test -n "${lt_cv_path_LDCXX+set}"; then
12907 lt_cv_path_LD=$lt_cv_path_LDCXX
12909 $as_unset lt_cv_path_LD
12911 test -z "${LDCXX+set}" || LD=$LDCXX
12916 for cc_temp in $compiler""; do
12918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12924 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12927 if test -n "$compiler"; then
12928 # We don't want -fno-exception when compiling C++ code, so set the
12929 # no_builtin_flag separately
12930 if test "$GXX" = yes; then
12931 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12933 lt_prog_compiler_no_builtin_flag_CXX=
12936 if test "$GXX" = yes; then
12937 # Set up default GNU C++ configuration
12941 # Check whether --with-gnu-ld was given.
12942 if test "${with_gnu_ld+set}" = set; then :
12943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12949 if test "$GCC" = yes; then
12950 # Check if gcc -print-prog-name=ld gives a path.
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12952 $as_echo_n "checking for ld used by $CC... " >&6; }
12955 # gcc leaves a trailing carriage return which upsets mingw
12956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12961 # Accept absolute paths.
12963 re_direlt='/[^/][^/]*/\.\./'
12964 # Canonicalize the pathname of ld
12965 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12966 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12967 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12969 test -z "$LD" && LD="$ac_prog"
12972 # If it fails, then pretend we aren't using GCC.
12976 # If it is relative, then search for the first ld in PATH.
12977 with_gnu_ld=unknown
12980 elif test "$with_gnu_ld" = yes; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12982 $as_echo_n "checking for GNU ld... " >&6; }
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12985 $as_echo_n "checking for non-GNU ld... " >&6; }
12987 if ${lt_cv_path_LD+:} false; then :
12988 $as_echo_n "(cached) " >&6
12990 if test -z "$LD"; then
12991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12992 for ac_dir in $PATH; do
12994 test -z "$ac_dir" && ac_dir=.
12995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12996 lt_cv_path_LD="$ac_dir/$ac_prog"
12997 # Check to see if the program is GNU ld. I'd rather use --version,
12998 # but apparently some variants of GNU ld only accept -v.
12999 # Break only if it was the GNU/non-GNU ld that we prefer.
13000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13001 *GNU* | *'with BFD'*)
13002 test "$with_gnu_ld" != no && break
13005 test "$with_gnu_ld" != yes && break
13012 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13016 LD="$lt_cv_path_LD"
13017 if test -n "$LD"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13019 $as_echo "$LD" >&6; }
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13027 if ${lt_cv_prog_gnu_ld+:} false; then :
13028 $as_echo_n "(cached) " >&6
13030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13031 case `$LD -v 2>&1 </dev/null` in
13032 *GNU* | *'with BFD'*)
13033 lt_cv_prog_gnu_ld=yes
13036 lt_cv_prog_gnu_ld=no
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13042 with_gnu_ld=$lt_cv_prog_gnu_ld
13050 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13051 # archiving commands below assume that GNU ld is being used.
13052 if test "$with_gnu_ld" = yes; then
13053 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13054 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'
13056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13057 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13059 # If archive_cmds runs LD, not CC, wlarc should be empty
13060 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13061 # investigate it a little bit more. (MM)
13064 # ancient GNU ld didn't support --whole-archive et. al.
13065 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13066 $GREP 'no-whole-archive' > /dev/null; then
13067 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13069 whole_archive_flag_spec_CXX=
13075 # A generic and very simple default shared library creation
13076 # command for GNU C++ for the case where it uses the native
13077 # linker, instead of GNU ld. If possible, this setting should
13078 # overridden to take advantage of the native linker features on
13079 # the platform it is being used on.
13080 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13083 # Commands to make compiler produce verbose output that lists
13084 # what "hidden" libraries, object files and flags are used when
13085 # linking a shared library.
13086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13094 # PORTME: fill in a description of your system's C++ link characteristics
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13100 # FIXME: insert proper C++ library support
13104 if test "$host_cpu" = ia64; then
13105 # On IA64, the linker does run time linking by default, so we don't
13106 # have to do anything special.
13107 aix_use_runtimelinking=no
13108 exp_sym_flag='-Bexport'
13111 aix_use_runtimelinking=no
13113 # Test if we are trying to use run time linking or normal
13114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13115 # need to do runtime linking.
13116 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13117 for ld_flag in $LDFLAGS; do
13120 aix_use_runtimelinking=yes
13128 exp_sym_flag='-bexport'
13129 no_entry_flag='-bnoentry'
13132 # When large executables or shared objects are built, AIX ld can
13133 # have problems creating the table of contents. If linking a library
13134 # or program results in "error TOC overflow" add -mminimal-toc to
13135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13138 archive_cmds_CXX=''
13139 hardcode_direct_CXX=yes
13140 hardcode_direct_absolute_CXX=yes
13141 hardcode_libdir_separator_CXX=':'
13142 link_all_deplibs_CXX=yes
13143 file_list_spec_CXX='${wl}-f,'
13145 if test "$GXX" = yes; then
13146 case $host_os in aix4.[012]|aix4.[012].*)
13147 # We only want to do this on AIX 4.2 and lower, the check
13148 # below for broken collect2 doesn't work under 4.3+
13149 collect2name=`${CC} -print-prog-name=collect2`
13150 if test -f "$collect2name" &&
13151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13153 # We have reworked collect2
13156 # We have old collect2
13157 hardcode_direct_CXX=unsupported
13158 # It fails to find uninstalled libraries when the uninstalled
13159 # path is not listed in the libpath. Setting hardcode_minus_L
13160 # to unsupported forces relinking
13161 hardcode_minus_L_CXX=yes
13162 hardcode_libdir_flag_spec_CXX='-L$libdir'
13163 hardcode_libdir_separator_CXX=
13166 shared_flag='-shared'
13167 if test "$aix_use_runtimelinking" = yes; then
13168 shared_flag="$shared_flag "'${wl}-G'
13172 if test "$host_cpu" = ia64; then
13173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13174 # chokes on -Wl,-G. The following line is correct:
13177 if test "$aix_use_runtimelinking" = yes; then
13178 shared_flag='${wl}-G'
13180 shared_flag='${wl}-bM:SRE'
13185 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13186 # It seems that -bexpall does not export symbols beginning with
13187 # underscore (_), so it is better to generate a list of symbols to
13189 always_export_symbols_CXX=yes
13190 if test "$aix_use_runtimelinking" = yes; then
13191 # Warning - without using the other runtime loading flags (-brtl),
13192 # -berok will link without error, but may produce a broken library.
13193 allow_undefined_flag_CXX='-berok'
13194 # Determine the default libpath from the value encoded in an empty
13196 if test "${lt_cv_aix_libpath+set}" = set; then
13197 aix_libpath=$lt_cv_aix_libpath
13199 if ${lt_cv_aix_libpath__CXX+:} false; then :
13200 $as_echo_n "(cached) " >&6
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13213 if ac_fn_cxx_try_link "$LINENO"; then :
13215 lt_aix_libpath_sed='
13216 /Import File Strings/,/^$/ {
13218 s/^0 *\([^ ]*\) *$/\1/
13222 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13223 # Check for a 64-bit object if we didn't find anything.
13224 if test -z "$lt_cv_aix_libpath__CXX"; then
13225 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 if test -z "$lt_cv_aix_libpath__CXX"; then
13231 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13236 aix_libpath=$lt_cv_aix_libpath__CXX
13239 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13241 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13243 if test "$host_cpu" = ia64; then
13244 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13245 allow_undefined_flag_CXX="-z nodefs"
13246 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"
13248 # Determine the default libpath from the value encoded in an
13249 # empty executable.
13250 if test "${lt_cv_aix_libpath+set}" = set; then
13251 aix_libpath=$lt_cv_aix_libpath
13253 if ${lt_cv_aix_libpath__CXX+:} false; then :
13254 $as_echo_n "(cached) " >&6
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13267 if ac_fn_cxx_try_link "$LINENO"; then :
13269 lt_aix_libpath_sed='
13270 /Import File Strings/,/^$/ {
13272 s/^0 *\([^ ]*\) *$/\1/
13276 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13277 # Check for a 64-bit object if we didn't find anything.
13278 if test -z "$lt_cv_aix_libpath__CXX"; then
13279 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13282 rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13284 if test -z "$lt_cv_aix_libpath__CXX"; then
13285 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13290 aix_libpath=$lt_cv_aix_libpath__CXX
13293 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13294 # Warning - without using the other run time loading flags,
13295 # -berok will link without error, but may produce a broken library.
13296 no_undefined_flag_CXX=' ${wl}-bernotok'
13297 allow_undefined_flag_CXX=' ${wl}-berok'
13298 if test "$with_gnu_ld" = yes; then
13299 # We only use this code for GNU lds that support --whole-archive.
13300 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13302 # Exported symbols can be pulled into shared objects from archives
13303 whole_archive_flag_spec_CXX='$convenience'
13305 archive_cmds_need_lc_CXX=yes
13306 # This is similar to how AIX traditionally builds its shared
13308 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13315 allow_undefined_flag_CXX=unsupported
13316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13317 # support --undefined. This deserves some investigation. FIXME
13318 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325 case $cc_basename in
13327 # FIXME: insert proper C++ library support
13333 cygwin* | mingw* | pw32* | cegcc*)
13334 case $GXX,$cc_basename in
13337 # hardcode_libdir_flag_spec is actually meaningless, as there is
13338 # no search path for DLLs.
13339 hardcode_libdir_flag_spec_CXX=' '
13340 allow_undefined_flag_CXX=unsupported
13341 always_export_symbols_CXX=yes
13342 file_list_spec_CXX='@'
13343 # Tell ltmain to make .lib files, not .a files.
13345 # Tell ltmain to make .dll files, not .so files.
13347 # FIXME: Setting linknames here is a bad hack.
13348 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13349 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13350 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13352 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13354 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13356 # The linker will not automatically build a static lib if we build a DLL.
13357 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13358 enable_shared_with_static_runtimes_CXX=yes
13360 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13361 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13362 lt_tool_outputfile="@TOOL_OUTPUT@"~
13363 case $lt_outputfile in
13366 lt_outputfile="$lt_outputfile.exe"
13367 lt_tool_outputfile="$lt_tool_outputfile.exe"
13370 func_to_tool_file "$lt_outputfile"~
13371 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13373 $RM "$lt_outputfile.manifest";
13378 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13379 # as there is no search path for DLLs.
13380 hardcode_libdir_flag_spec_CXX='-L$libdir'
13381 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13382 allow_undefined_flag_CXX=unsupported
13383 always_export_symbols_CXX=no
13384 enable_shared_with_static_runtimes_CXX=yes
13386 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13387 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'
13388 # If the export-symbols file already is a .def file (1st line
13389 # is EXPORTS), use it as is; otherwise, prepend...
13390 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13391 cp $export_symbols $output_objdir/$soname.def;
13393 echo EXPORTS > $output_objdir/$soname.def;
13394 cat $export_symbols >> $output_objdir/$soname.def;
13396 $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'
13403 darwin* | rhapsody*)
13406 archive_cmds_need_lc_CXX=no
13407 hardcode_direct_CXX=no
13408 hardcode_automatic_CXX=yes
13409 hardcode_shlibpath_var_CXX=unsupported
13410 if test "$lt_cv_ld_force_load" = "yes"; then
13411 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\"`'
13414 whole_archive_flag_spec_CXX=''
13416 link_all_deplibs_CXX=yes
13417 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13418 case $cc_basename in
13419 ifort*) _lt_dar_can_shared=yes ;;
13420 *) _lt_dar_can_shared=$GCC ;;
13422 if test "$_lt_dar_can_shared" = "yes"; then
13423 output_verbose_link_cmd=func_echo_all
13424 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}"
13425 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13426 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}"
13427 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}"
13428 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13429 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}"
13430 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}"
13440 case $cc_basename in
13442 # FIXME: insert proper C++ library support
13446 # Green Hills C++ Compiler
13447 # FIXME: insert proper C++ library support
13451 # FIXME: insert proper C++ library support
13458 # C++ shared libraries reported to be fairly broken before
13464 archive_cmds_need_lc_CXX=no
13467 freebsd* | dragonfly*)
13468 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13477 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13478 link_all_deplibs_CXX=yes
13482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13483 hardcode_libdir_separator_CXX=:
13484 export_dynamic_flag_spec_CXX='${wl}-E'
13485 hardcode_direct_CXX=yes
13486 hardcode_minus_L_CXX=yes # Not in the search PATH,
13487 # but as the default
13488 # location of the library.
13490 case $cc_basename in
13492 # FIXME: insert proper C++ library support
13496 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13497 # Commands to make compiler produce verbose output that lists
13498 # what "hidden" libraries, object files and flags are used when
13499 # linking a shared library.
13501 # There doesn't appear to be a way to prevent this compiler from
13502 # explicitly linking system object files so we need to strip them
13503 # from the output so that they don't get included in the library
13505 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"'
13508 if test "$GXX" = yes; then
13509 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13511 # FIXME: insert proper C++ library support
13519 if test $with_gnu_ld = no; then
13520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13521 hardcode_libdir_separator_CXX=:
13527 export_dynamic_flag_spec_CXX='${wl}-E'
13533 hardcode_direct_CXX=no
13534 hardcode_shlibpath_var_CXX=no
13537 hardcode_direct_CXX=yes
13538 hardcode_direct_absolute_CXX=yes
13539 hardcode_minus_L_CXX=yes # Not in the search PATH,
13540 # but as the default
13541 # location of the library.
13545 case $cc_basename in
13547 # FIXME: insert proper C++ library support
13553 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13556 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13559 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13562 # Commands to make compiler produce verbose output that lists
13563 # what "hidden" libraries, object files and flags are used when
13564 # linking a shared library.
13566 # There doesn't appear to be a way to prevent this compiler from
13567 # explicitly linking system object files so we need to strip them
13568 # from the output so that they don't get included in the library
13570 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"'
13573 if test "$GXX" = yes; then
13574 if test $with_gnu_ld = no; then
13577 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13580 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13583 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'
13588 # FIXME: insert proper C++ library support
13596 hardcode_direct_CXX=no
13597 hardcode_shlibpath_var_CXX=no
13598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13599 export_dynamic_flag_spec_CXX='${wl}-E'
13600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13601 # Instead, shared libraries are loaded at an image base (0x10000000 by
13602 # default) and relocated if they conflict, which is a slow very memory
13603 # consuming and fragmenting process. To avoid this, we pick a random,
13604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13606 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'
13607 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'
13610 case $cc_basename in
13613 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'
13615 # Archives containing C++ object files must be created using
13616 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13617 # necessary to make sure instantiated templates are included
13619 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13622 if test "$GXX" = yes; then
13623 if test "$with_gnu_ld" = no; then
13624 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'
13626 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'
13629 link_all_deplibs_CXX=yes
13632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13633 hardcode_libdir_separator_CXX=:
13634 inherit_rpath_CXX=yes
13637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13638 case $cc_basename in
13640 # Kuck and Associates, Inc. (KAI) C++ Compiler
13642 # KCC will only create a shared library if the output file
13643 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13644 # to its proper name (with version) after linking.
13645 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'
13646 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'
13647 # Commands to make compiler produce verbose output that lists
13648 # what "hidden" libraries, object files and flags are used when
13649 # linking a shared library.
13651 # There doesn't appear to be a way to prevent this compiler from
13652 # explicitly linking system object files so we need to strip them
13653 # from the output so that they don't get included in the library
13655 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"'
13657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13660 # Archives containing C++ object files must be created using
13661 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13662 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13667 # version 8.0 and above of icpc choke on multiply defined symbols
13668 # if we add $predep_objects and $postdep_objects, however 7.1 and
13669 # earlier do not add the objects themselves.
13670 case `$CC -V 2>&1` in
13672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673 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'
13675 *) # Version 8.0 or newer
13678 ia64*) tmp_idyn=' -i_dynamic';;
13680 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13681 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'
13684 archive_cmds_need_lc_CXX=no
13685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13687 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13690 # Portland Group C++ compiler
13692 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13693 prelink_cmds_CXX='tpldir=Template.dir~
13695 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13696 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13697 old_archive_cmds_CXX='tpldir=Template.dir~
13699 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13700 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13702 archive_cmds_CXX='tpldir=Template.dir~
13704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13706 archive_expsym_cmds_CXX='tpldir=Template.dir~
13708 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13709 $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'
13711 *) # Version 6 and above use weak symbols
13712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13713 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'
13717 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13719 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'
13723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724 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'
13726 runpath_var=LD_RUN_PATH
13727 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13728 hardcode_libdir_separator_CXX=:
13730 # Commands to make compiler produce verbose output that lists
13731 # what "hidden" libraries, object files and flags are used when
13732 # linking a shared library.
13734 # There doesn't appear to be a way to prevent this compiler from
13735 # explicitly linking system object files so we need to strip them
13736 # from the output so that they don't get included in the library
13738 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'
13740 xl* | mpixl* | bgxl*)
13741 # IBM XL 8.0 on PPC, with GNU ld
13742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13744 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13745 if test "x$supports_anon_versioning" = xyes; then
13746 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13748 echo "local: *; };" >> $output_objdir/$libname.ver~
13749 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13753 case `$CC -V 2>&1 | sed 5q` in
13756 no_undefined_flag_CXX=' -zdefs'
13757 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13758 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'
13759 hardcode_libdir_flag_spec_CXX='-R$libdir'
13760 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'
13761 compiler_needs_object_CXX=yes
13763 # Not sure whether something based on
13764 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13766 output_verbose_link_cmd='func_echo_all'
13768 # Archives containing C++ object files must be created using
13769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13770 # necessary to make sure instantiated templates are included
13772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13780 # FIXME: insert proper C++ library support
13785 # FIXME: insert proper C++ library support
13790 case $cc_basename in
13792 # FIXME: insert proper C++ library support
13796 # FIXME: insert proper C++ library support
13803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13804 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13806 hardcode_libdir_flag_spec_CXX='-R$libdir'
13807 hardcode_direct_CXX=yes
13808 hardcode_shlibpath_var_CXX=no
13810 # Workaround some broken pre-1.5 toolchains
13811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13819 # C++ shared libraries are fairly broken
13824 if test -f /usr/libexec/ld.so; then
13825 hardcode_direct_CXX=yes
13826 hardcode_shlibpath_var_CXX=no
13827 hardcode_direct_absolute_CXX=yes
13828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13832 export_dynamic_flag_spec_CXX='${wl}-E'
13833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13835 output_verbose_link_cmd=func_echo_all
13841 osf3* | osf4* | osf5*)
13842 case $cc_basename in
13844 # Kuck and Associates, Inc. (KAI) C++ Compiler
13846 # KCC will only create a shared library if the output file
13847 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13848 # to its proper name (with version) after linking.
13849 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'
13851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13852 hardcode_libdir_separator_CXX=:
13854 # Archives containing C++ object files must be created using
13855 # the KAI C++ compiler.
13857 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13858 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13862 # Rational C++ 2.4.1
13863 # FIXME: insert proper C++ library support
13869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13870 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'
13871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13874 allow_undefined_flag_CXX=' -expect_unresolved \*'
13875 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'
13876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13877 echo "-hidden">> $lib.exp~
13878 $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~
13880 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13884 hardcode_libdir_separator_CXX=:
13886 # Commands to make compiler produce verbose output that lists
13887 # what "hidden" libraries, object files and flags are used when
13888 # linking a shared library.
13890 # There doesn't appear to be a way to prevent this compiler from
13891 # explicitly linking system object files so we need to strip them
13892 # from the output so that they don't get included in the library
13894 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"'
13897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13901 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'
13904 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'
13908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13909 hardcode_libdir_separator_CXX=:
13911 # Commands to make compiler produce verbose output that lists
13912 # what "hidden" libraries, object files and flags are used when
13913 # linking a shared library.
13914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13917 # FIXME: insert proper C++ library support
13925 # FIXME: insert proper C++ library support
13930 case $cc_basename in
13933 # FIXME: insert proper C++ library support
13938 # FIXME: insert proper C++ library support
13942 # FIXME: insert proper C++ library support
13949 case $cc_basename in
13951 # Sun C++ 4.2, 5.x and Centerline C++
13952 archive_cmds_need_lc_CXX=yes
13953 no_undefined_flag_CXX=' -zdefs'
13954 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13955 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13956 $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'
13958 hardcode_libdir_flag_spec_CXX='-R$libdir'
13959 hardcode_shlibpath_var_CXX=no
13961 solaris2.[0-5] | solaris2.[0-5].*) ;;
13963 # The compiler driver will combine and reorder linker options,
13964 # but understands `-z linker_flag'.
13965 # Supported since Solaris 2.6 (maybe 2.5.1?)
13966 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13969 link_all_deplibs_CXX=yes
13971 output_verbose_link_cmd='func_echo_all'
13973 # Archives containing C++ object files must be created using
13974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13975 # necessary to make sure instantiated templates are included
13977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13980 # Green Hills C++ Compiler
13981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13983 # The C++ compiler must be used to create the archive.
13984 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13987 # GNU C++ compiler with Solaris linker
13988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13989 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13990 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13991 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13992 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13993 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13995 # Commands to make compiler produce verbose output that lists
13996 # what "hidden" libraries, object files and flags are used when
13997 # linking a shared library.
13998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14000 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14002 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14006 # Commands to make compiler produce verbose output that lists
14007 # what "hidden" libraries, object files and flags are used when
14008 # linking a shared library.
14009 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14012 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14014 solaris2.[0-5] | solaris2.[0-5].*) ;;
14016 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14025 no_undefined_flag_CXX='${wl}-z,text'
14026 archive_cmds_need_lc_CXX=no
14027 hardcode_shlibpath_var_CXX=no
14028 runpath_var='LD_RUN_PATH'
14030 case $cc_basename in
14032 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14036 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14042 sysv5* | sco3.2v5* | sco5v6*)
14043 # Note: We can NOT use -z defs as we might desire, because we do not
14044 # link with -lc, and that would cause any symbols used from libc to
14045 # always be unresolved, which means just about no library would
14046 # ever link correctly. If we're not using GNU ld we use -z text
14047 # though, which does catch some bad symbols but isn't as heavy-handed
14049 no_undefined_flag_CXX='${wl}-z,text'
14050 allow_undefined_flag_CXX='${wl}-z,nodefs'
14051 archive_cmds_need_lc_CXX=no
14052 hardcode_shlibpath_var_CXX=no
14053 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14054 hardcode_libdir_separator_CXX=':'
14055 link_all_deplibs_CXX=yes
14056 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14057 runpath_var='LD_RUN_PATH'
14059 case $cc_basename in
14061 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14064 '"$old_archive_cmds_CXX"
14065 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14066 '"$reload_cmds_CXX"
14069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14076 case $cc_basename in
14078 # NonStop-UX NCC 3.20
14079 # FIXME: insert proper C++ library support
14083 # FIXME: insert proper C++ library support
14090 # FIXME: insert proper C++ library support
14095 # FIXME: insert proper C++ library support
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14101 $as_echo "$ld_shlibs_CXX" >&6; }
14102 test "$ld_shlibs_CXX" = no && can_build_shared=no
14108 ## There is no encapsulation within the following macros, do not change
14109 ## the running order or otherwise move them around unless you know exactly
14110 ## what you are doing...
14111 # Dependencies to place before and after the object being linked:
14112 predep_objects_CXX=
14113 postdep_objects_CXX=
14116 compiler_lib_search_path_CXX=
14118 cat > conftest.$ac_ext <<_LT_EOF
14122 Foo (void) { a = 0; }
14129 _lt_libdeps_save_CFLAGS=$CFLAGS
14130 case "$CC $CFLAGS " in #(
14131 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14132 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14133 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14137 (eval $ac_compile) 2>&5
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140 test $ac_status = 0; }; then
14141 # Parse the compiler output and extract the necessary
14142 # objects, libraries and library flags.
14144 # Sentinel used to keep track of whether or not we are before
14145 # the conftest object file.
14146 pre_test_object_deps_done=no
14148 for p in `eval "$output_verbose_link_cmd"`; do
14149 case ${prev}${p} in
14152 # Some compilers place space between "-{L,R}" and the path.
14153 # Remove the space.
14154 if test $p = "-L" ||
14155 test $p = "-R"; then
14160 # Expand the sysroot to ease extracting the directories later.
14161 if test -z "$prev"; then
14163 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14164 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14165 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14169 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14171 if test "$pre_test_object_deps_done" = no; then
14174 # Internal compiler library paths should come after those
14175 # provided the user. The postdeps already come after the
14176 # user supplied libs so there is no need to process them.
14177 if test -z "$compiler_lib_search_path_CXX"; then
14178 compiler_lib_search_path_CXX="${prev}${p}"
14180 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14183 # The "-l" case would never come before the object being
14184 # linked, so don't bother handling this case.
14187 if test -z "$postdeps_CXX"; then
14188 postdeps_CXX="${prev}${p}"
14190 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14196 *.lto.$objext) ;; # Ignore GCC LTO objects
14198 # This assumes that the test object file only shows up
14199 # once in the compiler output.
14200 if test "$p" = "conftest.$objext"; then
14201 pre_test_object_deps_done=yes
14205 if test "$pre_test_object_deps_done" = no; then
14206 if test -z "$predep_objects_CXX"; then
14207 predep_objects_CXX="$p"
14209 predep_objects_CXX="$predep_objects_CXX $p"
14212 if test -z "$postdep_objects_CXX"; then
14213 postdep_objects_CXX="$p"
14215 postdep_objects_CXX="$postdep_objects_CXX $p"
14220 *) ;; # Ignore the rest.
14228 echo "libtool.m4: error: problem compiling CXX test program"
14231 $RM -f confest.$objext
14232 CFLAGS=$_lt_libdeps_save_CFLAGS
14234 # PORTME: override above test on systems where it is broken
14237 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14238 # hack all around it, let's just trust "g++" to DTRT.
14239 predep_objects_CXX=
14240 postdep_objects_CXX=
14245 case `$CC -V 2>&1 | sed 5q` in
14249 # The more standards-conforming stlport4 library is
14250 # incompatible with the Cstd library. Avoid specifying
14251 # it if it's in CXXFLAGS. Ignore libCrun as
14252 # -library=stlport4 depends on it.
14253 case " $CXX $CXXFLAGS " in
14254 *" -library=stlport4 "*)
14255 solaris_use_stlport4=yes
14259 if test "$solaris_use_stlport4" != yes; then
14260 postdeps_CXX='-library=Cstd -library=Crun'
14267 case $cc_basename in
14269 # The more standards-conforming stlport4 library is
14270 # incompatible with the Cstd library. Avoid specifying
14271 # it if it's in CXXFLAGS. Ignore libCrun as
14272 # -library=stlport4 depends on it.
14273 case " $CXX $CXXFLAGS " in
14274 *" -library=stlport4 "*)
14275 solaris_use_stlport4=yes
14279 # Adding this requires a known-good setup of shared libraries for
14280 # Sun compiler versions before 5.6, else PIC objects from an old
14281 # archive will be linked into the output, leading to subtle bugs.
14282 if test "$solaris_use_stlport4" != yes; then
14283 postdeps_CXX='-library=Cstd -library=Crun'
14291 case " $postdeps_CXX " in
14292 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14294 compiler_lib_search_dirs_CXX=
14295 if test -n "${compiler_lib_search_path_CXX}"; then
14296 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14329 lt_prog_compiler_wl_CXX=
14330 lt_prog_compiler_pic_CXX=
14331 lt_prog_compiler_static_CXX=
14334 # C++ specific cases for pic, static, wl, etc.
14335 if test "$GXX" = yes; then
14336 lt_prog_compiler_wl_CXX='-Wl,'
14337 lt_prog_compiler_static_CXX='-static'
14341 # All AIX code is PIC.
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 now supports IA64 processor
14344 lt_prog_compiler_static_CXX='-Bstatic'
14351 # see comment about AmigaOS4 .so support
14352 lt_prog_compiler_pic_CXX='-fPIC'
14355 # FIXME: we need at least 68020 code to build shared libraries, but
14356 # adding the `-m68020' flag to GCC prevents building anything better,
14358 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14363 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14364 # PIC is the default for these OSes.
14366 mingw* | cygwin* | os2* | pw32* | cegcc*)
14367 # This hack is so that the source file can tell whether it is being
14368 # built for inclusion in a dll (and should export symbols for example).
14369 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14370 # (--disable-auto-import) libraries
14371 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14373 darwin* | rhapsody*)
14374 # PIC is the default on this platform
14375 # Common symbols not allowed in MH_DYLIB files
14376 lt_prog_compiler_pic_CXX='-fno-common'
14379 # DJGPP does not support shared libraries at all
14380 lt_prog_compiler_pic_CXX=
14383 # PIC is the default for Haiku.
14384 # The "-static" flag exists, but is broken.
14385 lt_prog_compiler_static_CXX=
14388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389 # Instead, we relocate shared libraries at runtime.
14392 if test -d /usr/nec; then
14393 lt_prog_compiler_pic_CXX=-Kconform_pic
14397 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14398 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14399 # sets the default TLS model and affects inlining.
14404 lt_prog_compiler_pic_CXX='-fPIC'
14409 # QNX uses GNU C++, but need to define -shared option too, otherwise
14410 # it will coredump.
14411 lt_prog_compiler_pic_CXX='-fPIC -shared'
14414 lt_prog_compiler_pic_CXX='-fPIC'
14420 # All AIX code is PIC.
14421 if test "$host_cpu" = ia64; then
14422 # AIX 5 now supports IA64 processor
14423 lt_prog_compiler_static_CXX='-Bstatic'
14425 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14429 case $cc_basename in
14431 # Green Hills C++ Compiler
14432 # _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"
14436 mingw* | cygwin* | os2* | pw32* | cegcc*)
14437 # This hack is so that the source file can tell whether it is being
14438 # built for inclusion in a dll (and should export symbols for example).
14439 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14442 case $cc_basename in
14444 lt_prog_compiler_pic_CXX='-KPIC'
14447 # Green Hills C++ Compiler
14448 lt_prog_compiler_pic_CXX='-pic'
14454 freebsd* | dragonfly*)
14455 # FreeBSD uses GNU C++
14457 hpux9* | hpux10* | hpux11*)
14458 case $cc_basename in
14460 lt_prog_compiler_wl_CXX='-Wl,'
14461 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14462 if test "$host_cpu" != ia64; then
14463 lt_prog_compiler_pic_CXX='+Z'
14467 lt_prog_compiler_wl_CXX='-Wl,'
14468 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14474 lt_prog_compiler_pic_CXX='+Z'
14483 # This is c89, which is MS Visual C++ (no shared libs)
14484 # Anyone wants to do a port?
14486 irix5* | irix6* | nonstopux*)
14487 case $cc_basename in
14489 lt_prog_compiler_wl_CXX='-Wl,'
14490 lt_prog_compiler_static_CXX='-non_shared'
14491 # CC pic flag -KPIC is the default.
14497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14498 case $cc_basename in
14501 lt_prog_compiler_wl_CXX='--backend -Wl,'
14502 lt_prog_compiler_pic_CXX='-fPIC'
14505 # old Intel C++ for x86_64 which still supported -KPIC.
14506 lt_prog_compiler_wl_CXX='-Wl,'
14507 lt_prog_compiler_pic_CXX='-KPIC'
14508 lt_prog_compiler_static_CXX='-static'
14511 # Intel C++, used to be incompatible with GCC.
14512 # ICC 10 doesn't accept -KPIC any more.
14513 lt_prog_compiler_wl_CXX='-Wl,'
14514 lt_prog_compiler_pic_CXX='-fPIC'
14515 lt_prog_compiler_static_CXX='-static'
14518 # Portland Group C++ compiler
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_pic_CXX='-fpic'
14521 lt_prog_compiler_static_CXX='-Bstatic'
14525 # Make sure the PIC flag is empty. It appears that all Alpha
14526 # Linux and Compaq Tru64 Unix objects are PIC.
14527 lt_prog_compiler_pic_CXX=
14528 lt_prog_compiler_static_CXX='-non_shared'
14530 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14531 # IBM XL 8.0, 9.0 on PPC and BlueGene
14532 lt_prog_compiler_wl_CXX='-Wl,'
14533 lt_prog_compiler_pic_CXX='-qpic'
14534 lt_prog_compiler_static_CXX='-qstaticlink'
14537 case `$CC -V 2>&1 | sed 5q` in
14540 lt_prog_compiler_pic_CXX='-KPIC'
14541 lt_prog_compiler_static_CXX='-Bstatic'
14542 lt_prog_compiler_wl_CXX='-Qoption ld '
14553 case $cc_basename in
14555 lt_prog_compiler_pic_CXX='-W c,exportall'
14564 # QNX uses GNU C++, but need to define -shared option too, otherwise
14565 # it will coredump.
14566 lt_prog_compiler_pic_CXX='-fPIC -shared'
14568 osf3* | osf4* | osf5*)
14569 case $cc_basename in
14571 lt_prog_compiler_wl_CXX='--backend -Wl,'
14574 # Rational C++ 2.4.1
14575 lt_prog_compiler_pic_CXX='-pic'
14578 # Digital/Compaq C++
14579 lt_prog_compiler_wl_CXX='-Wl,'
14580 # Make sure the PIC flag is empty. It appears that all Alpha
14581 # Linux and Compaq Tru64 Unix objects are PIC.
14582 lt_prog_compiler_pic_CXX=
14583 lt_prog_compiler_static_CXX='-non_shared'
14592 case $cc_basename in
14594 # Sun C++ 4.2, 5.x and Centerline C++
14595 lt_prog_compiler_pic_CXX='-KPIC'
14596 lt_prog_compiler_static_CXX='-Bstatic'
14597 lt_prog_compiler_wl_CXX='-Qoption ld '
14600 # Green Hills C++ Compiler
14601 lt_prog_compiler_pic_CXX='-PIC'
14608 case $cc_basename in
14611 lt_prog_compiler_pic_CXX='-pic'
14612 lt_prog_compiler_static_CXX='-Bstatic'
14616 lt_prog_compiler_pic_CXX='-pic'
14622 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14623 case $cc_basename in
14625 lt_prog_compiler_wl_CXX='-Wl,'
14626 lt_prog_compiler_pic_CXX='-KPIC'
14627 lt_prog_compiler_static_CXX='-Bstatic'
14632 case $cc_basename in
14634 # NonStop-UX NCC 3.20
14635 lt_prog_compiler_pic_CXX='-KPIC'
14644 lt_prog_compiler_can_build_shared_CXX=no
14650 # For platforms which do not support PIC, -DPIC is meaningless:
14652 lt_prog_compiler_pic_CXX=
14655 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14660 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14661 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14662 $as_echo_n "(cached) " >&6
14664 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14667 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14668 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14671 # Check to make sure the PIC flag actually works.
14673 if test -n "$lt_prog_compiler_pic_CXX"; then
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14676 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14677 $as_echo_n "(cached) " >&6
14679 lt_cv_prog_compiler_pic_works_CXX=no
14680 ac_outfile=conftest.$ac_objext
14681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14683 # Insert the option either (1) after the last *FLAGS variable, or
14684 # (2) before a word containing "conftest.", or (3) at the end.
14685 # Note that $ac_compile itself does not contain backslashes and begins
14686 # with a dollar sign (not a hyphen), so the echo should work correctly.
14687 # The option is referenced via a variable to avoid confusing sed.
14688 lt_compile=`echo "$ac_compile" | $SED \
14689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691 -e 's:$: $lt_compiler_flag:'`
14692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14693 (eval "$lt_compile" 2>conftest.err)
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 if (exit $ac_status) && test -s "$ac_outfile"; then
14698 # The compiler can only warn and ignore the option if not recognized
14699 # So say no if there are warnings other than the usual output.
14700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703 lt_cv_prog_compiler_pic_works_CXX=yes
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14712 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14713 case $lt_prog_compiler_pic_CXX in
14715 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14718 lt_prog_compiler_pic_CXX=
14719 lt_prog_compiler_can_build_shared_CXX=no
14729 # Check to make sure the static flag actually works.
14731 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14733 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14734 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14735 $as_echo_n "(cached) " >&6
14737 lt_cv_prog_compiler_static_works_CXX=no
14738 save_LDFLAGS="$LDFLAGS"
14739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14742 # The linker can only warn and ignore the option if not recognized
14743 # So say no if there are warnings
14744 if test -s conftest.err; then
14745 # Append any errors to the config.log.
14746 cat conftest.err 1>&5
14747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749 if diff conftest.exp conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_static_works_CXX=yes
14753 lt_cv_prog_compiler_static_works_CXX=yes
14757 LDFLAGS="$save_LDFLAGS"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14761 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14763 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14766 lt_prog_compiler_static_CXX=
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14774 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14775 $as_echo_n "(cached) " >&6
14777 lt_cv_prog_compiler_c_o_CXX=no
14778 $RM -r conftest 2>/dev/null
14782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 lt_compiler_flag="-o out/conftest2.$ac_objext"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 lt_compile=`echo "$ac_compile" | $SED \
14790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14792 -e 's:$: $lt_compiler_flag:'`
14793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14794 (eval "$lt_compile" 2>out/conftest.err)
14796 cat out/conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14800 # The compiler can only warn and ignore the option if not recognized
14801 # So say no if there are warnings
14802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14805 lt_cv_prog_compiler_c_o_CXX=yes
14810 # SGI C++ compiler will create directory out/ii_files/ for
14811 # template instantiation
14812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14813 $RM out/* && rmdir out
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14820 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14826 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14827 $as_echo_n "(cached) " >&6
14829 lt_cv_prog_compiler_c_o_CXX=no
14830 $RM -r conftest 2>/dev/null
14834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14836 lt_compiler_flag="-o out/conftest2.$ac_objext"
14837 # Insert the option either (1) after the last *FLAGS variable, or
14838 # (2) before a word containing "conftest.", or (3) at the end.
14839 # Note that $ac_compile itself does not contain backslashes and begins
14840 # with a dollar sign (not a hyphen), so the echo should work correctly.
14841 lt_compile=`echo "$ac_compile" | $SED \
14842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14844 -e 's:$: $lt_compiler_flag:'`
14845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14846 (eval "$lt_compile" 2>out/conftest.err)
14848 cat out/conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14852 # The compiler can only warn and ignore the option if not recognized
14853 # So say no if there are warnings
14854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14857 lt_cv_prog_compiler_c_o_CXX=yes
14862 # SGI C++ compiler will create directory out/ii_files/ for
14863 # template instantiation
14864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14865 $RM out/* && rmdir out
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14872 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14877 hard_links="nottested"
14878 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14879 # do not overwrite the value of need_locks provided by the user
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14881 $as_echo_n "checking if we can lock with hard links... " >&6; }
14884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14886 ln conftest.a conftest.b 2>&5 || hard_links=no
14887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14889 $as_echo "$hard_links" >&6; }
14890 if test "$hard_links" = no; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14892 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14905 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14908 # If we're using GNU nm, then we don't want the "-C" option.
14909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14910 # Also, AIX nm treats weak defined symbols like other global defined
14911 # symbols, whereas GNU nm marks them as "W".
14912 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14913 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14915 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14919 export_symbols_cmds_CXX="$ltdll_cmds"
14921 cygwin* | mingw* | cegcc*)
14922 case $cc_basename in
14924 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14927 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'
14928 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14938 $as_echo "$ld_shlibs_CXX" >&6; }
14939 test "$ld_shlibs_CXX" = no && can_build_shared=no
14941 with_gnu_ld_CXX=$with_gnu_ld
14949 # Do we need to explicitly link libc?
14951 case "x$archive_cmds_need_lc_CXX" in
14953 # Assume -lc should be added
14954 archive_cmds_need_lc_CXX=yes
14956 if test "$enable_shared" = yes && test "$GCC" = yes; then
14957 case $archive_cmds_CXX in
14959 # FIXME: we may have to deal with multi-command sequences.
14962 # Test whether the compiler implicitly links with -lc since on some
14963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14964 # to ld, don't add -lc before -lgcc.
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14966 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14967 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14968 $as_echo_n "(cached) " >&6
14971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14974 (eval $ac_compile) 2>&5
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; } 2>conftest.err; then
14980 libobjs=conftest.$ac_objext
14982 wl=$lt_prog_compiler_wl_CXX
14983 pic_flag=$lt_prog_compiler_pic_CXX
14989 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14990 allow_undefined_flag_CXX=
14991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14992 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14995 test $ac_status = 0; }
14997 lt_cv_archive_cmds_need_lc_CXX=no
14999 lt_cv_archive_cmds_need_lc_CXX=yes
15001 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15003 cat conftest.err 1>&5
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15009 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15010 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15079 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15081 library_names_spec=
15082 libname_spec='lib$name'
15086 postuninstall_cmds=
15090 shlibpath_overrides_runpath=unknown
15092 dynamic_linker="$host_os ld.so"
15093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15094 need_lib_prefix=unknown
15095 hardcode_into_libs=no
15097 # when you set need_version to no, make sure it does not cause -set_version
15098 # flags to be left without arguments
15099 need_version=unknown
15103 version_type=linux # correct to gnu/linux during the next big refactor
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15105 shlibpath_var=LIBPATH
15107 # AIX 3 has no versioning support, so we append a major version to the name.
15108 soname_spec='${libname}${release}${shared_ext}$major'
15112 version_type=linux # correct to gnu/linux during the next big refactor
15115 hardcode_into_libs=yes
15116 if test "$host_cpu" = ia64; then
15117 # AIX 5 supports IA64
15118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15119 shlibpath_var=LD_LIBRARY_PATH
15121 # With GCC up to 2.95.x, collect2 would create an import file
15122 # for dependence libraries. The import file would start with
15123 # the line `#! .'. This would cause the generated library to
15124 # depend on `.', always an invalid library. This was fixed in
15125 # development snapshots of GCC prior to 3.0.
15127 aix4 | aix4.[01] | aix4.[01].*)
15128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15133 can_build_shared=no
15137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15138 # soname into executable. Probably we can add versioning support to
15139 # collect2, so additional links can be useful in future.
15140 if test "$aix_use_runtimelinking" = yes; then
15141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15142 # instead of lib<name>.a to let people know that these are not
15143 # typical AIX shared libraries.
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146 # We preserve .a as extension for shared libraries through AIX4.2
15147 # and later when we are not doing run time linking.
15148 library_names_spec='${libname}${release}.a $libname.a'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LIBPATH
15158 # Since July 2007 AmigaOS4 officially supports .so libraries.
15159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163 library_names_spec='$libname.ixlibrary $libname.a'
15164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15165 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15171 library_names_spec='${libname}${shared_ext}'
15172 dynamic_linker="$host_os ld.so"
15173 shlibpath_var=LIBRARY_PATH
15177 version_type=linux # correct to gnu/linux during the next big refactor
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15185 # the default ld.so.conf also contains /usr/contrib/lib and
15186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15187 # libtool to hard-code these into programs
15190 cygwin* | mingw* | pw32* | cegcc*)
15191 version_type=windows
15196 case $GCC,$cc_basename in
15199 library_names_spec='$libname.dll.a'
15200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15201 postinstall_cmds='base_file=`basename \${file}`~
15202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15203 dldir=$destdir/`dirname \$dlpath`~
15204 test -d \$dldir || mkdir -p \$dldir~
15205 $install_prog $dir/$dlname \$dldir/$dlname~
15206 chmod a+x \$dldir/$dlname~
15207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15211 dlpath=$dir/\$dldll~
15213 shlibpath_overrides_runpath=yes
15217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15222 # MinGW DLLs use traditional 'lib' prefix
15223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15226 # pw32 DLLs use 'pw' prefix rather than 'lib'
15227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15230 dynamic_linker='Win32 ld.exe'
15235 libname_spec='$name'
15236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15237 library_names_spec='${libname}.dll.lib'
15241 sys_lib_search_path_spec=
15244 for lt_path in $LIB
15247 # Let DOS variable expansion print the short 8.3 style file name.
15248 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15249 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15252 # Convert to MSYS style.
15253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15256 # Convert to unix form, then to dos form, then back to unix form
15257 # but this time dos style (no spaces!) so that the unix form looks
15258 # like /cygdrive/c/PROGRA~1:/cygdr...
15259 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15260 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15261 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15264 sys_lib_search_path_spec="$LIB"
15265 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15266 # It is most probably a Windows format PATH.
15267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15271 # FIXME: find the short name or the path components, as spaces are
15272 # common. (e.g. "Program Files" -> "PROGRA~1")
15276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15277 postinstall_cmds='base_file=`basename \${file}`~
15278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15279 dldir=$destdir/`dirname \$dlpath`~
15280 test -d \$dldir || mkdir -p \$dldir~
15281 $install_prog $dir/$dlname \$dldir/$dlname'
15282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15283 dlpath=$dir/\$dldll~
15285 shlibpath_overrides_runpath=yes
15286 dynamic_linker='Win32 link.exe'
15290 # Assume MSVC wrapper
15291 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15292 dynamic_linker='Win32 ld.exe'
15295 # FIXME: first we should search . and the directory the executable is in
15299 darwin* | rhapsody*)
15300 dynamic_linker="$host_os dyld"
15301 version_type=darwin
15304 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15305 soname_spec='${libname}${release}${major}$shared_ext'
15306 shlibpath_overrides_runpath=yes
15307 shlibpath_var=DYLD_LIBRARY_PATH
15308 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15314 version_type=linux # correct to gnu/linux during the next big refactor
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 shlibpath_var=LD_LIBRARY_PATH
15322 freebsd* | dragonfly*)
15323 # DragonFly does not have aout. When/if they implement a new
15324 # versioning mechanism, adjust this.
15325 if test -x /usr/bin/objformat; then
15326 objformat=`/usr/bin/objformat`
15329 freebsd[23].*) objformat=aout ;;
15330 *) objformat=elf ;;
15333 version_type=freebsd-$objformat
15334 case $version_type in
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15345 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15350 freebsd3.[01]* | freebsdelf3.[01]*)
15351 shlibpath_overrides_runpath=yes
15352 hardcode_into_libs=yes
15354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15359 *) # from 4.6 on, and DragonFly
15360 shlibpath_overrides_runpath=yes
15361 hardcode_into_libs=yes
15367 version_type=linux # correct to gnu/linux during the next big refactor
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=no
15374 hardcode_into_libs=yes
15378 version_type=linux # correct to gnu/linux during the next big refactor
15381 dynamic_linker="$host_os runtime_loader"
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 shlibpath_var=LIBRARY_PATH
15385 shlibpath_overrides_runpath=yes
15386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15387 hardcode_into_libs=yes
15390 hpux9* | hpux10* | hpux11*)
15391 # Give a soname corresponding to the major version so that dld.sl refuses to
15392 # link against other versions.
15399 hardcode_into_libs=yes
15400 dynamic_linker="$host_os dld.so"
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 if test "X$HPUX_IA64_MODE" = X32; then
15406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15414 hardcode_into_libs=yes
15415 dynamic_linker="$host_os dld.sl"
15416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15425 dynamic_linker="$host_os dld.sl"
15426 shlibpath_var=SHLIB_PATH
15427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15433 postinstall_cmds='chmod 555 $lib'
15434 # or fails outright, so override atomically:
15435 install_override_mode=555
15439 version_type=linux # correct to gnu/linux during the next big refactor
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=no
15447 hardcode_into_libs=yes
15450 irix5* | irix6* | nonstopux*)
15452 nonstopux*) version_type=nonstopux ;;
15454 if test "$lt_cv_prog_gnu_ld" = yes; then
15455 version_type=linux # correct to gnu/linux during the next big refactor
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15465 irix5* | nonstopux*)
15466 libsuff= shlibsuff=
15469 case $LD in # libtool.m4 will add one of these switches to LD
15470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15471 libsuff= shlibsuff= libmagic=32-bit;;
15472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15473 libsuff=32 shlibsuff=N32 libmagic=N32;;
15474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15476 *) libsuff= shlibsuff= libmagic=never-match;;
15480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15481 shlibpath_overrides_runpath=no
15482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15484 hardcode_into_libs=yes
15487 # No shared lib support for Linux oldld, aout, or coff.
15488 linux*oldld* | linux*aout* | linux*coff*)
15492 # This must be glibc/ELF.
15493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15494 version_type=linux # correct to gnu/linux during the next big refactor
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=no
15503 # Some binutils ld are patched to set DT_RUNPATH
15504 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15505 $as_echo_n "(cached) " >&6
15507 lt_cv_shlibpath_overrides_runpath=no
15508 save_LDFLAGS=$LDFLAGS
15509 save_libdir=$libdir
15510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15523 if ac_fn_cxx_try_link "$LINENO"; then :
15524 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15525 lt_cv_shlibpath_overrides_runpath=yes
15528 rm -f core conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15530 LDFLAGS=$save_LDFLAGS
15531 libdir=$save_libdir
15535 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15537 # This implies no fast_install, which is unacceptable.
15538 # Some rework will be needed to allow for fast_install
15539 # before this can be enabled.
15540 hardcode_into_libs=yes
15542 # Append ld.so.conf contents to the search path
15543 if test -f /etc/ld.so.conf; then
15544 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' ' '`
15545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15548 # We used to test for /lib/ld.so.1 and disable shared libraries on
15549 # powerpc, because MkLinux only supported shared libraries with the
15550 # GNU dynamic linker. Since this was broken with cross compilers,
15551 # most powerpc-linux boxes support dynamic linking these days and
15552 # people can always --disable-shared, the test was removed, and we
15553 # assume the GNU/Linux dynamic linker is in use.
15554 dynamic_linker='GNU/Linux ld.so'
15561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564 dynamic_linker='NetBSD (a.out) ld.so'
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 dynamic_linker='NetBSD ld.elf_so'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 hardcode_into_libs=yes
15576 version_type=linux # correct to gnu/linux during the next big refactor
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=yes
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 shlibpath_overrides_runpath=no
15590 hardcode_into_libs=yes
15591 dynamic_linker='ldqnx.so'
15596 sys_lib_dlsearch_path_spec="/usr/lib"
15598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15601 *) need_version=no ;;
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15608 openbsd2.[89] | openbsd2.[89].*)
15609 shlibpath_overrides_runpath=no
15612 shlibpath_overrides_runpath=yes
15616 shlibpath_overrides_runpath=yes
15621 libname_spec='$name'
15624 library_names_spec='$libname${shared_ext} $libname.a'
15625 dynamic_linker='OS/2 ld.exe'
15626 shlibpath_var=LIBPATH
15629 osf3* | osf4* | osf5*)
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15645 version_type=linux # correct to gnu/linux during the next big refactor
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=yes
15652 hardcode_into_libs=yes
15653 # ldd complains unless libraries are executable
15654 postinstall_cmds='chmod +x $lib'
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=yes
15663 if test "$with_gnu_ld" = yes; then
15670 version_type=linux # correct to gnu/linux during the next big refactor
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 case $host_vendor in
15676 shlibpath_overrides_runpath=no
15678 runpath_var=LD_RUN_PATH
15686 shlibpath_overrides_runpath=no
15687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15693 if test -d /usr/nec ;then
15694 version_type=linux # correct to gnu/linux during the next big refactor
15695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15696 soname_spec='$libname${shared_ext}.$major'
15697 shlibpath_var=LD_LIBRARY_PATH
15701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15702 version_type=freebsd-elf
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 hardcode_into_libs=yes
15710 if test "$with_gnu_ld" = yes; then
15711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15720 sys_lib_dlsearch_path_spec='/usr/lib'
15724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15725 version_type=linux # correct to gnu/linux during the next big refactor
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 shlibpath_overrides_runpath=no
15731 hardcode_into_libs=yes
15735 version_type=linux # correct to gnu/linux during the next big refactor
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15746 $as_echo "$dynamic_linker" >&6; }
15747 test "$dynamic_linker" = no && can_build_shared=no
15749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15750 if test "$GCC" = yes; then
15751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15755 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15758 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15800 hardcode_action_CXX=
15801 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15802 test -n "$runpath_var_CXX" ||
15803 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15805 # We can hardcode non-existent directories.
15806 if test "$hardcode_direct_CXX" != no &&
15807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15808 # have to relink, otherwise we might link with an installed library
15809 # when we should be linking with a yet-to-be-installed one
15810 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15811 test "$hardcode_minus_L_CXX" != no; then
15812 # Linking always hardcodes the temporary library directory.
15813 hardcode_action_CXX=relink
15815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15816 hardcode_action_CXX=immediate
15819 # We cannot hardcode anything, or else we can only hardcode existing
15821 hardcode_action_CXX=unsupported
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15824 $as_echo "$hardcode_action_CXX" >&6; }
15826 if test "$hardcode_action_CXX" = relink ||
15827 test "$inherit_rpath_CXX" = yes; then
15828 # Fast installation is not supported
15829 enable_fast_install=no
15830 elif test "$shlibpath_overrides_runpath" = yes ||
15831 test "$enable_shared" = no; then
15832 # Fast installation is not necessary
15833 enable_fast_install=needless
15842 fi # test -n "$compiler"
15845 CFLAGS=$lt_save_CFLAGS
15849 with_gnu_ld=$lt_save_with_gnu_ld
15850 lt_cv_path_LDCXX=$lt_cv_path_LD
15851 lt_cv_path_LD=$lt_save_path_LD
15852 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15853 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15854 fi # test "$_lt_caught_CXX_error" != yes
15857 ac_cpp='$CPP $CPPFLAGS'
15858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15869 if test -n "$GCC"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15871 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15872 if ${gl_cv_cc_vis_werror+:} false; then :
15873 $as_echo_n "(cached) " >&6
15876 gl_save_CFLAGS="$CFLAGS"
15877 CFLAGS="$CFLAGS -Werror"
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890 gl_cv_cc_vis_werror=yes
15892 gl_cv_cc_vis_werror=no
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 CFLAGS="$gl_save_CFLAGS"
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15899 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15901 $as_echo_n "checking for simple visibility declarations... " >&6; }
15902 if ${gl_cv_cc_visibility+:} false; then :
15903 $as_echo_n "(cached) " >&6
15906 gl_save_CFLAGS="$CFLAGS"
15907 CFLAGS="$CFLAGS -fvisibility=hidden"
15908 if test $gl_cv_cc_vis_werror = yes; then
15909 CFLAGS="$CFLAGS -Werror"
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15914 extern __attribute__((__visibility__("default"))) int exportedvar;
15915 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15916 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15917 void dummyfunc (void) {}
15927 if ac_fn_c_try_compile "$LINENO"; then :
15928 gl_cv_cc_visibility=yes
15930 gl_cv_cc_visibility=no
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 CFLAGS="$gl_save_CFLAGS"
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15937 $as_echo "$gl_cv_cc_visibility" >&6; }
15938 if test $gl_cv_cc_visibility = yes; then
15939 CFLAG_VISIBILITY="-fvisibility=hidden"
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15951 if test -n "$CFLAG_VISIBILITY" ; then :
15953 AM_CPPFLAGS="$AM_CPPFLAGS $CFLAG_VISIBILITY"
15954 CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
15958 # Check whether --enable-silent-rules was given.
15959 if test "${enable_silent_rules+set}" = set; then :
15960 enableval=$enable_silent_rules;
15963 case $enable_silent_rules in # (((
15964 yes) AM_DEFAULT_VERBOSITY=0;;
15965 no) AM_DEFAULT_VERBOSITY=1;;
15966 *) AM_DEFAULT_VERBOSITY=0;;
15968 am_make=${MAKE-make}
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15970 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15971 if ${am_cv_make_support_nested_variables+:} false; then :
15972 $as_echo_n "(cached) " >&6
15974 if $as_echo 'TRUE=$(BAR$(V))
15980 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15981 am_cv_make_support_nested_variables=yes
15983 am_cv_make_support_nested_variables=no
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15987 $as_echo "$am_cv_make_support_nested_variables" >&6; }
15988 if test $am_cv_make_support_nested_variables = yes; then
15990 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15992 AM_V=$AM_DEFAULT_VERBOSITY
15993 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15998 for ac_func in gethostbyname
16000 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16001 if test "x$ac_cv_func_gethostbyname" = xyes; then :
16002 cat >>confdefs.h <<_ACEOF
16003 #define HAVE_GETHOSTBYNAME 1
16009 for ac_func in getaddrinfo
16011 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16012 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
16013 cat >>confdefs.h <<_ACEOF
16014 #define HAVE_GETADDRINFO 1
16020 for ac_func in gettimeofday
16022 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16023 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16024 cat >>confdefs.h <<_ACEOF
16025 #define HAVE_GETTIMEOFDAY 1
16031 for ac_func in inet_ntoa
16033 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
16034 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
16035 cat >>confdefs.h <<_ACEOF
16036 #define HAVE_INET_NTOA 1
16042 for ac_func in memset
16044 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16045 if test "x$ac_cv_func_memset" = xyes; then :
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_MEMSET 1
16053 for ac_func in socket
16055 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16056 if test "x$ac_cv_func_socket" = xyes; then :
16057 cat >>confdefs.h <<_ACEOF
16058 #define HAVE_SOCKET 1
16064 for ac_header in arpa/inet.h
16066 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16067 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_ARPA_INET_H 1
16076 for ac_header in fcntl.h
16078 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16079 if test "x$ac_cv_header_fcntl_h" = xyes; then :
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_FCNTL_H 1
16088 for ac_header in limits.h
16090 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16091 if test "x$ac_cv_header_limits_h" = xyes; then :
16092 cat >>confdefs.h <<_ACEOF
16093 #define HAVE_LIMITS_H 1
16100 for ac_header in netdb.h
16102 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
16103 if test "x$ac_cv_header_netdb_h" = xyes; then :
16104 cat >>confdefs.h <<_ACEOF
16105 #define HAVE_NETDB_H 1
16112 for ac_header in netinet/in.h
16114 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16115 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16116 cat >>confdefs.h <<_ACEOF
16117 #define HAVE_NETINET_IN_H 1
16124 for ac_header in stddef.h
16126 ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
16127 if test "x$ac_cv_header_stddef_h" = xyes; then :
16128 cat >>confdefs.h <<_ACEOF
16129 #define HAVE_STDDEF_H 1
16136 for ac_header in sys/ioctl.h
16138 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16139 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_SYS_IOCTL_H 1
16148 for ac_header in sys/socket.h
16150 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
16151 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16152 cat >>confdefs.h <<_ACEOF
16153 #define HAVE_SYS_SOCKET_H 1
16160 for ac_header in sys/time.h
16162 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16163 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_SYS_TIME_H 1
16172 for ac_header in errno.h
16174 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
16175 if test "x$ac_cv_header_errno_h" = xyes; then :
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_ERRNO_H 1
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
16185 $as_echo_n "checking for socket in -lnetwork... " >&6; }
16186 if ${ac_cv_lib_network_socket+:} false; then :
16187 $as_echo_n "(cached) " >&6
16189 ac_check_lib_save_LIBS=$LIBS
16190 LIBS="-lnetwork $LIBS"
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16194 /* Override any GCC internal prototype to avoid an error.
16195 Use char because int might match the return type of a GCC
16196 builtin and then its argument prototype would still apply. */
16209 if ac_fn_c_try_link "$LINENO"; then :
16210 ac_cv_lib_network_socket=yes
16212 ac_cv_lib_network_socket=no
16214 rm -f core conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 LIBS=$ac_check_lib_save_LIBS
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
16219 $as_echo "$ac_cv_lib_network_socket" >&6; }
16220 if test "x$ac_cv_lib_network_socket" = xyes; then :
16221 cat >>confdefs.h <<_ACEOF
16222 #define HAVE_LIBNETWORK 1
16225 LIBS="-lnetwork $LIBS"
16229 # The cast to long int works around a bug in the HP C Compiler
16230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16232 # This bug is HP SR number 8606223364.
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16234 $as_echo_n "checking size of long long... " >&6; }
16235 if ${ac_cv_sizeof_long_long+:} false; then :
16236 $as_echo_n "(cached) " >&6
16238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16241 if test "$ac_cv_type_long_long" = yes; then
16242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16244 as_fn_error 77 "cannot compute sizeof (long long)
16245 See \`config.log' for more details" "$LINENO" 5; }
16247 ac_cv_sizeof_long_long=0
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16253 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16257 cat >>confdefs.h <<_ACEOF
16258 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16262 # The cast to long int works around a bug in the HP C Compiler
16263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16265 # This bug is HP SR number 8606223364.
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16267 $as_echo_n "checking size of long... " >&6; }
16268 if ${ac_cv_sizeof_long+:} false; then :
16269 $as_echo_n "(cached) " >&6
16271 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16274 if test "$ac_cv_type_long" = yes; then
16275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16277 as_fn_error 77 "cannot compute sizeof (long)
16278 See \`config.log' for more details" "$LINENO" 5; }
16280 ac_cv_sizeof_long=0
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16286 $as_echo "$ac_cv_sizeof_long" >&6; }
16290 cat >>confdefs.h <<_ACEOF
16291 #define SIZEOF_LONG $ac_cv_sizeof_long
16295 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
16296 if test "x$ac_cv_type___uint128_t" = xyes; then :
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE___UINT128_T 1
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16307 if ${ac_cv_c_bigendian+:} false; then :
16308 $as_echo_n "(cached) " >&6
16310 ac_cv_c_bigendian=unknown
16311 # See if we're dealing with a universal compiler.
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16314 #ifndef __APPLE_CC__
16315 not a universal capable compiler
16320 if ac_fn_c_try_compile "$LINENO"; then :
16322 # Check for potential -arch flags. It is not universal unless
16323 # there are at least two -arch flags with different values.
16326 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16327 if test -n "$ac_prev"; then
16329 i?86 | x86_64 | ppc | ppc64)
16330 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16333 ac_cv_c_bigendian=universal
16339 elif test "x$ac_word" = "x-arch"; then
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 if test $ac_cv_c_bigendian = unknown; then
16346 # See if sys/param.h defines the BYTE_ORDER macro.
16347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349 #include <sys/types.h>
16350 #include <sys/param.h>
16355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16358 bogus endian macros
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366 # It does; now see whether it defined to BIG_ENDIAN or not.
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 #include <sys/types.h>
16370 #include <sys/param.h>
16375 #if BYTE_ORDER != BIG_ENDIAN
16383 if ac_fn_c_try_compile "$LINENO"; then :
16384 ac_cv_c_bigendian=yes
16386 ac_cv_c_bigendian=no
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 if test $ac_cv_c_bigendian = unknown; then
16393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #include <limits.h>
16401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16402 bogus endian macros
16409 if ac_fn_c_try_compile "$LINENO"; then :
16410 # It does; now see whether it defined to _BIG_ENDIAN or not.
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 #include <limits.h>
16418 #ifndef _BIG_ENDIAN
16426 if ac_fn_c_try_compile "$LINENO"; then :
16427 ac_cv_c_bigendian=yes
16429 ac_cv_c_bigendian=no
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 if test $ac_cv_c_bigendian = unknown; then
16436 # Compile a test program.
16437 if test "$cross_compiling" = yes; then :
16438 # Try to guess by grepping values from an object file.
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 short int ascii_mm[] =
16442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16443 short int ascii_ii[] =
16444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16445 int use_ascii (int i) {
16446 return ascii_mm[i] + ascii_ii[i];
16448 short int ebcdic_ii[] =
16449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16450 short int ebcdic_mm[] =
16451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16452 int use_ebcdic (int i) {
16453 return ebcdic_mm[i] + ebcdic_ii[i];
16460 return use_ascii (foo) == use_ebcdic (foo);
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16467 ac_cv_c_bigendian=yes
16469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16470 if test "$ac_cv_c_bigendian" = unknown; then
16471 ac_cv_c_bigendian=no
16473 # finding both strings is unlikely to happen, but who knows?
16474 ac_cv_c_bigendian=unknown
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16482 $ac_includes_default
16487 /* Are we little or big endian? From Harbison&Steele. */
16491 char c[sizeof (long int)];
16494 return u.c[sizeof (long int) - 1] == 1;
16500 if ac_fn_c_try_run "$LINENO"; then :
16501 ac_cv_c_bigendian=no
16503 ac_cv_c_bigendian=yes
16505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16506 conftest.$ac_objext conftest.beam conftest.$ac_ext
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16512 $as_echo "$ac_cv_c_bigendian" >&6; }
16513 case $ac_cv_c_bigendian in #(
16515 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16525 as_fn_error $? "unknown endianness
16526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16529 # mktime check takes forever on some systems, if time supported it would be
16530 # highly unusual for mktime to be missing
16534 ac_cpp='$CPP $CPPFLAGS'
16535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16538 if test -n "$ac_tool_prefix"; then
16539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542 $as_echo_n "checking for $ac_word... " >&6; }
16543 if ${ac_cv_prog_CC+:} false; then :
16544 $as_echo_n "(cached) " >&6
16546 if test -n "$CC"; then
16547 ac_cv_prog_CC="$CC" # Let the user override the test.
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16567 if test -n "$CC"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16569 $as_echo "$CC" >&6; }
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16577 if test -z "$ac_cv_prog_CC"; then
16579 # Extract the first word of "gcc", so it can be a program name with args.
16580 set dummy gcc; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16584 $as_echo_n "(cached) " >&6
16586 if test -n "$ac_ct_CC"; then
16587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_ac_ct_CC="gcc"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16607 if test -n "$ac_ct_CC"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16609 $as_echo "$ac_ct_CC" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16615 if test "x$ac_ct_CC" = x; then
16618 case $cross_compiling:$ac_tool_warned in
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16622 ac_tool_warned=yes ;;
16627 CC="$ac_cv_prog_CC"
16630 if test -z "$CC"; then
16631 if test -n "$ac_tool_prefix"; then
16632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16633 set dummy ${ac_tool_prefix}cc; ac_word=$2
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16635 $as_echo_n "checking for $ac_word... " >&6; }
16636 if ${ac_cv_prog_CC+:} false; then :
16637 $as_echo_n "(cached) " >&6
16639 if test -n "$CC"; then
16640 ac_cv_prog_CC="$CC" # Let the user override the test.
16642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643 for as_dir in $PATH
16646 test -z "$as_dir" && as_dir=.
16647 for ac_exec_ext in '' $ac_executable_extensions; do
16648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16649 ac_cv_prog_CC="${ac_tool_prefix}cc"
16650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16660 if test -n "$CC"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16662 $as_echo "$CC" >&6; }
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665 $as_echo "no" >&6; }
16671 if test -z "$CC"; then
16672 # Extract the first word of "cc", so it can be a program name with args.
16673 set dummy cc; ac_word=$2
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675 $as_echo_n "checking for $ac_word... " >&6; }
16676 if ${ac_cv_prog_CC+:} false; then :
16677 $as_echo_n "(cached) " >&6
16679 if test -n "$CC"; then
16680 ac_cv_prog_CC="$CC" # Let the user override the test.
16682 ac_prog_rejected=no
16683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16684 for as_dir in $PATH
16687 test -z "$as_dir" && as_dir=.
16688 for ac_exec_ext in '' $ac_executable_extensions; do
16689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16691 ac_prog_rejected=yes
16695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16702 if test $ac_prog_rejected = yes; then
16703 # We found a bogon in the path, so make sure we never use it.
16704 set dummy $ac_cv_prog_CC
16706 if test $# != 0; then
16707 # We chose a different compiler from the bogus one.
16708 # However, it has the same basename, so the bogon will be chosen
16709 # first if we set CC to just the basename; use the full file name.
16711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16717 if test -n "$CC"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16719 $as_echo "$CC" >&6; }
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722 $as_echo "no" >&6; }
16727 if test -z "$CC"; then
16728 if test -n "$ac_tool_prefix"; then
16729 for ac_prog in cl.exe
16731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_CC+:} false; then :
16736 $as_echo_n "(cached) " >&6
16738 if test -n "$CC"; then
16739 ac_cv_prog_CC="$CC" # Let the user override the test.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16759 if test -n "$CC"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16761 $as_echo "$CC" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16768 test -n "$CC" && break
16771 if test -z "$CC"; then
16773 for ac_prog in cl.exe
16775 # Extract the first word of "$ac_prog", so it can be a program name with args.
16776 set dummy $ac_prog; ac_word=$2
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16778 $as_echo_n "checking for $ac_word... " >&6; }
16779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16780 $as_echo_n "(cached) " >&6
16782 if test -n "$ac_ct_CC"; then
16783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16789 test -z "$as_dir" && as_dir=.
16790 for ac_exec_ext in '' $ac_executable_extensions; do
16791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16792 ac_cv_prog_ac_ct_CC="$ac_prog"
16793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16803 if test -n "$ac_ct_CC"; then
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16805 $as_echo "$ac_ct_CC" >&6; }
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808 $as_echo "no" >&6; }
16812 test -n "$ac_ct_CC" && break
16815 if test "x$ac_ct_CC" = x; then
16818 case $cross_compiling:$ac_tool_warned in
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16822 ac_tool_warned=yes ;;
16831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16833 as_fn_error $? "no acceptable C compiler found in \$PATH
16834 See \`config.log' for more details" "$LINENO" 5; }
16836 # Provide some information about the compiler.
16837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16840 for ac_option in --version -v -V -qversion; do
16841 { { ac_try="$ac_compiler $ac_option >&5"
16842 case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16847 $as_echo "$ac_try_echo"; } >&5
16848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16850 if test -s conftest.err; then
16852 ... rest of stderr output deleted ...
16853 10q' conftest.err >conftest.er1
16854 cat conftest.er1 >&5
16856 rm -f conftest.er1 conftest.err
16857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16858 test $ac_status = 0; }
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16862 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16863 if ${ac_cv_c_compiler_gnu+:} false; then :
16864 $as_echo_n "(cached) " >&6
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881 ac_compiler_gnu=yes
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16891 if test $ac_compiler_gnu = yes; then
16896 ac_test_CFLAGS=${CFLAGS+set}
16897 ac_save_CFLAGS=$CFLAGS
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16900 if ${ac_cv_prog_cc_g+:} false; then :
16901 $as_echo_n "(cached) " >&6
16903 ac_save_c_werror_flag=$ac_c_werror_flag
16904 ac_c_werror_flag=yes
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919 ac_cv_prog_cc_g=yes
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16933 if ac_fn_c_try_compile "$LINENO"; then :
16936 ac_c_werror_flag=$ac_save_c_werror_flag
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16949 if ac_fn_c_try_compile "$LINENO"; then :
16950 ac_cv_prog_cc_g=yes
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957 ac_c_werror_flag=$ac_save_c_werror_flag
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16960 $as_echo "$ac_cv_prog_cc_g" >&6; }
16961 if test "$ac_test_CFLAGS" = set; then
16962 CFLAGS=$ac_save_CFLAGS
16963 elif test $ac_cv_prog_cc_g = yes; then
16964 if test "$GCC" = yes; then
16970 if test "$GCC" = yes; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16977 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16978 if ${ac_cv_prog_cc_c89+:} false; then :
16979 $as_echo_n "(cached) " >&6
16981 ac_cv_prog_cc_c89=no
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16985 #include <stdarg.h>
16988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16989 struct buf { int x; };
16990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16991 static char *e (p, i)
16997 static char *f (char * (*g) (char **, int), char **p, ...)
17002 s = g (p, va_arg (v,int));
17007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
17008 function prototypes and stuff, but not '\xHH' hex character constants.
17009 These don't provoke an error unfortunately, instead are silently treated
17010 as 'x'. The following induces an error, until -std is added to get
17011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
17012 array size at least. It's necessary to write '\x00'==0 to get something
17013 that's true only with -std. */
17014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17017 inside strings and character constants. */
17019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17021 int test (int i, double x);
17022 struct s1 {int (*f) (int a);};
17023 struct s2 {int (*f) (double a);};
17024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
17035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17038 CC="$ac_save_CC $ac_arg"
17039 if ac_fn_c_try_compile "$LINENO"; then :
17040 ac_cv_prog_cc_c89=$ac_arg
17042 rm -f core conftest.err conftest.$ac_objext
17043 test "x$ac_cv_prog_cc_c89" != "xno" && break
17045 rm -f conftest.$ac_ext
17050 case "x$ac_cv_prog_cc_c89" in
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17053 $as_echo "none needed" >&6; } ;;
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17056 $as_echo "unsupported" >&6; } ;;
17058 CC="$CC $ac_cv_prog_cc_c89"
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17062 if test "x$ac_cv_prog_cc_c89" != xno; then :
17067 ac_cpp='$CPP $CPPFLAGS'
17068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17073 ac_cpp='$CPP $CPPFLAGS'
17074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17078 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
17079 if ${am_cv_prog_cc_c_o+:} false; then :
17080 $as_echo_n "(cached) " >&6
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17093 # Make sure it works both with $CC and with simple cc.
17094 # Following AC_PROG_CC_C_O, we do the test twice because some
17095 # compilers refuse to overwrite an existing .o file with -o,
17096 # though they will create one.
17097 am_cv_prog_cc_c_o=yes
17098 for am_i in 1 2; do
17099 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17100 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } \
17104 && test -f conftest2.$ac_objext; then
17107 am_cv_prog_cc_c_o=no
17111 rm -f core conftest*
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17115 $as_echo "$am_cv_prog_cc_c_o" >&6; }
17116 if test "$am_cv_prog_cc_c_o" != yes; then
17117 # Losing compiler, so override with the script.
17118 # FIXME: It is wrong to rewrite CC.
17119 # But if we don't then we get into trouble of one sort or another.
17120 # A longer-term fix would be to have automake use am__CC in this case,
17121 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17122 CC="$am_aux_dir/compile $CC"
17125 ac_cpp='$CPP $CPPFLAGS'
17126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17131 depcc="$CC" am_compiler_list=
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17134 $as_echo_n "checking dependency style of $depcc... " >&6; }
17135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17136 $as_echo_n "(cached) " >&6
17138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17139 # We make a subdir and do the tests there. Otherwise we can end up
17140 # making bogus files that we don't know about and never remove. For
17141 # instance it was reported that on HP-UX the gcc test will end up
17142 # making a dummy file named 'D' -- because '-MD' means "put the output
17144 rm -rf conftest.dir
17146 # Copy depcomp to subdir because otherwise we won't find it if we're
17147 # using a relative directory.
17148 cp "$am_depcomp" conftest.dir
17150 # We will build objects and dependencies in a subdirectory because
17151 # it helps to detect inapplicable dependency modes. For instance
17152 # both Tru64's cc and ICC support -MD to output dependencies as a
17153 # side effect of compilation, but ICC will put the dependencies in
17154 # the current directory while Tru64 will put them in the object
17158 am_cv_CC_dependencies_compiler_type=none
17159 if test "$am_compiler_list" = ""; then
17160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17162 am__universal=false
17163 case " $depcc " in #(
17164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17167 for depmode in $am_compiler_list; do
17168 # Setup a source with many dependencies, because some compilers
17169 # like to wrap large dependency lists on column 80 (with \), and
17170 # we should not choose a depcomp mode which is confused by this.
17172 # We need to recreate these files for each test, as the compiler may
17173 # overwrite some of them when testing with obscure command lines.
17174 # This happens at least with the AIX C compiler.
17176 for i in 1 2 3 4 5 6; do
17177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17179 # Solaris 10 /bin/sh.
17180 echo '/* dummy */' > sub/conftst$i.h
17182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17185 # mode. It turns out that the SunPro C++ compiler does not properly
17186 # handle '-M -o', and we need to detect this. Also, some Intel
17187 # versions had trouble with output in subdirs.
17188 am__obj=sub/conftest.${OBJEXT-o}
17189 am__minus_obj="-o $am__obj"
17192 # This depmode causes a compiler race in universal mode.
17193 test "$am__universal" = false || continue
17196 # After this tag, mechanisms are not by side-effect, so they'll
17197 # only be used when explicitly requested.
17198 if test "x$enable_dependency_tracking" = xyes; then
17204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17205 # This compiler won't grok '-c -o', but also, the minuso test has
17206 # not run yet. These depmodes are late enough in the game, and
17207 # so weak that their functioning should not be impacted.
17208 am__obj=conftest.${OBJEXT-o}
17213 if depmode=$depmode \
17214 source=sub/conftest.c object=$am__obj \
17215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17217 >/dev/null 2>conftest.err &&
17218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17222 # icc doesn't choke on unknown options, it will just issue warnings
17223 # or remarks (even with -Werror). So we grep stderr for any message
17224 # that says an option was ignored or not supported.
17225 # When given -MP, icc 7.0 and 7.1 complain thusly:
17226 # icc: Command line warning: ignoring option '-M'; no argument required
17227 # The diagnosis changed in icc 8.0:
17228 # icc: Command line remark: option '-MP' not supported
17229 if (grep 'ignoring option' conftest.err ||
17230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17231 am_cv_CC_dependencies_compiler_type=$depmode
17238 rm -rf conftest.dir
17240 am_cv_CC_dependencies_compiler_type=none
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17249 test "x$enable_dependency_tracking" != xno \
17250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17251 am__fastdepCC_TRUE=
17252 am__fastdepCC_FALSE='#'
17254 am__fastdepCC_TRUE='#'
17255 am__fastdepCC_FALSE=
17259 if test "x$CC" != xcc; then
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17261 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17264 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17266 set dummy $CC; ac_cc=`$as_echo "$2" |
17267 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17268 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17269 $as_echo_n "(cached) " >&6
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17282 # Make sure it works both with $CC and with simple cc.
17283 # We do the test twice because some compilers refuse to overwrite an
17284 # existing .o file with -o, though they will create one.
17285 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17287 if { { case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17292 $as_echo "$ac_try_echo"; } >&5
17293 (eval "$ac_try") 2>&5
17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296 test $ac_status = 0; } &&
17297 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17302 $as_echo "$ac_try_echo"; } >&5
17303 (eval "$ac_try") 2>&5
17305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17306 test $ac_status = 0; };
17308 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17309 if test "x$CC" != xcc; then
17310 # Test first that cc exists at all.
17311 if { ac_try='cc -c conftest.$ac_ext >&5'
17312 { { case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17317 $as_echo "$ac_try_echo"; } >&5
17318 (eval "$ac_try") 2>&5
17320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17321 test $ac_status = 0; }; }; then
17322 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17324 if { { case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17329 $as_echo "$ac_try_echo"; } >&5
17330 (eval "$ac_try") 2>&5
17332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17333 test $ac_status = 0; } &&
17334 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17339 $as_echo "$ac_try_echo"; } >&5
17340 (eval "$ac_try") 2>&5
17342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17343 test $ac_status = 0; };
17348 # cc exists but doesn't like -o.
17349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17354 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17356 rm -f core conftest*
17359 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17361 $as_echo "yes" >&6; }
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364 $as_echo "no" >&6; }
17366 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17375 if test -z "$CXX"; then
17376 if test -n "$CCC"; then
17379 if test -n "$ac_tool_prefix"; then
17380 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385 $as_echo_n "checking for $ac_word... " >&6; }
17386 if ${ac_cv_prog_CXX+:} false; then :
17387 $as_echo_n "(cached) " >&6
17389 if test -n "$CXX"; then
17390 ac_cv_prog_CXX="$CXX" # Let the user override the test.
17392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17396 test -z "$as_dir" && as_dir=.
17397 for ac_exec_ext in '' $ac_executable_extensions; do
17398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17409 CXX=$ac_cv_prog_CXX
17410 if test -n "$CXX"; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17412 $as_echo "$CXX" >&6; }
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415 $as_echo "no" >&6; }
17419 test -n "$CXX" && break
17422 if test -z "$CXX"; then
17424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17426 # Extract the first word of "$ac_prog", so it can be a program name with args.
17427 set dummy $ac_prog; ac_word=$2
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17429 $as_echo_n "checking for $ac_word... " >&6; }
17430 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
17431 $as_echo_n "(cached) " >&6
17433 if test -n "$ac_ct_CXX"; then
17434 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17437 for as_dir in $PATH
17440 test -z "$as_dir" && as_dir=.
17441 for ac_exec_ext in '' $ac_executable_extensions; do
17442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17443 ac_cv_prog_ac_ct_CXX="$ac_prog"
17444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17453 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17454 if test -n "$ac_ct_CXX"; then
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17456 $as_echo "$ac_ct_CXX" >&6; }
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 $as_echo "no" >&6; }
17463 test -n "$ac_ct_CXX" && break
17466 if test "x$ac_ct_CXX" = x; then
17469 case $cross_compiling:$ac_tool_warned in
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17473 ac_tool_warned=yes ;;
17481 # Provide some information about the compiler.
17482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17485 for ac_option in --version -v -V -qversion; do
17486 { { ac_try="$ac_compiler $ac_option >&5"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17492 $as_echo "$ac_try_echo"; } >&5
17493 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17495 if test -s conftest.err; then
17497 ... rest of stderr output deleted ...
17498 10q' conftest.err >conftest.er1
17499 cat conftest.er1 >&5
17501 rm -f conftest.er1 conftest.err
17502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17503 test $ac_status = 0; }
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
17507 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17508 if ${ac_cv_cxx_compiler_gnu+:} false; then :
17509 $as_echo_n "(cached) " >&6
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17525 if ac_fn_cxx_try_compile "$LINENO"; then :
17526 ac_compiler_gnu=yes
17530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17535 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17536 if test $ac_compiler_gnu = yes; then
17541 ac_test_CXXFLAGS=${CXXFLAGS+set}
17542 ac_save_CXXFLAGS=$CXXFLAGS
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17544 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
17545 if ${ac_cv_prog_cxx_g+:} false; then :
17546 $as_echo_n "(cached) " >&6
17548 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17549 ac_cxx_werror_flag=yes
17550 ac_cv_prog_cxx_g=no
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17563 if ac_fn_cxx_try_compile "$LINENO"; then :
17564 ac_cv_prog_cxx_g=yes
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17578 if ac_fn_cxx_try_compile "$LINENO"; then :
17581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17594 if ac_fn_cxx_try_compile "$LINENO"; then :
17595 ac_cv_prog_cxx_g=yes
17597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17605 $as_echo "$ac_cv_prog_cxx_g" >&6; }
17606 if test "$ac_test_CXXFLAGS" = set; then
17607 CXXFLAGS=$ac_save_CXXFLAGS
17608 elif test $ac_cv_prog_cxx_g = yes; then
17609 if test "$GXX" = yes; then
17615 if test "$GXX" = yes; then
17622 ac_cpp='$CPP $CPPFLAGS'
17623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627 depcc="$CXX" am_compiler_list=
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17630 $as_echo_n "checking dependency style of $depcc... " >&6; }
17631 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17632 $as_echo_n "(cached) " >&6
17634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17635 # We make a subdir and do the tests there. Otherwise we can end up
17636 # making bogus files that we don't know about and never remove. For
17637 # instance it was reported that on HP-UX the gcc test will end up
17638 # making a dummy file named 'D' -- because '-MD' means "put the output
17640 rm -rf conftest.dir
17642 # Copy depcomp to subdir because otherwise we won't find it if we're
17643 # using a relative directory.
17644 cp "$am_depcomp" conftest.dir
17646 # We will build objects and dependencies in a subdirectory because
17647 # it helps to detect inapplicable dependency modes. For instance
17648 # both Tru64's cc and ICC support -MD to output dependencies as a
17649 # side effect of compilation, but ICC will put the dependencies in
17650 # the current directory while Tru64 will put them in the object
17654 am_cv_CXX_dependencies_compiler_type=none
17655 if test "$am_compiler_list" = ""; then
17656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17658 am__universal=false
17659 case " $depcc " in #(
17660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17663 for depmode in $am_compiler_list; do
17664 # Setup a source with many dependencies, because some compilers
17665 # like to wrap large dependency lists on column 80 (with \), and
17666 # we should not choose a depcomp mode which is confused by this.
17668 # We need to recreate these files for each test, as the compiler may
17669 # overwrite some of them when testing with obscure command lines.
17670 # This happens at least with the AIX C compiler.
17672 for i in 1 2 3 4 5 6; do
17673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17674 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17675 # Solaris 10 /bin/sh.
17676 echo '/* dummy */' > sub/conftst$i.h
17678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17680 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17681 # mode. It turns out that the SunPro C++ compiler does not properly
17682 # handle '-M -o', and we need to detect this. Also, some Intel
17683 # versions had trouble with output in subdirs.
17684 am__obj=sub/conftest.${OBJEXT-o}
17685 am__minus_obj="-o $am__obj"
17688 # This depmode causes a compiler race in universal mode.
17689 test "$am__universal" = false || continue
17692 # After this tag, mechanisms are not by side-effect, so they'll
17693 # only be used when explicitly requested.
17694 if test "x$enable_dependency_tracking" = xyes; then
17700 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17701 # This compiler won't grok '-c -o', but also, the minuso test has
17702 # not run yet. These depmodes are late enough in the game, and
17703 # so weak that their functioning should not be impacted.
17704 am__obj=conftest.${OBJEXT-o}
17709 if depmode=$depmode \
17710 source=sub/conftest.c object=$am__obj \
17711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17713 >/dev/null 2>conftest.err &&
17714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17718 # icc doesn't choke on unknown options, it will just issue warnings
17719 # or remarks (even with -Werror). So we grep stderr for any message
17720 # that says an option was ignored or not supported.
17721 # When given -MP, icc 7.0 and 7.1 complain thusly:
17722 # icc: Command line warning: ignoring option '-M'; no argument required
17723 # The diagnosis changed in icc 8.0:
17724 # icc: Command line remark: option '-MP' not supported
17725 if (grep 'ignoring option' conftest.err ||
17726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17727 am_cv_CXX_dependencies_compiler_type=$depmode
17734 rm -rf conftest.dir
17736 am_cv_CXX_dependencies_compiler_type=none
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17741 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17742 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17745 test "x$enable_dependency_tracking" != xno \
17746 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17747 am__fastdepCXX_TRUE=
17748 am__fastdepCXX_FALSE='#'
17750 am__fastdepCXX_TRUE='#'
17751 am__fastdepCXX_FALSE=
17756 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17757 if test "x$ac_cv_type_size_t" = xyes; then :
17761 cat >>confdefs.h <<_ACEOF
17762 #define size_t unsigned int
17767 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17768 case $ac_cv_c_uint8_t in #(
17772 $as_echo "#define _UINT8_T 1" >>confdefs.h
17775 cat >>confdefs.h <<_ACEOF
17776 #define uint8_t $ac_cv_c_uint8_t
17781 # By default we simply use the C compiler to build assembly code.
17783 test "${CCAS+set}" = set || CCAS=$CC
17784 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
17788 depcc="$CCAS" am_compiler_list=
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17791 $as_echo_n "checking dependency style of $depcc... " >&6; }
17792 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
17793 $as_echo_n "(cached) " >&6
17795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17796 # We make a subdir and do the tests there. Otherwise we can end up
17797 # making bogus files that we don't know about and never remove. For
17798 # instance it was reported that on HP-UX the gcc test will end up
17799 # making a dummy file named 'D' -- because '-MD' means "put the output
17801 rm -rf conftest.dir
17803 # Copy depcomp to subdir because otherwise we won't find it if we're
17804 # using a relative directory.
17805 cp "$am_depcomp" conftest.dir
17807 # We will build objects and dependencies in a subdirectory because
17808 # it helps to detect inapplicable dependency modes. For instance
17809 # both Tru64's cc and ICC support -MD to output dependencies as a
17810 # side effect of compilation, but ICC will put the dependencies in
17811 # the current directory while Tru64 will put them in the object
17815 am_cv_CCAS_dependencies_compiler_type=none
17816 if test "$am_compiler_list" = ""; then
17817 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17819 am__universal=false
17822 for depmode in $am_compiler_list; do
17823 # Setup a source with many dependencies, because some compilers
17824 # like to wrap large dependency lists on column 80 (with \), and
17825 # we should not choose a depcomp mode which is confused by this.
17827 # We need to recreate these files for each test, as the compiler may
17828 # overwrite some of them when testing with obscure command lines.
17829 # This happens at least with the AIX C compiler.
17831 for i in 1 2 3 4 5 6; do
17832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17833 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17834 # Solaris 10 /bin/sh.
17835 echo '/* dummy */' > sub/conftst$i.h
17837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17839 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17840 # mode. It turns out that the SunPro C++ compiler does not properly
17841 # handle '-M -o', and we need to detect this. Also, some Intel
17842 # versions had trouble with output in subdirs.
17843 am__obj=sub/conftest.${OBJEXT-o}
17844 am__minus_obj="-o $am__obj"
17847 # This depmode causes a compiler race in universal mode.
17848 test "$am__universal" = false || continue
17851 # After this tag, mechanisms are not by side-effect, so they'll
17852 # only be used when explicitly requested.
17853 if test "x$enable_dependency_tracking" = xyes; then
17859 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17860 # This compiler won't grok '-c -o', but also, the minuso test has
17861 # not run yet. These depmodes are late enough in the game, and
17862 # so weak that their functioning should not be impacted.
17863 am__obj=conftest.${OBJEXT-o}
17868 if depmode=$depmode \
17869 source=sub/conftest.c object=$am__obj \
17870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17871 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17872 >/dev/null 2>conftest.err &&
17873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17875 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17877 # icc doesn't choke on unknown options, it will just issue warnings
17878 # or remarks (even with -Werror). So we grep stderr for any message
17879 # that says an option was ignored or not supported.
17880 # When given -MP, icc 7.0 and 7.1 complain thusly:
17881 # icc: Command line warning: ignoring option '-M'; no argument required
17882 # The diagnosis changed in icc 8.0:
17883 # icc: Command line remark: option '-MP' not supported
17884 if (grep 'ignoring option' conftest.err ||
17885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17886 am_cv_CCAS_dependencies_compiler_type=$depmode
17893 rm -rf conftest.dir
17895 am_cv_CCAS_dependencies_compiler_type=none
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
17900 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
17901 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
17904 test "x$enable_dependency_tracking" != xno \
17905 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
17906 am__fastdepCCAS_TRUE=
17907 am__fastdepCCAS_FALSE='#'
17909 am__fastdepCCAS_TRUE='#'
17910 am__fastdepCCAS_FALSE=
17917 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
17918 # These system don't have libm, or don't need it
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
17922 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
17923 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
17924 $as_echo_n "(cached) " >&6
17926 ac_check_lib_save_LIBS=$LIBS
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17937 char _mwvalidcheckl ();
17941 return _mwvalidcheckl ();
17946 if ac_fn_c_try_link "$LINENO"; then :
17947 ac_cv_lib_mw__mwvalidcheckl=yes
17949 ac_cv_lib_mw__mwvalidcheckl=no
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
17956 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
17957 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17962 $as_echo_n "checking for cos in -lm... " >&6; }
17963 if ${ac_cv_lib_m_cos+:} false; then :
17964 $as_echo_n "(cached) " >&6
17966 ac_check_lib_save_LIBS=$LIBS
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17971 /* Override any GCC internal prototype to avoid an error.
17972 Use char because int might match the return type of a GCC
17973 builtin and then its argument prototype would still apply. */
17986 if ac_fn_c_try_link "$LINENO"; then :
17987 ac_cv_lib_m_cos=yes
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 LIBS=$ac_check_lib_save_LIBS
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17996 $as_echo "$ac_cv_lib_m_cos" >&6; }
17997 if test "x$ac_cv_lib_m_cos" = xyes; then :
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18004 $as_echo_n "checking for cos in -lm... " >&6; }
18005 if ${ac_cv_lib_m_cos+:} false; then :
18006 $as_echo_n "(cached) " >&6
18008 ac_check_lib_save_LIBS=$LIBS
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18028 if ac_fn_c_try_link "$LINENO"; then :
18029 ac_cv_lib_m_cos=yes
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18038 $as_echo "$ac_cv_lib_m_cos" >&6; }
18039 if test "x$ac_cv_lib_m_cos" = xyes; then :
18048 OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
18049 OPTIMIZE_FAST_CFLAGS="-O2 -fomit-frame-pointer"
18050 OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET -DTFM_HUGE_SET"
18051 DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_CYASSL"
18054 # Thread local storage
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
18057 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
18058 if ${ac_cv_tls+:} false; then :
18059 $as_echo_n "(cached) " >&6
18062 ax_tls_keywords="__thread __declspec(thread) none"
18063 for ax_tls_keyword in $ax_tls_keywords; do
18064 case $ax_tls_keyword in #(
18066 ac_cv_tls=none ; break ;; #(
18068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069 /* end confdefs.h. */
18070 #include <stdlib.h>
18073 static $ax_tls_keyword int bar;
18084 if ac_fn_c_try_compile "$LINENO"; then :
18085 ac_cv_tls=$ax_tls_keyword ; break
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
18097 $as_echo "$ac_cv_tls" >&6; }
18099 if test "$ac_cv_tls" != "none"; then :
18101 cat >>confdefs.h <<_ACEOF
18102 #define TLS $ac_cv_tls
18106 AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"
18117 # Check whether --enable-debug was given.
18118 if test "${enable_debug+set}" = set; then :
18119 enableval=$enable_debug; ax_enable_debug=$enableval
18125 if test "x$ax_enable_debug" = xyes; then :
18127 $as_echo "#define DEBUG 1" >>confdefs.h
18132 $as_echo "#define DEBUG 0" >>confdefs.h
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
18137 $as_echo_n "checking for debug... " >&6; }
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_debug" >&5
18139 $as_echo "$ax_enable_debug" >&6; }
18140 if test "x${ax_enable_debug}" = xyes; then
18148 if test "$ax_enable_debug" = "yes"; then :
18149 AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"
18151 AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
18156 # Check whether --enable-singlethreaded was given.
18157 if test "${enable_singlethreaded+set}" = set; then :
18158 enableval=$enable_singlethreaded; ENABLED_SINGLETHREADED=$enableval
18160 ENABLED_SINGLETHREADED=no
18165 if test x"$CC" = xclang; then
18166 wolfssl_darwin_clang=yes
18167 elif test x"$CC" = x || test x"$CC" = xgcc; then
18168 if /usr/bin/gcc -v 2>&1 | grep 'clang' >/dev/null 2>&1; then
18169 wolfssl_darwin_clang=yes
18173 if test "x$ENABLED_SINGLETHREADED" = "xno" ; then :
18178 ac_cpp='$CPP $CPPFLAGS'
18179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18185 # We used to check for pthread.h first, but this fails if pthread.h
18186 # requires special compiler flags (e.g. on True64 or Sequent).
18187 # It gets checked for in the link test anyway.
18189 # First of all, check if the user has set any of the PTHREAD_LIBS,
18190 # etcetera environment variables, and if threads linking works using
18192 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18193 save_CFLAGS="$CFLAGS"
18194 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18196 LIBS="$PTHREAD_LIBS $LIBS"
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18198 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18202 /* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18208 char pthread_join ();
18212 return pthread_join ();
18217 if ac_fn_c_try_link "$LINENO"; then :
18220 rm -f core conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18223 $as_echo "$ax_pthread_ok" >&6; }
18224 if test x"$ax_pthread_ok" = xno; then
18229 CFLAGS="$save_CFLAGS"
18232 # We must check for the threads library under a number of different
18233 # names; the ordering is very important because some systems
18234 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18235 # libraries is broken (non-POSIX).
18237 # Create a list of thread flags to try. Items starting with a "-" are
18238 # C compiler flags, and other items are library names, except for "none"
18239 # which indicates that we try without any flags at all, and "pthread-config"
18240 # which is a program returning the flags for the Pth emulation library.
18242 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18244 # The ordering *is* (sometimes) important. Some notes on the
18245 # individual items follow:
18247 # pthreads: AIX (must check this before -lpthread)
18248 # none: in case threads are in libc; should be tried before -Kthread and
18249 # other compiler flags to prevent continual compiler warnings
18250 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18251 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18252 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18253 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18254 # -pthreads: Solaris/gcc
18255 # -mthreads: Mingw32/gcc, Lynx/gcc
18256 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18257 # doesn't hurt to check since this sometimes defines pthreads too;
18258 # also defines -D_REENTRANT)
18259 # ... -mt is also the pthreads flag for HP/aCC
18260 # pthread: Linux, etcetera
18261 # --thread-safe: KAI C++
18262 # pthread-config: use pthread-config program (for GNU Pth library)
18267 # On Solaris (at least, for some versions), libc contains stubbed
18268 # (non-functional) versions of the pthreads routines, so link-based
18269 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18270 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18271 # a function called by this macro, so we could check for that, but
18272 # who knows whether they'll stub that too in a future libc.) So,
18273 # we'll just look for -pthreads and -lpthread first:
18275 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18280 if test x"$wolfssl_darwin_clang" = x"yes"; then :
18281 ax_pthread_flags="$ax_pthread_flags"
18283 ax_pthread_flags="-pthread $ax_pthread_flags"
18288 if test x"$ax_pthread_ok" = xno; then
18289 for flag in $ax_pthread_flags; do
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18294 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18299 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18300 PTHREAD_CFLAGS="$flag"
18304 # Extract the first word of "pthread-config", so it can be a program name with args.
18305 set dummy pthread-config; ac_word=$2
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18307 $as_echo_n "checking for $ac_word... " >&6; }
18308 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18309 $as_echo_n "(cached) " >&6
18311 if test -n "$ax_pthread_config"; then
18312 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18315 for as_dir in $PATH
18318 test -z "$as_dir" && as_dir=.
18319 for ac_exec_ext in '' $ac_executable_extensions; do
18320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18321 ac_cv_prog_ax_pthread_config="yes"
18322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18329 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18332 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18333 if test -n "$ax_pthread_config"; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18335 $as_echo "$ax_pthread_config" >&6; }
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18342 if test x"$ax_pthread_config" = xno; then continue; fi
18343 PTHREAD_CFLAGS="`pthread-config --cflags`"
18344 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18349 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18350 PTHREAD_LIBS="-l$flag"
18355 save_CFLAGS="$CFLAGS"
18356 LIBS="$PTHREAD_LIBS $LIBS"
18357 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18359 # Check for various functions. We must include pthread.h,
18360 # since some functions may be macros. (On the Sequent, we
18361 # need a special flag -Kthread to make this header compile.)
18362 # We check for pthread_join because it is in -lpthread on IRIX
18363 # while pthread_create is in libc. We check for pthread_attr_init
18364 # due to DEC craziness with -lpthreads. We check for
18365 # pthread_cleanup_push because it is one of the few pthread
18366 # functions on Solaris that doesn't have a non-functional libc stub.
18367 # We try pthread_create on general principles.
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 #include <pthread.h>
18371 static void routine(void *a) { a = 0; }
18372 static void *start_routine(void *a) { return a; }
18376 pthread_t th; pthread_attr_t attr;
18377 pthread_create(&th, 0, start_routine, 0);
18378 pthread_join(th, 0);
18379 pthread_attr_init(&attr);
18380 pthread_cleanup_push(routine, 0);
18381 pthread_cleanup_pop(0) /* ; */
18386 if ac_fn_c_try_link "$LINENO"; then :
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18393 CFLAGS="$save_CFLAGS"
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18396 $as_echo "$ax_pthread_ok" >&6; }
18397 if test "x$ax_pthread_ok" = xyes; then
18406 # Various other checks:
18407 if test "x$ax_pthread_ok" = xyes; then
18409 LIBS="$PTHREAD_LIBS $LIBS"
18410 save_CFLAGS="$CFLAGS"
18411 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18413 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18415 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18417 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420 #include <pthread.h>
18424 int attr = $attr; return attr /* ; */
18429 if ac_fn_c_try_link "$LINENO"; then :
18430 attr_name=$attr; break
18432 rm -f core conftest.err conftest.$ac_objext \
18433 conftest$ac_exeext conftest.$ac_ext
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18436 $as_echo "$attr_name" >&6; }
18437 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define PTHREAD_CREATE_JOINABLE $attr_name
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18446 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18449 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18450 osf* | hpux*) flag="-D_REENTRANT";;
18452 if test "$GCC" = "yes"; then
18453 flag="-D_REENTRANT"
18455 flag="-mt -D_REENTRANT"
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18460 $as_echo "${flag}" >&6; }
18461 if test "x$flag" != xno; then
18462 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18466 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18467 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18468 $as_echo_n "(cached) " >&6
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18474 #include <pthread.h>
18478 int i = PTHREAD_PRIO_INHERIT;
18483 if ac_fn_c_try_link "$LINENO"; then :
18484 ax_cv_PTHREAD_PRIO_INHERIT=yes
18486 ax_cv_PTHREAD_PRIO_INHERIT=no
18488 rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18493 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18494 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18496 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18501 CFLAGS="$save_CFLAGS"
18503 # More AIX lossage: compile with *_r variant
18504 if test "x$GCC" != xyes; then
18508 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18509 #handle absolute path differently from PATH based program lookup
18512 if as_fn_executable_p ${CC}_r; then :
18513 PTHREAD_CC="${CC}_r"
18516 for ac_prog in ${CC}_r
18518 # Extract the first word of "$ac_prog", so it can be a program name with args.
18519 set dummy $ac_prog; ac_word=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18523 $as_echo_n "(cached) " >&6
18525 if test -n "$PTHREAD_CC"; then
18526 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535 ac_cv_prog_PTHREAD_CC="$ac_prog"
18536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18546 if test -n "$PTHREAD_CC"; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18548 $as_echo "$PTHREAD_CC" >&6; }
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551 $as_echo "no" >&6; }
18555 test -n "$PTHREAD_CC" && break
18557 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18568 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18574 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18575 if test x"$ax_pthread_ok" = xyes; then
18578 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18580 AM_CFLAGS="-D_POSIX_THREADS $AM_CFLAGS $PTHREAD_CFLAGS"
18581 LIBS="$LIBS $PTHREAD_LIBS"
18587 ENABLED_SINGLETHREADED=yes
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18600 if test "x$ENABLED_SINGLETHREADED" = "xyes" ; then :
18601 AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS"
18606 # Check whether --enable-dtls was given.
18607 if test "${enable_dtls+set}" = set; then :
18608 enableval=$enable_dtls; ENABLED_DTLS=$enableval
18614 if test "$ENABLED_DTLS" = "yes"
18616 AM_CFLAGS="-DCYASSL_DTLS $AM_CFLAGS"
18620 # OPENSSL Extra Compatibility
18621 # Check whether --enable-opensslextra was given.
18622 if test "${enable_opensslextra+set}" = set; then :
18623 enableval=$enable_opensslextra; ENABLED_OPENSSLEXTRA=$enableval
18625 ENABLED_OPENSSLEXTRA=no
18629 if test "$ENABLED_OPENSSLEXTRA" = "yes"
18631 AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
18634 if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
18636 as_fn_error $? "cannot enable small and opensslextra, only one or the other." "$LINENO" 5
18641 # Check whether --enable-ipv6 was given.
18642 if test "${enable_ipv6+set}" = set; then :
18643 enableval=$enable_ipv6; ENABLED_IPV6=$enableval
18650 if test "$ENABLED_IPV6" = "yes"
18652 AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
18657 # Check whether --enable-fortress was given.
18658 if test "${enable_fortress+set}" = set; then :
18659 enableval=$enable_fortress; ENABLED_FORTRESS=$enableval
18661 ENABLED_FORTRESS=no
18666 if test "$ENABLED_FORTRESS" = "yes"
18668 AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DCYASSL_ALWAYS_VERIFY_CB -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN"
18673 # Check whether --enable-bump was given.
18674 if test "${enable_bump+set}" = set; then :
18675 enableval=$enable_bump; ENABLED_BUMP=$enableval
18682 if test "$ENABLED_BUMP" = "yes"
18684 AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT"
18687 ENABLED_SLOWMATH="yes"
18690 # Check whether --enable-leanpsk was given.
18691 if test "${enable_leanpsk+set}" = set; then :
18692 enableval=$enable_leanpsk; ENABLED_LEANPSK=$enableval
18699 if test "$ENABLED_LEANPSK" = "yes"
18701 AM_CFLAGS="$AM_CFLAGS -DCYASSL_LEANPSK -DHAVE_NULL_CIPHER -DSINGLE_THREADED -DNO_AES -DNO_FILESYSTEM -DNO_RABBIT -DNO_RSA -DNO_DSA -DNO_DH -DNO_CERTS -DNO_PWDBASED -DNO_DES3 -DNO_MD4 -DNO_MD5 -DNO_ERROR_STRINGS -DNO_OLD_TLS -DNO_RC4 -DNO_WRITEV -DNO_SESSION_CACHE -DNO_DEV_RANDOM -DCYASSL_USER_IO -DNO_SHA -DUSE_SLOW_SHA"
18702 ENABLED_SLOWMATH="no"
18703 ENABLED_SINGLETHREADED="yes"
18706 if test "x$ENABLED_LEANPSK" = "xyes"; then
18707 BUILD_LEANPSK_TRUE=
18708 BUILD_LEANPSK_FALSE='#'
18710 BUILD_LEANPSK_TRUE='#'
18711 BUILD_LEANPSK_FALSE=
18717 # Check whether --enable-bigcache was given.
18718 if test "${enable_bigcache+set}" = set; then :
18719 enableval=$enable_bigcache; ENABLED_BIGCACHE=$enableval
18721 ENABLED_BIGCACHE=no
18726 if test "$ENABLED_BIGCACHE" = "yes"
18728 AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
18733 # Check whether --enable-hugecache was given.
18734 if test "${enable_hugecache+set}" = set; then :
18735 enableval=$enable_hugecache; ENABLED_HUGECACHE=$enableval
18737 ENABLED_HUGECACHE=no
18742 if test "$ENABLED_HUGECACHE" = "yes"
18744 AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
18749 # Check whether --enable-smallcache was given.
18750 if test "${enable_smallcache+set}" = set; then :
18751 enableval=$enable_smallcache; ENABLED_SMALLCACHE=$enableval
18753 ENABLED_SMALLCACHE=no
18758 if test "$ENABLED_SMALLCACHE" = "yes"
18760 AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
18764 # Persistent session cache
18765 # Check whether --enable-savesession was given.
18766 if test "${enable_savesession+set}" = set; then :
18767 enableval=$enable_savesession; ENABLED_SAVESESSION=$enableval
18769 ENABLED_SAVESESSION=no
18774 if test "$ENABLED_SAVESESSION" = "yes"
18776 AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
18780 # Persistent cert cache
18781 # Check whether --enable-savecert was given.
18782 if test "${enable_savecert+set}" = set; then :
18783 enableval=$enable_savecert; ENABLED_SAVECERT=$enableval
18785 ENABLED_SAVECERT=no
18790 if test "$ENABLED_SAVECERT" = "yes"
18792 AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
18796 # Atomic User Record Layer
18797 # Check whether --enable-atomicuser was given.
18798 if test "${enable_atomicuser+set}" = set; then :
18799 enableval=$enable_atomicuser; ENABLED_ATOMICUSER=$enableval
18801 ENABLED_ATOMICUSER=no
18806 if test "$ENABLED_ATOMICUSER" = "yes"
18808 AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
18812 # Public Key Callbacks
18813 # Check whether --enable-pkcallbacks was given.
18814 if test "${enable_pkcallbacks+set}" = set; then :
18815 enableval=$enable_pkcallbacks; ENABLED_PKCALLBACKS=$enableval
18817 ENABLED_PKCALLBACKS=no
18822 if test "$ENABLED_PKCALLBACKS" = "yes"
18824 AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
18829 ENABLED_SNIFFTEST=no
18830 # Check whether --enable-sniffer was given.
18831 if test "${enable_sniffer+set}" = set; then :
18832 enableval=$enable_sniffer;
18833 ENABLED_SNIFFER=yes
18834 AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
18835 if test "x$enableval" = "xyes" ; then :
18836 for ac_header in pcap/pcap.h
18838 ac_fn_c_check_header_mongrel "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default"
18839 if test "x$ac_cv_header_pcap_pcap_h" = xyes; then :
18840 cat >>confdefs.h <<_ACEOF
18841 #define HAVE_PCAP_PCAP_H 1
18844 ENABLED_SNIFFTEST=yes
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable sniffer test without having libpcap available." >&5
18848 $as_echo "$as_me: WARNING: cannot enable sniffer test without having libpcap available." >&2;}
18862 if test "x$ENABLED_SNIFFER" = "xyes" ; then
18863 BUILD_SNIFFER_TRUE=
18864 BUILD_SNIFFER_FALSE='#'
18866 BUILD_SNIFFER_TRUE='#'
18867 BUILD_SNIFFER_FALSE=
18870 if test "x$ENABLED_SNIFFTEST" = "xyes" ; then
18871 BUILD_SNIFFTEST_TRUE=
18872 BUILD_SNIFFTEST_FALSE='#'
18874 BUILD_SNIFFTEST_TRUE='#'
18875 BUILD_SNIFFTEST_FALSE=
18880 # Check whether --enable-aesgcm was given.
18881 if test "${enable_aesgcm+set}" = set; then :
18882 enableval=$enable_aesgcm; ENABLED_AESGCM=$enableval
18889 if test "$ENABLED_AESGCM" = "word32"
18891 AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
18895 if test "$ENABLED_AESGCM" = "small"
18897 AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
18901 if test "$ENABLED_AESGCM" = "table"
18903 AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
18907 if test "$ENABLED_AESGCM" = "yes"
18909 AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
18912 if test "x$ENABLED_AESGCM" = "xyes"; then
18914 BUILD_AESGCM_FALSE='#'
18916 BUILD_AESGCM_TRUE='#'
18917 BUILD_AESGCM_FALSE=
18923 # Check whether --enable-aesccm was given.
18924 if test "${enable_aesccm+set}" = set; then :
18925 enableval=$enable_aesccm; ENABLED_AESCCM=$enableval
18932 if test "$ENABLED_AESCCM" = "yes"
18934 AM_CFLAGS="$AM_CFLAGS -DHAVE_AESCCM"
18937 if test "x$ENABLED_AESCCM" = "xyes"; then
18939 BUILD_AESCCM_FALSE='#'
18941 BUILD_AESCCM_TRUE='#'
18942 BUILD_AESCCM_FALSE=
18948 # Check whether --enable-aesni was given.
18949 if test "${enable_aesni+set}" = set; then :
18950 enableval=$enable_aesni; ENABLED_AESNI=$enableval
18957 if test "$ENABLED_AESNI" = "yes"
18959 AM_CFLAGS="$AM_CFLAGS -DCYASSL_AESNI"
18960 if test "$GCC" = "yes"
18962 # GCC needs these flags, icc doesn't
18963 # opt levels greater than 2 may cause problems on systems w/o aesni
18964 if test "$CC" != "icc"
18966 AM_CFLAGS="$AM_CFLAGS -maes -msse4"
18971 if test "x$ENABLED_AESNI" = "xyes"; then
18973 BUILD_AESNI_FALSE='#'
18975 BUILD_AESNI_TRUE='#'
18982 # Check whether --enable-camellia was given.
18983 if test "${enable_camellia+set}" = set; then :
18984 enableval=$enable_camellia; ENABLED_CAMELLIA=$enableval
18986 ENABLED_CAMELLIA=no
18991 if test "$ENABLED_CAMELLIA" = "yes"
18993 AM_CFLAGS="$AM_CFLAGS -DHAVE_CAMELLIA"
18996 if test "x$ENABLED_CAMELLIA" = "xyes"; then
18997 BUILD_CAMELLIA_TRUE=
18998 BUILD_CAMELLIA_FALSE='#'
19000 BUILD_CAMELLIA_TRUE='#'
19001 BUILD_CAMELLIA_FALSE=
19007 # Check whether --enable-md2 was given.
19008 if test "${enable_md2+set}" = set; then :
19009 enableval=$enable_md2; ENABLED_MD2=$enableval
19016 if test "$ENABLED_BUMP" = "yes"
19021 if test "$ENABLED_MD2" = "yes"
19023 AM_CFLAGS="$AM_CFLAGS -DCYASSL_MD2"
19026 if test "x$ENABLED_MD2" = "xyes"; then
19028 BUILD_MD2_FALSE='#'
19037 # Check whether --enable-nullcipher was given.
19038 if test "${enable_nullcipher+set}" = set; then :
19039 enableval=$enable_nullcipher; ENABLED_NULL_CIPHER=$enableval
19041 ENABLED_NULL_CIPHER=no
19046 if test "$ENABLED_NULL_CIPHER" = "yes"
19048 AM_CFLAGS="$AM_CFLAGS -DHAVE_NULL_CIPHER"
19052 # Check whether --enable-ripemd was given.
19053 if test "${enable_ripemd+set}" = set; then :
19054 enableval=$enable_ripemd; ENABLED_RIPEMD=$enableval
19061 if test "$ENABLED_RIPEMD" = "yes"
19063 AM_CFLAGS="$AM_CFLAGS -DCYASSL_RIPEMD"
19066 if test "x$ENABLED_RIPEMD" = "xyes"; then
19068 BUILD_RIPEMD_FALSE='#'
19070 BUILD_RIPEMD_TRUE='#'
19071 BUILD_RIPEMD_FALSE=
19077 # Check whether --enable-blake2 was given.
19078 if test "${enable_blake2+set}" = set; then :
19079 enableval=$enable_blake2; ENABLED_BLAKE2=$enableval
19086 if test "$ENABLED_BLAKE2" = "yes"
19088 AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2"
19091 if test "x$ENABLED_BLAKE2" = "xyes"; then
19093 BUILD_BLAKE2_FALSE='#'
19095 BUILD_BLAKE2_TRUE='#'
19096 BUILD_BLAKE2_FALSE=
19102 # Check whether --enable-sha512 was given.
19103 if test "${enable_sha512+set}" = set; then :
19104 enableval=$enable_sha512; ENABLED_SHA512=$enableval
19111 if test "$ENABLED_SHA512" = "yes"
19113 AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512 -DCYASSL_SHA384"
19116 if test "$ENABLED_FORTRESS" = "yes"
19118 ENABLED_SHA512="yes"
19122 if test "x$ENABLED_SHA512" = "xyes"; then
19124 BUILD_SHA512_FALSE='#'
19126 BUILD_SHA512_TRUE='#'
19127 BUILD_SHA512_FALSE=
19133 # Check whether --enable-sessioncerts was given.
19134 if test "${enable_sessioncerts+set}" = set; then :
19135 enableval=$enable_sessioncerts; ENABLED_SESSIONCERTS=$enableval
19137 ENABLED_SESSIONCERTS=no
19142 if test "$ENABLED_SESSIONCERTS" = "yes"
19144 AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
19149 # Check whether --enable-keygen was given.
19150 if test "${enable_keygen+set}" = set; then :
19151 enableval=$enable_keygen; ENABLED_KEYGEN=$enableval
19158 if test "$ENABLED_KEYGEN" = "yes"
19160 AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
19165 # Check whether --enable-certgen was given.
19166 if test "${enable_certgen+set}" = set; then :
19167 enableval=$enable_certgen; ENABLED_CERTGEN=$enableval
19174 if test "$ENABLED_CERTGEN" = "yes"
19176 AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
19180 # CERT REQUEST GENERATION
19181 # Check whether --enable-certreq was given.
19182 if test "${enable_certreq+set}" = set; then :
19183 enableval=$enable_certreq; ENABLED_CERTREQ=$enableval
19190 if test "$ENABLED_CERTREQ" = "yes"
19192 if test "$ENABLED_CERTGEN" = "no"
19194 as_fn_error $? "cannot enable certreq without enabling certgen." "$LINENO" 5
19196 AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_REQ"
19201 # Check whether --enable-sep was given.
19202 if test "${enable_sep+set}" = set; then :
19203 enableval=$enable_sep; ENABLED_SEP=$enableval
19209 if test "$ENABLED_SEP" = "yes"
19211 AM_CFLAGS="-DCYASSL_SEP -DKEEP_PEER_CERT $AM_CFLAGS"
19216 # Check whether --enable-hkdf was given.
19217 if test "${enable_hkdf+set}" = set; then :
19218 enableval=$enable_hkdf; ENABLED_HKDF=$enableval
19224 if test "$ENABLED_HKDF" = "yes"
19226 AM_CFLAGS="$AM_CFLAGS -DHAVE_HKDF"
19231 # Check whether --enable-dsa was given.
19232 if test "${enable_dsa+set}" = set; then :
19233 enableval=$enable_dsa; ENABLED_DSA=$enableval
19240 if test "$ENABLED_DSA" = "no"
19242 AM_CFLAGS="$AM_CFLAGS -DNO_DSA"
19245 if test "x$ENABLED_DSA" = "xyes"; then
19247 BUILD_DSA_FALSE='#'
19256 # Check whether --enable-ecc was given.
19257 if test "${enable_ecc+set}" = set; then :
19258 enableval=$enable_ecc; ENABLED_ECC=$enableval
19265 if test "$ENABLED_ECC" = "yes"
19267 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
19270 if test "x$ENABLED_ECC" = "xyes"; then
19272 BUILD_ECC_FALSE='#'
19280 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
19282 as_fn_error $? "cannot enable ecc and small, ecc requires TLS which small turns off." "$LINENO" 5
19286 # FP ECC, Fixed Point cache ECC
19287 # Check whether --enable-fpecc was given.
19288 if test "${enable_fpecc+set}" = set; then :
19289 enableval=$enable_fpecc; ENABLED_FPECC=$enableval
19296 if test "$ENABLED_FPECC" = "yes"
19298 if test "$ENABLED_ECC" = "no"
19300 as_fn_error $? "cannot enable fpecc without enabling ecc." "$LINENO" 5
19302 AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
19307 # Check whether --enable-eccencrypt was given.
19308 if test "${enable_eccencrypt+set}" = set; then :
19309 enableval=$enable_eccencrypt; ENABLED_ECC_ENCRYPT=$enableval
19311 ENABLED_ECC_ENCRYPT=no
19316 if test "$ENABLED_ECC_ENCRYPT" = "yes"
19318 if test "$ENABLED_ECC" = "no"
19320 as_fn_error $? "cannot enable eccencrypt without enabling ecc." "$LINENO" 5
19322 if test "$ENABLED_HKDF" = "no"
19324 as_fn_error $? "cannot enable eccencrypt without enabling hkdf." "$LINENO" 5
19326 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_ENCRYPT"
19331 # Check whether --enable-psk was given.
19332 if test "${enable_psk+set}" = set; then :
19333 enableval=$enable_psk; ENABLED_PSK=$enableval
19340 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no"
19342 AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
19345 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "yes"
19352 # Check whether --enable-errorstrings was given.
19353 if test "${enable_errorstrings+set}" = set; then :
19354 enableval=$enable_errorstrings; ENABLED_ERROR_STRINGS=$enableval
19356 ENABLED_ERROR_STRINGS=yes
19361 if test "$ENABLED_ERROR_STRINGS" = "no"
19363 AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19365 # turn off error strings if leanpsk on
19366 if test "$ENABLED_LEANPSK" = "yes"
19368 AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19369 ENABLED_ERROR_STRINGS=no
19375 # Check whether --enable-oldtls was given.
19376 if test "${enable_oldtls+set}" = set; then :
19377 enableval=$enable_oldtls; ENABLED_OLD_TLS=$enableval
19379 ENABLED_OLD_TLS=yes
19384 if test "$ENABLED_OLD_TLS" = "no"
19386 AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19388 # turn off old if leanpsk on
19389 if test "$ENABLED_LEANPSK" = "yes"
19391 AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19397 # STACK SIZE info for examples
19398 # Check whether --enable-stacksize was given.
19399 if test "${enable_stacksize+set}" = set; then :
19400 enableval=$enable_stacksize; ENABLED_STACKSIZE=$enableval
19402 ENABLED_STACKSIZE=no
19407 if test "$ENABLED_STACKSIZE" = "yes"
19409 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
19410 if test "x$ac_cv_func_posix_memalign" = xyes; then :
19413 as_fn_error $? "stacksize needs posix_memalign" "$LINENO" 5
19416 ac_fn_c_check_func "$LINENO" "pthread_attr_setstack" "ac_cv_func_pthread_attr_setstack"
19417 if test "x$ac_cv_func_pthread_attr_setstack" = xyes; then :
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstack in -lpthread" >&5
19421 $as_echo_n "checking for pthread_attr_setstack in -lpthread... " >&6; }
19422 if ${ac_cv_lib_pthread_pthread_attr_setstack+:} false; then :
19423 $as_echo_n "(cached) " >&6
19425 ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-lpthread $LIBS"
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19430 /* Override any GCC internal prototype to avoid an error.
19431 Use char because int might match the return type of a GCC
19432 builtin and then its argument prototype would still apply. */
19436 char pthread_attr_setstack ();
19440 return pthread_attr_setstack ();
19445 if ac_fn_c_try_link "$LINENO"; then :
19446 ac_cv_lib_pthread_pthread_attr_setstack=yes
19448 ac_cv_lib_pthread_pthread_attr_setstack=no
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext conftest.$ac_ext
19452 LIBS=$ac_check_lib_save_LIBS
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_setstack" >&5
19455 $as_echo "$ac_cv_lib_pthread_pthread_attr_setstack" >&6; }
19456 if test "x$ac_cv_lib_pthread_pthread_attr_setstack" = xyes; then :
19457 cat >>confdefs.h <<_ACEOF
19458 #define HAVE_LIBPTHREAD 1
19461 LIBS="-lpthread $LIBS"
19467 AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DCYASSL_LOW_MEMORY"
19472 # Check whether --enable-memory was given.
19473 if test "${enable_memory+set}" = set; then :
19474 enableval=$enable_memory; ENABLED_MEMORY=$enableval
19481 if test "$ENABLED_MEMORY" = "no"
19483 AM_CFLAGS="$AM_CFLAGS -DNO_CYASSL_MEMORY"
19485 # turn off memory cb if leanpsk on
19486 if test "$ENABLED_LEANPSK" = "yes"
19488 # but don't turn on NO_CYASSL_MEMORY because using own
19493 if test "x$ENABLED_MEMORY" = "xyes"; then
19495 BUILD_MEMORY_FALSE='#'
19497 BUILD_MEMORY_TRUE='#'
19498 BUILD_MEMORY_FALSE=
19504 # Check whether --enable-rsa was given.
19505 if test "${enable_rsa+set}" = set; then :
19506 enableval=$enable_rsa; ENABLED_RSA=$enableval
19513 if test "$ENABLED_RSA" = "no"
19515 AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19517 # turn off RSA if leanpsk on
19518 if test "$ENABLED_LEANPSK" = "yes"
19520 AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19525 if test "x$ENABLED_RSA" = "xyes"; then
19527 BUILD_RSA_FALSE='#'
19536 # Check whether --enable-dh was given.
19537 if test "${enable_dh+set}" = set; then :
19538 enableval=$enable_dh; ENABLED_DH=$enableval
19545 if test "$ENABLED_DH" = "no"
19547 AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19549 # turn off DH if leanpsk on
19550 if test "$ENABLED_LEANPSK" = "yes"
19552 AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19557 if test "x$ENABLED_DH" = "xyes"; then
19568 # turn off asn, which means no certs, no rsa, no dh, no dsa, no ecc,
19569 # and no big int, use this to disable all public key stuff
19570 # Check whether --enable-asn was given.
19571 if test "${enable_asn+set}" = set; then :
19572 enableval=$enable_asn; ENABLED_ASN=$enableval
19579 if test "$ENABLED_ASN" = "no"
19581 AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
19583 # turn off ASN if leanpsk on
19584 if test "$ENABLED_LEANPSK" = "yes"
19586 AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
19591 if test "$ENABLED_RSA" = "yes" && test "$ENABLED_ASN" = "no"
19593 as_fn_error $? "please disable rsa if disabling asn." "$LINENO" 5
19596 if test "$ENABLED_DSA" = "yes" && test "$ENABLED_ASN" = "no"
19598 as_fn_error $? "please disable dsa if disabling asn." "$LINENO" 5
19601 if test "$ENABLED_DH" = "yes" && test "$ENABLED_ASN" = "no"
19603 as_fn_error $? "please disable dh if disabling asn." "$LINENO" 5
19606 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_ASN" = "no"
19608 as_fn_error $? "please disable ecc if disabling asn." "$LINENO" 5
19611 if test "$ENABLED_PSK" = "no" && test "$ENABLED_ASN" = "no"
19613 as_fn_error $? "please enable psk if disabling asn." "$LINENO" 5
19616 if test "$ENABLED_ASN" = "no"
19618 ENABLED_FASTMATH=no
19619 ENABLED_SLOWMATH=no
19622 if test "x$ENABLED_ASN" = "xyes"; then
19624 BUILD_ASN_FALSE='#'
19633 # Check whether --enable-aes was given.
19634 if test "${enable_aes+set}" = set; then :
19635 enableval=$enable_aes; ENABLED_AES=$enableval
19642 if test "$ENABLED_AES" = "no"
19644 AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19646 # turn off AES if leanpsk on
19647 if test "$ENABLED_LEANPSK" = "yes"
19649 AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19654 if test "x$ENABLED_AES" = "xyes"; then
19656 BUILD_AES_FALSE='#'
19665 # Check whether --enable-coding was given.
19666 if test "${enable_coding+set}" = set; then :
19667 enableval=$enable_coding; ENABLED_CODING=$enableval
19674 if test "$ENABLED_CODING" = "no"
19676 AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19678 # turn off CODING if leanpsk on
19679 if test "$ENABLED_LEANPSK" = "yes"
19681 AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19686 if test "x$ENABLED_CODING" = "xyes"; then
19688 BUILD_CODING_FALSE='#'
19690 BUILD_CODING_TRUE='#'
19691 BUILD_CODING_FALSE=
19697 # Check whether --enable-des3 was given.
19698 if test "${enable_des3+set}" = set; then :
19699 enableval=$enable_des3; ENABLED_DES3=$enableval
19706 if test "$ENABLED_DES3" = "no"
19708 AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19710 # turn off DES3 if leanpsk on
19711 if test "$ENABLED_LEANPSK" = "yes"
19713 AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19718 if test "x$ENABLED_DES3" = "xyes"; then
19720 BUILD_DES3_FALSE='#'
19722 BUILD_DES3_TRUE='#'
19729 # Check whether --enable-arc4 was given.
19730 if test "${enable_arc4+set}" = set; then :
19731 enableval=$enable_arc4; ENABLED_ARC4=$enableval
19738 if test "$ENABLED_ARC4" = "no"
19740 AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19742 # turn off ARC4 if leanpsk on
19743 if test "$ENABLED_LEANPSK" = "yes"
19745 AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19750 if test "x$ENABLED_ARC4" = "xyes"; then
19752 BUILD_RC4_FALSE='#'
19761 # Check whether --enable-md5 was given.
19762 if test "${enable_md5+set}" = set; then :
19763 enableval=$enable_md5; ENABLED_MD5=$enableval
19770 if test "$ENABLED_MD5" = "no"
19772 AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
19774 # turn off MD5 if leanpsk on
19775 if test "$ENABLED_LEANPSK" = "yes"
19777 AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
19782 if test "x$ENABLED_MD5" = "xyes"; then
19784 BUILD_MD5_FALSE='#'
19793 # Check whether --enable-sha was given.
19794 if test "${enable_sha+set}" = set; then :
19795 enableval=$enable_sha; ENABLED_SHA=$enableval
19802 if test "$ENABLED_SHA" = "no"
19804 AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
19806 # turn off SHA if leanpsk on
19807 if test "$ENABLED_LEANPSK" = "yes"
19809 AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
19814 if test "x$ENABLED_SHA" = "xyes"; then
19816 BUILD_SHA_FALSE='#'
19825 # Check whether --enable-md4 was given.
19826 if test "${enable_md4+set}" = set; then :
19827 enableval=$enable_md4; ENABLED_MD4=$enableval
19834 if test "$ENABLED_MD4" = "no"
19836 AM_CFLAGS="$AM_CFLAGS -DNO_MD4"
19839 if test "x$ENABLED_MD4" = "xyes"; then
19841 BUILD_MD4_FALSE='#'
19850 # Check whether --enable-webserver was given.
19851 if test "${enable_webserver+set}" = set; then :
19852 enableval=$enable_webserver; ENABLED_WEBSERVER=$enableval
19854 ENABLED_WEBSERVER=no
19859 if test "$ENABLED_WEBSERVER" = "yes"
19861 AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
19866 # Check whether --enable-pwdbased was given.
19867 if test "${enable_pwdbased+set}" = set; then :
19868 enableval=$enable_pwdbased; ENABLED_PWDBASED=$enableval
19870 ENABLED_PWDBASED=no
19875 if test "$ENABLED_PWDBASED" = "no"
19877 if test "$ENABLED_OPENSSLEXTRA" = "yes" || test "$ENABLED_WEBSERVER" = "yes"
19879 # opensslextra and webserver needs pwdbased
19880 ENABLED_PWDBASED=yes
19882 AM_CFLAGS="$AM_CFLAGS -DNO_PWDBASED"
19886 if test "x$ENABLED_PWDBASED" = "xyes"; then
19887 BUILD_PWDBASED_TRUE=
19888 BUILD_PWDBASED_FALSE='#'
19890 BUILD_PWDBASED_TRUE='#'
19891 BUILD_PWDBASED_FALSE=
19897 # Check whether --enable-hc128 was given.
19898 if test "${enable_hc128+set}" = set; then :
19899 enableval=$enable_hc128; ENABLED_HC128=$enableval
19906 if test "$ENABLED_HC128" = "no"
19908 AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
19910 AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
19913 if test "x$ENABLED_HC128" = "xyes"; then
19915 BUILD_HC128_FALSE='#'
19917 BUILD_HC128_TRUE='#'
19924 # Check whether --enable-rabbit was given.
19925 if test "${enable_rabbit+set}" = set; then :
19926 enableval=$enable_rabbit; ENABLED_RABBIT=$enableval
19933 if test "$ENABLED_RABBIT" = "no"
19935 AM_CFLAGS="$AM_CFLAGS -DNO_RABBIT"
19937 AM_CFLAGS="$AM_CFLAGS -DHAVE_RABBIT"
19940 if test "x$ENABLED_RABBIT" = "xyes"; then
19942 BUILD_RABBIT_FALSE='#'
19944 BUILD_RABBIT_TRUE='#'
19945 BUILD_RABBIT_FALSE=
19951 # Check whether --enable-fips was given.
19952 if test "${enable_fips+set}" = set; then :
19953 enableval=$enable_fips; ENABLED_FIPS=$enableval
19960 if test "x$ENABLED_FIPS" = "xyes"
19962 # requires thread local storage
19963 if test "$thread_ls_on" = "no"
19965 as_fn_error $? "FIPS requires Thread Local Storage" "$LINENO" 5
19968 if test "x$ENABLED_SHA512" = "xno"
19970 ENABLED_SHA512="yes"
19971 AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512 -DCYASSL_SHA384"
19972 if test "x$ENABLED_SHA512" = "xyes"; then
19974 BUILD_SHA512_FALSE='#'
19976 BUILD_SHA512_TRUE='#'
19977 BUILD_SHA512_FALSE=
19981 AM_CFLAGS="$AM_CFLAGS -DHAVE_FIPS"
19984 if test "x$ENABLED_FIPS" = "xyes"; then
19986 BUILD_FIPS_FALSE='#'
19988 BUILD_FIPS_TRUE='#'
19995 # Check whether --enable-hashdrbg was given.
19996 if test "${enable_hashdrbg+set}" = set; then :
19997 enableval=$enable_hashdrbg; ENABLED_HASHDRBG=$enableval
19999 ENABLED_HASHDRBG=no
20004 if test "x$ENABLED_HASHDRBG" = "xyes"
20006 AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20008 # turn on Hash DRBG if FIPS is on or ARC4 is off
20009 if test "x$ENABLED_FIPS" = "xyes" || test "x$ENABLED_ARC4" = "xno"
20011 AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20012 ENABLED_HASHDRBG=yes
20018 # Check whether --enable-filesystem was given.
20019 if test "${enable_filesystem+set}" = set; then :
20020 enableval=$enable_filesystem; ENABLED_FILESYSTEM=$enableval
20022 ENABLED_FILESYSTEM=yes
20027 if test "$ENABLED_FILESYSTEM" = "no"
20029 AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20031 # turn off filesystem if leanpsk on
20032 if test "$ENABLED_LEANPSK" = "yes"
20034 AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20035 ENABLED_FILESYSTEM=no
20041 # Check whether --enable-inline was given.
20042 if test "${enable_inline+set}" = set; then :
20043 enableval=$enable_inline; ENABLED_INLINE=$enableval
20050 if test "$ENABLED_INLINE" = "no"
20052 AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
20055 if test "x$ENABLED_INLINE" = "xyes"; then
20057 BUILD_INLINE_FALSE='#'
20059 BUILD_INLINE_TRUE='#'
20060 BUILD_INLINE_FALSE=
20066 # Check whether --enable-ocsp was given.
20067 if test "${enable_ocsp+set}" = set; then :
20068 enableval=$enable_ocsp; ENABLED_OCSP=$enableval
20074 if test "$ENABLED_OCSP" = "yes"
20076 AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
20079 if test "x$ENABLED_OCSP" = "xyes"; then
20081 BUILD_OCSP_FALSE='#'
20083 BUILD_OCSP_TRUE='#'
20089 if test "$ENABLED_OCSP" = "yes"
20091 # check openssl command tool for testing ocsp
20092 # Extract the first word of "openssl", so it can be a program name with args.
20093 set dummy openssl; ac_word=$2
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20095 $as_echo_n "checking for $ac_word... " >&6; }
20096 if ${ac_cv_prog_HAVE_OPENSSL_CMD+:} false; then :
20097 $as_echo_n "(cached) " >&6
20099 if test -n "$HAVE_OPENSSL_CMD"; then
20100 ac_cv_prog_HAVE_OPENSSL_CMD="$HAVE_OPENSSL_CMD" # Let the user override the test.
20102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103 for as_dir in $PATH
20106 test -z "$as_dir" && as_dir=.
20107 for ac_exec_ext in '' $ac_executable_extensions; do
20108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20109 ac_cv_prog_HAVE_OPENSSL_CMD="yes"
20110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20117 test -z "$ac_cv_prog_HAVE_OPENSSL_CMD" && ac_cv_prog_HAVE_OPENSSL_CMD="no"
20120 HAVE_OPENSSL_CMD=$ac_cv_prog_HAVE_OPENSSL_CMD
20121 if test -n "$HAVE_OPENSSL_CMD"; then
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENSSL_CMD" >&5
20123 $as_echo "$HAVE_OPENSSL_CMD" >&6; }
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20126 $as_echo "no" >&6; }
20131 if test "$HAVE_OPENSSL_CMD" = "yes"
20133 AM_CFLAGS="$AM_CFLAGS -DHAVE_OPENSSL_CMD"
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openssl command line tool not available for testing ocsp" >&5
20136 $as_echo "$as_me: WARNING: openssl command line tool not available for testing ocsp" >&2;}
20142 # Check whether --enable-crl was given.
20143 if test "${enable_crl+set}" = set; then :
20144 enableval=$enable_crl; ENABLED_CRL=$enableval
20150 if test "$ENABLED_CRL" = "yes"
20152 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
20155 if test "x$ENABLED_CRL" = "xyes"; then
20157 BUILD_CRL_FALSE='#'
20166 # Check whether --enable-crl-monitor was given.
20167 if test "${enable_crl_monitor+set}" = set; then :
20168 enableval=$enable_crl_monitor; ENABLED_CRL_MONITOR=$enableval
20170 ENABLED_CRL_MONITOR=no
20174 if test "$ENABLED_CRL_MONITOR" = "yes"
20177 *linux* | *darwin* | *freebsd*)
20178 AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR" ;;
20180 as_fn_error $? "crl monitor only allowed on linux, OS X, or freebsd" "$LINENO" 5 ;;
20184 if test "x$ENABLED_CRL_MONITOR" = "xyes"; then
20185 BUILD_CRL_MONITOR_TRUE=
20186 BUILD_CRL_MONITOR_FALSE='#'
20188 BUILD_CRL_MONITOR_TRUE='#'
20189 BUILD_CRL_MONITOR_FALSE=
20198 # Check whether --with-ntru was given.
20199 if test "${with_ntru+set}" = set; then :
20200 withval=$with_ntru;
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTRU" >&5
20202 $as_echo_n "checking for NTRU... " >&6; }
20203 CPPFLAGS="$CPPFLAGS -DHAVE_NTRU"
20204 LIBS="$LIBS -lNTRUEncrypt"
20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 #include <ntru_crypto_drbg.h>
20212 ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20217 if ac_fn_c_try_link "$LINENO"; then :
20222 rm -f core conftest.err conftest.$ac_objext \
20223 conftest$ac_exeext conftest.$ac_ext
20225 if test "x$ntru_linked" == "xno" ; then
20226 if test "x$withval" != "xno" ; then
20227 tryntrudir=$withval
20229 if test "x$withval" == "xyes" ; then
20233 LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20234 CPPFLAGS="$CPPFLAGS -I$tryntrudir/include"
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238 #include <ntru_crypto_drbg.h>
20242 ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20247 if ac_fn_c_try_link "$LINENO"; then :
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20255 if test "x$ntru_linked" == "xno" ; then
20256 as_fn_error $? "NTRU isn't found.
20257 If it's already installed, specify its path using --with-ntru=/dir/" "$LINENO" 5
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20260 $as_echo "yes" >&6; }
20261 AM_LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20264 $as_echo "yes" >&6; }
20267 AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU"
20274 if test "x$ENABLED_NTRU" = "xyes"; then
20276 BUILD_NTRU_FALSE='#'
20278 BUILD_NTRU_TRUE='#'
20283 if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
20285 as_fn_error $? "cannot enable ntru and small, ntru requires TLS which small turns off." "$LINENO" 5
20289 # Check whether --enable-sni was given.
20290 if test "${enable_sni+set}" = set; then :
20291 enableval=$enable_sni; ENABLED_SNI=$enableval
20298 if test "x$ENABLED_SNI" = "xyes"
20300 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI"
20303 # Maximum Fragment Length
20304 # Check whether --enable-maxfragment was given.
20305 if test "${enable_maxfragment+set}" = set; then :
20306 enableval=$enable_maxfragment; ENABLED_MAX_FRAGMENT=$enableval
20308 ENABLED_MAX_FRAGMENT=no
20313 if test "x$ENABLED_MAX_FRAGMENT" = "xyes"
20315 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_MAX_FRAGMENT"
20319 # Check whether --enable-truncatedhmac was given.
20320 if test "${enable_truncatedhmac+set}" = set; then :
20321 enableval=$enable_truncatedhmac; ENABLED_TRUNCATED_HMAC=$enableval
20323 ENABLED_TRUNCATED_HMAC=no
20328 if test "x$ENABLED_TRUNCATED_HMAC" = "xyes"
20330 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_TRUNCATED_HMAC"
20333 # Renegotiation Indication
20334 # Check whether --enable-renegotiation-indication was given.
20335 if test "${enable_renegotiation_indication+set}" = set; then :
20336 enableval=$enable_renegotiation_indication; ENABLED_RENEGOTIATION_INDICATION=$enableval
20338 ENABLED_RENEGOTIATION_INDICATION=no
20343 if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
20345 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_RENEGOTIATION_INDICATION"
20348 # Supported Elliptic Curves Extensions
20349 # Check whether --enable-supportedcurves was given.
20350 if test "${enable_supportedcurves+set}" = set; then :
20351 enableval=$enable_supportedcurves; ENABLED_SUPPORTED_CURVES=$enableval
20353 ENABLED_SUPPORTED_CURVES=no
20358 if test "x$ENABLED_SUPPORTED_CURVES" = "xyes"
20360 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SUPPORTED_CURVES"
20364 # Check whether --enable-tlsx was given.
20365 if test "${enable_tlsx+set}" = set; then :
20366 enableval=$enable_tlsx; ENABLED_TLSX=$enableval
20373 if test "x$ENABLED_TLSX" = "xyes"
20376 ENABLED_MAX_FRAGMENT=yes
20377 ENABLED_TRUNCATED_HMAC=yes
20378 ENABLED_RENEGOTIATION_INDICATION=yes
20379 ENABLED_SUPPORTED_CURVES=yes
20380 AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI -DHAVE_MAX_FRAGMENT -DHAVE_TRUNCATED_HMAC -DHAVE_RENEGOTIATION_INDICATION -DHAVE_SUPPORTED_CURVES"
20384 # Check whether --enable-pkcs7 was given.
20385 if test "${enable_pkcs7+set}" = set; then :
20386 enableval=$enable_pkcs7; ENABLED_PKCS7=$enableval
20392 if test "$ENABLED_PKCS7" = "yes"
20394 AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20397 if test "x$ENABLED_PKCS7" = "xyes"; then
20399 BUILD_PKCS7_FALSE='#'
20401 BUILD_PKCS7_TRUE='#'
20407 # Simple Certificate Enrollment Protocol (SCEP)
20408 # Check whether --enable-scep was given.
20409 if test "${enable_scep+set}" = set; then :
20410 enableval=$enable_scep; ENABLED_WOLFSCEP=$enableval
20412 ENABLED_WOLFSCEP=no
20416 if test "$ENABLED_WOLFSCEP" = "yes"
20418 # Enable prereqs if not already enabled
20419 if test "x$ENABLED_KEYGEN" = "xno"
20421 ENABLED_KEYGEN="yes"
20422 AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
20424 if test "x$ENABLED_CERTGEN" = "xno"
20426 ENABLED_CERTGEN="yes"
20427 AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
20429 if test "x$ENABLED_CERTREQ" = "xno"
20431 ENABLED_CERTREQ="yes"
20432 AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_REQ"
20434 if test "x$ENABLED_PKCS7" = "xno"
20436 ENABLED_PKCS7="yes"
20437 AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20438 if test "x$ENABLED_PKCS7" = "xyes"; then
20440 BUILD_PKCS7_FALSE='#'
20442 BUILD_PKCS7_TRUE='#'
20447 AM_CFLAGS="$AM_CFLAGS -DCYASSL_HAVE_WOLFSCEP"
20452 # Check whether --enable-smallstack was given.
20453 if test "${enable_smallstack+set}" = set; then :
20454 enableval=$enable_smallstack; ENABLED_SMALL_STACK=$enableval
20456 ENABLED_SMALL_STACK=no
20461 if test "x$ENABLED_SMALL_STACK" = "xyes"
20463 AM_CFLAGS="$AM_CFLAGS -DCYASSL_SMALL_STACK"
20468 # Check whether --enable-valgrind was given.
20469 if test "${enable_valgrind+set}" = set; then :
20470 enableval=$enable_valgrind; ENABLED_VALGRIND=$enableval
20472 ENABLED_VALGRIND=no
20477 if test "$ENABLED_VALGRIND" = "yes"
20479 # Extract the first word of "valgrind", so it can be a program name with args.
20480 set dummy valgrind; ac_word=$2
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20482 $as_echo_n "checking for $ac_word... " >&6; }
20483 if ${ac_cv_prog_HAVE_VALGRIND+:} false; then :
20484 $as_echo_n "(cached) " >&6
20486 if test -n "$HAVE_VALGRIND"; then
20487 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
20489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20490 for as_dir in $PATH
20493 test -z "$as_dir" && as_dir=.
20494 for ac_exec_ext in '' $ac_executable_extensions; do
20495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20496 ac_cv_prog_HAVE_VALGRIND="yes"
20497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20504 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
20507 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
20508 if test -n "$HAVE_VALGRIND"; then
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
20510 $as_echo "$HAVE_VALGRIND" >&6; }
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513 $as_echo "no" >&6; }
20518 if test "$HAVE_VALGRIND" = "no"
20520 as_fn_error $? "Valgrind not found." "$LINENO" 5
20524 AM_CFLAGS="$AM_CFLAGS -DHAVE_VALGRIND"
20527 if test "x$ENABLED_VALGRIND" = "xyes"; then
20529 USE_VALGRIND_FALSE='#'
20531 USE_VALGRIND_TRUE='#'
20532 USE_VALGRIND_FALSE=
20537 # Test certs, use internal cert functions for extra testing
20538 # Check whether --enable-testcert was given.
20539 if test "${enable_testcert+set}" = set; then :
20540 enableval=$enable_testcert; ENABLED_TESTCERT=$enableval
20542 ENABLED_TESTCERT=no
20547 if test "$ENABLED_TESTCERT" = "yes"
20549 AM_CFLAGS="$AM_CFLAGS -DCYASSL_TEST_CERT"
20553 # I/O Pool, an example to show user how to override memory handler and use
20554 # a pool for the input/output buffer requests
20555 # Check whether --enable-iopool was given.
20556 if test "${enable_iopool+set}" = set; then :
20557 enableval=$enable_iopool; ENABLED_IOPOOL=$enableval
20564 if test "$ENABLED_IOPOOL" = "yes"
20566 if test "$thread_ls_on" = "no"
20568 as_fn_error $? "I/O Pool example requires Thread Local Storage" "$LINENO" 5
20570 AM_CFLAGS="$AM_CFLAGS -DHAVE_IO_POOL -DXMALLOC_USER"
20574 # Certificate Service Support
20575 # Check whether --enable-certservice was given.
20576 if test "${enable_certservice+set}" = set; then :
20577 enableval=$enable_certservice; ENABLED_CERT_SERVICE=$enableval
20579 ENABLED_CERT_SERVICE=no
20583 if test "$ENABLED_CERT_SERVICE" = "yes"
20585 # Requires ecc,certgen, and opensslextra make sure on
20586 if test "x$ENABLED_CERTGEN" = "xno"
20588 ENABLED_CERTGEN="yes"
20589 AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
20591 if test "x$ENABLED_ECC" = "xno"
20594 AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
20595 if test "x$ENABLED_ECC" = "xyes"; then
20597 BUILD_ECC_FALSE='#'
20604 if test "x$ENABLED_OPENSSLEXTRA" = "xno"
20606 ENABLED_OPENSSLEXTRA="yes"
20607 AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
20609 AM_CFLAGS="$AM_CFLAGS -DCYASSL_HAVE_CERT_SERVICE"
20613 # set fastmath default
20614 FASTMATH_DEFAULT=no
20616 if test "$host_cpu" = "x86_64"
20618 FASTMATH_DEFAULT=yes
20622 # Check whether --enable-fastmath was given.
20623 if test "${enable_fastmath+set}" = set; then :
20624 enableval=$enable_fastmath; ENABLED_FASTMATH=$enableval
20626 ENABLED_FASTMATH=$FASTMATH_DEFAULT
20631 if test "x$ENABLED_FASTMATH" = "xyes"
20633 # turn off fastmth if leanpsk on or asn off
20634 if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no"
20636 ENABLED_FASTMATH=no
20638 AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
20639 ENABLED_SLOWMATH="no"
20645 # Check whether --enable-fasthugemath was given.
20646 if test "${enable_fasthugemath+set}" = set; then :
20647 enableval=$enable_fasthugemath; ENABLED_FASTHUGEMATH=$enableval
20649 ENABLED_FASTHUGEMATH=no
20654 if test "$ENABLED_BUMP" = "yes"
20656 ENABLED_FASTHUGEMATH="yes"
20659 if test "$ENABLED_FASTHUGEMATH" = "yes"
20661 ENABLED_FASTMATH="yes"
20662 AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
20663 ENABLED_SLOWMATH="no"
20666 if test "x$ENABLED_FASTMATH" = "xyes"; then
20667 BUILD_FASTMATH_TRUE=
20668 BUILD_FASTMATH_FALSE='#'
20670 BUILD_FASTMATH_TRUE='#'
20671 BUILD_FASTMATH_FALSE=
20674 if test "x$ENABLED_SLOWMATH" = "xyes"; then
20675 BUILD_SLOWMATH_TRUE=
20676 BUILD_SLOWMATH_FALSE='#'
20678 BUILD_SLOWMATH_TRUE='#'
20679 BUILD_SLOWMATH_FALSE=
20684 # Enable Examples, used to disable examples
20685 # Check whether --enable-examples was given.
20686 if test "${enable_examples+set}" = set; then :
20687 enableval=$enable_examples; ENABLED_EXAMPLES=$enableval
20689 ENABLED_EXAMPLES=yes
20694 if test "x$ENABLED_FILESYSTEM" = "xno"; then :
20695 ENABLED_EXAMPLES="no"
20697 if test "x$ENABLED_INLINE" = "xno"; then :
20698 ENABLED_EXAMPLES="no"
20700 # certs still have sha signatures for now
20701 if test "x$ENABLED_SHA" = "xno"; then :
20702 ENABLED_EXAMPLES="no"
20704 if test "x$ENABLED_EXAMPLES" = "xyes"; then
20705 BUILD_EXAMPLES_TRUE=
20706 BUILD_EXAMPLES_FALSE='#'
20708 BUILD_EXAMPLES_TRUE='#'
20709 BUILD_EXAMPLES_FALSE=
20718 # Check whether --with-libz was given.
20719 if test "${with_libz+set}" = set; then :
20720 withval=$with_libz;
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
20722 $as_echo_n "checking for libz... " >&6; }
20723 CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
20726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20737 if ac_fn_c_try_link "$LINENO"; then :
20742 rm -f core conftest.err conftest.$ac_objext \
20743 conftest$ac_exeext conftest.$ac_ext
20745 if test "x$libz_linked" == "xno" ; then
20746 if test "x$withval" != "xno" ; then
20747 trylibzdir=$withval
20749 if test "x$withval" == "xyes" ; then
20753 AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
20754 CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h. */
20767 if ac_fn_c_try_link "$LINENO"; then :
20772 rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20775 if test "x$libz_linked" == "xno" ; then
20776 as_fn_error $? "libz isn't found.
20777 If it's already installed, specify its path using --with-libz=/dir/" "$LINENO" 5
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20780 $as_echo "yes" >&6; }
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20783 $as_echo "yes" >&6; }
20790 if test "x$ENABLED_LIBZ" = "xyes"; then
20792 BUILD_LIBZ_FALSE='#'
20794 BUILD_LIBZ_TRUE='#'
20803 # Check whether --with-cavium was given.
20804 if test "${with_cavium+set}" = set; then :
20805 withval=$with_cavium;
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cavium" >&5
20807 $as_echo_n "checking for cavium... " >&6; }
20808 CPPFLAGS="$CPPFLAGS -DHAVE_CAVIUM"
20810 if test "x$withval" == "xyes" ; then
20811 as_fn_error $? "need a PATH for --with-cavium" "$LINENO" 5
20813 if test "x$withval" != "xno" ; then
20814 trycaviumdir=$withval
20817 LDFLAGS="$AM_LDFLAGS $trycaviumdir/api/cavium_common.o"
20818 CPPFLAGS="$CPPFLAGS -I$trycaviumdir/include"
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20822 #include "cavium_common.h"
20826 CspShutdown(CAVIUM_DEV_ID);
20831 if ac_fn_c_try_link "$LINENO"; then :
20836 rm -f core conftest.err conftest.$ac_objext \
20837 conftest$ac_exeext conftest.$ac_ext
20839 if test "x$cavium_linked" == "xno" ; then
20840 as_fn_error $? "cavium isn't found.
20841 If it's already installed, specify its path using --with-cavium=/dir/" "$LINENO" 5
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20844 $as_echo "yes" >&6; }
20854 # Check whether --enable-mcapi was given.
20855 if test "${enable_mcapi+set}" = set; then :
20856 enableval=$enable_mcapi; ENABLED_MCAPI=$enableval
20863 if test "$ENABLED_MCAPI" = "yes"
20865 AM_CFLAGS="$AM_CFLAGS -DHAVE_MCAPI -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT"
20868 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_SHA512" = "no"
20870 as_fn_error $? "please enable sha512 if enabling mcapi." "$LINENO" 5
20873 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_ECC" = "no"
20875 as_fn_error $? "please enable ecc if enabling mcapi." "$LINENO" 5
20878 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_LIBZ" = "no"
20880 as_fn_error $? "please use --with-libz if enabling mcapi." "$LINENO" 5
20883 if test "x$ENABLED_MCAPI" = "xyes"; then
20885 BUILD_MCAPI_FALSE='#'
20887 BUILD_MCAPI_TRUE='#'
20895 if test "$GCC" = "yes"
20897 AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
20898 if test "$ax_enable_debug" = "no"
20900 if test "$ENABLED_FASTMATH" = "yes"
20902 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
20903 if test "$ENABLED_FASTHUGEMATH" = "yes"
20905 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
20908 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
20913 # ICC command line warning for non supported warning flags
20914 if test "$CC" = "icc"
20916 AM_CFLAGS="$AM_CFLAGS -wd10006"
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20922 $as_echo_n "checking for library containing gethostbyname... " >&6; }
20923 if ${ac_cv_search_gethostbyname+:} false; then :
20924 $as_echo_n "(cached) " >&6
20926 ac_func_search_save_LIBS=$LIBS
20927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h. */
20930 /* Override any GCC internal prototype to avoid an error.
20931 Use char because int might match the return type of a GCC
20932 builtin and then its argument prototype would still apply. */
20936 char gethostbyname ();
20940 return gethostbyname ();
20945 for ac_lib in '' nsl; do
20946 if test -z "$ac_lib"; then
20947 ac_res="none required"
20950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20952 if ac_fn_c_try_link "$LINENO"; then :
20953 ac_cv_search_gethostbyname=$ac_res
20955 rm -f core conftest.err conftest.$ac_objext \
20957 if ${ac_cv_search_gethostbyname+:} false; then :
20961 if ${ac_cv_search_gethostbyname+:} false; then :
20964 ac_cv_search_gethostbyname=no
20966 rm conftest.$ac_ext
20967 LIBS=$ac_func_search_save_LIBS
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20970 $as_echo "$ac_cv_search_gethostbyname" >&6; }
20971 ac_res=$ac_cv_search_gethostbyname
20972 if test "$ac_res" != no; then :
20973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20978 $as_echo_n "checking for library containing socket... " >&6; }
20979 if ${ac_cv_search_socket+:} false; then :
20980 $as_echo_n "(cached) " >&6
20982 ac_func_search_save_LIBS=$LIBS
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20986 /* Override any GCC internal prototype to avoid an error.
20987 Use char because int might match the return type of a GCC
20988 builtin and then its argument prototype would still apply. */
21001 for ac_lib in '' socket; do
21002 if test -z "$ac_lib"; then
21003 ac_res="none required"
21006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21008 if ac_fn_c_try_link "$LINENO"; then :
21009 ac_cv_search_socket=$ac_res
21011 rm -f core conftest.err conftest.$ac_objext \
21013 if ${ac_cv_search_socket+:} false; then :
21017 if ${ac_cv_search_socket+:} false; then :
21020 ac_cv_search_socket=no
21022 rm conftest.$ac_ext
21023 LIBS=$ac_func_search_save_LIBS
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21026 $as_echo "$ac_cv_search_socket" >&6; }
21027 ac_res=$ac_cv_search_socket
21028 if test "$ac_res" != no; then :
21029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21034 $as_echo_n "checking for socket in -lsocket... " >&6; }
21035 if ${ac_cv_lib_socket_socket+:} false; then :
21036 $as_echo_n "(cached) " >&6
21038 ac_check_lib_save_LIBS=$LIBS
21039 LIBS="-lsocket -lnsl $LIBS"
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21043 /* Override any GCC internal prototype to avoid an error.
21044 Use char because int might match the return type of a GCC
21045 builtin and then its argument prototype would still apply. */
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 ac_cv_lib_socket_socket=yes
21061 ac_cv_lib_socket_socket=no
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21065 LIBS=$ac_check_lib_save_LIBS
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21068 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21069 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21070 LIBS="-lsocket -lnsl $LIBS"
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
21077 $as_echo_n "checking whether C compiler accepts ... " >&6; }
21078 if ${ax_cv_check_cflags__+:} false; then :
21079 $as_echo_n "(cached) " >&6
21082 ax_check_save_flags=$CFLAGS
21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21095 if ac_fn_c_try_compile "$LINENO"; then :
21096 ax_cv_check_cflags__=yes
21098 ax_cv_check_cflags__=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 CFLAGS=$ax_check_save_flags
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
21104 $as_echo "$ax_cv_check_cflags__" >&6; }
21105 if test x"$ax_cv_check_cflags__" = xyes; then :
21111 if ${CFLAGS+:} false; then :
21112 case " $CFLAGS " in
21114 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
21115 (: CFLAGS already contains ) 2>&5
21117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21118 test $ac_status = 0; }
21121 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
21122 (: CFLAGS="$CFLAGS ") 2>&5
21124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21125 test $ac_status = 0; }
21136 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21138 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21139 if eval \${$as_CACHEVAR+:} false; then :
21140 $as_echo_n "(cached) " >&6
21143 ax_check_save_flags=$CFLAGS
21144 CFLAGS="$CFLAGS $flag"
21145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21156 if ac_fn_c_try_compile "$LINENO"; then :
21157 eval "$as_CACHEVAR=yes"
21159 eval "$as_CACHEVAR=no"
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 CFLAGS=$ax_check_save_flags
21164 eval ac_res=\$$as_CACHEVAR
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21166 $as_echo "$ac_res" >&6; }
21167 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21168 if ${CFLAGS+:} false; then :
21169 case " $CFLAGS " in
21171 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21172 (: CFLAGS already contains $flag) 2>&5
21174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21175 test $ac_status = 0; }
21178 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21179 (: CFLAGS="$CFLAGS $flag") 2>&5
21181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21182 test $ac_status = 0; }
21183 CFLAGS="$CFLAGS $flag"
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts " >&5
21197 $as_echo_n "checking whether the linker accepts ... " >&6; }
21198 if ${ax_cv_check_ldflags__+:} false; then :
21199 $as_echo_n "(cached) " >&6
21202 ax_check_save_flags=$LDFLAGS
21203 LDFLAGS="$LDFLAGS "
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21215 if ac_fn_c_try_link "$LINENO"; then :
21216 ax_cv_check_ldflags__=yes
21218 ax_cv_check_ldflags__=no
21220 rm -f core conftest.err conftest.$ac_objext \
21221 conftest$ac_exeext conftest.$ac_ext
21222 LDFLAGS=$ax_check_save_flags
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__" >&5
21225 $as_echo "$ax_cv_check_ldflags__" >&6; }
21226 if test x"$ax_cv_check_ldflags__" = xyes; then :
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs system" >&5
21233 $as_echo_n "checking for vcs system... " >&6; }
21234 if ${ac_cv_vcs_system+:} false; then :
21235 $as_echo_n "(cached) " >&6
21237 ac_cv_vcs_system="none"
21238 if test -d ".bzr"; then :
21239 ac_cv_vcs_system="bazaar"
21241 if test -d ".svn"; then :
21242 ac_cv_vcs_system="svn"
21244 if test -d ".hg"; then :
21245 ac_cv_vcs_system="mercurial"
21247 if test -d ".git"; then :
21248 ac_cv_vcs_system="git"
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_system" >&5
21253 $as_echo "$ac_cv_vcs_system" >&6; }
21255 cat >>confdefs.h <<_ACEOF
21256 #define VCS_SYSTEM "$ac_cv_vcs_system"
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs checkout" >&5
21262 $as_echo_n "checking for vcs checkout... " >&6; }
21263 if ${ac_cv_vcs_checkout+:} false; then :
21264 $as_echo_n "(cached) " >&6
21266 if test "x$ac_cv_vcs_system" != "xnone"; then :
21267 ac_cv_vcs_checkout=yes
21269 ac_cv_vcs_checkout=no
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_checkout" >&5
21274 $as_echo "$ac_cv_vcs_checkout" >&6; }
21276 if test "x$ac_cv_vcs_checkout" = "xyes"; then
21277 IS_VCS_CHECKOUT_TRUE=
21278 IS_VCS_CHECKOUT_FALSE='#'
21280 IS_VCS_CHECKOUT_TRUE='#'
21281 IS_VCS_CHECKOUT_FALSE=
21284 if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21286 $as_echo "#define VCS_CHECKOUT 1" >>confdefs.h
21290 $as_echo "#define VCS_CHECKOUT 0" >>confdefs.h
21300 ax_append_compile_link_flags_extra=
21301 if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21304 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21305 if ${ax_cv_check_ldflags___Werror+:} false; then :
21306 $as_echo_n "(cached) " >&6
21309 ax_check_save_flags=$LDFLAGS
21310 LDFLAGS="$LDFLAGS -Werror"
21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h. */
21322 if ac_fn_c_try_link "$LINENO"; then :
21323 ax_cv_check_ldflags___Werror=yes
21325 ax_cv_check_ldflags___Werror=no
21327 rm -f core conftest.err conftest.$ac_objext \
21328 conftest$ac_exeext conftest.$ac_ext
21329 LDFLAGS=$ax_check_save_flags
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21332 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21333 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21335 AX_HARDEN_LIB="-Werror $AX_HARDEN_LIB"
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21345 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21346 if ${ax_cv_check_ldflags___Werror+:} false; then :
21347 $as_echo_n "(cached) " >&6
21350 ax_check_save_flags=$LDFLAGS
21351 LDFLAGS="$LDFLAGS -Werror"
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h. */
21363 if ac_fn_c_try_link "$LINENO"; then :
21364 ax_cv_check_ldflags___Werror=yes
21366 ax_cv_check_ldflags___Werror=no
21368 rm -f core conftest.err conftest.$ac_objext \
21369 conftest$ac_exeext conftest.$ac_ext
21370 LDFLAGS=$ax_check_save_flags
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21373 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21374 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21376 ax_append_compile_link_flags_extra='-Werror'
21385 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-z relro -z now" | $as_tr_sh`
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
21387 $as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
21388 if eval \${$as_CACHEVAR+:} false; then :
21389 $as_echo_n "(cached) " >&6
21392 ax_check_save_flags=$LDFLAGS
21393 LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -z relro -z now"
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21405 if ac_fn_c_try_link "$LINENO"; then :
21406 eval "$as_CACHEVAR=yes"
21408 eval "$as_CACHEVAR=no"
21410 rm -f core conftest.err conftest.$ac_objext \
21411 conftest$ac_exeext conftest.$ac_ext
21412 LDFLAGS=$ax_check_save_flags
21414 eval ac_res=\$$as_CACHEVAR
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21416 $as_echo "$ac_res" >&6; }
21417 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21419 AX_HARDEN_LIB="-z relro -z now $AX_HARDEN_LIB"
21426 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-pie" | $as_tr_sh`
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
21428 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21429 if eval \${$as_CACHEVAR+:} false; then :
21430 $as_echo_n "(cached) " >&6
21433 ax_check_save_flags=$LDFLAGS
21434 LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -pie"
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21446 if ac_fn_c_try_link "$LINENO"; then :
21447 eval "$as_CACHEVAR=yes"
21449 eval "$as_CACHEVAR=no"
21451 rm -f core conftest.err conftest.$ac_objext \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LDFLAGS=$ax_check_save_flags
21455 eval ac_res=\$$as_CACHEVAR
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21457 $as_echo "$ac_res" >&6; }
21458 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21460 AX_HARDEN_LIB="-pie $AX_HARDEN_LIB"
21467 LIB="$LIB $AX_HARDEN_LIB"
21474 ac_cpp='$CPP $CPPFLAGS'
21475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21481 ac_cv_warnings_as_errors=no
21482 ax_append_compile_cflags_extra=
21483 if test "$ac_cv_vcs_checkout" = "yes"; then :
21487 for flag in -Werror; do
21488 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21490 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21491 if eval \${$as_CACHEVAR+:} false; then :
21492 $as_echo_n "(cached) " >&6
21495 ax_check_save_flags=$CFLAGS
21496 CFLAGS="$CFLAGS $flag"
21497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21508 if ac_fn_c_try_compile "$LINENO"; then :
21509 eval "$as_CACHEVAR=yes"
21511 eval "$as_CACHEVAR=no"
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514 CFLAGS=$ax_check_save_flags
21516 eval ac_res=\$$as_CACHEVAR
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21518 $as_echo "$ac_res" >&6; }
21519 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21520 if ${CFLAGS+:} false; then :
21521 case " $CFLAGS " in
21523 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21524 (: CFLAGS already contains $flag) 2>&5
21526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21527 test $ac_status = 0; }
21530 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21531 (: CFLAGS="$CFLAGS $flag") 2>&5
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; }
21535 CFLAGS="$CFLAGS $flag"
21548 ac_cv_warnings_as_errors=yes
21554 for flag in -Werror; do
21555 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21557 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21558 if eval \${$as_CACHEVAR+:} false; then :
21559 $as_echo_n "(cached) " >&6
21562 ax_check_save_flags=$CFLAGS
21563 CFLAGS="$CFLAGS $flag"
21564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h. */
21575 if ac_fn_c_try_compile "$LINENO"; then :
21576 eval "$as_CACHEVAR=yes"
21578 eval "$as_CACHEVAR=no"
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 CFLAGS=$ax_check_save_flags
21583 eval ac_res=\$$as_CACHEVAR
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21585 $as_echo "$ac_res" >&6; }
21586 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21587 if ${ax_append_compile_cflags_extra+:} false; then :
21588 case " $ax_append_compile_cflags_extra " in
21590 { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra already contains \$flag"; } >&5
21591 (: ax_append_compile_cflags_extra already contains $flag) 2>&5
21593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21594 test $ac_status = 0; }
21597 { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra=\"\$ax_append_compile_cflags_extra \$flag\""; } >&5
21598 (: ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag") 2>&5
21600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21601 test $ac_status = 0; }
21602 ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag"
21606 ax_append_compile_cflags_extra="$flag"
21618 if test "$ax_enable_debug" = "yes"; then :
21623 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21625 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21626 if eval \${$as_CACHEVAR+:} false; then :
21627 $as_echo_n "(cached) " >&6
21630 ax_check_save_flags=$CFLAGS
21631 CFLAGS="$CFLAGS $flag"
21632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h. */
21643 if ac_fn_c_try_compile "$LINENO"; then :
21644 eval "$as_CACHEVAR=yes"
21646 eval "$as_CACHEVAR=no"
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 CFLAGS=$ax_check_save_flags
21651 eval ac_res=\$$as_CACHEVAR
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21653 $as_echo "$ac_res" >&6; }
21654 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21655 if ${CFLAGS+:} false; then :
21656 case " $CFLAGS " in
21658 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21659 (: CFLAGS already contains $flag) 2>&5
21661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21662 test $ac_status = 0; }
21665 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21666 (: CFLAGS="$CFLAGS $flag") 2>&5
21668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21669 test $ac_status = 0; }
21670 CFLAGS="$CFLAGS $flag"
21685 for flag in -ggdb; do
21686 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21688 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21689 if eval \${$as_CACHEVAR+:} false; then :
21690 $as_echo_n "(cached) " >&6
21693 ax_check_save_flags=$CFLAGS
21694 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21706 if ac_fn_c_try_compile "$LINENO"; then :
21707 eval "$as_CACHEVAR=yes"
21709 eval "$as_CACHEVAR=no"
21711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712 CFLAGS=$ax_check_save_flags
21714 eval ac_res=\$$as_CACHEVAR
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21716 $as_echo "$ac_res" >&6; }
21717 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21718 if ${CFLAGS+:} false; then :
21719 case " $CFLAGS " in
21721 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21722 (: CFLAGS already contains $flag) 2>&5
21724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21725 test $ac_status = 0; }
21728 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21729 (: CFLAGS="$CFLAGS $flag") 2>&5
21731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21732 test $ac_status = 0; }
21733 CFLAGS="$CFLAGS $flag"
21748 for flag in -O0; do
21749 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21751 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21752 if eval \${$as_CACHEVAR+:} false; then :
21753 $as_echo_n "(cached) " >&6
21756 ax_check_save_flags=$CFLAGS
21757 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h. */
21769 if ac_fn_c_try_compile "$LINENO"; then :
21770 eval "$as_CACHEVAR=yes"
21772 eval "$as_CACHEVAR=no"
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 CFLAGS=$ax_check_save_flags
21777 eval ac_res=\$$as_CACHEVAR
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21779 $as_echo "$ac_res" >&6; }
21780 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21781 if ${CFLAGS+:} false; then :
21782 case " $CFLAGS " in
21784 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21785 (: CFLAGS already contains $flag) 2>&5
21787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21788 test $ac_status = 0; }
21791 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21792 (: CFLAGS="$CFLAGS $flag") 2>&5
21794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }
21796 CFLAGS="$CFLAGS $flag"
21814 for flag in -Wno-pragmas; do
21815 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21817 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21818 if eval \${$as_CACHEVAR+:} false; then :
21819 $as_echo_n "(cached) " >&6
21822 ax_check_save_flags=$CFLAGS
21823 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h. */
21835 if ac_fn_c_try_compile "$LINENO"; then :
21836 eval "$as_CACHEVAR=yes"
21838 eval "$as_CACHEVAR=no"
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841 CFLAGS=$ax_check_save_flags
21843 eval ac_res=\$$as_CACHEVAR
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21845 $as_echo "$ac_res" >&6; }
21846 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21847 if ${CFLAGS+:} false; then :
21848 case " $CFLAGS " in
21850 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21851 (: CFLAGS already contains $flag) 2>&5
21853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854 test $ac_status = 0; }
21857 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21858 (: CFLAGS="$CFLAGS $flag") 2>&5
21860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861 test $ac_status = 0; }
21862 CFLAGS="$CFLAGS $flag"
21878 for flag in -Wall; do
21879 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21881 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21882 if eval \${$as_CACHEVAR+:} false; then :
21883 $as_echo_n "(cached) " >&6
21886 ax_check_save_flags=$CFLAGS
21887 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21899 if ac_fn_c_try_compile "$LINENO"; then :
21900 eval "$as_CACHEVAR=yes"
21902 eval "$as_CACHEVAR=no"
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905 CFLAGS=$ax_check_save_flags
21907 eval ac_res=\$$as_CACHEVAR
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21909 $as_echo "$ac_res" >&6; }
21910 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21911 if ${CFLAGS+:} false; then :
21912 case " $CFLAGS " in
21914 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21915 (: CFLAGS already contains $flag) 2>&5
21917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21918 test $ac_status = 0; }
21921 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21922 (: CFLAGS="$CFLAGS $flag") 2>&5
21924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925 test $ac_status = 0; }
21926 CFLAGS="$CFLAGS $flag"
21941 for flag in -Wno-strict-aliasing; do
21942 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21944 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21945 if eval \${$as_CACHEVAR+:} false; then :
21946 $as_echo_n "(cached) " >&6
21949 ax_check_save_flags=$CFLAGS
21950 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21962 if ac_fn_c_try_compile "$LINENO"; then :
21963 eval "$as_CACHEVAR=yes"
21965 eval "$as_CACHEVAR=no"
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 CFLAGS=$ax_check_save_flags
21970 eval ac_res=\$$as_CACHEVAR
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21972 $as_echo "$ac_res" >&6; }
21973 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21974 if ${CFLAGS+:} false; then :
21975 case " $CFLAGS " in
21977 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21978 (: CFLAGS already contains $flag) 2>&5
21980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21981 test $ac_status = 0; }
21984 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21985 (: CFLAGS="$CFLAGS $flag") 2>&5
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }
21989 CFLAGS="$CFLAGS $flag"
22004 for flag in -Wextra; do
22005 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22007 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22008 if eval \${$as_CACHEVAR+:} false; then :
22009 $as_echo_n "(cached) " >&6
22012 ax_check_save_flags=$CFLAGS
22013 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22025 if ac_fn_c_try_compile "$LINENO"; then :
22026 eval "$as_CACHEVAR=yes"
22028 eval "$as_CACHEVAR=no"
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 CFLAGS=$ax_check_save_flags
22033 eval ac_res=\$$as_CACHEVAR
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22035 $as_echo "$ac_res" >&6; }
22036 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22037 if ${CFLAGS+:} false; then :
22038 case " $CFLAGS " in
22040 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22041 (: CFLAGS already contains $flag) 2>&5
22043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044 test $ac_status = 0; }
22047 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22048 (: CFLAGS="$CFLAGS $flag") 2>&5
22050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22051 test $ac_status = 0; }
22052 CFLAGS="$CFLAGS $flag"
22067 for flag in -Wunknown-pragmas; do
22068 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22070 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22071 if eval \${$as_CACHEVAR+:} false; then :
22072 $as_echo_n "(cached) " >&6
22075 ax_check_save_flags=$CFLAGS
22076 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22088 if ac_fn_c_try_compile "$LINENO"; then :
22089 eval "$as_CACHEVAR=yes"
22091 eval "$as_CACHEVAR=no"
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 CFLAGS=$ax_check_save_flags
22096 eval ac_res=\$$as_CACHEVAR
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22100 if ${CFLAGS+:} false; then :
22101 case " $CFLAGS " in
22103 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22104 (: CFLAGS already contains $flag) 2>&5
22106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22107 test $ac_status = 0; }
22110 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22111 (: CFLAGS="$CFLAGS $flag") 2>&5
22113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22114 test $ac_status = 0; }
22115 CFLAGS="$CFLAGS $flag"
22130 for flag in -Wthis-test-should-fail; do
22131 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22133 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22134 if eval \${$as_CACHEVAR+:} false; then :
22135 $as_echo_n "(cached) " >&6
22138 ax_check_save_flags=$CFLAGS
22139 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22151 if ac_fn_c_try_compile "$LINENO"; then :
22152 eval "$as_CACHEVAR=yes"
22154 eval "$as_CACHEVAR=no"
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 CFLAGS=$ax_check_save_flags
22159 eval ac_res=\$$as_CACHEVAR
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22161 $as_echo "$ac_res" >&6; }
22162 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22163 if ${CFLAGS+:} false; then :
22164 case " $CFLAGS " in
22166 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22167 (: CFLAGS already contains $flag) 2>&5
22169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170 test $ac_status = 0; }
22173 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22174 (: CFLAGS="$CFLAGS $flag") 2>&5
22176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177 test $ac_status = 0; }
22178 CFLAGS="$CFLAGS $flag"
22191 if test "$CC" = "clang"; then :
22197 for flag in --param=ssp-buffer-size=1; do
22198 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22200 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22201 if eval \${$as_CACHEVAR+:} false; then :
22202 $as_echo_n "(cached) " >&6
22205 ax_check_save_flags=$CFLAGS
22206 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22218 if ac_fn_c_try_compile "$LINENO"; then :
22219 eval "$as_CACHEVAR=yes"
22221 eval "$as_CACHEVAR=no"
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 CFLAGS=$ax_check_save_flags
22226 eval ac_res=\$$as_CACHEVAR
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22228 $as_echo "$ac_res" >&6; }
22229 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22230 if ${CFLAGS+:} false; then :
22231 case " $CFLAGS " in
22233 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22234 (: CFLAGS already contains $flag) 2>&5
22236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22237 test $ac_status = 0; }
22240 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22241 (: CFLAGS="$CFLAGS $flag") 2>&5
22243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22244 test $ac_status = 0; }
22245 CFLAGS="$CFLAGS $flag"
22262 for flag in -Waddress; do
22263 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22265 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22266 if eval \${$as_CACHEVAR+:} false; then :
22267 $as_echo_n "(cached) " >&6
22270 ax_check_save_flags=$CFLAGS
22271 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h. */
22283 if ac_fn_c_try_compile "$LINENO"; then :
22284 eval "$as_CACHEVAR=yes"
22286 eval "$as_CACHEVAR=no"
22288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289 CFLAGS=$ax_check_save_flags
22291 eval ac_res=\$$as_CACHEVAR
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22293 $as_echo "$ac_res" >&6; }
22294 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22295 if ${CFLAGS+:} false; then :
22296 case " $CFLAGS " in
22298 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22299 (: CFLAGS already contains $flag) 2>&5
22301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302 test $ac_status = 0; }
22305 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22306 (: CFLAGS="$CFLAGS $flag") 2>&5
22308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309 test $ac_status = 0; }
22310 CFLAGS="$CFLAGS $flag"
22325 for flag in -Warray-bounds; do
22326 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22328 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22329 if eval \${$as_CACHEVAR+:} false; then :
22330 $as_echo_n "(cached) " >&6
22333 ax_check_save_flags=$CFLAGS
22334 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22346 if ac_fn_c_try_compile "$LINENO"; then :
22347 eval "$as_CACHEVAR=yes"
22349 eval "$as_CACHEVAR=no"
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 CFLAGS=$ax_check_save_flags
22354 eval ac_res=\$$as_CACHEVAR
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22356 $as_echo "$ac_res" >&6; }
22357 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22358 if ${CFLAGS+:} false; then :
22359 case " $CFLAGS " in
22361 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22362 (: CFLAGS already contains $flag) 2>&5
22364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22365 test $ac_status = 0; }
22368 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22369 (: CFLAGS="$CFLAGS $flag") 2>&5
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }
22373 CFLAGS="$CFLAGS $flag"
22388 for flag in -Wbad-function-cast; do
22389 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22391 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22392 if eval \${$as_CACHEVAR+:} false; then :
22393 $as_echo_n "(cached) " >&6
22396 ax_check_save_flags=$CFLAGS
22397 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h. */
22409 if ac_fn_c_try_compile "$LINENO"; then :
22410 eval "$as_CACHEVAR=yes"
22412 eval "$as_CACHEVAR=no"
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 CFLAGS=$ax_check_save_flags
22417 eval ac_res=\$$as_CACHEVAR
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22419 $as_echo "$ac_res" >&6; }
22420 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22421 if ${CFLAGS+:} false; then :
22422 case " $CFLAGS " in
22424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22425 (: CFLAGS already contains $flag) 2>&5
22427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22428 test $ac_status = 0; }
22431 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22432 (: CFLAGS="$CFLAGS $flag") 2>&5
22434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22435 test $ac_status = 0; }
22436 CFLAGS="$CFLAGS $flag"
22451 for flag in -Wchar-subscripts; do
22452 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22454 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22455 if eval \${$as_CACHEVAR+:} false; then :
22456 $as_echo_n "(cached) " >&6
22459 ax_check_save_flags=$CFLAGS
22460 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h. */
22472 if ac_fn_c_try_compile "$LINENO"; then :
22473 eval "$as_CACHEVAR=yes"
22475 eval "$as_CACHEVAR=no"
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 CFLAGS=$ax_check_save_flags
22480 eval ac_res=\$$as_CACHEVAR
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22482 $as_echo "$ac_res" >&6; }
22483 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22484 if ${CFLAGS+:} false; then :
22485 case " $CFLAGS " in
22487 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22488 (: CFLAGS already contains $flag) 2>&5
22490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22491 test $ac_status = 0; }
22494 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22495 (: CFLAGS="$CFLAGS $flag") 2>&5
22497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22498 test $ac_status = 0; }
22499 CFLAGS="$CFLAGS $flag"
22514 for flag in -Wcomment; do
22515 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22517 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22518 if eval \${$as_CACHEVAR+:} false; then :
22519 $as_echo_n "(cached) " >&6
22522 ax_check_save_flags=$CFLAGS
22523 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h. */
22535 if ac_fn_c_try_compile "$LINENO"; then :
22536 eval "$as_CACHEVAR=yes"
22538 eval "$as_CACHEVAR=no"
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 CFLAGS=$ax_check_save_flags
22543 eval ac_res=\$$as_CACHEVAR
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22545 $as_echo "$ac_res" >&6; }
22546 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22547 if ${CFLAGS+:} false; then :
22548 case " $CFLAGS " in
22550 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22551 (: CFLAGS already contains $flag) 2>&5
22553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22554 test $ac_status = 0; }
22557 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22558 (: CFLAGS="$CFLAGS $flag") 2>&5
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }
22562 CFLAGS="$CFLAGS $flag"
22577 for flag in -Wfloat-equal; do
22578 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22580 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22581 if eval \${$as_CACHEVAR+:} false; then :
22582 $as_echo_n "(cached) " >&6
22585 ax_check_save_flags=$CFLAGS
22586 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22598 if ac_fn_c_try_compile "$LINENO"; then :
22599 eval "$as_CACHEVAR=yes"
22601 eval "$as_CACHEVAR=no"
22603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604 CFLAGS=$ax_check_save_flags
22606 eval ac_res=\$$as_CACHEVAR
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22608 $as_echo "$ac_res" >&6; }
22609 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22610 if ${CFLAGS+:} false; then :
22611 case " $CFLAGS " in
22613 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22614 (: CFLAGS already contains $flag) 2>&5
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }
22620 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22621 (: CFLAGS="$CFLAGS $flag") 2>&5
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }
22625 CFLAGS="$CFLAGS $flag"
22640 for flag in -Wformat-security; do
22641 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22643 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22644 if eval \${$as_CACHEVAR+:} false; then :
22645 $as_echo_n "(cached) " >&6
22648 ax_check_save_flags=$CFLAGS
22649 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651 /* end confdefs.h. */
22661 if ac_fn_c_try_compile "$LINENO"; then :
22662 eval "$as_CACHEVAR=yes"
22664 eval "$as_CACHEVAR=no"
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 CFLAGS=$ax_check_save_flags
22669 eval ac_res=\$$as_CACHEVAR
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22671 $as_echo "$ac_res" >&6; }
22672 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22673 if ${CFLAGS+:} false; then :
22674 case " $CFLAGS " in
22676 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22677 (: CFLAGS already contains $flag) 2>&5
22679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22680 test $ac_status = 0; }
22683 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22684 (: CFLAGS="$CFLAGS $flag") 2>&5
22686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687 test $ac_status = 0; }
22688 CFLAGS="$CFLAGS $flag"
22703 for flag in -Wformat=2; do
22704 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22706 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22707 if eval \${$as_CACHEVAR+:} false; then :
22708 $as_echo_n "(cached) " >&6
22711 ax_check_save_flags=$CFLAGS
22712 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22724 if ac_fn_c_try_compile "$LINENO"; then :
22725 eval "$as_CACHEVAR=yes"
22727 eval "$as_CACHEVAR=no"
22729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22730 CFLAGS=$ax_check_save_flags
22732 eval ac_res=\$$as_CACHEVAR
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22734 $as_echo "$ac_res" >&6; }
22735 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22736 if ${CFLAGS+:} false; then :
22737 case " $CFLAGS " in
22739 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22740 (: CFLAGS already contains $flag) 2>&5
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }
22746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22747 (: CFLAGS="$CFLAGS $flag") 2>&5
22749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22750 test $ac_status = 0; }
22751 CFLAGS="$CFLAGS $flag"
22766 for flag in -Wmaybe-uninitialized; do
22767 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22769 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22770 if eval \${$as_CACHEVAR+:} false; then :
22771 $as_echo_n "(cached) " >&6
22774 ax_check_save_flags=$CFLAGS
22775 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h. */
22787 if ac_fn_c_try_compile "$LINENO"; then :
22788 eval "$as_CACHEVAR=yes"
22790 eval "$as_CACHEVAR=no"
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 CFLAGS=$ax_check_save_flags
22795 eval ac_res=\$$as_CACHEVAR
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22797 $as_echo "$ac_res" >&6; }
22798 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22799 if ${CFLAGS+:} false; then :
22800 case " $CFLAGS " in
22802 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22803 (: CFLAGS already contains $flag) 2>&5
22805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806 test $ac_status = 0; }
22809 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22810 (: CFLAGS="$CFLAGS $flag") 2>&5
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }
22814 CFLAGS="$CFLAGS $flag"
22829 for flag in -Wmissing-field-initializers; do
22830 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22832 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22833 if eval \${$as_CACHEVAR+:} false; then :
22834 $as_echo_n "(cached) " >&6
22837 ax_check_save_flags=$CFLAGS
22838 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22850 if ac_fn_c_try_compile "$LINENO"; then :
22851 eval "$as_CACHEVAR=yes"
22853 eval "$as_CACHEVAR=no"
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 CFLAGS=$ax_check_save_flags
22858 eval ac_res=\$$as_CACHEVAR
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22860 $as_echo "$ac_res" >&6; }
22861 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22862 if ${CFLAGS+:} false; then :
22863 case " $CFLAGS " in
22865 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22866 (: CFLAGS already contains $flag) 2>&5
22868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22869 test $ac_status = 0; }
22872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22873 (: CFLAGS="$CFLAGS $flag") 2>&5
22875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876 test $ac_status = 0; }
22877 CFLAGS="$CFLAGS $flag"
22892 for flag in -Wmissing-noreturn; do
22893 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22895 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22896 if eval \${$as_CACHEVAR+:} false; then :
22897 $as_echo_n "(cached) " >&6
22900 ax_check_save_flags=$CFLAGS
22901 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h. */
22913 if ac_fn_c_try_compile "$LINENO"; then :
22914 eval "$as_CACHEVAR=yes"
22916 eval "$as_CACHEVAR=no"
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 CFLAGS=$ax_check_save_flags
22921 eval ac_res=\$$as_CACHEVAR
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22923 $as_echo "$ac_res" >&6; }
22924 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22925 if ${CFLAGS+:} false; then :
22926 case " $CFLAGS " in
22928 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22929 (: CFLAGS already contains $flag) 2>&5
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }
22935 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22936 (: CFLAGS="$CFLAGS $flag") 2>&5
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }
22940 CFLAGS="$CFLAGS $flag"
22955 for flag in -Wmissing-prototypes; do
22956 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22958 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22959 if eval \${$as_CACHEVAR+:} false; then :
22960 $as_echo_n "(cached) " >&6
22963 ax_check_save_flags=$CFLAGS
22964 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966 /* end confdefs.h. */
22976 if ac_fn_c_try_compile "$LINENO"; then :
22977 eval "$as_CACHEVAR=yes"
22979 eval "$as_CACHEVAR=no"
22981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22982 CFLAGS=$ax_check_save_flags
22984 eval ac_res=\$$as_CACHEVAR
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22986 $as_echo "$ac_res" >&6; }
22987 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22988 if ${CFLAGS+:} false; then :
22989 case " $CFLAGS " in
22991 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22992 (: CFLAGS already contains $flag) 2>&5
22994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995 test $ac_status = 0; }
22998 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22999 (: CFLAGS="$CFLAGS $flag") 2>&5
23001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23002 test $ac_status = 0; }
23003 CFLAGS="$CFLAGS $flag"
23018 for flag in -Wnested-externs; do
23019 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23021 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23022 if eval \${$as_CACHEVAR+:} false; then :
23023 $as_echo_n "(cached) " >&6
23026 ax_check_save_flags=$CFLAGS
23027 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23039 if ac_fn_c_try_compile "$LINENO"; then :
23040 eval "$as_CACHEVAR=yes"
23042 eval "$as_CACHEVAR=no"
23044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 CFLAGS=$ax_check_save_flags
23047 eval ac_res=\$$as_CACHEVAR
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23049 $as_echo "$ac_res" >&6; }
23050 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23051 if ${CFLAGS+:} false; then :
23052 case " $CFLAGS " in
23054 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23055 (: CFLAGS already contains $flag) 2>&5
23057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23058 test $ac_status = 0; }
23061 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23062 (: CFLAGS="$CFLAGS $flag") 2>&5
23064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23065 test $ac_status = 0; }
23066 CFLAGS="$CFLAGS $flag"
23081 for flag in -Wnormalized=id; do
23082 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23084 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23085 if eval \${$as_CACHEVAR+:} false; then :
23086 $as_echo_n "(cached) " >&6
23089 ax_check_save_flags=$CFLAGS
23090 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23092 /* end confdefs.h. */
23102 if ac_fn_c_try_compile "$LINENO"; then :
23103 eval "$as_CACHEVAR=yes"
23105 eval "$as_CACHEVAR=no"
23107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108 CFLAGS=$ax_check_save_flags
23110 eval ac_res=\$$as_CACHEVAR
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23112 $as_echo "$ac_res" >&6; }
23113 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23114 if ${CFLAGS+:} false; then :
23115 case " $CFLAGS " in
23117 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23118 (: CFLAGS already contains $flag) 2>&5
23120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23121 test $ac_status = 0; }
23124 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23125 (: CFLAGS="$CFLAGS $flag") 2>&5
23127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128 test $ac_status = 0; }
23129 CFLAGS="$CFLAGS $flag"
23144 for flag in -Woverride-init; do
23145 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23147 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23148 if eval \${$as_CACHEVAR+:} false; then :
23149 $as_echo_n "(cached) " >&6
23152 ax_check_save_flags=$CFLAGS
23153 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155 /* end confdefs.h. */
23165 if ac_fn_c_try_compile "$LINENO"; then :
23166 eval "$as_CACHEVAR=yes"
23168 eval "$as_CACHEVAR=no"
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 CFLAGS=$ax_check_save_flags
23173 eval ac_res=\$$as_CACHEVAR
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23175 $as_echo "$ac_res" >&6; }
23176 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23177 if ${CFLAGS+:} false; then :
23178 case " $CFLAGS " in
23180 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23181 (: CFLAGS already contains $flag) 2>&5
23183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23184 test $ac_status = 0; }
23187 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23188 (: CFLAGS="$CFLAGS $flag") 2>&5
23190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191 test $ac_status = 0; }
23192 CFLAGS="$CFLAGS $flag"
23207 for flag in -Wpointer-arith; do
23208 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23210 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23211 if eval \${$as_CACHEVAR+:} false; then :
23212 $as_echo_n "(cached) " >&6
23215 ax_check_save_flags=$CFLAGS
23216 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h. */
23228 if ac_fn_c_try_compile "$LINENO"; then :
23229 eval "$as_CACHEVAR=yes"
23231 eval "$as_CACHEVAR=no"
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 CFLAGS=$ax_check_save_flags
23236 eval ac_res=\$$as_CACHEVAR
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23238 $as_echo "$ac_res" >&6; }
23239 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23240 if ${CFLAGS+:} false; then :
23241 case " $CFLAGS " in
23243 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23244 (: CFLAGS already contains $flag) 2>&5
23246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23247 test $ac_status = 0; }
23250 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23251 (: CFLAGS="$CFLAGS $flag") 2>&5
23253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23254 test $ac_status = 0; }
23255 CFLAGS="$CFLAGS $flag"
23270 for flag in -Wpointer-sign; do
23271 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23273 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23274 if eval \${$as_CACHEVAR+:} false; then :
23275 $as_echo_n "(cached) " >&6
23278 ax_check_save_flags=$CFLAGS
23279 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h. */
23291 if ac_fn_c_try_compile "$LINENO"; then :
23292 eval "$as_CACHEVAR=yes"
23294 eval "$as_CACHEVAR=no"
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 CFLAGS=$ax_check_save_flags
23299 eval ac_res=\$$as_CACHEVAR
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23301 $as_echo "$ac_res" >&6; }
23302 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23303 if ${CFLAGS+:} false; then :
23304 case " $CFLAGS " in
23306 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23307 (: CFLAGS already contains $flag) 2>&5
23309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23310 test $ac_status = 0; }
23313 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23314 (: CFLAGS="$CFLAGS $flag") 2>&5
23316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317 test $ac_status = 0; }
23318 CFLAGS="$CFLAGS $flag"
23333 for flag in -Wredundant-decls; do
23334 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23336 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23337 if eval \${$as_CACHEVAR+:} false; then :
23338 $as_echo_n "(cached) " >&6
23341 ax_check_save_flags=$CFLAGS
23342 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h. */
23354 if ac_fn_c_try_compile "$LINENO"; then :
23355 eval "$as_CACHEVAR=yes"
23357 eval "$as_CACHEVAR=no"
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 CFLAGS=$ax_check_save_flags
23362 eval ac_res=\$$as_CACHEVAR
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23364 $as_echo "$ac_res" >&6; }
23365 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23366 if ${CFLAGS+:} false; then :
23367 case " $CFLAGS " in
23369 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23370 (: CFLAGS already contains $flag) 2>&5
23372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373 test $ac_status = 0; }
23376 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23377 (: CFLAGS="$CFLAGS $flag") 2>&5
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }
23381 CFLAGS="$CFLAGS $flag"
23396 for flag in -Wshadow; do
23397 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23399 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23400 if eval \${$as_CACHEVAR+:} false; then :
23401 $as_echo_n "(cached) " >&6
23404 ax_check_save_flags=$CFLAGS
23405 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407 /* end confdefs.h. */
23417 if ac_fn_c_try_compile "$LINENO"; then :
23418 eval "$as_CACHEVAR=yes"
23420 eval "$as_CACHEVAR=no"
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 CFLAGS=$ax_check_save_flags
23425 eval ac_res=\$$as_CACHEVAR
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23427 $as_echo "$ac_res" >&6; }
23428 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23429 if ${CFLAGS+:} false; then :
23430 case " $CFLAGS " in
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23433 (: CFLAGS already contains $flag) 2>&5
23435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23436 test $ac_status = 0; }
23439 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23440 (: CFLAGS="$CFLAGS $flag") 2>&5
23442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23443 test $ac_status = 0; }
23444 CFLAGS="$CFLAGS $flag"
23459 for flag in -Wshorten-64-to-32; do
23460 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23462 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23463 if eval \${$as_CACHEVAR+:} false; then :
23464 $as_echo_n "(cached) " >&6
23467 ax_check_save_flags=$CFLAGS
23468 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h. */
23480 if ac_fn_c_try_compile "$LINENO"; then :
23481 eval "$as_CACHEVAR=yes"
23483 eval "$as_CACHEVAR=no"
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 CFLAGS=$ax_check_save_flags
23488 eval ac_res=\$$as_CACHEVAR
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23490 $as_echo "$ac_res" >&6; }
23491 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23492 if ${CFLAGS+:} false; then :
23493 case " $CFLAGS " in
23495 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23496 (: CFLAGS already contains $flag) 2>&5
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23503 (: CFLAGS="$CFLAGS $flag") 2>&5
23505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23506 test $ac_status = 0; }
23507 CFLAGS="$CFLAGS $flag"
23522 for flag in -Wsign-compare; do
23523 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23525 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23526 if eval \${$as_CACHEVAR+:} false; then :
23527 $as_echo_n "(cached) " >&6
23530 ax_check_save_flags=$CFLAGS
23531 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23543 if ac_fn_c_try_compile "$LINENO"; then :
23544 eval "$as_CACHEVAR=yes"
23546 eval "$as_CACHEVAR=no"
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549 CFLAGS=$ax_check_save_flags
23551 eval ac_res=\$$as_CACHEVAR
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23553 $as_echo "$ac_res" >&6; }
23554 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23555 if ${CFLAGS+:} false; then :
23556 case " $CFLAGS " in
23558 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23559 (: CFLAGS already contains $flag) 2>&5
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }
23565 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23566 (: CFLAGS="$CFLAGS $flag") 2>&5
23568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569 test $ac_status = 0; }
23570 CFLAGS="$CFLAGS $flag"
23585 for flag in -Wstrict-overflow=1; do
23586 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23588 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23589 if eval \${$as_CACHEVAR+:} false; then :
23590 $as_echo_n "(cached) " >&6
23593 ax_check_save_flags=$CFLAGS
23594 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23596 /* end confdefs.h. */
23606 if ac_fn_c_try_compile "$LINENO"; then :
23607 eval "$as_CACHEVAR=yes"
23609 eval "$as_CACHEVAR=no"
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 CFLAGS=$ax_check_save_flags
23614 eval ac_res=\$$as_CACHEVAR
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23617 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23618 if ${CFLAGS+:} false; then :
23619 case " $CFLAGS " in
23621 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23622 (: CFLAGS already contains $flag) 2>&5
23624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23625 test $ac_status = 0; }
23628 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23629 (: CFLAGS="$CFLAGS $flag") 2>&5
23631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23632 test $ac_status = 0; }
23633 CFLAGS="$CFLAGS $flag"
23648 for flag in -Wstrict-prototypes; do
23649 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23651 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23652 if eval \${$as_CACHEVAR+:} false; then :
23653 $as_echo_n "(cached) " >&6
23656 ax_check_save_flags=$CFLAGS
23657 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23659 /* end confdefs.h. */
23669 if ac_fn_c_try_compile "$LINENO"; then :
23670 eval "$as_CACHEVAR=yes"
23672 eval "$as_CACHEVAR=no"
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 CFLAGS=$ax_check_save_flags
23677 eval ac_res=\$$as_CACHEVAR
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23679 $as_echo "$ac_res" >&6; }
23680 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23681 if ${CFLAGS+:} false; then :
23682 case " $CFLAGS " in
23684 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23685 (: CFLAGS already contains $flag) 2>&5
23687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23688 test $ac_status = 0; }
23691 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23692 (: CFLAGS="$CFLAGS $flag") 2>&5
23694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23695 test $ac_status = 0; }
23696 CFLAGS="$CFLAGS $flag"
23711 for flag in -Wswitch-enum; do
23712 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23714 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23715 if eval \${$as_CACHEVAR+:} false; then :
23716 $as_echo_n "(cached) " >&6
23719 ax_check_save_flags=$CFLAGS
23720 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h. */
23732 if ac_fn_c_try_compile "$LINENO"; then :
23733 eval "$as_CACHEVAR=yes"
23735 eval "$as_CACHEVAR=no"
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738 CFLAGS=$ax_check_save_flags
23740 eval ac_res=\$$as_CACHEVAR
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23742 $as_echo "$ac_res" >&6; }
23743 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23744 if ${CFLAGS+:} false; then :
23745 case " $CFLAGS " in
23747 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23748 (: CFLAGS already contains $flag) 2>&5
23750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23751 test $ac_status = 0; }
23754 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23755 (: CFLAGS="$CFLAGS $flag") 2>&5
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }
23759 CFLAGS="$CFLAGS $flag"
23774 for flag in -Wundef; do
23775 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23777 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23778 if eval \${$as_CACHEVAR+:} false; then :
23779 $as_echo_n "(cached) " >&6
23782 ax_check_save_flags=$CFLAGS
23783 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23795 if ac_fn_c_try_compile "$LINENO"; then :
23796 eval "$as_CACHEVAR=yes"
23798 eval "$as_CACHEVAR=no"
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801 CFLAGS=$ax_check_save_flags
23803 eval ac_res=\$$as_CACHEVAR
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23805 $as_echo "$ac_res" >&6; }
23806 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23807 if ${CFLAGS+:} false; then :
23808 case " $CFLAGS " in
23810 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23811 (: CFLAGS already contains $flag) 2>&5
23813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814 test $ac_status = 0; }
23817 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23818 (: CFLAGS="$CFLAGS $flag") 2>&5
23820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821 test $ac_status = 0; }
23822 CFLAGS="$CFLAGS $flag"
23837 for flag in -Wunused; do
23838 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23840 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23841 if eval \${$as_CACHEVAR+:} false; then :
23842 $as_echo_n "(cached) " >&6
23845 ax_check_save_flags=$CFLAGS
23846 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h. */
23858 if ac_fn_c_try_compile "$LINENO"; then :
23859 eval "$as_CACHEVAR=yes"
23861 eval "$as_CACHEVAR=no"
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 CFLAGS=$ax_check_save_flags
23866 eval ac_res=\$$as_CACHEVAR
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23868 $as_echo "$ac_res" >&6; }
23869 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23870 if ${CFLAGS+:} false; then :
23871 case " $CFLAGS " in
23873 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23874 (: CFLAGS already contains $flag) 2>&5
23876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877 test $ac_status = 0; }
23880 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23881 (: CFLAGS="$CFLAGS $flag") 2>&5
23883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23884 test $ac_status = 0; }
23885 CFLAGS="$CFLAGS $flag"
23900 for flag in -Wunused-result; do
23901 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23903 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23904 if eval \${$as_CACHEVAR+:} false; then :
23905 $as_echo_n "(cached) " >&6
23908 ax_check_save_flags=$CFLAGS
23909 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911 /* end confdefs.h. */
23921 if ac_fn_c_try_compile "$LINENO"; then :
23922 eval "$as_CACHEVAR=yes"
23924 eval "$as_CACHEVAR=no"
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 CFLAGS=$ax_check_save_flags
23929 eval ac_res=\$$as_CACHEVAR
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23931 $as_echo "$ac_res" >&6; }
23932 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23933 if ${CFLAGS+:} false; then :
23934 case " $CFLAGS " in
23936 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23937 (: CFLAGS already contains $flag) 2>&5
23939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940 test $ac_status = 0; }
23943 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23944 (: CFLAGS="$CFLAGS $flag") 2>&5
23946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947 test $ac_status = 0; }
23948 CFLAGS="$CFLAGS $flag"
23963 for flag in -Wunused-variable; do
23964 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23966 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23967 if eval \${$as_CACHEVAR+:} false; then :
23968 $as_echo_n "(cached) " >&6
23971 ax_check_save_flags=$CFLAGS
23972 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h. */
23984 if ac_fn_c_try_compile "$LINENO"; then :
23985 eval "$as_CACHEVAR=yes"
23987 eval "$as_CACHEVAR=no"
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 CFLAGS=$ax_check_save_flags
23992 eval ac_res=\$$as_CACHEVAR
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23994 $as_echo "$ac_res" >&6; }
23995 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23996 if ${CFLAGS+:} false; then :
23997 case " $CFLAGS " in
23999 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24000 (: CFLAGS already contains $flag) 2>&5
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }
24006 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24007 (: CFLAGS="$CFLAGS $flag") 2>&5
24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }
24011 CFLAGS="$CFLAGS $flag"
24026 for flag in -Wwrite-strings; do
24027 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24029 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24030 if eval \${$as_CACHEVAR+:} false; then :
24031 $as_echo_n "(cached) " >&6
24034 ax_check_save_flags=$CFLAGS
24035 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24037 /* end confdefs.h. */
24047 if ac_fn_c_try_compile "$LINENO"; then :
24048 eval "$as_CACHEVAR=yes"
24050 eval "$as_CACHEVAR=no"
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 CFLAGS=$ax_check_save_flags
24055 eval ac_res=\$$as_CACHEVAR
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24057 $as_echo "$ac_res" >&6; }
24058 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24059 if ${CFLAGS+:} false; then :
24060 case " $CFLAGS " in
24062 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24063 (: CFLAGS already contains $flag) 2>&5
24065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066 test $ac_status = 0; }
24069 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24070 (: CFLAGS="$CFLAGS $flag") 2>&5
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }
24074 CFLAGS="$CFLAGS $flag"
24089 for flag in -fwrapv; do
24090 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24092 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24093 if eval \${$as_CACHEVAR+:} false; then :
24094 $as_echo_n "(cached) " >&6
24097 ax_check_save_flags=$CFLAGS
24098 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h. */
24110 if ac_fn_c_try_compile "$LINENO"; then :
24111 eval "$as_CACHEVAR=yes"
24113 eval "$as_CACHEVAR=no"
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116 CFLAGS=$ax_check_save_flags
24118 eval ac_res=\$$as_CACHEVAR
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24120 $as_echo "$ac_res" >&6; }
24121 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24122 if ${CFLAGS+:} false; then :
24123 case " $CFLAGS " in
24125 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24126 (: CFLAGS already contains $flag) 2>&5
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }
24132 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24133 (: CFLAGS="$CFLAGS $flag") 2>&5
24135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24136 test $ac_status = 0; }
24137 CFLAGS="$CFLAGS $flag"
24152 for flag in -fPIE; do
24153 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24155 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24156 if eval \${$as_CACHEVAR+:} false; then :
24157 $as_echo_n "(cached) " >&6
24160 ax_check_save_flags=$CFLAGS
24161 CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24163 /* end confdefs.h. */
24173 if ac_fn_c_try_compile "$LINENO"; then :
24174 eval "$as_CACHEVAR=yes"
24176 eval "$as_CACHEVAR=no"
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179 CFLAGS=$ax_check_save_flags
24181 eval ac_res=\$$as_CACHEVAR
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24183 $as_echo "$ac_res" >&6; }
24184 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24185 if ${CFLAGS+:} false; then :
24186 case " $CFLAGS " in
24188 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24189 (: CFLAGS already contains $flag) 2>&5
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }
24195 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24196 (: CFLAGS="$CFLAGS $flag") 2>&5
24198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199 test $ac_status = 0; }
24200 CFLAGS="$CFLAGS $flag"
24214 ac_cpp='$CPP $CPPFLAGS'
24215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24221 # link to ws2_32 if on mingw
24224 LDFLAGS="$LDFLAGS -lws2_32" ;;
24227 # add user C_EXTRA_FLAGS back
24228 CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
24229 OPTION_FLAGS="$USER_C_EXTRA_FLAGS $AM_CFLAGS"
24233 HEX_VERSION=`echo $VERSION | sed 's|\-a-z0-9*$||' | \
24234 awk -F. '{printf "0x%0.2d%0.3d%0.3d", $1, $2, $3}'`
24242 ac_config_files="$ac_config_files stamp-h"
24244 ac_config_files="$ac_config_files Makefile"
24246 ac_config_files="$ac_config_files cyassl/version.h"
24248 ac_config_files="$ac_config_files cyassl/options.h"
24250 ac_config_files="$ac_config_files support/cyassl.pc"
24252 ac_config_files="$ac_config_files rpm/spec"
24255 # create a generic PACKAGE-config file
24256 L=`echo $PACKAGE $LIBS`
24257 P=`echo $L | sed -e 's/ -.*//'`
24261 L=`echo -l$L | sed -e 's/^-llib/-l/'`
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $F - generic $V for $L" >&5
24263 $as_echo "creating $F - generic $V for $L" >&6; }
24264 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24266 echo '#! /bin/sh' >$F
24268 echo 'package="'$P'"' >>$F
24269 echo 'version="'$V'"' >>$F
24270 echo 'libs="'$L'"' >>$F
24272 # in the order of occurence a standard automake Makefile
24273 echo 'prefix="'$prefix'"' >>$F
24274 echo 'exec_prefix="'$exec_prefix'"' >>$F
24275 echo 'bindir="'$bindir'"' >>$F
24276 echo 'sbindir="'$sbindir'"' >>$F
24277 echo 'libexecdir="'$libexecdir'"' >>$F
24278 echo 'datadir="'$datadir'"' >>$F
24279 echo 'sysconfdir="'$sysconfdir'"' >>$F
24280 echo 'sharedstatedir="'$sharedstatedir'"' >>$F
24281 echo 'localstatedir="'$localstatedir'"' >>$F
24282 echo 'libdir="'$libdir'"' >>$F
24283 echo 'infodir="'$infodir'"' >>$F
24284 echo 'mandir="'$mandir'"' >>$F
24285 echo 'includedir="'$includedir'"' >>$F
24286 echo 'target="'$target'"' >>$F
24287 echo 'host="'$host'"' >>$F
24288 echo 'build="'$build'"' >>$F
24290 echo 'if test "'"\$""#"'" -eq 0; then' >>$F
24291 echo ' cat <<EOF' >>$F
24292 echo 'Usage: $package-config OPTIONS' >>$F
24293 echo 'Options:' >>$F
24294 echo ' --prefix=DIR) : \$prefix' >>$F
24295 echo ' --package) : \$package' >>$F
24296 echo ' --version) : \$version' >>$F
24297 echo ' --cflags) : -I\$includedir' >>$F
24298 echo ' --libs) : -L\$libdir -l\$package' >>$F
24299 echo ' --help) print all the options (not just these)' >>$F
24305 echo 'for i in "$@"; do' >>$F
24306 echo ' case $i in' >>$F
24307 echo ' --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;' >>$F
24308 echo ' --prefix) o="$o $prefix" ;;' >>$F
24309 echo ' --package) o="$o $package" ;;' >>$F
24310 echo ' --version) o="$o $version" ;;' >>$F
24311 echo ' --cflags) if test "_$includedir" != "_/usr/include"' >>$F
24312 echo ' then o="$o -I$includedir" ; fi' >>$F
24314 echo ' --libs) o="$o -L$libdir $libs" ;;' >>$F
24315 echo ' --exec_prefix|--eprefix) o="$o $exec_prefix" ;;' >>$F
24316 echo ' --bindir) o="$o $bindir" ;;' >>$F
24317 echo ' --sbindir) o="$o $sbindir" ;;' >>$F
24318 echo ' --libexecdir) o="$o $libexecdir" ;;' >>$F
24319 echo ' --datadir) o="$o $datadir" ;;' >>$F
24320 echo ' --datainc) o="$o -I$datadir" ;;' >>$F
24321 echo ' --datalib) o="$o -L$datadir" ;;' >>$F
24322 echo ' --sysconfdir) o="$o $sysconfdir" ;;' >>$F
24323 echo ' --sharedstatedir) o="$o $sharedstatedir" ;;' >>$F
24324 echo ' --localstatedir) o="$o $localstatedir" ;;' >>$F
24325 echo ' --libdir) o="$o $libdir" ;;' >>$F
24326 echo ' --libadd) o="$o -L$libdir" ;;' >>$F
24327 echo ' --infodir) o="$o $infodir" ;;' >>$F
24328 echo ' --mandir) o="$o $mandir" ;;' >>$F
24329 echo ' --target) o="$o $target" ;;' >>$F
24330 echo ' --host) o="$o $host" ;;' >>$F
24331 echo ' --build) o="$o $build" ;;' >>$F
24332 echo ' --data) o="$o -I$datadir/$package" ;;' >>$F
24333 echo ' --pkgdatadir) o="$o $datadir/$package" ;;' >>$F
24334 echo ' --pkgdatainc) o="$o -I$datadir/$package" ;;' >>$F
24335 echo ' --pkgdatalib) o="$o -L$datadir/$package" ;;' >>$F
24336 echo ' --pkglibdir) o="$o $libdir/$package" ;;' >>$F
24337 echo ' --pkglibinc) o="$o -I$libinc/$package" ;;' >>$F
24338 echo ' --pkglibadd) o="$o -L$libadd/$package" ;;' >>$F
24339 echo ' --pkgincludedir) o="$o $includedir/$package" ;;' >>$F
24340 echo ' --help) h="1" ;;' >>$F
24341 echo ' -?//*|-?/*//*|-?./*//*|//*|/*//*|./*//*) ' >>$F
24342 echo ' v=`echo $i | sed -e s://:\$:g`' >>$F
24343 echo ' v=`eval "echo $v"` ' >>$F
24344 echo ' o="$o $v" ;; ' >>$F
24348 echo 'o=`eval "echo $o"`' >>$F
24349 echo 'o=`eval "echo $o"`' >>$F
24350 echo 'eval "echo $o"' >>$F
24352 echo 'if test ! -z "$h" ; then ' >>$F
24353 echo 'cat <<EOF' >>$F
24354 echo ' --prefix=xxx) (what is that for anyway?)' >>$F
24355 echo ' --prefix) \$prefix $prefix' >>$F
24356 echo ' --package) \$package $package' >>$F
24357 echo ' --version) \$version $version' >>$F
24358 echo ' --cflags) -I\$includedir unless it is /usr/include' >>$F
24359 echo ' --libs) -L\$libdir -l\$PACKAGE \$LIBS' >>$F
24360 echo ' --exec_prefix) or... ' >>$F
24361 echo ' --eprefix) \$exec_prefix $exec_prefix' >>$F
24362 echo ' --bindir) \$bindir $bindir' >>$F
24363 echo ' --sbindir) \$sbindir $sbindir' >>$F
24364 echo ' --libexecdir) \$libexecdir $libexecdir' >>$F
24365 echo ' --datadir) \$datadir $datadir' >>$F
24366 echo ' --sysconfdir) \$sysconfdir $sysconfdir' >>$F
24367 echo ' --sharedstatedir) \$sharedstatedir$sharedstatedir' >>$F
24368 echo ' --localstatedir) \$localstatedir $localstatedir' >>$F
24369 echo ' --libdir) \$libdir $libdir' >>$F
24370 echo ' --infodir) \$infodir $infodir' >>$F
24371 echo ' --mandir) \$mandir $mandir' >>$F
24372 echo ' --target) \$target $target' >>$F
24373 echo ' --host) \$host $host' >>$F
24374 echo ' --build) \$build $build' >>$F
24375 echo ' --data) -I\$datadir/\$package' >>$F
24376 echo ' --pkgdatadir) \$datadir/\$package' >>$F
24377 echo ' --pkglibdir) \$libdir/\$package' >>$F
24378 echo ' --pkgincludedir) \$includedir/\$package' >>$F
24379 echo ' --help) generated by ax_create_generic_config.m4' >>$F
24380 echo ' -I//varname and other inc-targets like --pkgdatainc supported' >>$F
24381 echo ' -L//varname and other lib-targets, e.g. --pkgdatalib or --libadd' >>$F
24384 GENERIC_CONFIG="$F"
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
24391 $as_echo_n "checking the number of available CPUs... " >&6; }
24394 case $host_os in #(
24398 if test -x /usr/sbin/sysctl; then :
24400 sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
24401 if test sysctl_a; then :
24403 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
24411 if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24413 if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24415 CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
24425 if test "x$CPU_COUNT" = "x0"; then :
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5
24429 $as_echo "unable to detect (assuming 1) " >&6; }
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5
24434 $as_echo "$CPU_COUNT " >&6; }
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: adding automake macro support" >&5
24447 $as_echo "$as_me: adding automake macro support" >&6;}
24448 AMINCLUDE="aminclude.am"
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $AMINCLUDE" >&5
24451 $as_echo "$as_me: creating $AMINCLUDE" >&6;}
24452 AMINCLUDE_TIME=`date`
24456 # generated automatically by configure from AX_AUTOMAKE_MACROS
24457 # on $AMINCLUDE_TIME
24462 INC_AMINCLUDE="include \$(top_builddir)/$AMINCLUDE"
24468 # Check whether --enable-jobserver was given.
24469 if test "${enable_jobserver+set}" = set; then :
24470 enableval=$enable_jobserver;
24472 enable_jobserver=yes
24475 if test "x$enable_jobserver" = "xyes"; then
24476 enable_jobserver=$CPU_COUNT
24477 ((enable_jobserver++))
24480 if test "x$enable_jobserver" != "xno"; then
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: added jobserver support to make for $enable_jobserver jobs" >&5
24482 $as_echo "$as_me: added jobserver support to make for $enable_jobserver jobs" >&6;}
24487 printf "AM_MAKEFLAGS += -j$enable_jobserver \n" >> "$AMINCLUDE"
24493 cat >confcache <<\_ACEOF
24494 # This file is a shell script that caches the results of configure
24495 # tests run on this system so they can be shared between configure
24496 # scripts and configure runs, see configure's option --config-cache.
24497 # It is not useful on other systems. If it contains results you don't
24498 # want to keep, you may remove or edit it.
24500 # config.status only pays attention to the cache file if you give it
24501 # the --recheck option to rerun configure.
24503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24505 # following values.
24509 # The following way of writing the cache mishandles newlines in values,
24510 # but we know of no workaround that is simple, portable, and efficient.
24511 # So, we kill variables containing newlines.
24512 # Ultrix sh set writes to stderr and can't be redirected directly,
24513 # and sets the high bit in the cache file unless we assign to the vars.
24515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24516 eval ac_val=\$$ac_var
24520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24524 _ | IFS | as_nl) ;; #(
24525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24526 *) { eval $ac_var=; unset $ac_var;} ;;
24532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24533 *${as_nl}ac_space=\ *)
24534 # `set' does not quote correctly, so add quotes: double-quote
24535 # substitution turns \\\\ into \\, and sed turns \\ into \.
24538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24541 # `set' quotes correctly as required by POSIX, so do not add quotes.
24542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24556 if test -w "$cache_file"; then
24557 if test "x$cache_file" != "x/dev/null"; then
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24559 $as_echo "$as_me: updating cache $cache_file" >&6;}
24560 if test ! -f "$cache_file" || test -h "$cache_file"; then
24561 cat confcache >"$cache_file"
24563 case $cache_file in #(
24565 mv -f confcache "$cache_file"$$ &&
24566 mv -f "$cache_file"$$ "$cache_file" ;; #(
24568 mv -f confcache "$cache_file" ;;
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24580 # Let make expand exec_prefix.
24581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24583 DEFS=-DHAVE_CONFIG_H
24588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24589 # 1. Remove the extension, and $U if already installed.
24590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24593 # will be set to the directory where LIBOBJS objects are built.
24594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24597 LIBOBJS=$ac_libobjs
24599 LTLIBOBJS=$ac_ltlibobjs
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24603 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24604 if test -n "$am_sleep_pid"; then
24605 # Hide warnings about reused PIDs.
24606 wait $am_sleep_pid 2>/dev/null
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24609 $as_echo "done" >&6; }
24610 if test -n "$EXEEXT"; then
24612 am__EXEEXT_FALSE='#'
24614 am__EXEEXT_TRUE='#'
24618 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24619 as_fn_error $? "conditional \"AMDEP\" was never defined.
24620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24623 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24626 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24627 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24632 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24635 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24636 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24639 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24640 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24643 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
24644 as_fn_error $? "conditional \"DEBUG\" was never defined.
24645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24647 if test -z "${BUILD_LEANPSK_TRUE}" && test -z "${BUILD_LEANPSK_FALSE}"; then
24648 as_fn_error $? "conditional \"BUILD_LEANPSK\" was never defined.
24649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24651 if test -z "${BUILD_SNIFFER_TRUE}" && test -z "${BUILD_SNIFFER_FALSE}"; then
24652 as_fn_error $? "conditional \"BUILD_SNIFFER\" was never defined.
24653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24655 if test -z "${BUILD_SNIFFTEST_TRUE}" && test -z "${BUILD_SNIFFTEST_FALSE}"; then
24656 as_fn_error $? "conditional \"BUILD_SNIFFTEST\" was never defined.
24657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24659 if test -z "${BUILD_AESGCM_TRUE}" && test -z "${BUILD_AESGCM_FALSE}"; then
24660 as_fn_error $? "conditional \"BUILD_AESGCM\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24663 if test -z "${BUILD_AESCCM_TRUE}" && test -z "${BUILD_AESCCM_FALSE}"; then
24664 as_fn_error $? "conditional \"BUILD_AESCCM\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24667 if test -z "${BUILD_AESNI_TRUE}" && test -z "${BUILD_AESNI_FALSE}"; then
24668 as_fn_error $? "conditional \"BUILD_AESNI\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24671 if test -z "${BUILD_CAMELLIA_TRUE}" && test -z "${BUILD_CAMELLIA_FALSE}"; then
24672 as_fn_error $? "conditional \"BUILD_CAMELLIA\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24675 if test -z "${BUILD_MD2_TRUE}" && test -z "${BUILD_MD2_FALSE}"; then
24676 as_fn_error $? "conditional \"BUILD_MD2\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24679 if test -z "${BUILD_RIPEMD_TRUE}" && test -z "${BUILD_RIPEMD_FALSE}"; then
24680 as_fn_error $? "conditional \"BUILD_RIPEMD\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24683 if test -z "${BUILD_BLAKE2_TRUE}" && test -z "${BUILD_BLAKE2_FALSE}"; then
24684 as_fn_error $? "conditional \"BUILD_BLAKE2\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24687 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
24688 as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24691 if test -z "${BUILD_DSA_TRUE}" && test -z "${BUILD_DSA_FALSE}"; then
24692 as_fn_error $? "conditional \"BUILD_DSA\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24695 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
24696 as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24699 if test -z "${BUILD_MEMORY_TRUE}" && test -z "${BUILD_MEMORY_FALSE}"; then
24700 as_fn_error $? "conditional \"BUILD_MEMORY\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24703 if test -z "${BUILD_RSA_TRUE}" && test -z "${BUILD_RSA_FALSE}"; then
24704 as_fn_error $? "conditional \"BUILD_RSA\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24707 if test -z "${BUILD_DH_TRUE}" && test -z "${BUILD_DH_FALSE}"; then
24708 as_fn_error $? "conditional \"BUILD_DH\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24711 if test -z "${BUILD_ASN_TRUE}" && test -z "${BUILD_ASN_FALSE}"; then
24712 as_fn_error $? "conditional \"BUILD_ASN\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 if test -z "${BUILD_AES_TRUE}" && test -z "${BUILD_AES_FALSE}"; then
24716 as_fn_error $? "conditional \"BUILD_AES\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24719 if test -z "${BUILD_CODING_TRUE}" && test -z "${BUILD_CODING_FALSE}"; then
24720 as_fn_error $? "conditional \"BUILD_CODING\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24723 if test -z "${BUILD_DES3_TRUE}" && test -z "${BUILD_DES3_FALSE}"; then
24724 as_fn_error $? "conditional \"BUILD_DES3\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24727 if test -z "${BUILD_RC4_TRUE}" && test -z "${BUILD_RC4_FALSE}"; then
24728 as_fn_error $? "conditional \"BUILD_RC4\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24731 if test -z "${BUILD_MD5_TRUE}" && test -z "${BUILD_MD5_FALSE}"; then
24732 as_fn_error $? "conditional \"BUILD_MD5\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24735 if test -z "${BUILD_SHA_TRUE}" && test -z "${BUILD_SHA_FALSE}"; then
24736 as_fn_error $? "conditional \"BUILD_SHA\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24739 if test -z "${BUILD_MD4_TRUE}" && test -z "${BUILD_MD4_FALSE}"; then
24740 as_fn_error $? "conditional \"BUILD_MD4\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24743 if test -z "${BUILD_PWDBASED_TRUE}" && test -z "${BUILD_PWDBASED_FALSE}"; then
24744 as_fn_error $? "conditional \"BUILD_PWDBASED\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24747 if test -z "${BUILD_HC128_TRUE}" && test -z "${BUILD_HC128_FALSE}"; then
24748 as_fn_error $? "conditional \"BUILD_HC128\" was never defined.
24749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24751 if test -z "${BUILD_RABBIT_TRUE}" && test -z "${BUILD_RABBIT_FALSE}"; then
24752 as_fn_error $? "conditional \"BUILD_RABBIT\" was never defined.
24753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24755 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
24756 as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
24757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24759 if test -z "${BUILD_FIPS_TRUE}" && test -z "${BUILD_FIPS_FALSE}"; then
24760 as_fn_error $? "conditional \"BUILD_FIPS\" was never defined.
24761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24763 if test -z "${BUILD_INLINE_TRUE}" && test -z "${BUILD_INLINE_FALSE}"; then
24764 as_fn_error $? "conditional \"BUILD_INLINE\" was never defined.
24765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24767 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
24768 as_fn_error $? "conditional \"BUILD_OCSP\" was never defined.
24769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24771 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
24772 as_fn_error $? "conditional \"BUILD_CRL\" was never defined.
24773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24775 if test -z "${BUILD_CRL_MONITOR_TRUE}" && test -z "${BUILD_CRL_MONITOR_FALSE}"; then
24776 as_fn_error $? "conditional \"BUILD_CRL_MONITOR\" was never defined.
24777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24779 if test -z "${BUILD_NTRU_TRUE}" && test -z "${BUILD_NTRU_FALSE}"; then
24780 as_fn_error $? "conditional \"BUILD_NTRU\" was never defined.
24781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24783 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
24784 as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
24785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24787 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
24788 as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
24789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24791 if test -z "${USE_VALGRIND_TRUE}" && test -z "${USE_VALGRIND_FALSE}"; then
24792 as_fn_error $? "conditional \"USE_VALGRIND\" was never defined.
24793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24795 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
24796 as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
24797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24799 if test -z "${BUILD_FASTMATH_TRUE}" && test -z "${BUILD_FASTMATH_FALSE}"; then
24800 as_fn_error $? "conditional \"BUILD_FASTMATH\" was never defined.
24801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24803 if test -z "${BUILD_SLOWMATH_TRUE}" && test -z "${BUILD_SLOWMATH_FALSE}"; then
24804 as_fn_error $? "conditional \"BUILD_SLOWMATH\" was never defined.
24805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24807 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
24808 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
24809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24811 if test -z "${BUILD_LIBZ_TRUE}" && test -z "${BUILD_LIBZ_FALSE}"; then
24812 as_fn_error $? "conditional \"BUILD_LIBZ\" was never defined.
24813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24815 if test -z "${BUILD_MCAPI_TRUE}" && test -z "${BUILD_MCAPI_FALSE}"; then
24816 as_fn_error $? "conditional \"BUILD_MCAPI\" was never defined.
24817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24819 if test -z "${IS_VCS_CHECKOUT_TRUE}" && test -z "${IS_VCS_CHECKOUT_FALSE}"; then
24820 as_fn_error $? "conditional \"IS_VCS_CHECKOUT\" was never defined.
24821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24824 : "${CONFIG_STATUS=./config.status}"
24826 ac_clean_files_save=$ac_clean_files
24827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24829 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24833 # Generated by $as_me.
24834 # Run this file to recreate the current configuration.
24835 # Compiler output produced by configure, useful for debugging
24836 # configure, is in config.log if it exists.
24839 ac_cs_recheck=false
24842 SHELL=\${CONFIG_SHELL-$SHELL}
24845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24846 ## -------------------- ##
24847 ## M4sh Initialization. ##
24848 ## -------------------- ##
24850 # Be more Bourne compatible
24851 DUALCASE=1; export DUALCASE # for MKS sh
24852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24856 # is contrary to our usage. Disable this feature.
24857 alias -g '${1+"$@"}'='"$@"'
24858 setopt NO_GLOB_SUBST
24860 case `(set -o) 2>/dev/null` in #(
24872 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24873 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24876 # Prefer a ksh shell builtin over an external printf program on Solaris,
24877 # but without wasting forks for bash or zsh.
24878 if test -z "$BASH_VERSION$ZSH_VERSION" \
24879 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24880 as_echo='print -r --'
24881 as_echo_n='print -rn --'
24882 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24883 as_echo='printf %s\n'
24884 as_echo_n='printf %s'
24886 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24887 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24888 as_echo_n='/usr/ucb/echo -n'
24890 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24891 as_echo_n_body='eval
24895 expr "X$arg" : "X\\(.*\\)$as_nl";
24896 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24898 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24900 export as_echo_n_body
24901 as_echo_n='sh -c $as_echo_n_body as_echo'
24903 export as_echo_body
24904 as_echo='sh -c $as_echo_body as_echo'
24907 # The user is always right.
24908 if test "${PATH_SEPARATOR+set}" != set; then
24910 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24911 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24918 # We need space, tab and new line, in precisely that order. Quoting is
24919 # there to prevent editors from complaining about space-tab.
24920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24921 # splitting by setting IFS to empty value.)
24924 # Find who we are. Look in the path if we contain no directory separator.
24927 *[\\/]* ) as_myself=$0 ;;
24928 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24929 for as_dir in $PATH
24932 test -z "$as_dir" && as_dir=.
24933 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24939 # We did not find ourselves, most probably we were run as `sh COMMAND'
24940 # in which case we are not to be found in the path.
24941 if test "x$as_myself" = x; then
24944 if test ! -f "$as_myself"; then
24945 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24949 # Unset variables that we do not need and which cause bugs (e.g. in
24950 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24951 # suppresses any "Segmentation fault" message there. '((' could
24952 # trigger a bug in pdksh 5.2.14.
24953 for as_var in BASH_ENV ENV MAIL MAILPATH
24954 do eval test x\${$as_var+set} = xset \
24955 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24971 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24972 # ----------------------------------------
24973 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24974 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24975 # script with STATUS, using 1 if that was 0.
24978 as_status=$1; test $as_status -eq 0 && as_status=1
24980 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24981 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24983 $as_echo "$as_me: error: $2" >&2
24984 as_fn_exit $as_status
24988 # as_fn_set_status STATUS
24989 # -----------------------
24990 # Set $? to STATUS, without forking.
24991 as_fn_set_status ()
24994 } # as_fn_set_status
24996 # as_fn_exit STATUS
24997 # -----------------
24998 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25002 as_fn_set_status $1
25008 # Portably unset VAR.
25011 { eval $1=; unset $1;}
25013 as_unset=as_fn_unset
25014 # as_fn_append VAR VALUE
25015 # ----------------------
25016 # Append the text in VALUE to the end of the definition contained in VAR. Take
25017 # advantage of any shell optimizations that allow amortized linear growth over
25018 # repeated appends, instead of the typical quadratic growth present in naive
25020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25021 eval 'as_fn_append ()
25032 # as_fn_arith ARG...
25033 # ------------------
25034 # Perform arithmetic evaluation on the ARGs, and store the result in the
25035 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25036 # must be portable across $(()) and expr.
25037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25038 eval 'as_fn_arith ()
25045 as_val=`expr "$@" || test $? -eq 1`
25050 if expr a : '\(a\)' >/dev/null 2>&1 &&
25051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25058 as_basename=basename
25063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25069 as_me=`$as_basename -- "$0" ||
25070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25071 X"$0" : 'X\(//\)$' \| \
25072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25074 sed '/^.*\/\([^/][^/]*\)\/*$/{
25088 # Avoid depending upon Character Ranges.
25089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25092 as_cr_digits='0123456789'
25093 as_cr_alnum=$as_cr_Letters$as_cr_digits
25095 ECHO_C= ECHO_N= ECHO_T=
25096 case `echo -n x` in #(((((
25098 case `echo 'xy\c'` in
25099 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25101 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25108 rm -f conf$$ conf$$.exe conf$$.file
25109 if test -d conf$$.dir; then
25110 rm -f conf$$.dir/conf$$.file
25113 mkdir conf$$.dir 2>/dev/null
25115 if (echo >conf$$.file) 2>/dev/null; then
25116 if ln -s conf$$.file conf$$ 2>/dev/null; then
25118 # ... but there are two gotchas:
25119 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25120 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25121 # In both cases, we have to default to `cp -pR'.
25122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25124 elif ln conf$$.file conf$$ 2>/dev/null; then
25132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25133 rmdir conf$$.dir 2>/dev/null
25138 # Create "$as_dir" as a directory, including parents if necessary.
25143 -*) as_dir=./$as_dir;;
25145 test -d "$as_dir" || eval $as_mkdir_p || {
25149 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25150 *) as_qdir=$as_dir;;
25152 as_dirs="'$as_qdir' $as_dirs"
25153 as_dir=`$as_dirname -- "$as_dir" ||
25154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155 X"$as_dir" : 'X\(//\)[^/]' \| \
25156 X"$as_dir" : 'X\(//\)$' \| \
25157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25158 $as_echo X"$as_dir" |
25159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25163 /^X\(\/\/\)[^/].*/{
25176 test -d "$as_dir" && break
25178 test -z "$as_dirs" || eval "mkdir $as_dirs"
25179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25183 if mkdir -p . 2>/dev/null; then
25184 as_mkdir_p='mkdir -p "$as_dir"'
25186 test -d ./-p && rmdir ./-p
25191 # as_fn_executable_p FILE
25192 # -----------------------
25193 # Test if FILE is an executable regular file.
25194 as_fn_executable_p ()
25196 test -f "$1" && test -x "$1"
25197 } # as_fn_executable_p
25198 as_test_x='test -x'
25199 as_executable_p=as_fn_executable_p
25201 # Sed expression to map a string onto a valid CPP name.
25202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25204 # Sed expression to map a string onto a valid variable name.
25205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25209 ## ----------------------------------- ##
25210 ## Main body of $CONFIG_STATUS script. ##
25211 ## ----------------------------------- ##
25213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25216 # Save the log message, to keep $0 and so on meaningful, and to
25217 # report actual input values of CONFIG_FILES etc. instead of their
25218 # values after options handling.
25220 This file was extended by cyassl $as_me 3.1.0, which was
25221 generated by GNU Autoconf 2.69. Invocation command line was
25223 CONFIG_FILES = $CONFIG_FILES
25224 CONFIG_HEADERS = $CONFIG_HEADERS
25225 CONFIG_LINKS = $CONFIG_LINKS
25226 CONFIG_COMMANDS = $CONFIG_COMMANDS
25229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25234 case $ac_config_files in *"
25235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25238 case $ac_config_headers in *"
25239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25244 # Files that config.status was made for.
25245 config_files="$ac_config_files"
25246 config_headers="$ac_config_headers"
25247 config_commands="$ac_config_commands"
25251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25253 \`$as_me' instantiates files and other configuration actions
25254 from templates according to the current configuration. Unless the files
25255 and actions are specified as TAGs, all are instantiated by default.
25257 Usage: $0 [OPTION]... [TAG]...
25259 -h, --help print this help, then exit
25260 -V, --version print version number and configuration settings, then exit
25261 --config print configuration, then exit
25262 -q, --quiet, --silent
25263 do not print progress messages
25264 -d, --debug don't remove temporary files
25265 --recheck update $as_me by reconfiguring in the same conditions
25266 --file=FILE[:TEMPLATE]
25267 instantiate the configuration file FILE
25268 --header=FILE[:TEMPLATE]
25269 instantiate the configuration header FILE
25271 Configuration files:
25274 Configuration headers:
25277 Configuration commands:
25280 Report bugs to <https://github.com/cyassl/cyassl/issues>.
25281 cyassl home page: <http://www.wolfssl.com>."
25284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25287 cyassl config.status 3.1.0
25288 configured by $0, generated by GNU Autoconf 2.69,
25289 with options \\"\$ac_cs_config\\"
25291 Copyright (C) 2012 Free Software Foundation, Inc.
25292 This config.status script is free software; the Free Software Foundation
25293 gives unlimited permission to copy, distribute and modify it."
25300 test -n "\$AWK" || AWK=awk
25303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25304 # The default lists apply if the user does not specify any file.
25310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25327 # Handling of the options.
25328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25331 $as_echo "$ac_cs_version"; exit ;;
25332 --config | --confi | --conf | --con | --co | --c )
25333 $as_echo "$ac_cs_config"; exit ;;
25334 --debug | --debu | --deb | --de | --d | -d )
25336 --file | --fil | --fi | --f )
25339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25340 '') as_fn_error $? "missing file argument" ;;
25342 as_fn_append CONFIG_FILES " '$ac_optarg'"
25343 ac_need_defaults=false;;
25344 --header | --heade | --head | --hea )
25347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25349 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25350 ac_need_defaults=false;;
25352 # Conflict between --help and --header
25353 as_fn_error $? "ambiguous option: \`$1'
25354 Try \`$0 --help' for more information.";;
25355 --help | --hel | -h )
25356 $as_echo "$ac_cs_usage"; exit ;;
25357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25361 # This is an error.
25362 -*) as_fn_error $? "unrecognized option: \`$1'
25363 Try \`$0 --help' for more information." ;;
25365 *) as_fn_append ac_config_targets " $1"
25366 ac_need_defaults=false ;;
25372 ac_configure_extra_args=
25374 if $ac_cs_silent; then
25376 ac_configure_extra_args="$ac_configure_extra_args --silent"
25380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25381 if \$ac_cs_recheck; then
25382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25385 CONFIG_SHELL='$SHELL'
25386 export CONFIG_SHELL
25391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25396 ## Running $as_me. ##
25402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25406 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25409 # The HP-UX ksh and POSIX shell print the target directory to stdout
25410 # if CDPATH is set.
25411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25413 sed_quote_subst='$sed_quote_subst'
25414 double_quote_subst='$double_quote_subst'
25415 delay_variable_subst='$delay_variable_subst'
25416 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25417 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25418 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25419 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25420 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25421 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25424 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25425 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25426 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25427 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25428 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25429 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25430 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25431 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25432 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25433 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25434 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25435 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25436 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25437 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25438 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25439 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25440 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25441 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25442 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25443 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25444 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25445 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25446 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25447 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25448 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25450 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25451 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25452 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25453 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25454 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25455 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25456 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25457 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25458 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25459 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25460 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25461 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25462 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25463 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25464 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25465 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25466 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25467 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25468 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25469 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25470 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25471 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25472 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"`'
25473 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25474 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25475 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25476 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25477 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25478 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25479 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25480 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25481 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25482 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25483 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25484 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25485 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25486 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25487 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25488 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25489 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25490 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25491 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25492 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25493 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25494 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25495 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25496 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25497 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25498 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25499 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25500 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25501 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25502 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25503 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25504 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25505 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25506 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25507 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25508 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25509 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25510 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25511 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25512 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25513 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25514 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25515 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25516 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25517 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25518 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25519 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25520 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25521 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25522 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25523 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25524 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25525 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25526 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25527 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25528 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25529 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25530 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25531 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25532 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25533 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25534 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25535 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25536 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25537 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25538 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25539 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25546 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25547 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25548 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25549 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25550 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25551 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25552 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25553 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25554 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25555 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25556 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25557 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25558 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25559 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25560 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25561 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25562 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25563 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25564 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25565 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25566 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25567 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25568 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25569 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25570 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25571 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25572 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25573 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25574 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25575 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25576 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25577 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25578 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25579 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25580 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25581 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25582 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25583 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25584 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25585 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25586 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25587 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25588 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25589 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25590 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25591 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25592 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25593 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25594 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25595 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25596 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25597 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25598 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25599 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25602 LTCFLAGS='$LTCFLAGS'
25603 compiler='$compiler_DEFAULT'
25605 # A function that is used when there is no print builtin or printf.
25606 func_fallback_echo ()
25608 eval 'cat <<_LTECHO_EOF
25613 # Quote evaled strings.
25628 deplibs_check_method \
25633 sharedlib_from_linklib_cmd \
25636 archiver_list_spec \
25642 lt_cv_sys_global_symbol_pipe \
25643 lt_cv_sys_global_symbol_to_cdecl \
25644 lt_cv_sys_global_symbol_to_c_name_address \
25645 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25646 nm_file_list_spec \
25647 lt_prog_compiler_no_builtin_flag \
25648 lt_prog_compiler_pic \
25649 lt_prog_compiler_wl \
25650 lt_prog_compiler_static \
25651 lt_cv_prog_compiler_c_o \
25660 export_dynamic_flag_spec \
25661 whole_archive_flag_spec \
25662 compiler_needs_object \
25664 allow_undefined_flag \
25665 no_undefined_flag \
25666 hardcode_libdir_flag_spec \
25667 hardcode_libdir_separator \
25671 variables_saved_for_relink \
25673 library_names_spec \
25675 install_override_mode \
25679 compiler_lib_search_dirs \
25684 compiler_lib_search_path \
25688 lt_prog_compiler_no_builtin_flag_CXX \
25689 lt_prog_compiler_pic_CXX \
25690 lt_prog_compiler_wl_CXX \
25691 lt_prog_compiler_static_CXX \
25692 lt_cv_prog_compiler_c_o_CXX \
25693 export_dynamic_flag_spec_CXX \
25694 whole_archive_flag_spec_CXX \
25695 compiler_needs_object_CXX \
25697 allow_undefined_flag_CXX \
25698 no_undefined_flag_CXX \
25699 hardcode_libdir_flag_spec_CXX \
25700 hardcode_libdir_separator_CXX \
25701 exclude_expsyms_CXX \
25702 include_expsyms_CXX \
25703 file_list_spec_CXX \
25704 compiler_lib_search_dirs_CXX \
25705 predep_objects_CXX \
25706 postdep_objects_CXX \
25709 compiler_lib_search_path_CXX; do
25710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25711 *[\\\\\\\`\\"\\\$]*)
25712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25720 # Double-quote double-evaled strings.
25721 for var in reload_cmds \
25722 old_postinstall_cmds \
25723 old_postuninstall_cmds \
25725 extract_expsyms_cmds \
25726 old_archive_from_new_cmds \
25727 old_archive_from_expsyms_cmds \
25729 archive_expsym_cmds \
25731 module_expsym_cmds \
25732 export_symbols_cmds \
25736 postuninstall_cmds \
25738 sys_lib_search_path_spec \
25739 sys_lib_dlsearch_path_spec \
25741 old_archive_cmds_CXX \
25742 old_archive_from_new_cmds_CXX \
25743 old_archive_from_expsyms_cmds_CXX \
25745 archive_expsym_cmds_CXX \
25747 module_expsym_cmds_CXX \
25748 export_symbols_cmds_CXX \
25750 postlink_cmds_CXX; do
25751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25752 *[\\\\\\\`\\"\\\$]*)
25753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25761 ac_aux_dir='$ac_aux_dir'
25762 xsi_shell='$xsi_shell'
25763 lt_shell_append='$lt_shell_append'
25765 # See if we are running on zsh, and set the options which allow our
25766 # commands through without removal of \ escapes INIT.
25767 if test -n "\${ZSH_VERSION+set}" ; then
25768 setopt NO_GLOB_SUBST
25774 TIMESTAMP='$TIMESTAMP'
25785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25787 # Handling of arguments.
25788 for ac_config_target in $ac_config_targets
25790 case $ac_config_target in
25791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25792 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25793 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25794 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
25795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25796 "cyassl/version.h") CONFIG_FILES="$CONFIG_FILES cyassl/version.h" ;;
25797 "cyassl/options.h") CONFIG_FILES="$CONFIG_FILES cyassl/options.h" ;;
25798 "support/cyassl.pc") CONFIG_FILES="$CONFIG_FILES support/cyassl.pc" ;;
25799 "rpm/spec") CONFIG_FILES="$CONFIG_FILES rpm/spec" ;;
25801 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25806 # If the user did not use the arguments to specify the items to instantiate,
25807 # then the envvar interface is used. Set only those that are not.
25808 # We use the long form for the default assignment because of an extremely
25809 # bizarre bug on SunOS 4.1.3.
25810 if $ac_need_defaults; then
25811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25812 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25813 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25816 # Have a temporary directory for convenience. Make it in the build tree
25817 # simply because there is no reason against having it here, and in addition,
25818 # creating and moving files from /tmp can sometimes cause problems.
25819 # Hook for its removal unless debugging.
25820 # Note that there is a small window in which the directory will not be cleaned:
25821 # after its creation but before its name has been assigned to `$tmp'.
25825 trap 'exit_status=$?
25826 : "${ac_tmp:=$tmp}"
25827 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25829 trap 'as_fn_exit 1' 1 2 13 15
25831 # Create a (secure) tmp directory for tmp files.
25834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25838 tmp=./conf$$-$RANDOM
25839 (umask 077 && mkdir "$tmp")
25840 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25843 # Set up the scripts for CONFIG_FILES section.
25844 # No need to generate them if there are no CONFIG_FILES.
25845 # This happens for instance with `./config.status config.h'.
25846 if test -n "$CONFIG_FILES"; then
25849 ac_cr=`echo X | tr X '\015'`
25850 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25851 # But we know of no other shell where ac_cr would be empty at this
25852 # point, so we can use a bashism as a fallback.
25853 if test "x$ac_cr" = x; then
25854 eval ac_cr=\$\'\\r\'
25856 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25857 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25860 ac_cs_awk_cr=$ac_cr
25863 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25868 echo "cat >conf$$subs.awk <<_ACEOF" &&
25869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25871 } >conf$$subs.sh ||
25872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25875 for ac_last_try in false false false false false :; do
25876 . ./conf$$subs.sh ||
25877 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25880 if test $ac_delim_n = $ac_delim_num; then
25882 elif $ac_last_try; then
25883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25888 rm -f conf$$subs.sh
25890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25891 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25895 s/^/S["/; s/!.*/"]=/
25905 s/\(.\{148\}\)..*/\1/
25907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25919 s/\(.\{148\}\)..*/\1/
25921 s/["\\]/\\&/g; s/^/"/; s/$/"/
25925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25930 ' <conf$$subs.awk | sed '
25935 ' >>$CONFIG_STATUS || ac_write_fail=1
25936 rm -f conf$$subs.awk
25937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25939 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25940 for (key in S) S_is_set[key] = 1
25946 nfields = split(line, field, "@")
25948 len = length(field[1])
25949 for (i = 2; i < nfields; i++) {
25951 keylen = length(key)
25952 if (S_is_set[key]) {
25954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25955 len += length(value) + length(field[++i])
25966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25967 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25968 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25971 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25972 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25975 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25976 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25977 # trailing colons and then remove the whole line if VPATH becomes empty
25978 # (actually we leave an empty line to preserve line numbers).
25979 if test "x$srcdir" = x.; then
25980 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25999 fi # test -n "$CONFIG_FILES"
26001 # Set up the scripts for CONFIG_HEADERS section.
26002 # No need to generate them if there are no CONFIG_HEADERS.
26003 # This happens for instance with `./config.status Makefile'.
26004 if test -n "$CONFIG_HEADERS"; then
26005 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26009 # Transform confdefs.h into an awk script `defines.awk', embedded as
26010 # here-document in config.status, that substitutes the proper values into
26011 # config.h.in to produce config.h.
26013 # Create a delimiter string that does not exist in confdefs.h, to ease
26014 # handling of long lines.
26016 for ac_last_try in false false :; do
26017 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26018 if test -z "$ac_tt"; then
26020 elif $ac_last_try; then
26021 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26027 # For the awk script, D is an array of macro values keyed by name,
26028 # likewise P contains macro parameters if any. Preserve backslash
26029 # newline sequences.
26031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26033 s/.\{148\}/&'"$ac_delim"'/g
26036 s/^[ ]*#[ ]*define[ ][ ]*/ /
26043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26050 D["\1"]=" \3\\\\\\n"\\/p
26052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26057 s/.\{148\}/&'"$ac_delim"'/g
26062 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26065 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26067 ' <confdefs.h | sed '
26068 s/'"$ac_delim"'/"\\\
26069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26072 for (key in D) D_is_set[key] = 1
26075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26077 split(line, arg, " ")
26078 if (arg[1] == "#") {
26082 defundef = substr(arg[1], 2)
26085 split(mac1, mac2, "(") #)
26087 prefix = substr(line, 1, index(line, defundef) - 1)
26088 if (D_is_set[macro]) {
26089 # Preserve the white space surrounding the "#".
26090 print prefix "define", macro P[macro] D[macro]
26093 # Replace #undef with comments. This is necessary, for example,
26094 # in the case of _POSIX_SOURCE, which is predefined and required
26095 # on some systems where configure will not decide to define it.
26096 if (defundef == "undef") {
26097 print "/*", prefix defundef, macro, "*/"
26105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26106 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26107 fi # test -n "$CONFIG_HEADERS"
26110 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26115 :[FHLC]) ac_mode=$ac_tag; continue;;
26117 case $ac_mode$ac_tag in
26119 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26120 :[FH]-) ac_tag=-:-;;
26121 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26138 -) ac_f="$ac_tmp/stdin";;
26139 *) # Look for the file first in the build tree, then in the source tree
26140 # (if the path is not absolute). The absolute path cannot be DOS-style,
26141 # because $ac_f cannot contain `:'.
26145 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26147 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26149 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26150 as_fn_append ac_file_inputs " '$ac_f'"
26153 # Let's still pretend it is `configure' which instantiates (i.e., don't
26154 # use $as_me), people would be surprised to read:
26155 # /* config.h. Generated by config.status. */
26156 configure_input='Generated from '`
26157 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26159 if test x"$ac_file" != x-; then
26160 configure_input="$ac_file. $configure_input"
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26162 $as_echo "$as_me: creating $ac_file" >&6;}
26164 # Neutralize special characters interpreted by sed in replacement strings.
26165 case $configure_input in #(
26166 *\&* | *\|* | *\\* )
26167 ac_sed_conf_input=`$as_echo "$configure_input" |
26168 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26169 *) ac_sed_conf_input=$configure_input;;
26173 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26179 ac_dir=`$as_dirname -- "$ac_file" ||
26180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26181 X"$ac_file" : 'X\(//\)[^/]' \| \
26182 X"$ac_file" : 'X\(//\)$' \| \
26183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26184 $as_echo X"$ac_file" |
26185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26189 /^X\(\/\/\)[^/].*/{
26202 as_dir="$ac_dir"; as_fn_mkdir_p
26206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26208 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26209 # A ".." for each directory in $ac_dir_suffix.
26210 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26211 case $ac_top_builddir_sub in
26212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26216 ac_abs_top_builddir=$ac_pwd
26217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26218 # for backward compatibility:
26219 ac_top_builddir=$ac_top_build_prefix
26222 .) # We are building in place.
26224 ac_top_srcdir=$ac_top_builddir_sub
26225 ac_abs_top_srcdir=$ac_pwd ;;
26226 [\\/]* | ?:[\\/]* ) # Absolute name.
26227 ac_srcdir=$srcdir$ac_dir_suffix;
26228 ac_top_srcdir=$srcdir
26229 ac_abs_top_srcdir=$srcdir ;;
26230 *) # Relative name.
26231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26232 ac_top_srcdir=$ac_top_build_prefix$srcdir
26233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26246 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26248 ac_MKDIR_P=$MKDIR_P
26250 [\\/$]* | ?:[\\/]* ) ;;
26251 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26256 # If the template does not know about datarootdir, expand it.
26257 # FIXME: This hack should be removed a few years after 2.60.
26258 ac_datarootdir_hack=; ac_datarootdir_seen=
26269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26270 *datarootdir*) ac_datarootdir_seen=yes;;
26271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26276 ac_datarootdir_hack='
26277 s&@datadir@&$datadir&g
26278 s&@docdir@&$docdir&g
26279 s&@infodir@&$infodir&g
26280 s&@localedir@&$localedir&g
26281 s&@mandir@&$mandir&g
26282 s&\\\${datarootdir}&$datarootdir&g' ;;
26286 # Neutralize VPATH when `$srcdir' = `.'.
26287 # Shell code in configure.ac might set extrasub.
26288 # FIXME: do we really want to maintain this feature?
26289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26290 ac_sed_extra="$ac_vpsub
26293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26296 s|@configure_input@|$ac_sed_conf_input|;t t
26297 s&@top_builddir@&$ac_top_builddir_sub&;t t
26298 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26299 s&@srcdir@&$ac_srcdir&;t t
26300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26301 s&@top_srcdir@&$ac_top_srcdir&;t t
26302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26303 s&@builddir@&$ac_builddir&;t t
26304 s&@abs_builddir@&$ac_abs_builddir&;t t
26305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26306 s&@INSTALL@&$ac_INSTALL&;t t
26307 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26308 $ac_datarootdir_hack
26310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26311 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26316 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26318 which seems to be undefined. Please make sure it is defined" >&5
26319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26320 which seems to be undefined. Please make sure it is defined" >&2;}
26322 rm -f "$ac_tmp/stdin"
26324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26333 if test x"$ac_file" != x-; then
26335 $as_echo "/* $configure_input */" \
26336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26337 } >"$ac_tmp/config.h" \
26338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26339 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26344 mv "$ac_tmp/config.h" "$ac_file" \
26345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26348 $as_echo "/* $configure_input */" \
26349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26350 || as_fn_error $? "could not create -" "$LINENO" 5
26352 # Compute "$ac_file"'s index in $config_headers.
26355 for _am_header in $config_headers :; do
26356 case $_am_header in
26357 $_am_arg | $_am_arg:* )
26360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26363 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26364 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26365 X"$_am_arg" : 'X\(//\)[^/]' \| \
26366 X"$_am_arg" : 'X\(//\)$' \| \
26367 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26368 $as_echo X"$_am_arg" |
26369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26373 /^X\(\/\/\)[^/].*/{
26385 s/.*/./; q'`/stamp-h$_am_stamp_count
26388 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26389 $as_echo "$as_me: executing $ac_file commands" >&6;}
26394 case $ac_file$ac_mode in
26395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26396 # Older Autoconf quotes --file arguments for eval, but not when files
26397 # are listed without --file. Let's play safe and only enable the eval
26398 # if we detect the quoting.
26399 case $CONFIG_FILES in
26400 *\'*) eval set x "$CONFIG_FILES" ;;
26401 *) set x $CONFIG_FILES ;;
26406 # Strip MF so we end up with the name of the file.
26407 mf=`echo "$mf" | sed -e 's/:.*$//'`
26408 # Check whether this is an Automake generated Makefile or not.
26409 # We used to match only the files named 'Makefile.in', but
26410 # some people rename them; so instead we look at the file content.
26411 # Grep'ing the first line is not enough: some people post-process
26412 # each Makefile.in and add a new line on top of each file to say so.
26413 # Grep'ing the whole file is not good either: AIX grep has a line
26414 # limit of 2048, but all sed's we know have understand at least 4000.
26415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26416 dirpart=`$as_dirname -- "$mf" ||
26417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26418 X"$mf" : 'X\(//\)[^/]' \| \
26419 X"$mf" : 'X\(//\)$' \| \
26420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26426 /^X\(\/\/\)[^/].*/{
26442 # Extract the definition of DEPDIR, am__include, and am__quote
26443 # from the Makefile without running 'make'.
26444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26445 test -z "$DEPDIR" && continue
26446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26447 test -z "$am__include" && continue
26448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26449 # Find all dependency output files, they are included files with
26450 # $(DEPDIR) in their names. We invoke sed twice because it is the
26451 # simplest approach to changing $(DEPDIR) to its actual value in the
26453 for file in `sed -n "
26454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26456 # Make sure the directory exists.
26457 test -f "$dirpart/$file" && continue
26458 fdir=`$as_dirname -- "$file" ||
26459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26460 X"$file" : 'X\(//\)[^/]' \| \
26461 X"$file" : 'X\(//\)$' \| \
26462 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26463 $as_echo X"$file" |
26464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26468 /^X\(\/\/\)[^/].*/{
26481 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26482 # echo "creating $dirpart/$file"
26483 echo '# dummy' > "$dirpart/$file"
26490 # See if we are running on zsh, and set the options which allow our
26491 # commands through without removal of \ escapes.
26492 if test -n "${ZSH_VERSION+set}" ; then
26493 setopt NO_GLOB_SUBST
26496 cfgfile="${ofile}T"
26497 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26500 cat <<_LT_EOF >> "$cfgfile"
26503 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26504 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26506 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26508 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26509 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26511 # Written by Gordon Matzigkeit, 1996
26513 # This file is part of GNU Libtool.
26515 # GNU Libtool is free software; you can redistribute it and/or
26516 # modify it under the terms of the GNU General Public License as
26517 # published by the Free Software Foundation; either version 2 of
26518 # the License, or (at your option) any later version.
26520 # As a special exception to the GNU General Public License,
26521 # if you distribute this file as part of a program or library that
26522 # is built using GNU Libtool, you may include this file under the
26523 # same distribution terms that you use for the rest of that program.
26525 # GNU Libtool is distributed in the hope that it will be useful,
26526 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26528 # GNU General Public License for more details.
26530 # You should have received a copy of the GNU General Public License
26531 # along with GNU Libtool; see the file COPYING. If not, a copy
26532 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26533 # obtained by writing to the Free Software Foundation, Inc.,
26534 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26537 # The names of the tagged configurations supported by this script.
26538 available_tags="CXX "
26540 # ### BEGIN LIBTOOL CONFIG
26542 # Which release of libtool.m4 was used?
26543 macro_version=$macro_version
26544 macro_revision=$macro_revision
26546 # Whether or not to build static libraries.
26547 build_old_libs=$enable_static
26549 # Whether or not to build shared libraries.
26550 build_libtool_libs=$enable_shared
26552 # What type of objects to build.
26555 # Whether or not to optimize for fast installation.
26556 fast_install=$enable_fast_install
26558 # Shell to use when invoking shell scripts.
26561 # An echo program that protects backslashes.
26564 # The PATH separator for the build system.
26565 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26568 host_alias=$host_alias
26572 # The build system.
26573 build_alias=$build_alias
26577 # A sed program that does not truncate output.
26580 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26581 Xsed="\$SED -e 1s/^X//"
26583 # A grep program that handles long lines.
26589 # A literal string matcher.
26592 # A BSD- or MS-compatible name lister.
26595 # Whether we need soft or hard links.
26598 # What is the maximum length of a command?
26599 max_cmd_len=$max_cmd_len
26601 # Object file suffix (normally "o").
26604 # Executable file suffix (normally "").
26607 # whether the shell understands "unset".
26610 # turn spaces into newlines.
26613 # turn newlines into spaces.
26616 # convert \$build file names to \$host format.
26617 to_host_file_cmd=$lt_cv_to_host_file_cmd
26619 # convert \$build files to toolchain format.
26620 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26622 # An object symbol dumper.
26623 OBJDUMP=$lt_OBJDUMP
26625 # Method to check whether dependent libraries are shared objects.
26626 deplibs_check_method=$lt_deplibs_check_method
26628 # Command to use when deplibs_check_method = "file_magic".
26629 file_magic_cmd=$lt_file_magic_cmd
26631 # How to find potential files when deplibs_check_method = "file_magic".
26632 file_magic_glob=$lt_file_magic_glob
26634 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26635 want_nocaseglob=$lt_want_nocaseglob
26637 # DLL creation program.
26638 DLLTOOL=$lt_DLLTOOL
26640 # Command to associate shared and link libraries.
26641 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26646 # Flags to create an archive.
26647 AR_FLAGS=$lt_AR_FLAGS
26649 # How to feed a file listing to the archiver.
26650 archiver_list_spec=$lt_archiver_list_spec
26652 # A symbol stripping program.
26655 # Commands used to install an old-style archive.
26657 old_postinstall_cmds=$lt_old_postinstall_cmds
26658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26660 # Whether to use a lock for old archive extraction.
26661 lock_old_archive_extraction=$lock_old_archive_extraction
26666 # LTCC compiler flags.
26667 LTCFLAGS=$lt_CFLAGS
26669 # Take the output of nm and produce a listing of raw symbols and C names.
26670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26672 # Transform the output of nm in a proper C declaration.
26673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26675 # Transform the output of nm in a C name address pair.
26676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26678 # Transform the output of nm in a C name address pair when lib prefix is needed.
26679 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26681 # Specify filename containing input files for \$NM.
26682 nm_file_list_spec=$lt_nm_file_list_spec
26684 # The root where to search for dependent libraries,and in which our libraries should be installed.
26685 lt_sysroot=$lt_sysroot
26687 # The name of the directory that contains temporary libtool files.
26690 # Used to examine libraries when file_magic_cmd begins with "file".
26691 MAGIC_CMD=$MAGIC_CMD
26693 # Must we lock files when doing compilation?
26694 need_locks=$lt_need_locks
26697 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26699 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26700 DSYMUTIL=$lt_DSYMUTIL
26702 # Tool to change global to local symbols on Mac OS X.
26705 # Tool to manipulate fat objects and archives on Mac OS X.
26708 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26711 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26712 OTOOL64=$lt_OTOOL64
26714 # Old archive suffix (normally "a").
26717 # Shared library suffix (normally ".so").
26718 shrext_cmds=$lt_shrext_cmds
26720 # The commands to extract the exported symbol list from a shared archive.
26721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26723 # Variables whose values should be saved in libtool wrapper scripts and
26724 # restored at link time.
26725 variables_saved_for_relink=$lt_variables_saved_for_relink
26727 # Do we need the "lib" prefix for modules?
26728 need_lib_prefix=$need_lib_prefix
26730 # Do we need a version for libraries?
26731 need_version=$need_version
26733 # Library versioning type.
26734 version_type=$version_type
26736 # Shared library runtime path variable.
26737 runpath_var=$runpath_var
26739 # Shared library path variable.
26740 shlibpath_var=$shlibpath_var
26742 # Is shlibpath searched before the hard-coded library search path?
26743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26745 # Format of library name prefix.
26746 libname_spec=$lt_libname_spec
26748 # List of archive names. First name is the real one, the rest are links.
26749 # The last name is the one that the linker finds with -lNAME
26750 library_names_spec=$lt_library_names_spec
26752 # The coded name of the library, if different from the real name.
26753 soname_spec=$lt_soname_spec
26755 # Permission mode override for installation of shared libraries.
26756 install_override_mode=$lt_install_override_mode
26758 # Command to use after installation of a shared archive.
26759 postinstall_cmds=$lt_postinstall_cmds
26761 # Command to use after uninstallation of a shared archive.
26762 postuninstall_cmds=$lt_postuninstall_cmds
26764 # Commands used to finish a libtool library installation in a directory.
26765 finish_cmds=$lt_finish_cmds
26767 # As "finish_cmds", except a single script fragment to be evaled but
26769 finish_eval=$lt_finish_eval
26771 # Whether we should hardcode library paths into libraries.
26772 hardcode_into_libs=$hardcode_into_libs
26774 # Compile-time system search path for libraries.
26775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26777 # Run-time system search path for libraries.
26778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26780 # Whether dlopen is supported.
26781 dlopen_support=$enable_dlopen
26783 # Whether dlopen of programs is supported.
26784 dlopen_self=$enable_dlopen_self
26786 # Whether dlopen of statically linked programs is supported.
26787 dlopen_self_static=$enable_dlopen_self_static
26789 # Commands to strip libraries.
26790 old_striplib=$lt_old_striplib
26791 striplib=$lt_striplib
26794 # The linker used to build libraries.
26797 # How to create reloadable object files.
26798 reload_flag=$lt_reload_flag
26799 reload_cmds=$lt_reload_cmds
26801 # Commands used to build an old-style archive.
26802 old_archive_cmds=$lt_old_archive_cmds
26804 # A language specific compiler.
26807 # Is the compiler the GNU compiler?
26810 # Compiler flag to turn off builtin functions.
26811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26813 # Additional compiler flags for building library objects.
26814 pic_flag=$lt_lt_prog_compiler_pic
26816 # How to pass a linker flag through the compiler.
26817 wl=$lt_lt_prog_compiler_wl
26819 # Compiler flag to prevent dynamic linking.
26820 link_static_flag=$lt_lt_prog_compiler_static
26822 # Does compiler simultaneously support -c and -o options?
26823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26825 # Whether or not to add -lc for building shared libraries.
26826 build_libtool_need_lc=$archive_cmds_need_lc
26828 # Whether or not to disallow shared libs when runtime libs are static.
26829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26831 # Compiler flag to allow reflexive dlopens.
26832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26834 # Compiler flag to generate shared objects directly from archives.
26835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26837 # Whether the compiler copes with passing no objects directly.
26838 compiler_needs_object=$lt_compiler_needs_object
26840 # Create an old-style archive from a shared archive.
26841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26843 # Create a temporary old-style archive to link instead of a shared archive.
26844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26846 # Commands used to build a shared archive.
26847 archive_cmds=$lt_archive_cmds
26848 archive_expsym_cmds=$lt_archive_expsym_cmds
26850 # Commands used to build a loadable module if different from building
26851 # a shared archive.
26852 module_cmds=$lt_module_cmds
26853 module_expsym_cmds=$lt_module_expsym_cmds
26855 # Whether we are building with GNU ld or not.
26856 with_gnu_ld=$lt_with_gnu_ld
26858 # Flag that allows shared libraries with undefined symbols to be built.
26859 allow_undefined_flag=$lt_allow_undefined_flag
26861 # Flag that enforces no undefined symbols.
26862 no_undefined_flag=$lt_no_undefined_flag
26864 # Flag to hardcode \$libdir into a binary during linking.
26865 # This must work even if \$libdir does not exist
26866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26868 # Whether we need a single "-rpath" flag with a separated argument.
26869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26872 # DIR into the resulting binary.
26873 hardcode_direct=$hardcode_direct
26875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26876 # DIR into the resulting binary and the resulting library dependency is
26877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26878 # library is relocated.
26879 hardcode_direct_absolute=$hardcode_direct_absolute
26881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26882 # into the resulting binary.
26883 hardcode_minus_L=$hardcode_minus_L
26885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26886 # into the resulting binary.
26887 hardcode_shlibpath_var=$hardcode_shlibpath_var
26889 # Set to "yes" if building a shared library automatically hardcodes DIR
26890 # into the library and all subsequent libraries and executables linked
26892 hardcode_automatic=$hardcode_automatic
26894 # Set to yes if linker adds runtime paths of dependent libraries
26895 # to runtime path list.
26896 inherit_rpath=$inherit_rpath
26898 # Whether libtool must link a program against all its dependency libraries.
26899 link_all_deplibs=$link_all_deplibs
26901 # Set to "yes" if exported symbols are required.
26902 always_export_symbols=$always_export_symbols
26904 # The commands to list exported symbols.
26905 export_symbols_cmds=$lt_export_symbols_cmds
26907 # Symbols that should not be listed in the preloaded symbols.
26908 exclude_expsyms=$lt_exclude_expsyms
26910 # Symbols that must always be exported.
26911 include_expsyms=$lt_include_expsyms
26913 # Commands necessary for linking programs (against libraries) with templates.
26914 prelink_cmds=$lt_prelink_cmds
26916 # Commands necessary for finishing linking programs.
26917 postlink_cmds=$lt_postlink_cmds
26919 # Specify filename containing input files.
26920 file_list_spec=$lt_file_list_spec
26922 # How to hardcode a shared library path into an executable.
26923 hardcode_action=$hardcode_action
26925 # The directories searched by this compiler when creating a shared library.
26926 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26928 # Dependencies to place before and after the objects being linked to
26929 # create a shared library.
26930 predep_objects=$lt_predep_objects
26931 postdep_objects=$lt_postdep_objects
26932 predeps=$lt_predeps
26933 postdeps=$lt_postdeps
26935 # The library search path used internally by the compiler when linking
26936 # a shared library.
26937 compiler_lib_search_path=$lt_compiler_lib_search_path
26939 # ### END LIBTOOL CONFIG
26945 cat <<\_LT_EOF >> "$cfgfile"
26946 # AIX sometimes has problems with the GCC collect2 program. For some
26947 # reason, if we set the COLLECT_NAMES environment variable, the problems
26948 # vanish in a puff of smoke.
26949 if test "X${COLLECT_NAMES+set}" != Xset; then
26951 export COLLECT_NAMES
26958 ltmain="$ac_aux_dir/ltmain.sh"
26961 # We use sed instead of cat because bash on DJGPP gets confused if
26962 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26963 # text mode, it properly converts lines to CR/LF. This bash problem
26964 # is reportedly fixed, but why not run on old versions too?
26965 sed '$q' "$ltmain" >> "$cfgfile" \
26966 || (rm -f "$cfgfile"; exit 1)
26968 if test x"$xsi_shell" = xyes; then
26969 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
26973 \ */*) func_dirname_result="${1%/*}${2}" ;;\
26974 \ * ) func_dirname_result="${3}" ;;\
26976 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
26977 && mv -f "$cfgfile.tmp" "$cfgfile" \
26978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26979 test 0 -eq $? || _lt_function_replace_fail=:
26982 sed -e '/^func_basename ()$/,/^} # func_basename /c\
26985 \ func_basename_result="${1##*/}"\
26986 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
26987 && mv -f "$cfgfile.tmp" "$cfgfile" \
26988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26989 test 0 -eq $? || _lt_function_replace_fail=:
26992 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
26993 func_dirname_and_basename ()\
26996 \ */*) func_dirname_result="${1%/*}${2}" ;;\
26997 \ * ) func_dirname_result="${3}" ;;\
26999 \ func_basename_result="${1##*/}"\
27000 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27001 && mv -f "$cfgfile.tmp" "$cfgfile" \
27002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27003 test 0 -eq $? || _lt_function_replace_fail=:
27006 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27009 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27010 \ # positional parameters, so assign one to ordinary parameter first.\
27011 \ func_stripname_result=${3}\
27012 \ func_stripname_result=${func_stripname_result#"${1}"}\
27013 \ func_stripname_result=${func_stripname_result%"${2}"}\
27014 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27015 && mv -f "$cfgfile.tmp" "$cfgfile" \
27016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27017 test 0 -eq $? || _lt_function_replace_fail=:
27020 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27021 func_split_long_opt ()\
27023 \ func_split_long_opt_name=${1%%=*}\
27024 \ func_split_long_opt_arg=${1#*=}\
27025 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27026 && mv -f "$cfgfile.tmp" "$cfgfile" \
27027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27028 test 0 -eq $? || _lt_function_replace_fail=:
27031 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27032 func_split_short_opt ()\
27034 \ func_split_short_opt_arg=${1#??}\
27035 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27036 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27037 && mv -f "$cfgfile.tmp" "$cfgfile" \
27038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27039 test 0 -eq $? || _lt_function_replace_fail=:
27042 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27046 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27047 \ *) func_lo2o_result=${1} ;;\
27049 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27050 && mv -f "$cfgfile.tmp" "$cfgfile" \
27051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27052 test 0 -eq $? || _lt_function_replace_fail=:
27055 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27058 func_xform_result=${1%.*}.lo\
27059 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27060 && mv -f "$cfgfile.tmp" "$cfgfile" \
27061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27062 test 0 -eq $? || _lt_function_replace_fail=:
27065 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27068 func_arith_result=$(( $* ))\
27069 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27070 && mv -f "$cfgfile.tmp" "$cfgfile" \
27071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27072 test 0 -eq $? || _lt_function_replace_fail=:
27075 sed -e '/^func_len ()$/,/^} # func_len /c\
27078 func_len_result=${#1}\
27079 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27080 && mv -f "$cfgfile.tmp" "$cfgfile" \
27081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27082 test 0 -eq $? || _lt_function_replace_fail=:
27086 if test x"$lt_shell_append" = xyes; then
27087 sed -e '/^func_append ()$/,/^} # func_append /c\
27090 eval "${1}+=\\${2}"\
27091 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27092 && mv -f "$cfgfile.tmp" "$cfgfile" \
27093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27094 test 0 -eq $? || _lt_function_replace_fail=:
27097 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27098 func_append_quoted ()\
27100 \ func_quote_for_eval "${2}"\
27101 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27102 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27103 && mv -f "$cfgfile.tmp" "$cfgfile" \
27104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27105 test 0 -eq $? || _lt_function_replace_fail=:
27108 # Save a `func_append' function call where possible by direct use of '+='
27109 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27110 && mv -f "$cfgfile.tmp" "$cfgfile" \
27111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27112 test 0 -eq $? || _lt_function_replace_fail=:
27114 # Save a `func_append' function call even when '+=' is not available
27115 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27116 && mv -f "$cfgfile.tmp" "$cfgfile" \
27117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27118 test 0 -eq $? || _lt_function_replace_fail=:
27121 if test x"$_lt_function_replace_fail" = x":"; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27123 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27127 mv -f "$cfgfile" "$ofile" ||
27128 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27132 cat <<_LT_EOF >> "$ofile"
27134 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27136 # The linker used to build libraries.
27139 # How to create reloadable object files.
27140 reload_flag=$lt_reload_flag_CXX
27141 reload_cmds=$lt_reload_cmds_CXX
27143 # Commands used to build an old-style archive.
27144 old_archive_cmds=$lt_old_archive_cmds_CXX
27146 # A language specific compiler.
27147 CC=$lt_compiler_CXX
27149 # Is the compiler the GNU compiler?
27152 # Compiler flag to turn off builtin functions.
27153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27155 # Additional compiler flags for building library objects.
27156 pic_flag=$lt_lt_prog_compiler_pic_CXX
27158 # How to pass a linker flag through the compiler.
27159 wl=$lt_lt_prog_compiler_wl_CXX
27161 # Compiler flag to prevent dynamic linking.
27162 link_static_flag=$lt_lt_prog_compiler_static_CXX
27164 # Does compiler simultaneously support -c and -o options?
27165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27167 # Whether or not to add -lc for building shared libraries.
27168 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27170 # Whether or not to disallow shared libs when runtime libs are static.
27171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27173 # Compiler flag to allow reflexive dlopens.
27174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27176 # Compiler flag to generate shared objects directly from archives.
27177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27179 # Whether the compiler copes with passing no objects directly.
27180 compiler_needs_object=$lt_compiler_needs_object_CXX
27182 # Create an old-style archive from a shared archive.
27183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27185 # Create a temporary old-style archive to link instead of a shared archive.
27186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27188 # Commands used to build a shared archive.
27189 archive_cmds=$lt_archive_cmds_CXX
27190 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27192 # Commands used to build a loadable module if different from building
27193 # a shared archive.
27194 module_cmds=$lt_module_cmds_CXX
27195 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27197 # Whether we are building with GNU ld or not.
27198 with_gnu_ld=$lt_with_gnu_ld_CXX
27200 # Flag that allows shared libraries with undefined symbols to be built.
27201 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27203 # Flag that enforces no undefined symbols.
27204 no_undefined_flag=$lt_no_undefined_flag_CXX
27206 # Flag to hardcode \$libdir into a binary during linking.
27207 # This must work even if \$libdir does not exist
27208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27210 # Whether we need a single "-rpath" flag with a separated argument.
27211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27213 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27214 # DIR into the resulting binary.
27215 hardcode_direct=$hardcode_direct_CXX
27217 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27218 # DIR into the resulting binary and the resulting library dependency is
27219 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27220 # library is relocated.
27221 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27224 # into the resulting binary.
27225 hardcode_minus_L=$hardcode_minus_L_CXX
27227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27228 # into the resulting binary.
27229 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27231 # Set to "yes" if building a shared library automatically hardcodes DIR
27232 # into the library and all subsequent libraries and executables linked
27234 hardcode_automatic=$hardcode_automatic_CXX
27236 # Set to yes if linker adds runtime paths of dependent libraries
27237 # to runtime path list.
27238 inherit_rpath=$inherit_rpath_CXX
27240 # Whether libtool must link a program against all its dependency libraries.
27241 link_all_deplibs=$link_all_deplibs_CXX
27243 # Set to "yes" if exported symbols are required.
27244 always_export_symbols=$always_export_symbols_CXX
27246 # The commands to list exported symbols.
27247 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27249 # Symbols that should not be listed in the preloaded symbols.
27250 exclude_expsyms=$lt_exclude_expsyms_CXX
27252 # Symbols that must always be exported.
27253 include_expsyms=$lt_include_expsyms_CXX
27255 # Commands necessary for linking programs (against libraries) with templates.
27256 prelink_cmds=$lt_prelink_cmds_CXX
27258 # Commands necessary for finishing linking programs.
27259 postlink_cmds=$lt_postlink_cmds_CXX
27261 # Specify filename containing input files.
27262 file_list_spec=$lt_file_list_spec_CXX
27264 # How to hardcode a shared library path into an executable.
27265 hardcode_action=$hardcode_action_CXX
27267 # The directories searched by this compiler when creating a shared library.
27268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27270 # Dependencies to place before and after the objects being linked to
27271 # create a shared library.
27272 predep_objects=$lt_predep_objects_CXX
27273 postdep_objects=$lt_postdep_objects_CXX
27274 predeps=$lt_predeps_CXX
27275 postdeps=$lt_postdeps_CXX
27277 # The library search path used internally by the compiler when linking
27278 # a shared library.
27279 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27281 # ### END LIBTOOL TAG CONFIG: CXX
27285 "stamp-h":F) echo timestamp > stamp-h ;;
27293 ac_clean_files=$ac_clean_files_save
27295 test $ac_write_fail = 0 ||
27296 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27299 # configure is writing to config.log, and then calls config.status.
27300 # config.status does its own redirection, appending to config.log.
27301 # Unfortunately, on DOS this fails, as config.log is still kept open
27302 # by configure, so config.status won't be able to write to it; its
27303 # output is simply discarded. So we exec the FD to /dev/null,
27304 # effectively closing config.log, so it can be properly (re)opened and
27305 # appended to by config.status. When coming back to configure, we
27306 # need to make the FD available again.
27307 if test "$no_create" != yes; then
27309 ac_config_status_args=
27310 test "$silent" = yes &&
27311 ac_config_status_args="$ac_config_status_args --quiet"
27313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27316 # would make configure fail if this is the last instruction.
27317 $ac_cs_success || as_fn_exit 1
27319 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27321 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27328 echo "Running make clean..."
27329 make clean >/dev/null 2>&1
27330 # Touch files that may not be in repository
27331 echo "Touching File..."
27332 touch ctaocrypt/src/fips.c
27333 touch ctaocrypt/src/fips_test.c
27336 # generate user options header
27338 echo "Generating user options header..."
27339 OPTION_FILE="cyassl/options.h"
27342 echo "/* cyassl options.h" > $OPTION_FILE
27343 echo " * generated from configure options" >> $OPTION_FILE
27344 echo " *" >> $OPTION_FILE
27345 echo " * Copyright (C) 2006-2014 wolfSSL Inc." >> $OPTION_FILE
27346 echo " *" >> $OPTION_FILE
27347 echo " * This file is part of CyaSSL." >> $OPTION_FILE
27348 echo " *" >> $OPTION_FILE
27349 echo " */" >> $OPTION_FILE
27351 echo "" >> $OPTION_FILE
27352 echo "#pragma once" >> $OPTION_FILE
27353 echo "" >> $OPTION_FILE
27354 echo "#ifdef __cplusplus" >> $OPTION_FILE
27355 echo "extern \"C\" {" >> $OPTION_FILE
27356 echo "#endif" >> $OPTION_FILE
27357 echo "" >> $OPTION_FILE
27359 for option in $OPTION_FLAGS; do
27360 defonly=`echo $option | sed 's/-D//'`
27361 if test "$defonly" != "$option"
27363 noequalsign=`echo $defonly | sed 's/=/ /'`
27364 echo "#undef $noequalsign" >> $OPTION_FILE
27365 echo "#define $noequalsign" >> $OPTION_FILE
27366 echo "" >> $OPTION_FILE
27368 echo "option w/o begin -D is $option, not saving to $OPTION_FILE"
27372 echo "" >> $OPTION_FILE
27373 echo "#ifdef __cplusplus" >> $OPTION_FILE
27374 echo "}" >> $OPTION_FILE
27375 echo "#endif" >> $OPTION_FILE
27376 echo "" >> $OPTION_FILE
27379 # output config summary
27381 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
27383 echo " * Installation prefix: $prefix"
27384 echo " * System type: $host_vendor-$host_os"
27385 echo " * Host CPU: $host_cpu"
27386 echo " * C Compiler: $CC"
27387 echo " * C Flags: $CFLAGS"
27388 echo " * C++ Compiler: $CXX"
27389 echo " * C++ Flags: $CXXFLAGS"
27390 echo " * CPP Flags: $CPPFLAGS"
27391 echo " * LIB Flags: $LIB"
27392 echo " * Debug enabled: $ax_enable_debug"
27393 echo " * Warnings as failure: $ac_cv_warnings_as_errors"
27394 echo " * make -j: $enable_jobserver"
27395 echo " * VCS checkout: $ac_cv_vcs_checkout"
27398 echo " * Single threaded: $ENABLED_SINGLETHREADED"
27399 echo " * Filesystem: $ENABLED_FILESYSTEM"
27400 echo " * OpenSSL Extra API: $ENABLED_OPENSSLEXTRA"
27401 echo " * fastmath: $ENABLED_FASTMATH"
27402 echo " * sniffer: $ENABLED_SNIFFER"
27403 echo " * snifftest: $ENABLED_SNIFFTEST"
27404 echo " * ARC4: $ENABLED_ARC4"
27405 echo " * AES: $ENABLED_AES"
27406 echo " * AES-NI: $ENABLED_AESNI"
27407 echo " * AES-GCM: $ENABLED_AESGCM"
27408 echo " * AES-CCM: $ENABLED_AESCCM"
27409 echo " * DES3: $ENABLED_DES3"
27410 echo " * Camellia: $ENABLED_CAMELLIA"
27411 echo " * NULL Cipher: $ENABLED_NULL_CIPHER"
27412 echo " * MD5: $ENABLED_MD5"
27413 echo " * RIPEMD: $ENABLED_RIPEMD"
27414 echo " * SHA: $ENABLED_SHA"
27415 echo " * SHA-512: $ENABLED_SHA512"
27416 echo " * BLAKE2: $ENABLED_BLAKE2"
27417 echo " * keygen: $ENABLED_KEYGEN"
27418 echo " * certgen: $ENABLED_CERTGEN"
27419 echo " * certreq: $ENABLED_CERTREQ"
27420 echo " * HC-128: $ENABLED_HC128"
27421 echo " * RABBIT: $ENABLED_RABBIT"
27422 echo " * Hash DRBG: $ENABLED_HASHDRBG"
27423 echo " * PWDBASED: $ENABLED_PWDBASED"
27424 echo " * HKDF: $ENABLED_HKDF"
27425 echo " * MD4: $ENABLED_MD4"
27426 echo " * PSK: $ENABLED_PSK"
27427 echo " * LEANPSK: $ENABLED_LEANPSK"
27428 echo " * RSA: $ENABLED_RSA"
27429 echo " * DSA: $ENABLED_DSA"
27430 echo " * DH: $ENABLED_DH"
27431 echo " * ECC: $ENABLED_ECC"
27432 echo " * FPECC: $ENABLED_FPECC"
27433 echo " * ECC_ENCRYPT: $ENABLED_ECC_ENCRYPT"
27434 echo " * ASN: $ENABLED_ASN"
27435 echo " * CODING: $ENABLED_CODING"
27436 echo " * MEMORY: $ENABLED_MEMORY"
27437 echo " * I/O POOL: $ENABLED_IOPOOL"
27438 echo " * ERROR_STRINGS: $ENABLED_ERROR_STRINGS"
27439 echo " * DTLS: $ENABLED_DTLS"
27440 echo " * Old TLS Versions: $ENABLED_OLD_TLS"
27441 echo " * OCSP: $ENABLED_OCSP"
27442 echo " * CRL: $ENABLED_CRL"
27443 echo " * CRL-MONITOR: $ENABLED_CRL_MONITOR"
27444 echo " * Persistent session cache: $ENABLED_SAVESESSION"
27445 echo " * Persistent cert cache: $ENABLED_SAVECERT"
27446 echo " * Atomic User Record Layer: $ENABLED_ATOMICUSER"
27447 echo " * Public Key Callbacks: $ENABLED_PKCALLBACKS"
27448 echo " * NTRU: $ENABLED_NTRU"
27449 echo " * SNI: $ENABLED_SNI"
27450 echo " * Maximum Fragment Length: $ENABLED_MAX_FRAGMENT"
27451 echo " * Truncated HMAC: $ENABLED_TRUNCATED_HMAC"
27452 echo " * Renegotiation Indication: $ENABLED_RENEGOTIATION_INDICATION"
27453 echo " * Supported Elliptic Curves: $ENABLED_SUPPORTED_CURVES"
27454 echo " * All TLS Extensions: $ENABLED_TLSX"
27455 echo " * PKCS#7 $ENABLED_PKCS7"
27456 echo " * wolfSCEP $ENABLED_WOLFSCEP"
27457 echo " * Small Stack: $ENABLED_SMALL_STACK"
27458 echo " * valgrind unit tests: $ENABLED_VALGRIND"
27459 echo " * LIBZ: $ENABLED_LIBZ"
27460 echo " * Examples: $ENABLED_EXAMPLES"