2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnutls-extra 2.12.20.
5 # Report bugs to <bug-gnutls@gnu.org>.
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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 bug-gnutls@gnu.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
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='libgnutls-extra'
592 PACKAGE_TARNAME='libgnutls-extra'
593 PACKAGE_VERSION='2.12.20'
594 PACKAGE_STRING='libgnutls-extra 2.12.20'
595 PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
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>
635 ac_subst_vars='xgltests_LTLIBOBJS
646 LIBGNUTLS_EXTRA_CFLAGS
649 GL_GENERATE_STDALIGN_H_FALSE
650 GL_GENERATE_STDALIGN_H_TRUE
652 HAVE_LD_VERSION_SCRIPT_FALSE
653 HAVE_LD_VERSION_SCRIPT_TRUE
654 HAVE_LD_OUTPUT_DEF_FALSE
655 HAVE_LD_OUTPUT_DEF_TRUE
656 GL_COND_LIBTOOL_FALSE
660 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
661 UNISTD_H_HAVE_WINSOCK2_H
682 REPLACE_GETDOMAINNAME
692 HAVE_DECL_SETHOSTNAME
693 HAVE_DECL_GETUSERSHELL
694 HAVE_DECL_GETPAGESIZE
696 HAVE_DECL_GETDOMAINNAME
735 GNULIB_UNISTD_H_SIGPIPE
736 GNULIB_UNISTD_H_NONBLOCKING
781 ENABLE_SESSION_TICKET_FALSE
782 ENABLE_SESSION_TICKET_TRUE
798 ENABLE_MINITASN1_FALSE
799 ENABLE_MINITASN1_TRUE
886 INSTALL_STRIP_PROGRAM
928 program_transform_name
941 enable_option_checking
943 enable_dependency_tracking
953 with_libgcrypt_prefix
954 with_libnettle_prefix
955 with_included_libtasn1
958 enable_opaque_prf_input
959 enable_srp_authentication
960 enable_psk_authentication
961 enable_anon_authentication
964 enable_openpgp_authentication
965 enable_session_ticket
967 enable_openssl_compatibility
968 enable_ld_version_script
970 ac_precious_vars='build_alias
981 # Initialize some variables set by options.
983 ac_init_version=false
984 ac_unrecognized_opts=
986 # The variables have the same names as the options, with
987 # dashes changed to underlines.
995 program_transform_name=s,x,x,
1003 # Installation directory options.
1004 # These are left unexpanded so users can "make install exec_prefix=/foo"
1005 # and all the variables that are supposed to be based on exec_prefix
1006 # by default will actually change.
1007 # Use braces instead of parens because sh, perl, etc. also accept them.
1008 # (The list follows the same order as the GNU Coding Standards.)
1009 bindir='${exec_prefix}/bin'
1010 sbindir='${exec_prefix}/sbin'
1011 libexecdir='${exec_prefix}/libexec'
1012 datarootdir='${prefix}/share'
1013 datadir='${datarootdir}'
1014 sysconfdir='${prefix}/etc'
1015 sharedstatedir='${prefix}/com'
1016 localstatedir='${prefix}/var'
1017 includedir='${prefix}/include'
1018 oldincludedir='/usr/include'
1019 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020 infodir='${datarootdir}/info'
1025 libdir='${exec_prefix}/lib'
1026 localedir='${datarootdir}/locale'
1027 mandir='${datarootdir}/man'
1033 # If the previous option needs an argument, assign it.
1034 if test -n "$ac_prev"; then
1035 eval $ac_prev=\$ac_option
1041 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1048 case $ac_dashdash$ac_option in
1052 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055 bindir=$ac_optarg ;;
1057 -build | --build | --buil | --bui | --bu)
1058 ac_prev=build_alias ;;
1059 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060 build_alias=$ac_optarg ;;
1062 -cache-file | --cache-file | --cache-fil | --cache-fi \
1063 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064 ac_prev=cache_file ;;
1065 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067 cache_file=$ac_optarg ;;
1069 --config-cache | -C)
1070 cache_file=config.cache ;;
1072 -datadir | --datadir | --datadi | --datad)
1074 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075 datadir=$ac_optarg ;;
1077 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078 | --dataroo | --dataro | --datar)
1079 ac_prev=datarootdir ;;
1080 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082 datarootdir=$ac_optarg ;;
1084 -disable-* | --disable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_$ac_useropt"
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1098 eval enable_$ac_useropt=no ;;
1100 -docdir | --docdir | --docdi | --doc | --do)
1102 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103 docdir=$ac_optarg ;;
1105 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108 dvidir=$ac_optarg ;;
1110 -enable-* | --enable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid feature name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_$ac_useropt"
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval enable_$ac_useropt=\$ac_optarg ;;
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155 htmldir=$ac_optarg ;;
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1169 -libdir | --libdir | --libdi | --libd)
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
1246 -program-transform-name=* | --program-transform-name=* \
1247 | --program-transform-nam=* | --program-transform-na=* \
1248 | --program-transform-n=* | --program-transform-=* \
1249 | --program-transform=* | --program-transfor=* \
1250 | --program-transfo=* | --program-transf=* \
1251 | --program-trans=* | --program-tran=* \
1252 | --progr-tra=* | --program-tr=* | --program-t=*)
1253 program_transform_name=$ac_optarg ;;
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1260 -psdir | --psdir | --psdi | --psd | --ps)
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273 sbindir=$ac_optarg ;;
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284 sharedstatedir=$ac_optarg ;;
1286 -site | --site | --sit)
1288 -site=* | --site=* | --sit=*)
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error $? "invalid package name: $ac_useropt"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1328 eval with_$ac_useropt=\$ac_optarg ;;
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error $? "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1344 eval with_$ac_useropt=no ;;
1347 # Obsolete; use --with-x.
1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351 | --x-incl | --x-inc | --x-in | --x-i)
1352 ac_prev=x_includes ;;
1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355 x_includes=$ac_optarg ;;
1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359 ac_prev=x_libraries ;;
1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362 x_libraries=$ac_optarg ;;
1364 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information"
1369 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' | [0-9]* | *[!_$as_cr_alnum]* )
1373 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1375 eval $ac_envvar=\$ac_optarg
1376 export $ac_envvar ;;
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1389 if test -n "$ac_prev"; then
1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error $? "missing argument to $ac_option"
1394 if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1397 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 # Check all directory arguments for consistency.
1403 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1408 eval ac_val=\$$ac_var
1409 # Remove trailing slashes.
1412 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\$ac_val;;
1415 # Be sure to have absolute directory names.
1417 [\\/$]* | ?:[\\/]* ) continue;;
1418 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1428 target=$target_alias
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x; then
1432 if test "x$build_alias" = x; then
1433 cross_compiling=maybe
1434 elif test "x$build_alias" != "x$host_alias"; then
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442 test "$silent" = yes && exec 6>/dev/null
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 as_fn_error $? "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450 as_fn_error $? "pwd does not report name of working directory"
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455 ac_srcdir_defaulted=yes
1456 # Try the directory containing this script, then the parent directory.
1457 ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459 X"$as_myself" : 'X\(//\)[^/]' \| \
1460 X"$as_myself" : 'X\(//\)$' \| \
1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1485 ac_srcdir_defaulted=no
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1519 \`configure' configures libgnutls-extra 2.12.20 to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking ...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnutls-extra]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1582 --build=BUILD configure for building on BUILD [guessed]
1583 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1587 if test -n "$ac_init_help"; then
1588 case $ac_init_help in
1589 short | recursive ) echo "Configuration of libgnutls-extra 2.12.20:";;
1594 --disable-option-checking ignore unrecognized --enable/--with options
1595 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1596 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1597 --enable-silent-rules less verbose build output (undo: `make V=1')
1598 --disable-silent-rules verbose build output (undo: `make V=0')
1599 --disable-dependency-tracking speeds up one-time build
1600 --enable-dependency-tracking do not reject slow dependency extractors
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-static[=PKGS] build static libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606 --disable-rpath do not hardcode runtime library paths
1607 --enable-opaque-prf-input=DD
1608 enable Opaque PRF input using DD as extension type
1609 --disable-srp-authentication
1610 disable the SRP authentication support
1611 --disable-psk-authentication
1612 disable the PSK authentication support
1613 --disable-anon-authentication
1614 disable the anonymous authentication support
1615 --disable-camellia disable Camellia cipher
1616 --disable-extra-pki only enable the basic PKI stuff
1617 --disable-openpgp-authentication
1618 disable the OpenPGP authentication support
1619 --disable-session-ticket
1620 disable the SessionTicket extension support
1621 --enable-cryptodev enable cryptodev support
1622 --disable-openssl-compatibility
1623 disable the OpenSSL compatibility support
1624 --enable-ld-version-script
1625 enable linker version script (default is enabled
1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1633 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1634 --with-sysroot=DIR Search for dependent libraries within DIR
1635 (or the compiler's sysroot if not specified).
1636 --with-libgcrypt use libgcrypt as crypto library
1637 --with-gnu-ld assume the C compiler uses GNU ld default=no
1638 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
1639 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
1640 --with-libnettle-prefix[=DIR] search for libnettle in DIR/include and DIR/lib
1641 --without-libnettle-prefix don't search for libnettle in includedir and libdir
1642 --with-included-libtasn1
1643 use the included libtasn1
1644 --with-libtasn1-prefix[=DIR] search for libtasn1 in DIR/include and DIR/lib
1645 --without-libtasn1-prefix don't search for libtasn1 in includedir and libdir
1646 --with-lzo use experimental LZO compression
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1661 Report bugs to <bug-gnutls@gnu.org>.
1666 if test "$ac_init_help" = "recursive"; then
1667 # If there are subdirs, report their specific --help.
1668 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1669 test -d "$ac_dir" ||
1670 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1678 # A ".." for each directory in $ac_dir_suffix.
1679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1680 case $ac_top_builddir_sub in
1681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1685 ac_abs_top_builddir=$ac_pwd
1686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1687 # for backward compatibility:
1688 ac_top_builddir=$ac_top_build_prefix
1691 .) # We are building in place.
1693 ac_top_srcdir=$ac_top_builddir_sub
1694 ac_abs_top_srcdir=$ac_pwd ;;
1695 [\\/]* | ?:[\\/]* ) # Absolute name.
1696 ac_srcdir=$srcdir$ac_dir_suffix;
1697 ac_top_srcdir=$srcdir
1698 ac_abs_top_srcdir=$srcdir ;;
1700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1701 ac_top_srcdir=$ac_top_build_prefix$srcdir
1702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706 cd "$ac_dir" || { ac_status=$?; continue; }
1707 # Check for guested configure.
1708 if test -f "$ac_srcdir/configure.gnu"; then
1710 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1711 elif test -f "$ac_srcdir/configure"; then
1713 $SHELL "$ac_srcdir/configure" --help=recursive
1715 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717 cd "$ac_pwd" || { ac_status=$?; break; }
1721 test -n "$ac_init_help" && exit $ac_status
1722 if $ac_init_version; then
1724 libgnutls-extra configure 2.12.20
1725 generated by GNU Autoconf 2.69
1727 Copyright (C) 2012 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1734 ## ------------------------ ##
1735 ## Autoconf initialization. ##
1736 ## ------------------------ ##
1738 # ac_fn_c_try_compile LINENO
1739 # --------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_compile ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext
1745 if { { ac_try="$ac_compile"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_compile") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest.$ac_objext; then :
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_c_try_compile
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1818 ac_fn_c_check_header_mongrel ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if eval \${$3+:} false; then :
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1831 # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_header_compiler=yes
1842 ac_header_compiler=no
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856 ac_header_preproc=yes
1858 ac_header_preproc=no
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1864 # So? What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 ( $as_echo "## --------------------------------- ##
1884 ## Report this to bug-gnutls@gnu.org ##
1885 ## --------------------------------- ##"
1886 ) | sed "s/^/$as_me: WARNING: /" >&2
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1894 eval "$3=\$ac_header_compiler"
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_header_mongrel
1904 # ac_fn_c_try_run LINENO
1905 # ----------------------
1906 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907 # that executables *can* be run.
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_link"
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>&5
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922 { { case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_try") 2>&5
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; }; }; then :
1934 $as_echo "$as_me: program exited with status $ac_status" >&5
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 ac_retval=$ac_status
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1946 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists and can be compiled using the include files in
1949 # INCLUDES, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_compile ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_header_compile
1977 # ac_fn_c_try_link LINENO
1978 # -----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_c_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
2004 test -x conftest$ac_exeext
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_c_try_link
2023 # ac_fn_c_check_func LINENO FUNC VAR
2024 # ----------------------------------
2025 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2026 ac_fn_c_check_func ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2038 #define $2 innocuous_$2
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $2 (); below.
2042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2043 <limits.h> exists even on freestanding compilers. */
2046 # include <limits.h>
2048 # include <assert.h>
2053 /* Override any GCC internal prototype to avoid an error.
2054 Use char because int might match the return type of a GCC
2055 builtin and then its argument prototype would still apply. */
2060 /* The GNU C library defines this for functions which it implements
2061 to always fail with ENOSYS. Some functions are actually named
2062 something starting with __ and the normal name is an alias. */
2063 #if defined __stub_$2 || defined __stub___$2
2075 if ac_fn_c_try_link "$LINENO"; then :
2080 rm -f core conftest.err conftest.$ac_objext \
2081 conftest$ac_exeext conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_func
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2095 ac_fn_c_compute_int ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if test "$cross_compiling" = yes; then
2099 # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2108 return test_array [0];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 return test_array [0];
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid; break
2134 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135 if test $ac_lo -le $ac_mid; then
2139 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) < 0)];
2152 return test_array [0];
2158 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_lo=$ac_mid; break
2178 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2179 if test $ac_mid -le $ac_hi; then
2183 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 # Binary search between lo and hi bounds.
2194 while test "x$ac_lo" != "x$ac_hi"; do
2195 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2213 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2225 static long int longval () { return $2; }
2226 static unsigned long int ulongval () { return $2; }
2233 FILE *f = fopen ("conftest.val", "w");
2238 long int i = longval ();
2241 fprintf (f, "%ld", i);
2245 unsigned long int i = ulongval ();
2248 fprintf (f, "%lu", i);
2250 /* Do not output a trailing newline, as this causes \r\n confusion
2251 on some platforms. */
2252 return ferror (f) || fclose (f) != 0;
2258 if ac_fn_c_try_run "$LINENO"; then :
2259 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2264 conftest.$ac_objext conftest.beam conftest.$ac_ext
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 as_fn_set_status $ac_retval
2271 } # ac_fn_c_compute_int
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2276 It was created by libgnutls-extra $as_me 2.12.20, which was
2277 generated by GNU Autoconf 2.69. Invocation command line was
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2337 ac_must_keep_next=false
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2366 -* ) ac_must_keep_next=true ;;
2369 as_fn_append ac_configure_args " '$ac_arg'"
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2387 $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2391 # The following way of writing the cache mishandles newlines in values,
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2427 for ac_var in $ac_subst_vars
2429 eval ac_val=\$$ac_var
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 $as_echo "$ac_var='\''$ac_val'\''"
2437 if test -n "$ac_subst_files"; then
2438 $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2442 for ac_var in $ac_subst_files
2444 eval ac_val=\$$ac_var
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 $as_echo "$ac_var='\''$ac_val'\''"
2453 if test -s confdefs.h; then
2454 $as_echo "## ----------- ##
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 for ac_signal in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2477 $as_echo "/* confdefs.h */" > confdefs.h
2479 # Predefined preprocessor variables.
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2510 if test -n "$CONFIG_SITE"; then
2511 # We do not want a PATH search for config.site.
2512 case $CONFIG_SITE in #((
2513 -*) ac_site_file1=./$CONFIG_SITE;;
2514 */*) ac_site_file1=$CONFIG_SITE;;
2515 *) ac_site_file1=./$CONFIG_SITE;;
2517 elif test "x$prefix" != xNONE; then
2518 ac_site_file1=$prefix/share/config.site
2519 ac_site_file2=$prefix/etc/config.site
2521 ac_site_file1=$ac_default_prefix/share/config.site
2522 ac_site_file2=$ac_default_prefix/etc/config.site
2524 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2526 test "x$ac_site_file" = xNONE && continue
2527 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530 sed 's/^/| /' "$ac_site_file" >&5
2532 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2556 as_fn_append ac_header_list " sys/socket.h"
2557 # Check that the precious variables saved in the cache have kept the same
2559 ac_cache_corrupted=false
2560 for ac_var in $ac_precious_vars; do
2561 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562 eval ac_new_set=\$ac_env_${ac_var}_set
2563 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564 eval ac_new_val=\$ac_env_${ac_var}_value
2565 case $ac_old_set,$ac_new_set in
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573 ac_cache_corrupted=: ;;
2576 if test "x$ac_old_val" != "x$ac_new_val"; then
2577 # differences in whitespace do not lead to failure.
2578 ac_old_val_w=`echo x $ac_old_val`
2579 ac_new_val_w=`echo x $ac_new_val`
2580 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583 ac_cache_corrupted=:
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587 eval $ac_var=\$ac_old_val
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2590 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2592 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 # Pass precious variables to config.status.
2596 if test "$ac_new_set" = set; then
2598 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599 *) ac_arg=$ac_var=$ac_new_val ;;
2601 case " $ac_configure_args " in
2602 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2603 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607 if $ac_cache_corrupted; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2612 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2614 ## -------------------- ##
2615 ## Main body of script. ##
2616 ## -------------------- ##
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 for ac_dir in build-aux "$srcdir"/build-aux; do
2627 if test -f "$ac_dir/install-sh"; then
2629 ac_install_sh="$ac_aux_dir/install-sh -c"
2631 elif test -f "$ac_dir/install.sh"; then
2633 ac_install_sh="$ac_aux_dir/install.sh -c"
2635 elif test -f "$ac_dir/shtool"; then
2637 ac_install_sh="$ac_aux_dir/shtool install -c"
2641 if test -z "$ac_aux_dir"; then
2642 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2645 # These three variables are undocumented and unsupported,
2646 # and are intended to be withdrawn in a future Autoconf release.
2647 # They can cause serious problems if a builder's source tree is in a directory
2648 # whose full name contains unusual characters.
2649 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2650 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2651 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2656 am__api_version='1.11'
2658 # Find a good install program. We prefer a C program (faster),
2659 # so one script is as good as another. But avoid the broken or
2660 # incompatible versions:
2661 # SysV /etc/install, /usr/sbin/install
2662 # SunOS /usr/etc/install
2663 # IRIX /sbin/install
2665 # AmigaOS /C/install, which installs bootblocks on floppy discs
2666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669 # OS/2's system install, which has a completely different semantic
2670 # ./install, which can be erroneously created by make from ./install.sh.
2671 # Reject install programs that cannot install multiple files.
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2674 if test -z "$INSTALL"; then
2675 if ${ac_cv_path_install+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 # Account for people who put trailing slashes in PATH elements.
2684 case $as_dir/ in #((
2685 ./ | .// | /[cC]/* | \
2686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2687 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2690 # OSF1 and SCO ODT 3.0 have their own names for install.
2691 # Don't use installbsd from OSF since it installs stuff as root
2693 for ac_prog in ginstall scoinst install; do
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2696 if test $ac_prog = install &&
2697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698 # AIX install. It has an incompatible calling convention.
2700 elif test $ac_prog = install &&
2701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # program-specific install script used by HP pwplus--don't use.
2705 rm -rf conftest.one conftest.two conftest.dir
2706 echo one > conftest.one
2707 echo two > conftest.two
2709 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2710 test -s conftest.one && test -s conftest.two &&
2711 test -s conftest.dir/conftest.one &&
2712 test -s conftest.dir/conftest.two
2714 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 rm -rf conftest.one conftest.two conftest.dir
2730 if test "${ac_cv_path_install+set}" = set; then
2731 INSTALL=$ac_cv_path_install
2733 # As a last resort, use the slow shell script. Don't cache a
2734 # value for INSTALL within a source directory, because that will
2735 # break other packages using the cache if that directory is
2736 # removed, or if the value is a relative name.
2737 INSTALL=$ac_install_sh
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2741 $as_echo "$INSTALL" >&6; }
2743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2744 # It thinks the first close brace ends the variable substitution.
2745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2749 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2752 $as_echo_n "checking whether build environment is sane... " >&6; }
2755 echo timestamp > conftest.file
2756 # Reject unsafe characters in $srcdir or the absolute working directory
2757 # name. Accept space and tab only in the latter.
2761 *[\\\"\#\$\&\'\`$am_lf]*)
2762 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2765 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2766 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2769 # Do `set' in a subshell so we don't clobber the current shell's
2770 # arguments. Must try -L first in case configure is actually a
2771 # symlink; some systems play weird games with the mod time of symlinks
2772 # (eg FreeBSD returns the mod time of the symlink's containing
2775 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2776 if test "$*" = "X"; then
2778 set X `ls -t "$srcdir/configure" conftest.file`
2781 if test "$*" != "X $srcdir/configure conftest.file" \
2782 && test "$*" != "X conftest.file $srcdir/configure"; then
2784 # If neither matched, then we have a broken ls. This can happen
2785 # if, for instance, CONFIG_SHELL is bash and it inherits a
2786 # broken ls alias from the environment. This has actually
2787 # happened. Such a system could not be considered "sane".
2788 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2789 alias in your environment" "$LINENO" 5
2792 test "$2" = conftest.file
2798 as_fn_error $? "newly created file is older than distributed files!
2799 Check your system clock" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2802 $as_echo "yes" >&6; }
2803 test "$program_prefix" != NONE &&
2804 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2808 # Double any \ or $.
2809 # By default was `s,x,x', remove it if useless.
2810 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2811 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2813 # expand $ac_aux_dir to an absolute path
2814 am_aux_dir=`cd $ac_aux_dir && pwd`
2816 if test x"${MISSING+set}" != xset; then
2819 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2821 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --run true"; then
2826 am_missing_run="$MISSING --run "
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2830 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833 if test x"${install_sh}" != xset; then
2836 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2838 install_sh="\${SHELL} $am_aux_dir/install-sh"
2842 # Installed binaries are usually stripped using `strip' when the user
2843 # run `make install-strip'. However `strip' might not be the right
2844 # tool to use in cross-compilation environments, therefore Automake
2845 # will honor the `STRIP' environment variable to overrule this program.
2846 if test "$cross_compiling" != no; then
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}strip; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_STRIP+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$STRIP"; then
2856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 STRIP=$ac_cv_prog_STRIP
2876 if test -n "$STRIP"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2878 $as_echo "$STRIP" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2886 if test -z "$ac_cv_prog_STRIP"; then
2888 # Extract the first word of "strip", so it can be a program name with args.
2889 set dummy strip; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$ac_ct_STRIP"; then
2896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_STRIP="strip"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916 if test -n "$ac_ct_STRIP"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2918 $as_echo "$ac_ct_STRIP" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2924 if test "x$ac_ct_STRIP" = x; then
2927 case $cross_compiling:$ac_tool_warned in
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2936 STRIP="$ac_cv_prog_STRIP"
2940 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2943 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2944 if test -z "$MKDIR_P"; then
2945 if ${ac_cv_path_mkdir+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2952 test -z "$as_dir" && as_dir=.
2953 for ac_prog in mkdir gmkdir; do
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2956 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2957 'mkdir (GNU coreutils) '* | \
2958 'mkdir (coreutils) '* | \
2959 'mkdir (fileutils) '4.1*)
2960 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2970 test -d ./--version && rmdir ./--version
2971 if test "${ac_cv_path_mkdir+set}" = set; then
2972 MKDIR_P="$ac_cv_path_mkdir -p"
2974 # As a last resort, use the slow shell script. Don't cache a
2975 # value for MKDIR_P within a source directory, because that will
2976 # break other packages using the cache if that directory is
2977 # removed, or if the value is a relative name.
2978 MKDIR_P="$ac_install_sh -d"
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2982 $as_echo "$MKDIR_P" >&6; }
2987 [\\/$]* | ?:[\\/]*) ;;
2988 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2991 for ac_prog in gawk mawk nawk awk
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_AWK+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$AWK"; then
3001 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_AWK="$ac_prog"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 if test -n "$AWK"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3023 $as_echo "$AWK" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3030 test -n "$AWK" && break
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3034 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3036 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3037 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 cat >conftest.make <<\_ACEOF
3043 @echo '@@@%%%=$(MAKE)=@@@%%%'
3045 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3046 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3048 eval ac_cv_prog_make_${ac_make}_set=yes;;
3050 eval ac_cv_prog_make_${ac_make}_set=no;;
3054 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 SET_MAKE="MAKE=${MAKE-make}"
3064 rm -rf .tst 2>/dev/null
3065 mkdir .tst 2>/dev/null
3066 if test -d .tst; then
3071 rmdir .tst 2>/dev/null
3073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3075 # is not polluted with repeated "-I."
3076 am__isrc=' -I$(srcdir)'
3077 # test to see if srcdir already configured
3078 if test -f $srcdir/config.status; then
3079 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3083 # test whether we have cygpath
3084 if test -z "$CYGPATH_W"; then
3085 if (cygpath --version) >/dev/null 2>/dev/null; then
3086 CYGPATH_W='cygpath -w'
3093 # Define the identity of the package.
3094 PACKAGE='libgnutls-extra'
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE "$PACKAGE"
3103 cat >>confdefs.h <<_ACEOF
3104 #define VERSION "$VERSION"
3107 # Some tools Automake needs.
3109 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3123 # We need awk for the "check" target. The system "awk" is bad on
3125 # Always define AMTAR for backward compatibility. Yes, it's still used
3126 # in the wild :-( We should find a proper way to deprecate it ...
3129 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3135 # Check whether --enable-silent-rules was given.
3136 if test "${enable_silent_rules+set}" = set; then :
3137 enableval=$enable_silent_rules;
3140 case $enable_silent_rules in
3141 yes) AM_DEFAULT_VERBOSITY=0;;
3142 no) AM_DEFAULT_VERBOSITY=1;;
3143 *) AM_DEFAULT_VERBOSITY=0;;
3145 am_make=${MAKE-make}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3147 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3148 if ${am_cv_make_support_nested_variables+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 if $as_echo 'TRUE=$(BAR$(V))
3157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158 am_cv_make_support_nested_variables=yes
3160 am_cv_make_support_nested_variables=no
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3165 if test $am_cv_make_support_nested_variables = yes; then
3167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3169 AM_V=$AM_DEFAULT_VERBOSITY
3170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3174 ac_config_headers="$ac_config_headers config.h"
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_CC"; then
3223 # Extract the first word of "gcc", so it can be a program name with args.
3224 set dummy gcc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_CC"; then
3231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_CC="gcc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_CC" = x; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}cc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}cc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3315 if test -z "$CC"; then
3316 # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335 ac_prog_rejected=yes
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test $ac_prog_rejected = yes; then
3347 # We found a bogon in the path, so make sure we never use it.
3348 set dummy $ac_cv_prog_CC
3350 if test $# != 0; then
3351 # We chose a different compiler from the bogus one.
3352 # However, it has the same basename, so the bogon will be chosen
3353 # first if we set CC to just the basename; use the full file name.
3355 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3371 if test -z "$CC"; then
3372 if test -n "$ac_tool_prefix"; then
3373 for ac_prog in cl.exe
3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$CC" && break
3415 if test -z "$CC"; then
3417 for ac_prog in cl.exe
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$ac_ct_CC"; then
3427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_ac_ct_CC="$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 $as_echo "$ac_ct_CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -n "$ac_ct_CC" && break
3459 if test "x$ac_ct_CC" = x; then
3462 case $cross_compiling:$ac_tool_warned in
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3475 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details" "$LINENO" 5; }
3480 # Provide some information about the compiler.
3481 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484 for ac_option in --version -v -V -qversion; do
3485 { { ac_try="$ac_compiler $ac_option >&5"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494 if test -s conftest.err; then
3496 ... rest of stderr output deleted ...
3497 10q' conftest.err >conftest.er1
3498 cat conftest.er1 >&5
3500 rm -f conftest.er1 conftest.err
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 ac_clean_files_save=$ac_clean_files
3517 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3518 # Try to create an executable without -o first, disregard a.out.
3519 # It will help us diagnose broken compilers, and finding out an intuition
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3522 $as_echo_n "checking whether the C compiler works... " >&6; }
3523 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3525 # The possible output files:
3526 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529 for ac_file in $ac_files
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3538 if { { ac_try="$ac_link_default"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_link_default") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3551 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3552 # so that the user can short-circuit this test for compilers unknown to
3554 for ac_file in $ac_files ''
3556 test -f "$ac_file" || continue
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561 # We found the default executable, but exeext='' is most
3565 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3567 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 # We set ac_cv_exeext here because the later test for it is not
3570 # safe: cross compilers may not add the suffix if given an `-o'
3571 # argument, so we may need to know it at that point already.
3572 # Even if this section looks crufty: it has the advantage of
3579 test "$ac_cv_exeext" = no && ac_cv_exeext=
3584 if test -z "$ac_file"; then :
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 $as_echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error 77 "C compiler cannot create executables
3593 See \`config.log' for more details" "$LINENO" 5; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3599 $as_echo_n "checking for C compiler default output file name... " >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3601 $as_echo "$ac_file" >&6; }
3602 ac_exeext=$ac_cv_exeext
3604 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3605 ac_clean_files=$ac_clean_files_save
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3607 $as_echo_n "checking for suffix of executables... " >&6; }
3608 if { { ac_try="$ac_link"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link") 2>&5
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3620 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3621 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 for ac_file in conftest.exe conftest conftest.*; do
3624 test -f "$ac_file" || continue
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3636 See \`config.log' for more details" "$LINENO" 5; }
3638 rm -f conftest conftest$ac_cv_exeext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3640 $as_echo "$ac_cv_exeext" >&6; }
3642 rm -f conftest.$ac_ext
3643 EXEEXT=$ac_cv_exeext
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3651 FILE *f = fopen ("conftest.out", "w");
3652 return ferror (f) || fclose (f) != 0;
3658 ac_clean_files="$ac_clean_files conftest.out"
3659 # Check that the compiler produces executables we can run. If not, either
3660 # the compiler is broken, or we cross compile.
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3662 $as_echo_n "checking whether we are cross compiling... " >&6; }
3663 if test "$cross_compiling" != yes; then
3664 { { ac_try="$ac_link"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3675 if { ac_try='./conftest$ac_cv_exeext'
3676 { { case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_try") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; }; then
3688 if test "$cross_compiling" = maybe; then
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "cannot run C compiled programs.
3694 If you meant to cross compile, use \`--host'.
3695 See \`config.log' for more details" "$LINENO" 5; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3700 $as_echo "$cross_compiling" >&6; }
3702 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3703 ac_clean_files=$ac_clean_files_save
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3705 $as_echo_n "checking for suffix of object files... " >&6; }
3706 if ${ac_cv_objext+:} false; then :
3707 $as_echo_n "(cached) " >&6
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3720 rm -f conftest.o conftest.obj
3721 if { { ac_try="$ac_compile"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compile") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; then :
3732 for ac_file in conftest.o conftest.obj conftest.*; do
3733 test -f "$ac_file" || continue;
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot compute suffix of object files: cannot compile
3747 See \`config.log' for more details" "$LINENO" 5; }
3749 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3752 $as_echo "$ac_cv_objext" >&6; }
3753 OBJEXT=$ac_cv_objext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3756 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3757 if ${ac_cv_c_compiler_gnu+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3774 if ac_fn_c_try_compile "$LINENO"; then :
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3785 if test $ac_compiler_gnu = yes; then
3790 ac_test_CFLAGS=${CFLAGS+set}
3791 ac_save_CFLAGS=$CFLAGS
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3794 if ${ac_cv_prog_cc_g+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 ac_save_c_werror_flag=$ac_c_werror_flag
3798 ac_c_werror_flag=yes
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3812 if ac_fn_c_try_compile "$LINENO"; then :
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_c_werror_flag=$ac_save_c_werror_flag
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 if ac_fn_c_try_compile "$LINENO"; then :
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_c_werror_flag=$ac_save_c_werror_flag
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3854 $as_echo "$ac_cv_prog_cc_g" >&6; }
3855 if test "$ac_test_CFLAGS" = set; then
3856 CFLAGS=$ac_save_CFLAGS
3857 elif test $ac_cv_prog_cc_g = yes; then
3858 if test "$GCC" = yes; then
3864 if test "$GCC" = yes; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3871 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3872 if ${ac_cv_prog_cc_c89+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 ac_cv_prog_cc_c89=no
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3883 struct buf { int x; };
3884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3885 static char *e (p, i)
3891 static char *f (char * (*g) (char **, int), char **p, ...)
3896 s = g (p, va_arg (v,int));
3901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3902 function prototypes and stuff, but not '\xHH' hex character constants.
3903 These don't provoke an error unfortunately, instead are silently treated
3904 as 'x'. The following induces an error, until -std is added to get
3905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3906 array size at least. It's necessary to write '\x00'==0 to get something
3907 that's true only with -std. */
3908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3911 inside strings and character constants. */
3913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3915 int test (int i, double x);
3916 struct s1 {int (*f) (int a);};
3917 struct s2 {int (*f) (double a);};
3918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3932 CC="$ac_save_CC $ac_arg"
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934 ac_cv_prog_cc_c89=$ac_arg
3936 rm -f core conftest.err conftest.$ac_objext
3937 test "x$ac_cv_prog_cc_c89" != "xno" && break
3939 rm -f conftest.$ac_ext
3944 case "x$ac_cv_prog_cc_c89" in
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3947 $as_echo "none needed" >&6; } ;;
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 $as_echo "unsupported" >&6; } ;;
3952 CC="$CC $ac_cv_prog_cc_c89"
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3956 if test "x$ac_cv_prog_cc_c89" != xno; then :
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 DEPDIR="${am__leading_dot}deps"
3967 ac_config_commands="$ac_config_commands depfiles"
3970 am_make=${MAKE-make}
3971 cat > confinc << 'END'
3973 @echo this is the am__doit target
3976 # If we don't find an include directive, just comment out the code.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3978 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3982 # First try GNU make style include.
3983 echo "include confinc" > confmf
3984 # Ignore all kinds of additional output from `make'.
3985 case `$am_make -s -f confmf 2> /dev/null` in #(
3986 *the\ am__doit\ target*)
3992 # Now try BSD make style include.
3993 if test "$am__include" = "#"; then
3994 echo '.include "confinc"' > confmf
3995 case `$am_make -s -f confmf 2> /dev/null` in #(
3996 *the\ am__doit\ target*)
3997 am__include=.include
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4006 $as_echo "$_am_result" >&6; }
4007 rm -f confinc confmf
4009 # Check whether --enable-dependency-tracking was given.
4010 if test "${enable_dependency_tracking+set}" = set; then :
4011 enableval=$enable_dependency_tracking;
4014 if test "x$enable_dependency_tracking" != xno; then
4015 am_depcomp="$ac_aux_dir/depcomp"
4019 if test "x$enable_dependency_tracking" != xno; then
4029 depcc="$CC" am_compiler_list=
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4032 $as_echo_n "checking dependency style of $depcc... " >&6; }
4033 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4037 # We make a subdir and do the tests there. Otherwise we can end up
4038 # making bogus files that we don't know about and never remove. For
4039 # instance it was reported that on HP-UX the gcc test will end up
4040 # making a dummy file named `D' -- because `-MD' means `put the output
4044 # Copy depcomp to subdir because otherwise we won't find it if we're
4045 # using a relative directory.
4046 cp "$am_depcomp" conftest.dir
4048 # We will build objects and dependencies in a subdirectory because
4049 # it helps to detect inapplicable dependency modes. For instance
4050 # both Tru64's cc and ICC support -MD to output dependencies as a
4051 # side effect of compilation, but ICC will put the dependencies in
4052 # the current directory while Tru64 will put them in the object
4056 am_cv_CC_dependencies_compiler_type=none
4057 if test "$am_compiler_list" = ""; then
4058 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4061 case " $depcc " in #(
4062 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4065 for depmode in $am_compiler_list; do
4066 # Setup a source with many dependencies, because some compilers
4067 # like to wrap large dependency lists on column 80 (with \), and
4068 # we should not choose a depcomp mode which is confused by this.
4070 # We need to recreate these files for each test, as the compiler may
4071 # overwrite some of them when testing with obscure command lines.
4072 # This happens at least with the AIX C compiler.
4074 for i in 1 2 3 4 5 6; do
4075 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4076 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4077 # Solaris 8's {/usr,}/bin/sh.
4078 touch sub/conftst$i.h
4080 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4082 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4083 # mode. It turns out that the SunPro C++ compiler does not properly
4084 # handle `-M -o', and we need to detect this. Also, some Intel
4085 # versions had trouble with output in subdirs
4086 am__obj=sub/conftest.${OBJEXT-o}
4087 am__minus_obj="-o $am__obj"
4090 # This depmode causes a compiler race in universal mode.
4091 test "$am__universal" = false || continue
4094 # after this tag, mechanisms are not by side-effect, so they'll
4095 # only be used when explicitly requested
4096 if test "x$enable_dependency_tracking" = xyes; then
4102 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4103 # This compiler won't grok `-c -o', but also, the minuso test has
4104 # not run yet. These depmodes are late enough in the game, and
4105 # so weak that their functioning should not be impacted.
4106 am__obj=conftest.${OBJEXT-o}
4111 if depmode=$depmode \
4112 source=sub/conftest.c object=$am__obj \
4113 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4114 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4115 >/dev/null 2>conftest.err &&
4116 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4117 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4118 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4119 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4120 # icc doesn't choke on unknown options, it will just issue warnings
4121 # or remarks (even with -Werror). So we grep stderr for any message
4122 # that says an option was ignored or not supported.
4123 # When given -MP, icc 7.0 and 7.1 complain thusly:
4124 # icc: Command line warning: ignoring option '-M'; no argument required
4125 # The diagnosis changed in icc 8.0:
4126 # icc: Command line remark: option '-MP' not supported
4127 if (grep 'ignoring option' conftest.err ||
4128 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4129 am_cv_CC_dependencies_compiler_type=$depmode
4138 am_cv_CC_dependencies_compiler_type=none
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4143 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4144 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4147 test "x$enable_dependency_tracking" != xno \
4148 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4150 am__fastdepCC_FALSE='#'
4152 am__fastdepCC_TRUE='#'
4153 am__fastdepCC_FALSE=
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4164 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4169 if test -z "$CPP"; then
4170 if ${ac_cv_prog_CPP+:} false; then :
4171 $as_echo_n "(cached) " >&6
4173 # Double quotes because CPP needs to be expanded
4174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4177 for ac_c_preproc_warn_flag in '' yes
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error" is here to catch this case.
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4188 # include <limits.h>
4190 # include <assert.h>
4194 if ac_fn_c_try_cpp "$LINENO"; then :
4197 # Broken: fails on valid input.
4200 rm -f conftest.err conftest.i conftest.$ac_ext
4202 # OK, works on sane cases. Now check whether nonexistent headers
4203 # can be detected and how.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <ac_nonexistent.h>
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4209 # Broken: success on invalid input.
4212 # Passes both tests.
4216 rm -f conftest.err conftest.i conftest.$ac_ext
4219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220 rm -f conftest.i conftest.err conftest.$ac_ext
4221 if $ac_preproc_ok; then :
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4234 $as_echo "$CPP" >&6; }
4236 for ac_c_preproc_warn_flag in '' yes
4238 # Use a header file that comes with gcc, so configuring glibc
4239 # with a fresh cross-compiler works.
4240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4241 # <limits.h> exists even on freestanding compilers.
4242 # On the NeXT, cc -E runs the code through the compiler's parser,
4243 # not just through cpp. "Syntax error" is here to catch this case.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4247 # include <limits.h>
4249 # include <assert.h>
4253 if ac_fn_c_try_cpp "$LINENO"; then :
4256 # Broken: fails on valid input.
4259 rm -f conftest.err conftest.i conftest.$ac_ext
4261 # OK, works on sane cases. Now check whether nonexistent headers
4262 # can be detected and how.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <ac_nonexistent.h>
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4268 # Broken: success on invalid input.
4271 # Passes both tests.
4275 rm -f conftest.err conftest.i conftest.$ac_ext
4278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279 rm -f conftest.i conftest.err conftest.$ac_ext
4280 if $ac_preproc_ok; then :
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log' for more details" "$LINENO" 5; }
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4297 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4298 if ${ac_cv_path_GREP+:} false; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -z "$GREP"; then
4302 ac_path_GREP_found=false
4303 # Loop through the user's path and test for each of PROGNAME-LIST
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 test -z "$as_dir" && as_dir=.
4309 for ac_prog in grep ggrep; do
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4312 as_fn_executable_p "$ac_path_GREP" || continue
4313 # Check for GNU ac_path_GREP and select it if it is found.
4314 # Check for GNU $ac_path_GREP
4315 case `"$ac_path_GREP" --version 2>&1` in
4317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4320 $as_echo_n 0123456789 >"conftest.in"
4323 cat "conftest.in" "conftest.in" >"conftest.tmp"
4324 mv "conftest.tmp" "conftest.in"
4325 cp "conftest.in" "conftest.nl"
4326 $as_echo 'GREP' >> "conftest.nl"
4327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4329 as_fn_arith $ac_count + 1 && ac_count=$as_val
4330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4331 # Best one so far, save it but keep looking for a better one
4332 ac_cv_path_GREP="$ac_path_GREP"
4333 ac_path_GREP_max=$ac_count
4335 # 10*(2^10) chars as input seems more than enough
4336 test $ac_count -gt 10 && break
4338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341 $ac_path_GREP_found && break 3
4346 if test -z "$ac_cv_path_GREP"; then
4347 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4350 ac_cv_path_GREP=$GREP
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4355 $as_echo "$ac_cv_path_GREP" >&6; }
4356 GREP="$ac_cv_path_GREP"
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4360 $as_echo_n "checking for egrep... " >&6; }
4361 if ${ac_cv_path_EGREP+:} false; then :
4362 $as_echo_n "(cached) " >&6
4364 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4365 then ac_cv_path_EGREP="$GREP -E"
4367 if test -z "$EGREP"; then
4368 ac_path_EGREP_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in egrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4378 as_fn_executable_p "$ac_path_EGREP" || continue
4379 # Check for GNU ac_path_EGREP and select it if it is found.
4380 # Check for GNU $ac_path_EGREP
4381 case `"$ac_path_EGREP" --version 2>&1` in
4383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4386 $as_echo_n 0123456789 >"conftest.in"
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo 'EGREP' >> "conftest.nl"
4393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_EGREP="$ac_path_EGREP"
4399 ac_path_EGREP_max=$ac_count
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 $ac_path_EGREP_found && break 3
4412 if test -z "$ac_cv_path_EGREP"; then
4413 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4416 ac_cv_path_EGREP=$EGREP
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4422 $as_echo "$ac_cv_path_EGREP" >&6; }
4423 EGREP="$ac_cv_path_EGREP"
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4429 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4430 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4431 $as_echo_n "(cached) " >&6
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4444 gl_cv_c_amsterdam_compiler=yes
4446 gl_cv_c_amsterdam_compiler=no
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4453 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4454 if test -z "$AR"; then
4455 if test $gl_cv_c_amsterdam_compiler = yes; then
4457 if test -z "$ARFLAGS"; then
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}ar; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_prog_AR+:} false; then :
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$AR"; then
4470 ac_cv_prog_AR="$AR" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_AR="${ac_tool_prefix}ar"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test -n "$AR"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4492 $as_echo "$AR" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4500 if test -z "$ac_cv_prog_AR"; then
4502 # Extract the first word of "ar", so it can be a program name with args.
4503 set dummy ar; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 if test -n "$ac_ct_AR"; then
4510 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_ac_ct_AR="ar"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4530 if test -n "$ac_ct_AR"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4532 $as_echo "$ac_ct_AR" >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4538 if test "x$ac_ct_AR" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4553 if test -z "$ARFLAGS"; then
4558 if test -z "$ARFLAGS"; then
4564 if test -z "$RANLIB"; then
4565 if test $gl_cv_c_amsterdam_compiler = yes; then
4568 if test -n "$ac_tool_prefix"; then
4569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_RANLIB+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 if test -n "$RANLIB"; then
4577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 RANLIB=$ac_cv_prog_RANLIB
4597 if test -n "$RANLIB"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4599 $as_echo "$RANLIB" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4607 if test -z "$ac_cv_prog_RANLIB"; then
4608 ac_ct_RANLIB=$RANLIB
4609 # Extract the first word of "ranlib", so it can be a program name with args.
4610 set dummy ranlib; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 if test -n "$ac_ct_RANLIB"; then
4617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_ac_ct_RANLIB="ranlib"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4637 if test -n "$ac_ct_RANLIB"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4639 $as_echo "$ac_ct_RANLIB" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4645 if test "x$ac_ct_RANLIB" = x; then
4648 case $cross_compiling:$ac_tool_warned in
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652 ac_tool_warned=yes ;;
4654 RANLIB=$ac_ct_RANLIB
4657 RANLIB="$ac_cv_prog_RANLIB"
4664 # Make sure we can run config.sub.
4665 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4666 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4669 $as_echo_n "checking build system type... " >&6; }
4670 if ${ac_cv_build+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 ac_build_alias=$build_alias
4674 test "x$ac_build_alias" = x &&
4675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4676 test "x$ac_build_alias" = x &&
4677 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4683 $as_echo "$ac_cv_build" >&6; }
4684 case $ac_cv_build in
4686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4689 ac_save_IFS=$IFS; IFS='-'
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4703 $as_echo_n "checking host system type... " >&6; }
4704 if ${ac_cv_host+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 if test "x$host_alias" = x; then
4708 ac_cv_host=$ac_cv_build
4710 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4711 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4716 $as_echo "$ac_cv_host" >&6; }
4719 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4722 ac_save_IFS=$IFS; IFS='-'
4728 # Remember, the first character of IFS is used to create $*,
4729 # except with old shells:
4732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4736 $as_echo_n "checking for ANSI C header files... " >&6; }
4737 if ${ac_cv_header_stdc+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 ac_cv_header_stdc=yes
4758 ac_cv_header_stdc=no
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 if test $ac_cv_header_stdc = yes; then
4763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 $EGREP "memchr" >/dev/null 2>&1; then :
4773 ac_cv_header_stdc=no
4779 if test $ac_cv_header_stdc = yes; then
4780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4787 $EGREP "free" >/dev/null 2>&1; then :
4790 ac_cv_header_stdc=no
4796 if test $ac_cv_header_stdc = yes; then
4797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4798 if test "$cross_compiling" = yes; then :
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 #if ((' ' & 0x0FF) == 0x020)
4806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4809 # define ISLOWER(c) \
4810 (('a' <= (c) && (c) <= 'i') \
4811 || ('j' <= (c) && (c) <= 'r') \
4812 || ('s' <= (c) && (c) <= 'z'))
4813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4821 for (i = 0; i < 256; i++)
4822 if (XOR (islower (i), ISLOWER (i))
4823 || toupper (i) != TOUPPER (i))
4828 if ac_fn_c_try_run "$LINENO"; then :
4831 ac_cv_header_stdc=no
4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834 conftest.$ac_objext conftest.beam conftest.$ac_ext
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4840 $as_echo "$ac_cv_header_stdc" >&6; }
4841 if test $ac_cv_header_stdc = yes; then
4843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4847 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4849 inttypes.h stdint.h unistd.h
4851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4855 cat >>confdefs.h <<_ACEOF
4856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4868 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4875 if test "$MINIX" = yes; then
4877 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4880 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4883 $as_echo "#define _MINIX 1" >>confdefs.h
4890 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4897 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4898 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4904 # define __EXTENSIONS__ 1
4905 $ac_includes_default
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_cv_safe_to_define___extensions__=yes
4917 ac_cv_safe_to_define___extensions__=no
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4922 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4923 test $ac_cv_safe_to_define___extensions__ = yes &&
4924 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4926 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4928 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4930 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4932 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4934 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4945 # Code from module crypto/hmac-md5:
4946 # Code from module crypto/md5:
4947 # Code from module extensions:
4949 # Code from module havelib:
4950 # Code from module lib-msvc-compat:
4951 # Code from module lib-symbol-versions:
4952 # Code from module memxor:
4953 # Code from module stdalign:
4956 enable_win32_dll=yes
4959 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}as; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_AS+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$AS"; then
4969 ac_cv_prog_AS="$AS" # Let the user override the test.
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_AS="${ac_tool_prefix}as"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 if test -n "$AS"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4991 $as_echo "$AS" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4999 if test -z "$ac_cv_prog_AS"; then
5001 # Extract the first word of "as", so it can be a program name with args.
5002 set dummy as; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$ac_ct_AS"; then
5009 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_ac_ct_AS="as"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5029 if test -n "$ac_ct_AS"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5031 $as_echo "$ac_ct_AS" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5037 if test "x$ac_ct_AS" = x; then
5040 case $cross_compiling:$ac_tool_warned in
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5052 if test -n "$ac_tool_prefix"; then
5053 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_DLLTOOL+:} false; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$DLLTOOL"; then
5061 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 DLLTOOL=$ac_cv_prog_DLLTOOL
5081 if test -n "$DLLTOOL"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5083 $as_echo "$DLLTOOL" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5091 if test -z "$ac_cv_prog_DLLTOOL"; then
5092 ac_ct_DLLTOOL=$DLLTOOL
5093 # Extract the first word of "dlltool", so it can be a program name with args.
5094 set dummy dlltool; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$ac_ct_DLLTOOL"; then
5101 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5121 if test -n "$ac_ct_DLLTOOL"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5123 $as_echo "$ac_ct_DLLTOOL" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5129 if test "x$ac_ct_DLLTOOL" = x; then
5132 case $cross_compiling:$ac_tool_warned in
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5138 DLLTOOL=$ac_ct_DLLTOOL
5141 DLLTOOL="$ac_cv_prog_DLLTOOL"
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_OBJDUMP+:} false; then :
5150 $as_echo_n "(cached) " >&6
5152 if test -n "$OBJDUMP"; then
5153 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 OBJDUMP=$ac_cv_prog_OBJDUMP
5173 if test -n "$OBJDUMP"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5175 $as_echo "$OBJDUMP" >&6; }
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5183 if test -z "$ac_cv_prog_OBJDUMP"; then
5184 ac_ct_OBJDUMP=$OBJDUMP
5185 # Extract the first word of "objdump", so it can be a program name with args.
5186 set dummy objdump; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 if test -n "$ac_ct_OBJDUMP"; then
5193 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5213 if test -n "$ac_ct_OBJDUMP"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5215 $as_echo "$ac_ct_OBJDUMP" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5221 if test "x$ac_ct_OBJDUMP" = x; then
5224 case $cross_compiling:$ac_tool_warned in
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5230 OBJDUMP=$ac_ct_OBJDUMP
5233 OBJDUMP="$ac_cv_prog_OBJDUMP"
5239 test -z "$AS" && AS=as
5245 test -z "$DLLTOOL" && DLLTOOL=dlltool
5251 test -z "$OBJDUMP" && OBJDUMP=objdump
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5262 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5267 macro_version='2.4.2'
5268 macro_revision='1.3337'
5282 ltmain="$ac_aux_dir/ltmain.sh"
5284 # Backslashify metacharacters that are still active within
5285 # double-quoted strings.
5286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5288 # Same as above, but do not quote variable references.
5289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5291 # Sed substitution to delay expansion of an escaped shell variable in a
5292 # double_quote_subst'ed string.
5293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5295 # Sed substitution to delay expansion of an escaped single quote.
5296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5298 # Sed substitution to avoid accidental globbing in evaled expressions
5299 no_glob_subst='s/\*/\\\*/g'
5301 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5303 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5306 $as_echo_n "checking how to print strings... " >&6; }
5307 # Test print first, because it will be a builtin if present.
5308 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5311 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5314 # Use this function as a fallback that always works.
5315 func_fallback_echo ()
5317 eval 'cat <<_LTECHO_EOF
5321 ECHO='func_fallback_echo'
5324 # func_echo_all arg...
5325 # Invoke $ECHO with all args, space-separated.
5332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5333 $as_echo "printf" >&6; } ;;
5334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5335 $as_echo "print -r" >&6; } ;;
5336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5337 $as_echo "cat" >&6; } ;;
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5354 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5355 if ${ac_cv_path_SED+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5359 for ac_i in 1 2 3 4 5 6 7; do
5360 ac_script="$ac_script$as_nl$ac_script"
5362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5363 { ac_script=; unset ac_script;}
5364 if test -z "$SED"; then
5365 ac_path_SED_found=false
5366 # Loop through the user's path and test for each of PROGNAME-LIST
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_prog in sed gsed; do
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5375 as_fn_executable_p "$ac_path_SED" || continue
5376 # Check for GNU ac_path_SED and select it if it is found.
5377 # Check for GNU $ac_path_SED
5378 case `"$ac_path_SED" --version 2>&1` in
5380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5383 $as_echo_n 0123456789 >"conftest.in"
5386 cat "conftest.in" "conftest.in" >"conftest.tmp"
5387 mv "conftest.tmp" "conftest.in"
5388 cp "conftest.in" "conftest.nl"
5389 $as_echo '' >> "conftest.nl"
5390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5392 as_fn_arith $ac_count + 1 && ac_count=$as_val
5393 if test $ac_count -gt ${ac_path_SED_max-0}; then
5394 # Best one so far, save it but keep looking for a better one
5395 ac_cv_path_SED="$ac_path_SED"
5396 ac_path_SED_max=$ac_count
5398 # 10*(2^10) chars as input seems more than enough
5399 test $ac_count -gt 10 && break
5401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 $ac_path_SED_found && break 3
5409 if test -z "$ac_cv_path_SED"; then
5410 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5418 $as_echo "$ac_cv_path_SED" >&6; }
5419 SED="$ac_cv_path_SED"
5422 test -z "$SED" && SED=sed
5423 Xsed="$SED -e 1s/^X//"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5436 $as_echo_n "checking for fgrep... " >&6; }
5437 if ${ac_cv_path_FGREP+:} false; then :
5438 $as_echo_n "(cached) " >&6
5440 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5441 then ac_cv_path_FGREP="$GREP -F"
5443 if test -z "$FGREP"; then
5444 ac_path_FGREP_found=false
5445 # Loop through the user's path and test for each of PROGNAME-LIST
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5450 test -z "$as_dir" && as_dir=.
5451 for ac_prog in fgrep; do
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5454 as_fn_executable_p "$ac_path_FGREP" || continue
5455 # Check for GNU ac_path_FGREP and select it if it is found.
5456 # Check for GNU $ac_path_FGREP
5457 case `"$ac_path_FGREP" --version 2>&1` in
5459 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5462 $as_echo_n 0123456789 >"conftest.in"
5465 cat "conftest.in" "conftest.in" >"conftest.tmp"
5466 mv "conftest.tmp" "conftest.in"
5467 cp "conftest.in" "conftest.nl"
5468 $as_echo 'FGREP' >> "conftest.nl"
5469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5471 as_fn_arith $ac_count + 1 && ac_count=$as_val
5472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5473 # Best one so far, save it but keep looking for a better one
5474 ac_cv_path_FGREP="$ac_path_FGREP"
5475 ac_path_FGREP_max=$ac_count
5477 # 10*(2^10) chars as input seems more than enough
5478 test $ac_count -gt 10 && break
5480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5483 $ac_path_FGREP_found && break 3
5488 if test -z "$ac_cv_path_FGREP"; then
5489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5492 ac_cv_path_FGREP=$FGREP
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5498 $as_echo "$ac_cv_path_FGREP" >&6; }
5499 FGREP="$ac_cv_path_FGREP"
5502 test -z "$GREP" && GREP=grep
5522 # Check whether --with-gnu-ld was given.
5523 if test "${with_gnu_ld+set}" = set; then :
5524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5530 if test "$GCC" = yes; then
5531 # Check if gcc -print-prog-name=ld gives a path.
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5533 $as_echo_n "checking for ld used by $CC... " >&6; }
5536 # gcc leaves a trailing carriage return which upsets mingw
5537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5542 # Accept absolute paths.
5544 re_direlt='/[^/][^/]*/\.\./'
5545 # Canonicalize the pathname of ld
5546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5550 test -z "$LD" && LD="$ac_prog"
5553 # If it fails, then pretend we aren't using GCC.
5557 # If it is relative, then search for the first ld in PATH.
5561 elif test "$with_gnu_ld" = yes; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5563 $as_echo_n "checking for GNU ld... " >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5566 $as_echo_n "checking for non-GNU ld... " >&6; }
5568 if ${lt_cv_path_LD+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 if test -z "$LD"; then
5572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5573 for ac_dir in $PATH; do
5575 test -z "$ac_dir" && ac_dir=.
5576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5577 lt_cv_path_LD="$ac_dir/$ac_prog"
5578 # Check to see if the program is GNU ld. I'd rather use --version,
5579 # but apparently some variants of GNU ld only accept -v.
5580 # Break only if it was the GNU/non-GNU ld that we prefer.
5581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5582 *GNU* | *'with BFD'*)
5583 test "$with_gnu_ld" != no && break
5586 test "$with_gnu_ld" != yes && break
5593 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5598 if test -n "$LD"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5600 $as_echo "$LD" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5605 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5608 if ${lt_cv_prog_gnu_ld+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5612 case `$LD -v 2>&1 </dev/null` in
5613 *GNU* | *'with BFD'*)
5614 lt_cv_prog_gnu_ld=yes
5617 lt_cv_prog_gnu_ld=no
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5622 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5623 with_gnu_ld=$lt_cv_prog_gnu_ld
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5634 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5635 if ${lt_cv_path_NM+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 if test -n "$NM"; then
5639 # Let the user override the test.
5642 lt_nm_to_check="${ac_tool_prefix}nm"
5643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5644 lt_nm_to_check="$lt_nm_to_check nm"
5646 for lt_tmp_nm in $lt_nm_to_check; do
5647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5650 test -z "$ac_dir" && ac_dir=.
5651 tmp_nm="$ac_dir/$lt_tmp_nm"
5652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5653 # Check to see if the nm accepts a BSD-compat flag.
5654 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5655 # nm: unknown option "B" ignored
5656 # Tru64's nm complains that /dev/null is an invalid object file
5657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5658 */dev/null* | *'Invalid file or object type'*)
5659 lt_cv_path_NM="$tmp_nm -B"
5663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5665 lt_cv_path_NM="$tmp_nm -p"
5669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5670 continue # so that we can try to find one that supports BSD flags
5679 : ${lt_cv_path_NM=no}
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5683 $as_echo "$lt_cv_path_NM" >&6; }
5684 if test "$lt_cv_path_NM" != "no"; then
5687 # Didn't find any BSD compatible name lister, look for dumpbin.
5688 if test -n "$DUMPBIN"; then :
5689 # Let the user override the test.
5691 if test -n "$ac_tool_prefix"; then
5692 for ac_prog in dumpbin "link -dump"
5694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_DUMPBIN+:} false; then :
5699 $as_echo_n "(cached) " >&6
5701 if test -n "$DUMPBIN"; then
5702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 DUMPBIN=$ac_cv_prog_DUMPBIN
5722 if test -n "$DUMPBIN"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5724 $as_echo "$DUMPBIN" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5731 test -n "$DUMPBIN" && break
5734 if test -z "$DUMPBIN"; then
5735 ac_ct_DUMPBIN=$DUMPBIN
5736 for ac_prog in dumpbin "link -dump"
5738 # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 if test -n "$ac_ct_DUMPBIN"; then
5746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5766 if test -n "$ac_ct_DUMPBIN"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5768 $as_echo "$ac_ct_DUMPBIN" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5775 test -n "$ac_ct_DUMPBIN" && break
5778 if test "x$ac_ct_DUMPBIN" = x; then
5781 case $cross_compiling:$ac_tool_warned in
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5785 ac_tool_warned=yes ;;
5787 DUMPBIN=$ac_ct_DUMPBIN
5791 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5793 DUMPBIN="$DUMPBIN -symbols"
5801 if test "$DUMPBIN" != ":"; then
5805 test -z "$NM" && NM=nm
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5813 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5814 if ${lt_cv_nm_interface+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 lt_cv_nm_interface="BSD nm"
5818 echo "int some_variable = 0;" > conftest.$ac_ext
5819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5820 (eval "$ac_compile" 2>conftest.err)
5821 cat conftest.err >&5
5822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5824 cat conftest.err >&5
5825 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5826 cat conftest.out >&5
5827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5828 lt_cv_nm_interface="MS dumpbin"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5833 $as_echo "$lt_cv_nm_interface" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5836 $as_echo_n "checking whether ln -s works... " >&6; }
5838 if test "$LN_S" = "ln -s"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840 $as_echo "yes" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5843 $as_echo "no, using $LN_S" >&6; }
5846 # find the maximum length of command line arguments
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5848 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5849 if ${lt_cv_sys_max_cmd_len+:} false; then :
5850 $as_echo_n "(cached) " >&6
5857 # On DJGPP, this test can blow up pretty badly due to problems in libc
5858 # (any single argument exceeding 2000 bytes causes a buffer overrun
5859 # during glob expansion). Even if it were fixed, the result of this
5860 # check would be larger than it should be.
5861 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5865 # Under GNU Hurd, this test is not required because there is
5866 # no limit to the length of command line arguments.
5867 # Libtool will interpret -1 as no limit whatsoever
5868 lt_cv_sys_max_cmd_len=-1;
5871 cygwin* | mingw* | cegcc*)
5872 # On Win9x/ME, this test blows up -- it succeeds, but takes
5873 # about 5 minutes as the teststring grows exponentially.
5874 # Worse, since 9x/ME are not pre-emptively multitasking,
5875 # you end up with a "frozen" computer, even though with patience
5876 # the test eventually succeeds (with a max line length of 256k).
5877 # Instead, let's just punt: use the minimum linelength reported by
5878 # all of the supported platforms: 8192 (on NT/2K/XP).
5879 lt_cv_sys_max_cmd_len=8192;
5883 # On MiNT this can take a long time and run out of memory.
5884 lt_cv_sys_max_cmd_len=8192;
5888 # On AmigaOS with pdksh, this test takes hours, literally.
5889 # So we just punt and use a minimum line length of 8192.
5890 lt_cv_sys_max_cmd_len=8192;
5893 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5894 # This has been around since 386BSD, at least. Likely further.
5895 if test -x /sbin/sysctl; then
5896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5897 elif test -x /usr/sbin/sysctl; then
5898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5902 # And add a safety zone
5903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5908 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5909 lt_cv_sys_max_cmd_len=196608
5913 # The test takes a long time on OS/2.
5914 lt_cv_sys_max_cmd_len=8192
5918 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5919 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5920 # nice to cause kernel panics so lets avoid the loop below.
5921 # First set a reasonable default.
5922 lt_cv_sys_max_cmd_len=16384
5924 if test -x /sbin/sysconfig; then
5925 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5926 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5931 lt_cv_sys_max_cmd_len=102400
5933 sysv5* | sco5v6* | sysv4.2uw2*)
5934 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5935 if test -n "$kargmax"; then
5936 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5938 lt_cv_sys_max_cmd_len=32768
5942 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5943 if test -n "$lt_cv_sys_max_cmd_len"; then
5944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5947 # Make teststring a little bigger before we do anything with it.
5948 # a 1K string should be a reasonable start.
5949 for i in 1 2 3 4 5 6 7 8 ; do
5950 teststring=$teststring$teststring
5952 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5953 # If test is not a shell built-in, we'll probably end up computing a
5954 # maximum length that is only half of the actual maximum length, but
5956 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5957 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5958 test $i != 17 # 1/2 MB should be enough
5961 teststring=$teststring$teststring
5963 # Only check the string length outside the loop.
5964 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5966 # Add a significant safety factor because C++ compilers can tack on
5967 # massive amounts of additional arguments before passing them to the
5968 # linker. It appears as though 1/2 is a usable value.
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5976 if test -n $lt_cv_sys_max_cmd_len ; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5978 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5981 $as_echo "none" >&6; }
5983 max_cmd_len=$lt_cv_sys_max_cmd_len
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5995 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5996 # Try some XSI features
5999 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6001 && eval 'test $(( 1 + 1 )) -eq 2 \
6002 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6005 $as_echo "$xsi_shell" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6009 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6011 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6013 && lt_shell_append=yes
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6015 $as_echo "$lt_shell_append" >&6; }
6018 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6028 # test EBCDIC or ASCII
6029 case `echo X|tr X '\101'` in
6030 A) # ASCII based system
6031 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6032 lt_SP2NL='tr \040 \012'
6033 lt_NL2SP='tr \015\012 \040\040'
6035 *) # EBCDIC based system
6036 lt_SP2NL='tr \100 \n'
6037 lt_NL2SP='tr \r\n \100\100'
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6050 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6051 if ${lt_cv_to_host_file_cmd+:} false; then :
6052 $as_echo_n "(cached) " >&6
6057 *-*-mingw* ) # actually msys
6058 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6061 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6063 * ) # otherwise, assume *nix
6064 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6070 *-*-mingw* ) # actually msys
6071 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6074 lt_cv_to_host_file_cmd=func_convert_file_noop
6076 * ) # otherwise, assume *nix
6077 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6081 * ) # unhandled hosts (and "normal" native builds)
6082 lt_cv_to_host_file_cmd=func_convert_file_noop
6088 to_host_file_cmd=$lt_cv_to_host_file_cmd
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6090 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6097 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6098 if ${lt_cv_to_tool_file_cmd+:} false; then :
6099 $as_echo_n "(cached) " >&6
6101 #assume ordinary cross tools, or native build.
6102 lt_cv_to_tool_file_cmd=func_convert_file_noop
6106 *-*-mingw* ) # actually msys
6107 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6115 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6117 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6124 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6125 if ${lt_cv_ld_reload_flag+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 lt_cv_ld_reload_flag='-r'
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6131 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6132 reload_flag=$lt_cv_ld_reload_flag
6133 case $reload_flag in
6135 *) reload_flag=" $reload_flag" ;;
6137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6139 cygwin* | mingw* | pw32* | cegcc*)
6140 if test "$GCC" != yes; then
6145 if test "$GCC" = yes; then
6146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_OBJDUMP+:} false; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$OBJDUMP"; then
6170 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 OBJDUMP=$ac_cv_prog_OBJDUMP
6190 if test -n "$OBJDUMP"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6192 $as_echo "$OBJDUMP" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_OBJDUMP"; then
6201 ac_ct_OBJDUMP=$OBJDUMP
6202 # Extract the first word of "objdump", so it can be a program name with args.
6203 set dummy objdump; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6207 $as_echo_n "(cached) " >&6
6209 if test -n "$ac_ct_OBJDUMP"; then
6210 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6230 if test -n "$ac_ct_OBJDUMP"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6232 $as_echo "$ac_ct_OBJDUMP" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_OBJDUMP" = x; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6247 OBJDUMP=$ac_ct_OBJDUMP
6250 OBJDUMP="$ac_cv_prog_OBJDUMP"
6253 test -z "$OBJDUMP" && OBJDUMP=objdump
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6261 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6262 if ${lt_cv_deplibs_check_method+:} false; then :
6263 $as_echo_n "(cached) " >&6
6265 lt_cv_file_magic_cmd='$MAGIC_CMD'
6266 lt_cv_file_magic_test_file=
6267 lt_cv_deplibs_check_method='unknown'
6268 # Need to set the preceding variable on all platforms that support
6269 # interlibrary dependencies.
6270 # 'none' -- dependencies not supported.
6271 # `unknown' -- same as none, but documents that we really don't know.
6272 # 'pass_all' -- all dependencies passed with no checks.
6273 # 'test_compile' -- check by making test program.
6274 # 'file_magic [[regex]]' -- check by looking for files in library path
6275 # which responds to the $file_magic_cmd with a given extended regex.
6276 # If you have `file' or equivalent on your system and you're not sure
6277 # whether `pass_all' will *always* work, you probably want this one.
6281 lt_cv_deplibs_check_method=pass_all
6285 lt_cv_deplibs_check_method=pass_all
6289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6290 lt_cv_file_magic_cmd='/usr/bin/file -L'
6291 lt_cv_file_magic_test_file=/shlib/libc.so
6295 # func_win32_libid is a shell function defined in ltmain.sh
6296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6297 lt_cv_file_magic_cmd='func_win32_libid'
6301 # Base MSYS/MinGW do not provide the 'file' command needed by
6302 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6303 # unless we find 'file', for example because we are cross-compiling.
6304 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6305 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6307 lt_cv_file_magic_cmd='func_win32_libid'
6309 # Keep this pattern in sync with the one in func_win32_libid.
6310 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6311 lt_cv_file_magic_cmd='$OBJDUMP -f'
6316 # use the weaker test based on 'objdump'. See mingw*.
6317 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6318 lt_cv_file_magic_cmd='$OBJDUMP -f'
6321 darwin* | rhapsody*)
6322 lt_cv_deplibs_check_method=pass_all
6325 freebsd* | dragonfly*)
6326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6329 # Not sure whether the presence of OpenBSD here was a mistake.
6330 # Let's accept both of them until this is cleared up.
6331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332 lt_cv_file_magic_cmd=/usr/bin/file
6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6337 lt_cv_deplibs_check_method=pass_all
6342 lt_cv_deplibs_check_method=pass_all
6346 lt_cv_deplibs_check_method=pass_all
6349 hpux10.20* | hpux11*)
6350 lt_cv_file_magic_cmd=/usr/bin/file
6353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6354 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6357 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]'
6358 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6362 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6368 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6372 irix5* | irix6* | nonstopux*)
6374 *-32|*"-32 ") libmagic=32-bit;;
6375 *-n32|*"-n32 ") libmagic=N32;;
6376 *-64|*"-64 ") libmagic=64-bit;;
6377 *) libmagic=never-match;;
6379 lt_cv_deplibs_check_method=pass_all
6382 # This must be glibc/ELF.
6383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6384 lt_cv_deplibs_check_method=pass_all
6387 netbsd* | netbsdelf*-gnu)
6388 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6397 lt_cv_file_magic_cmd=/usr/bin/file
6398 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6402 lt_cv_deplibs_check_method=pass_all
6406 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6413 osf3* | osf4* | osf5*)
6414 lt_cv_deplibs_check_method=pass_all
6418 lt_cv_deplibs_check_method=pass_all
6422 lt_cv_deplibs_check_method=pass_all
6425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6426 lt_cv_deplibs_check_method=pass_all
6430 case $host_vendor in
6432 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]'
6433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6436 lt_cv_deplibs_check_method=pass_all
6439 lt_cv_file_magic_cmd='/bin/file'
6440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6443 lt_cv_file_magic_cmd='/bin/file'
6444 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6445 lt_cv_file_magic_test_file=/lib/libc.so
6448 lt_cv_deplibs_check_method=pass_all
6451 lt_cv_deplibs_check_method=pass_all
6457 lt_cv_deplibs_check_method=pass_all
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6463 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6467 if test "$build" = "$host"; then
6470 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6473 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6479 file_magic_cmd=$lt_cv_file_magic_cmd
6480 deplibs_check_method=$lt_cv_deplibs_check_method
6481 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_DLLTOOL+:} false; then :
6510 $as_echo_n "(cached) " >&6
6512 if test -n "$DLLTOOL"; then
6513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 DLLTOOL=$ac_cv_prog_DLLTOOL
6533 if test -n "$DLLTOOL"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6535 $as_echo "$DLLTOOL" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6543 if test -z "$ac_cv_prog_DLLTOOL"; then
6544 ac_ct_DLLTOOL=$DLLTOOL
6545 # Extract the first word of "dlltool", so it can be a program name with args.
6546 set dummy dlltool; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6550 $as_echo_n "(cached) " >&6
6552 if test -n "$ac_ct_DLLTOOL"; then
6553 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6573 if test -n "$ac_ct_DLLTOOL"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6575 $as_echo "$ac_ct_DLLTOOL" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_ct_DLLTOOL" = x; then
6584 case $cross_compiling:$ac_tool_warned in
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6590 DLLTOOL=$ac_ct_DLLTOOL
6593 DLLTOOL="$ac_cv_prog_DLLTOOL"
6596 test -z "$DLLTOOL" && DLLTOOL=dlltool
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6605 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6606 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6607 $as_echo_n "(cached) " >&6
6609 lt_cv_sharedlib_from_linklib_cmd='unknown'
6612 cygwin* | mingw* | pw32* | cegcc*)
6613 # two different shell functions defined in ltmain.sh
6614 # decide which to use based on capabilities of $DLLTOOL
6615 case `$DLLTOOL --help 2>&1` in
6616 *--identify-strict*)
6617 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6620 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6625 # fallback: assume linklib IS sharedlib
6626 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6632 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6633 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6634 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6642 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_AR+:} false; then :
6650 $as_echo_n "(cached) " >&6
6652 if test -n "$AR"; then
6653 ac_cv_prog_AR="$AR" # Let the user override the test.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 if test -n "$AR"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6675 $as_echo "$AR" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6682 test -n "$AR" && break
6685 if test -z "$AR"; then
6689 # Extract the first word of "$ac_prog", so it can be a program name with args.
6690 set dummy $ac_prog; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$ac_ct_AR"; then
6697 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_ac_ct_AR="$ac_prog"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6717 if test -n "$ac_ct_AR"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6719 $as_echo "$ac_ct_AR" >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6726 test -n "$ac_ct_AR" && break
6729 if test "x$ac_ct_AR" = x; then
6732 case $cross_compiling:$ac_tool_warned in
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6756 $as_echo_n "checking for archiver @FILE support... " >&6; }
6757 if ${lt_cv_ar_at_file+:} false; then :
6758 $as_echo_n "(cached) " >&6
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 echo conftest.$ac_objext > conftest.lst
6774 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6776 (eval $lt_ar_try) 2>&5
6778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779 test $ac_status = 0; }
6780 if test "$ac_status" -eq 0; then
6781 # Ensure the archiver fails upon bogus file names.
6782 rm -f conftest.$ac_objext libconftest.a
6783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6784 (eval $lt_ar_try) 2>&5
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; }
6788 if test "$ac_status" -ne 0; then
6792 rm -f conftest.* libconftest.a
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6799 $as_echo "$lt_cv_ar_at_file" >&6; }
6801 if test "x$lt_cv_ar_at_file" = xno; then
6804 archiver_list_spec=$lt_cv_ar_at_file
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_STRIP+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 if test -n "$STRIP"; then
6822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6844 $as_echo "$STRIP" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_STRIP"; then
6854 # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 if test -n "$ac_ct_STRIP"; then
6862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_ac_ct_STRIP="strip"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6884 $as_echo "$ac_ct_STRIP" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_STRIP" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6902 STRIP="$ac_cv_prog_STRIP"
6905 test -z "$STRIP" && STRIP=:
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_RANLIB+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$RANLIB"; then
6921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6943 $as_echo "$RANLIB" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952 ac_ct_RANLIB=$RANLIB
6953 # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6958 $as_echo_n "(cached) " >&6
6960 if test -n "$ac_ct_RANLIB"; then
6961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_RANLIB="ranlib"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6983 $as_echo "$ac_ct_RANLIB" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6989 if test "x$ac_ct_RANLIB" = x; then
6992 case $cross_compiling:$ac_tool_warned in
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6998 RANLIB=$ac_ct_RANLIB
7001 RANLIB="$ac_cv_prog_RANLIB"
7004 test -z "$RANLIB" && RANLIB=:
7011 # Determine commands to create old-style static archives.
7012 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7013 old_postinstall_cmds='chmod 644 $oldlib'
7014 old_postuninstall_cmds=
7016 if test -n "$RANLIB"; then
7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7025 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7030 lock_old_archive_extraction=yes ;;
7032 lock_old_archive_extraction=no ;;
7073 # If no C compiler was specified, use CC.
7076 # If no C compiler flags were specified, use CFLAGS.
7077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079 # Allow CC to be a program name with arguments.
7083 # Check for command to grab the raw symbol name followed by C symbol from nm.
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7086 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7087 $as_echo_n "(cached) " >&6
7090 # These are sane defaults that work on at least a few old systems.
7091 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7093 # Character class describing NM global symbol codes.
7094 symcode='[BCDEGRST]'
7096 # Regexp to match symbols that can be accessed directly from C.
7097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7099 # Define system-specific variables.
7104 cygwin* | mingw* | pw32* | cegcc*)
7105 symcode='[ABCDGISTW]'
7108 if test "$host_cpu" = ia64; then
7109 symcode='[ABCDEGRST]'
7113 symcode='[BCDEGRST]'
7116 symcode='[BCDEGQRST]'
7127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7135 # If we're using GNU nm, then use its standard symbol codes.
7136 case `$NM -V 2>&1` in
7137 *GNU* | *'with BFD'*)
7138 symcode='[ABCDGIRSTW]' ;;
7141 # Transform an extracted symbol line into a proper C declaration.
7142 # Some systems (esp. on ia64) link data and code symbols differently,
7143 # so use this general approach.
7144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7146 # Transform an extracted symbol line into symbol name and symbol address
7147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7148 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'"
7150 # Handle CRLF in mingw tool chain
7154 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7158 # Try without a prefix underscore, then with it.
7159 for ac_symprfx in "" "_"; do
7161 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7162 symxfrm="\\1 $ac_symprfx\\2 \\2"
7164 # Write the raw and C identifiers.
7165 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7166 # Fake it for dumpbin and say T for any non-static function
7167 # and D for any global variable.
7168 # Also find C++ and __fastcall symbols from MSVC++,
7169 # which start with @ or ?.
7170 lt_cv_sys_global_symbol_pipe="$AWK '"\
7171 " {last_section=section; section=\$ 3};"\
7172 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7173 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7174 " \$ 0!~/External *\|/{next};"\
7175 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7176 " {if(hide[section]) next};"\
7177 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7178 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7179 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7180 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7181 " ' prfx=^$ac_symprfx"
7183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7185 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7187 # Check to see that the pipe works correctly.
7191 cat > conftest.$ac_ext <<_LT_EOF
7196 void nm_test_func(void);
7197 void nm_test_func(void){}
7201 int main(){nm_test_var='a';nm_test_func();return(0);}
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 # Now try to grab the symbols.
7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7212 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; } && test -s "$nlist"; then
7216 # Try sorting and uniquifying the output.
7217 if sort "$nlist" | uniq > "$nlist"T; then
7218 mv -f "$nlist"T "$nlist"
7223 # Make sure that we snagged all the symbols we need.
7224 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7225 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7226 cat <<_LT_EOF > conftest.$ac_ext
7227 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7228 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7229 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7230 relocations are performed -- see ld's documentation on pseudo-relocs. */
7231 # define LT_DLSYM_CONST
7232 #elif defined(__osf__)
7233 /* This system does not cope well with relocations in const data. */
7234 # define LT_DLSYM_CONST
7236 # define LT_DLSYM_CONST const
7244 # Now generate the symbol file.
7245 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7247 cat <<_LT_EOF >> conftest.$ac_ext
7249 /* The mapping between symbol names and symbols. */
7250 LT_DLSYM_CONST struct {
7254 lt__PROGRAM__LTX_preloaded_symbols[] =
7256 { "@PROGRAM@", (void *) 0 },
7258 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7259 cat <<\_LT_EOF >> conftest.$ac_ext
7263 /* This works around a problem in FreeBSD linker */
7264 #ifdef FREEBSD_WORKAROUND
7265 static const void *lt_preloaded_setup() {
7266 return lt__PROGRAM__LTX_preloaded_symbols;
7274 # Now try linking the two files.
7275 mv conftest.$ac_objext conftstm.$ac_objext
7276 lt_globsym_save_LIBS=$LIBS
7277 lt_globsym_save_CFLAGS=$CFLAGS
7278 LIBS="conftstm.$ac_objext"
7279 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7281 (eval $ac_link) 2>&5
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7287 LIBS=$lt_globsym_save_LIBS
7288 CFLAGS=$lt_globsym_save_CFLAGS
7290 echo "cannot find nm_test_func in $nlist" >&5
7293 echo "cannot find nm_test_var in $nlist" >&5
7296 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7299 echo "$progname: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7302 rm -rf conftest* conftst*
7304 # Do not use the global_symbol_pipe unless it works.
7305 if test "$pipe_works" = yes; then
7308 lt_cv_sys_global_symbol_pipe=
7314 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7315 lt_cv_sys_global_symbol_to_cdecl=
7317 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7319 $as_echo "failed" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7322 $as_echo "ok" >&6; }
7325 # Response file support.
7326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7327 nm_file_list_spec='@'
7328 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7329 nm_file_list_spec='@'
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7359 $as_echo_n "checking for sysroot... " >&6; }
7361 # Check whether --with-sysroot was given.
7362 if test "${with_sysroot+set}" = set; then :
7363 withval=$with_sysroot;
7370 case ${with_sysroot} in #(
7372 if test "$GCC" = yes; then
7373 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7377 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7383 $as_echo "${with_sysroot}" >&6; }
7384 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7389 $as_echo "${lt_sysroot:-no}" >&6; }
7395 # Check whether --enable-libtool-lock was given.
7396 if test "${enable_libtool_lock+set}" = set; then :
7397 enableval=$enable_libtool_lock;
7400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7402 # Some flags need to be propagated to the compiler or linker for good
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.$ac_objext` in
7425 # Find out which ABI we are using.
7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 if test "$lt_cv_prog_gnu_ld" = yes; then
7433 case `/usr/bin/file conftest.$ac_objext` in
7435 LD="${LD-ld} -melf32bsmip"
7438 LD="${LD-ld} -melf32bmipn32"
7441 LD="${LD-ld} -melf64bmip"
7445 case `/usr/bin/file conftest.$ac_objext` in
7461 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7462 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7463 # Find out which ABI we are using.
7464 echo 'int i;' > conftest.$ac_ext
7465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466 (eval $ac_compile) 2>&5
7468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 case `/usr/bin/file conftest.o` in
7473 x86_64-*kfreebsd*-gnu)
7474 LD="${LD-ld} -m elf_i386_fbsd"
7477 LD="${LD-ld} -m elf_i386"
7479 ppc64-*linux*|powerpc64-*linux*)
7480 LD="${LD-ld} -m elf32ppclinux"
7483 LD="${LD-ld} -m elf_s390"
7486 LD="${LD-ld} -m elf32_sparc"
7492 x86_64-*kfreebsd*-gnu)
7493 LD="${LD-ld} -m elf_x86_64_fbsd"
7496 LD="${LD-ld} -m elf_x86_64"
7498 ppc*-*linux*|powerpc*-*linux*)
7499 LD="${LD-ld} -m elf64ppc"
7501 s390*-*linux*|s390*-*tpf*)
7502 LD="${LD-ld} -m elf64_s390"
7505 LD="${LD-ld} -m elf64_sparc"
7515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7516 SAVE_CFLAGS="$CFLAGS"
7517 CFLAGS="$CFLAGS -belf"
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7519 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7520 if ${lt_cv_cc_needs_belf+:} false; then :
7521 $as_echo_n "(cached) " >&6
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 lt_cv_cc_needs_belf=yes
7543 lt_cv_cc_needs_belf=no
7545 rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7555 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7556 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7557 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7558 CFLAGS="$SAVE_CFLAGS"
7562 # Find out which ABI we are using.
7563 echo 'int i;' > conftest.$ac_ext
7564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565 (eval $ac_compile) 2>&5
7567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568 test $ac_status = 0; }; then
7569 case `/usr/bin/file conftest.o` in
7571 case $lt_cv_prog_gnu_ld in
7575 LD="${LD-ld} -m elf_x86_64"
7578 LD="${LD-ld} -m elf64_sparc"
7581 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7582 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7587 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7599 need_locks="$enable_libtool_lock"
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}mt; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 if test -n "$MANIFEST_TOOL"; then
7610 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7630 if test -n "$MANIFEST_TOOL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7632 $as_echo "$MANIFEST_TOOL" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7640 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7641 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7642 # Extract the first word of "mt", so it can be a program name with args.
7643 set dummy mt; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7647 $as_echo_n "(cached) " >&6
7649 if test -n "$ac_ct_MANIFEST_TOOL"; then
7650 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7670 if test -n "$ac_ct_MANIFEST_TOOL"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7672 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7678 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7681 case $cross_compiling:$ac_tool_warned in
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7687 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7690 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7693 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7695 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7696 if ${lt_cv_path_mainfest_tool+:} false; then :
7697 $as_echo_n "(cached) " >&6
7699 lt_cv_path_mainfest_tool=no
7700 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7701 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7702 cat conftest.err >&5
7703 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7704 lt_cv_path_mainfest_tool=yes
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7709 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7710 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7720 rhapsody* | darwin*)
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7727 $as_echo_n "(cached) " >&6
7729 if test -n "$DSYMUTIL"; then
7730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7750 if test -n "$DSYMUTIL"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7752 $as_echo "$DSYMUTIL" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7760 if test -z "$ac_cv_prog_DSYMUTIL"; then
7761 ac_ct_DSYMUTIL=$DSYMUTIL
7762 # Extract the first word of "dsymutil", so it can be a program name with args.
7763 set dummy dsymutil; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7767 $as_echo_n "(cached) " >&6
7769 if test -n "$ac_ct_DSYMUTIL"; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7790 if test -n "$ac_ct_DSYMUTIL"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7798 if test "x$ac_ct_DSYMUTIL" = x; then
7801 case $cross_compiling:$ac_tool_warned in
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7807 DSYMUTIL=$ac_ct_DSYMUTIL
7810 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7813 if test -n "$ac_tool_prefix"; then
7814 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_NMEDIT+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$NMEDIT"; then
7822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 NMEDIT=$ac_cv_prog_NMEDIT
7842 if test -n "$NMEDIT"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7844 $as_echo "$NMEDIT" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7852 if test -z "$ac_cv_prog_NMEDIT"; then
7853 ac_ct_NMEDIT=$NMEDIT
7854 # Extract the first word of "nmedit", so it can be a program name with args.
7855 set dummy nmedit; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7859 $as_echo_n "(cached) " >&6
7861 if test -n "$ac_ct_NMEDIT"; then
7862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7882 if test -n "$ac_ct_NMEDIT"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7884 $as_echo "$ac_ct_NMEDIT" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7890 if test "x$ac_ct_NMEDIT" = x; then
7893 case $cross_compiling:$ac_tool_warned in
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897 ac_tool_warned=yes ;;
7899 NMEDIT=$ac_ct_NMEDIT
7902 NMEDIT="$ac_cv_prog_NMEDIT"
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_LIPO+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$LIPO"; then
7914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 LIPO=$ac_cv_prog_LIPO
7934 if test -n "$LIPO"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7936 $as_echo "$LIPO" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7944 if test -z "$ac_cv_prog_LIPO"; then
7946 # Extract the first word of "lipo", so it can be a program name with args.
7947 set dummy lipo; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$ac_ct_LIPO"; then
7954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_ac_ct_LIPO="lipo"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7974 if test -n "$ac_ct_LIPO"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7976 $as_echo "$ac_ct_LIPO" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7982 if test "x$ac_ct_LIPO" = x; then
7985 case $cross_compiling:$ac_tool_warned in
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7994 LIPO="$ac_cv_prog_LIPO"
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}otool; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_OTOOL+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$OTOOL"; then
8006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 OTOOL=$ac_cv_prog_OTOOL
8026 if test -n "$OTOOL"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8028 $as_echo "$OTOOL" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8036 if test -z "$ac_cv_prog_OTOOL"; then
8038 # Extract the first word of "otool", so it can be a program name with args.
8039 set dummy otool; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8043 $as_echo_n "(cached) " >&6
8045 if test -n "$ac_ct_OTOOL"; then
8046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_ac_ct_OTOOL="otool"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8066 if test -n "$ac_ct_OTOOL"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8068 $as_echo "$ac_ct_OTOOL" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8074 if test "x$ac_ct_OTOOL" = x; then
8077 case $cross_compiling:$ac_tool_warned in
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8086 OTOOL="$ac_cv_prog_OTOOL"
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_prog_OTOOL64+:} false; then :
8095 $as_echo_n "(cached) " >&6
8097 if test -n "$OTOOL64"; then
8098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 OTOOL64=$ac_cv_prog_OTOOL64
8118 if test -n "$OTOOL64"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8120 $as_echo "$OTOOL64" >&6; }
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8128 if test -z "$ac_cv_prog_OTOOL64"; then
8129 ac_ct_OTOOL64=$OTOOL64
8130 # Extract the first word of "otool64", so it can be a program name with args.
8131 set dummy otool64; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$ac_ct_OTOOL64"; then
8138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_ac_ct_OTOOL64="otool64"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8158 if test -n "$ac_ct_OTOOL64"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8160 $as_echo "$ac_ct_OTOOL64" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8166 if test "x$ac_ct_OTOOL64" = x; then
8169 case $cross_compiling:$ac_tool_warned in
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8175 OTOOL64=$ac_ct_OTOOL64
8178 OTOOL64="$ac_cv_prog_OTOOL64"
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8208 $as_echo_n "checking for -single_module linker flag... " >&6; }
8209 if ${lt_cv_apple_cc_single_mod+:} false; then :
8210 $as_echo_n "(cached) " >&6
8212 lt_cv_apple_cc_single_mod=no
8213 if test -z "${LT_MULTI_MODULE}"; then
8214 # By default we will add the -single_module flag. You can override
8215 # by either setting the environment variable LT_MULTI_MODULE
8216 # non-empty at configure time, or by adding -multi_module to the
8218 rm -rf libconftest.dylib*
8219 echo "int foo(void){return 1;}" > conftest.c
8220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8221 -dynamiclib -Wl,-single_module conftest.c" >&5
8222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8225 # If there is a non-empty error log, and "single_module"
8226 # appears in it, assume the flag caused a linker warning
8227 if test -s conftest.err && $GREP single_module conftest.err; then
8228 cat conftest.err >&5
8229 # Otherwise, if the output was created with a 0 exit code from
8230 # the compiler, it worked.
8231 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8232 lt_cv_apple_cc_single_mod=yes
8234 cat conftest.err >&5
8236 rm -rf libconftest.dylib*
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8241 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8244 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8245 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 lt_cv_ld_exported_symbols_list=no
8249 save_LDFLAGS=$LDFLAGS
8250 echo "_main" > conftest.sym
8251 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 lt_cv_ld_exported_symbols_list=yes
8266 lt_cv_ld_exported_symbols_list=no
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 LDFLAGS="$save_LDFLAGS"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8274 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8277 $as_echo_n "checking for -force_load linker flag... " >&6; }
8278 if ${lt_cv_ld_force_load+:} false; then :
8279 $as_echo_n "(cached) " >&6
8281 lt_cv_ld_force_load=no
8282 cat > conftest.c << _LT_EOF
8283 int forced_loaded() { return 2;}
8285 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8286 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8287 echo "$AR cru libconftest.a conftest.o" >&5
8288 $AR cru libconftest.a conftest.o 2>&5
8289 echo "$RANLIB libconftest.a" >&5
8290 $RANLIB libconftest.a 2>&5
8291 cat > conftest.c << _LT_EOF
8292 int main() { return 0;}
8294 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8295 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8297 if test -s conftest.err && $GREP force_load conftest.err; then
8298 cat conftest.err >&5
8299 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8300 lt_cv_ld_force_load=yes
8302 cat conftest.err >&5
8304 rm -f conftest.err libconftest.a conftest conftest.c
8305 rm -rf conftest.dSYM
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8309 $as_echo "$lt_cv_ld_force_load" >&6; }
8311 rhapsody* | darwin1.[012])
8312 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8315 darwin*) # darwin 5.x on
8316 # if running on 10.5 or later, the deployment target defaults
8317 # to the OS version, if on x86, and 10.4, the deployment
8318 # target defaults to 10.4. Don't you love it?
8319 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8320 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8321 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8323 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8325 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8329 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8330 _lt_dar_single_mod='$single_module'
8332 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8333 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8335 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8337 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8338 _lt_dsymutil='~$DSYMUTIL $lib || :'
8345 for ac_header in dlfcn.h
8347 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8349 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8350 cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DLFCN_H 1
8370 # Check whether --enable-shared was given.
8371 if test "${enable_shared+set}" = set; then :
8372 enableval=$enable_shared; p=${PACKAGE-default}
8374 yes) enable_shared=yes ;;
8375 no) enable_shared=no ;;
8378 # Look at the argument we got. We use all the common list separators.
8379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380 for pkg in $enableval; do
8382 if test "X$pkg" = "X$p"; then
8401 # Check whether --enable-static was given.
8402 if test "${enable_static+set}" = set; then :
8403 enableval=$enable_static; p=${PACKAGE-default}
8405 yes) enable_static=yes ;;
8406 no) enable_static=no ;;
8409 # Look at the argument we got. We use all the common list separators.
8410 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8411 for pkg in $enableval; do
8413 if test "X$pkg" = "X$p"; then
8433 # Check whether --with-pic was given.
8434 if test "${with_pic+set}" = set; then :
8435 withval=$with_pic; lt_p=${PACKAGE-default}
8437 yes|no) pic_mode=$withval ;;
8440 # Look at the argument we got. We use all the common list separators.
8441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8442 for lt_pkg in $withval; do
8444 if test "X$lt_pkg" = "X$lt_p"; then
8456 test -z "$pic_mode" && pic_mode=default
8464 # Check whether --enable-fast-install was given.
8465 if test "${enable_fast_install+set}" = set; then :
8466 enableval=$enable_fast_install; p=${PACKAGE-default}
8468 yes) enable_fast_install=yes ;;
8469 no) enable_fast_install=no ;;
8471 enable_fast_install=no
8472 # Look at the argument we got. We use all the common list separators.
8473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8474 for pkg in $enableval; do
8476 if test "X$pkg" = "X$p"; then
8477 enable_fast_install=yes
8484 enable_fast_install=yes
8497 # This can be used to rebuild libtool when needed
8498 LIBTOOL_DEPS="$ltmain"
8500 # Always use our own libtool.
8501 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8532 test -z "$LN_S" && LN_S="ln -s"
8547 if test -n "${ZSH_VERSION+set}" ; then
8548 setopt NO_GLOB_SUBST
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8552 $as_echo_n "checking for objdir... " >&6; }
8553 if ${lt_cv_objdir+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 rm -f .libs 2>/dev/null
8557 mkdir .libs 2>/dev/null
8558 if test -d .libs; then
8561 # MS-DOS does not allow filenames that begin with a dot.
8564 rmdir .libs 2>/dev/null
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8567 $as_echo "$lt_cv_objdir" >&6; }
8568 objdir=$lt_cv_objdir
8574 cat >>confdefs.h <<_ACEOF
8575 #define LT_OBJDIR "$lt_cv_objdir/"
8583 # AIX sometimes has problems with the GCC collect2 program. For some
8584 # reason, if we set the COLLECT_NAMES environment variable, the problems
8585 # vanish in a puff of smoke.
8586 if test "X${COLLECT_NAMES+set}" != Xset; then
8588 export COLLECT_NAMES
8595 can_build_shared=yes
8597 # All known linkers require a `.a' archive for static linking (except MSVC,
8598 # which needs '.lib').
8601 with_gnu_ld="$lt_cv_prog_gnu_ld"
8604 old_CFLAGS="$CFLAGS"
8606 # Set sane defaults for various variables
8607 test -z "$CC" && CC=cc
8608 test -z "$LTCC" && LTCC=$CC
8609 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8610 test -z "$LD" && LD=ld
8611 test -z "$ac_objext" && ac_objext=o
8613 for cc_temp in $compiler""; do
8615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8621 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8624 # Only perform the check for file, if the check method requires it
8625 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8626 case $deplibs_check_method in
8628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8630 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8631 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8632 $as_echo_n "(cached) " >&6
8636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8639 lt_save_MAGIC_CMD="$MAGIC_CMD"
8640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642 for ac_dir in $ac_dummy; do
8644 test -z "$ac_dir" && ac_dir=.
8645 if test -f $ac_dir/${ac_tool_prefix}file; then
8646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8647 if test -n "$file_magic_test_file"; then
8648 case $deplibs_check_method in
8650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653 $EGREP "$file_magic_regex" > /dev/null; then
8658 *** Warning: the command libtool uses to detect shared libraries,
8659 *** $file_magic_cmd, produces output that libtool cannot recognize.
8660 *** The result is that libtool may fail to recognize shared libraries
8661 *** as such. This will affect the creation of libtool libraries that
8662 *** depend on shared libraries, but programs linked with such libtool
8663 *** libraries will work regardless of this problem. Nevertheless, you
8664 *** may want to report the problem to your system manager and/or to
8665 *** bug-libtool@gnu.org
8675 MAGIC_CMD="$lt_save_MAGIC_CMD"
8680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8681 if test -n "$MAGIC_CMD"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683 $as_echo "$MAGIC_CMD" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8693 if test -z "$lt_cv_path_MAGIC_CMD"; then
8694 if test -n "$ac_tool_prefix"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8696 $as_echo_n "checking for file... " >&6; }
8697 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8698 $as_echo_n "(cached) " >&6
8702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8705 lt_save_MAGIC_CMD="$MAGIC_CMD"
8706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8708 for ac_dir in $ac_dummy; do
8710 test -z "$ac_dir" && ac_dir=.
8711 if test -f $ac_dir/file; then
8712 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8713 if test -n "$file_magic_test_file"; then
8714 case $deplibs_check_method in
8716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8719 $EGREP "$file_magic_regex" > /dev/null; then
8724 *** Warning: the command libtool uses to detect shared libraries,
8725 *** $file_magic_cmd, produces output that libtool cannot recognize.
8726 *** The result is that libtool may fail to recognize shared libraries
8727 *** as such. This will affect the creation of libtool libraries that
8728 *** depend on shared libraries, but programs linked with such libtool
8729 *** libraries will work regardless of this problem. Nevertheless, you
8730 *** may want to report the problem to your system manager and/or to
8731 *** bug-libtool@gnu.org
8741 MAGIC_CMD="$lt_save_MAGIC_CMD"
8746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8747 if test -n "$MAGIC_CMD"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8749 $as_echo "$MAGIC_CMD" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8765 # Use C for the default configuration in the libtool script
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775 # Source file extension for C test sources.
8778 # Object file extension for compiled C test sources.
8782 # Code to be used in simple compile tests
8783 lt_simple_compile_test_code="int some_variable = 0;"
8785 # Code to be used in simple link tests
8786 lt_simple_link_test_code='int main(){return(0);}'
8794 # If no C compiler was specified, use CC.
8797 # If no C compiler flags were specified, use CFLAGS.
8798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8800 # Allow CC to be a program name with arguments.
8803 # Save the default compiler, since it gets overwritten when the other
8804 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8805 compiler_DEFAULT=$CC
8807 # save warnings/boilerplate of simple test code
8808 ac_outfile=conftest.$ac_objext
8809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8811 _lt_compiler_boilerplate=`cat conftest.err`
8814 ac_outfile=conftest.$ac_objext
8815 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8816 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817 _lt_linker_boilerplate=`cat conftest.err`
8822 ## There is no encapsulation within the following macros, do not change
8823 ## the running order or otherwise move them around unless you know exactly
8824 ## what you are doing...
8825 if test -n "$compiler"; then
8827 lt_prog_compiler_no_builtin_flag=
8829 if test "$GCC" = yes; then
8830 case $cc_basename in
8832 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8834 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8840 $as_echo_n "(cached) " >&6
8842 lt_cv_prog_compiler_rtti_exceptions=no
8843 ac_outfile=conftest.$ac_objext
8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845 lt_compiler_flag="-fno-rtti -fno-exceptions"
8846 # Insert the option either (1) after the last *FLAGS variable, or
8847 # (2) before a word containing "conftest.", or (3) at the end.
8848 # Note that $ac_compile itself does not contain backslashes and begins
8849 # with a dollar sign (not a hyphen), so the echo should work correctly.
8850 # The option is referenced via a variable to avoid confusing sed.
8851 lt_compile=`echo "$ac_compile" | $SED \
8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854 -e 's:$: $lt_compiler_flag:'`
8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856 (eval "$lt_compile" 2>conftest.err)
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 if (exit $ac_status) && test -s "$ac_outfile"; then
8861 # The compiler can only warn and ignore the option if not recognized
8862 # So say no if there are warnings other than the usual output.
8863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8866 lt_cv_prog_compiler_rtti_exceptions=yes
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8873 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8875 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8876 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8888 lt_prog_compiler_wl=
8889 lt_prog_compiler_pic=
8890 lt_prog_compiler_static=
8893 if test "$GCC" = yes; then
8894 lt_prog_compiler_wl='-Wl,'
8895 lt_prog_compiler_static='-static'
8899 # All AIX code is PIC.
8900 if test "$host_cpu" = ia64; then
8901 # AIX 5 now supports IA64 processor
8902 lt_prog_compiler_static='-Bstatic'
8909 # see comment about AmigaOS4 .so support
8910 lt_prog_compiler_pic='-fPIC'
8913 # FIXME: we need at least 68020 code to build shared libraries, but
8914 # adding the `-m68020' flag to GCC prevents building anything better,
8916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8922 # PIC is the default for these OSes.
8925 mingw* | cygwin* | pw32* | os2* | cegcc*)
8926 # This hack is so that the source file can tell whether it is being
8927 # built for inclusion in a dll (and should export symbols for example).
8928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8929 # (--disable-auto-import) libraries
8930 lt_prog_compiler_pic='-DDLL_EXPORT'
8933 darwin* | rhapsody*)
8934 # PIC is the default on this platform
8935 # Common symbols not allowed in MH_DYLIB files
8936 lt_prog_compiler_pic='-fno-common'
8940 # PIC is the default for Haiku.
8941 # The "-static" flag exists, but is broken.
8942 lt_prog_compiler_static=
8946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8948 # sets the default TLS model and affects inlining.
8954 lt_prog_compiler_pic='-fPIC'
8960 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8961 # Instead, we relocate shared libraries at runtime.
8965 # Just because we use GCC doesn't mean we suddenly get shared libraries
8966 # on systems that don't support them.
8967 lt_prog_compiler_can_build_shared=no
8972 # QNX uses GNU C++, but need to define -shared option too, otherwise
8974 lt_prog_compiler_pic='-fPIC -shared'
8978 if test -d /usr/nec; then
8979 lt_prog_compiler_pic=-Kconform_pic
8984 lt_prog_compiler_pic='-fPIC'
8988 case $cc_basename in
8989 nvcc*) # Cuda Compiler Driver 2.2
8990 lt_prog_compiler_wl='-Xlinker '
8991 if test -n "$lt_prog_compiler_pic"; then
8992 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8997 # PORTME Check for flag to pass linker flags through the system compiler.
9000 lt_prog_compiler_wl='-Wl,'
9001 if test "$host_cpu" = ia64; then
9002 # AIX 5 now supports IA64 processor
9003 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9009 mingw* | cygwin* | pw32* | os2* | cegcc*)
9010 # This hack is so that the source file can tell whether it is being
9011 # built for inclusion in a dll (and should export symbols for example).
9012 lt_prog_compiler_pic='-DDLL_EXPORT'
9015 hpux9* | hpux10* | hpux11*)
9016 lt_prog_compiler_wl='-Wl,'
9017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9024 lt_prog_compiler_pic='+Z'
9027 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9028 lt_prog_compiler_static='${wl}-a ${wl}archive'
9031 irix5* | irix6* | nonstopux*)
9032 lt_prog_compiler_wl='-Wl,'
9033 # PIC (with -KPIC) is the default.
9034 lt_prog_compiler_static='-non_shared'
9037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9038 case $cc_basename in
9039 # old Intel for x86_64 which still supported -KPIC.
9041 lt_prog_compiler_wl='-Wl,'
9042 lt_prog_compiler_pic='-KPIC'
9043 lt_prog_compiler_static='-static'
9045 # icc used to be incompatible with GCC.
9046 # ICC 10 doesn't accept -KPIC any more.
9048 lt_prog_compiler_wl='-Wl,'
9049 lt_prog_compiler_pic='-fPIC'
9050 lt_prog_compiler_static='-static'
9052 # Lahey Fortran 8.1.
9054 lt_prog_compiler_wl='-Wl,'
9055 lt_prog_compiler_pic='--shared'
9056 lt_prog_compiler_static='--static'
9059 # NAG Fortran compiler
9060 lt_prog_compiler_wl='-Wl,-Wl,,'
9061 lt_prog_compiler_pic='-PIC'
9062 lt_prog_compiler_static='-Bstatic'
9064 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9065 # Portland Group compilers (*not* the Pentium gcc compiler,
9066 # which looks to be a dead project)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-fpic'
9069 lt_prog_compiler_static='-Bstatic'
9072 lt_prog_compiler_wl='-Wl,'
9073 # All Alpha code is PIC.
9074 lt_prog_compiler_static='-non_shared'
9076 xl* | bgxl* | bgf* | mpixl*)
9077 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-qpic'
9080 lt_prog_compiler_static='-qstaticlink'
9083 case `$CC -V 2>&1 | sed 5q` in
9084 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9085 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-Bstatic'
9088 lt_prog_compiler_wl=''
9090 *Sun\ F* | *Sun*Fortran*)
9091 lt_prog_compiler_pic='-KPIC'
9092 lt_prog_compiler_static='-Bstatic'
9093 lt_prog_compiler_wl='-Qoption ld '
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-Bstatic'
9099 lt_prog_compiler_wl='-Wl,'
9101 *Intel*\ [CF]*Compiler*)
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_pic='-fPIC'
9104 lt_prog_compiler_static='-static'
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_pic='-fpic'
9109 lt_prog_compiler_static='-Bstatic'
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9122 # QNX uses GNU C++, but need to define -shared option too, otherwise
9124 lt_prog_compiler_pic='-fPIC -shared'
9127 osf3* | osf4* | osf5*)
9128 lt_prog_compiler_wl='-Wl,'
9129 # All OSF/1 code is PIC.
9130 lt_prog_compiler_static='-non_shared'
9134 lt_prog_compiler_static='-non_shared'
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9140 case $cc_basename in
9141 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9142 lt_prog_compiler_wl='-Qoption ld ';;
9144 lt_prog_compiler_wl='-Wl,';;
9149 lt_prog_compiler_wl='-Qoption ld '
9150 lt_prog_compiler_pic='-PIC'
9151 lt_prog_compiler_static='-Bstatic'
9154 sysv4 | sysv4.2uw2* | sysv4.3*)
9155 lt_prog_compiler_wl='-Wl,'
9156 lt_prog_compiler_pic='-KPIC'
9157 lt_prog_compiler_static='-Bstatic'
9161 if test -d /usr/nec ;then
9162 lt_prog_compiler_pic='-Kconform_pic'
9163 lt_prog_compiler_static='-Bstatic'
9167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-KPIC'
9170 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_can_build_shared=no
9179 lt_prog_compiler_pic='-pic'
9180 lt_prog_compiler_static='-Bstatic'
9184 lt_prog_compiler_can_build_shared=no
9190 # For platforms which do not support PIC, -DPIC is meaningless:
9192 lt_prog_compiler_pic=
9195 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9200 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9201 if ${lt_cv_prog_compiler_pic+:} false; then :
9202 $as_echo_n "(cached) " >&6
9204 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9207 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9208 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9211 # Check to make sure the PIC flag actually works.
9213 if test -n "$lt_prog_compiler_pic"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9215 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9216 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 lt_cv_prog_compiler_pic_works=no
9220 ac_outfile=conftest.$ac_objext
9221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9222 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9223 # Insert the option either (1) after the last *FLAGS variable, or
9224 # (2) before a word containing "conftest.", or (3) at the end.
9225 # Note that $ac_compile itself does not contain backslashes and begins
9226 # with a dollar sign (not a hyphen), so the echo should work correctly.
9227 # The option is referenced via a variable to avoid confusing sed.
9228 lt_compile=`echo "$ac_compile" | $SED \
9229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9231 -e 's:$: $lt_compiler_flag:'`
9232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9233 (eval "$lt_compile" 2>conftest.err)
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 if (exit $ac_status) && test -s "$ac_outfile"; then
9238 # The compiler can only warn and ignore the option if not recognized
9239 # So say no if there are warnings other than the usual output.
9240 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9243 lt_cv_prog_compiler_pic_works=yes
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9250 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9252 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9253 case $lt_prog_compiler_pic in
9255 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9258 lt_prog_compiler_pic=
9259 lt_prog_compiler_can_build_shared=no
9275 # Check to make sure the static flag actually works.
9277 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9279 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9280 if ${lt_cv_prog_compiler_static_works+:} false; then :
9281 $as_echo_n "(cached) " >&6
9283 lt_cv_prog_compiler_static_works=no
9284 save_LDFLAGS="$LDFLAGS"
9285 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9286 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9288 # The linker can only warn and ignore the option if not recognized
9289 # So say no if there are warnings
9290 if test -s conftest.err; then
9291 # Append any errors to the config.log.
9292 cat conftest.err 1>&5
9293 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9295 if diff conftest.exp conftest.er2 >/dev/null; then
9296 lt_cv_prog_compiler_static_works=yes
9299 lt_cv_prog_compiler_static_works=yes
9303 LDFLAGS="$save_LDFLAGS"
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9307 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9309 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9312 lt_prog_compiler_static=
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9323 if ${lt_cv_prog_compiler_c_o+:} false; then :
9324 $as_echo_n "(cached) " >&6
9326 lt_cv_prog_compiler_c_o=no
9327 $RM -r conftest 2>/dev/null
9331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9333 lt_compiler_flag="-o out/conftest2.$ac_objext"
9334 # Insert the option either (1) after the last *FLAGS variable, or
9335 # (2) before a word containing "conftest.", or (3) at the end.
9336 # Note that $ac_compile itself does not contain backslashes and begins
9337 # with a dollar sign (not a hyphen), so the echo should work correctly.
9338 lt_compile=`echo "$ac_compile" | $SED \
9339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341 -e 's:$: $lt_compiler_flag:'`
9342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343 (eval "$lt_compile" 2>out/conftest.err)
9345 cat out/conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9349 # The compiler can only warn and ignore the option if not recognized
9350 # So say no if there are warnings
9351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9354 lt_cv_prog_compiler_c_o=yes
9359 # SGI C++ compiler will create directory out/ii_files/ for
9360 # template instantiation
9361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9362 $RM out/* && rmdir out
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9369 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9378 if ${lt_cv_prog_compiler_c_o+:} false; then :
9379 $as_echo_n "(cached) " >&6
9381 lt_cv_prog_compiler_c_o=no
9382 $RM -r conftest 2>/dev/null
9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388 lt_compiler_flag="-o out/conftest2.$ac_objext"
9389 # Insert the option either (1) after the last *FLAGS variable, or
9390 # (2) before a word containing "conftest.", or (3) at the end.
9391 # Note that $ac_compile itself does not contain backslashes and begins
9392 # with a dollar sign (not a hyphen), so the echo should work correctly.
9393 lt_compile=`echo "$ac_compile" | $SED \
9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396 -e 's:$: $lt_compiler_flag:'`
9397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9398 (eval "$lt_compile" 2>out/conftest.err)
9400 cat out/conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9404 # The compiler can only warn and ignore the option if not recognized
9405 # So say no if there are warnings
9406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9409 lt_cv_prog_compiler_c_o=yes
9414 # SGI C++ compiler will create directory out/ii_files/ for
9415 # template instantiation
9416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9417 $RM out/* && rmdir out
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9424 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9429 hard_links="nottested"
9430 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9431 # do not overwrite the value of need_locks provided by the user
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9433 $as_echo_n "checking if we can lock with hard links... " >&6; }
9436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9438 ln conftest.a conftest.b 2>&5 || hard_links=no
9439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9441 $as_echo "$hard_links" >&6; }
9442 if test "$hard_links" = no; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9444 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9460 allow_undefined_flag=
9461 always_export_symbols=no
9463 archive_expsym_cmds=
9464 compiler_needs_object=no
9465 enable_shared_with_static_runtimes=no
9466 export_dynamic_flag_spec=
9467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9468 hardcode_automatic=no
9470 hardcode_direct_absolute=no
9471 hardcode_libdir_flag_spec=
9472 hardcode_libdir_separator=
9474 hardcode_shlibpath_var=unsupported
9476 link_all_deplibs=unknown
9479 old_archive_from_new_cmds=
9480 old_archive_from_expsyms_cmds=
9481 thread_safe_flag_spec=
9482 whole_archive_flag_spec=
9483 # include_expsyms should be a list of space-separated symbols to be *always*
9484 # included in the symbol list
9486 # exclude_expsyms can be an extended regexp of symbols to exclude
9487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9489 # as well as any symbol that contains `d'.
9490 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9492 # platforms (ab)use it in PIC code, but their linkers get confused if
9493 # the symbol is explicitly referenced. Since portable code cannot
9494 # rely on this symbol name, it's probably fine to never include it in
9495 # preloaded symbol tables.
9496 # Exclude shared library initialization/finalization symbols.
9497 extract_expsyms_cmds=
9500 cygwin* | mingw* | pw32* | cegcc*)
9501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9502 # When not using gcc, we currently assume that we are using
9503 # Microsoft Visual C++.
9504 if test "$GCC" != yes; then
9509 # we just hope/assume this is gcc and not c89 (= MSVC++)
9515 linux* | k*bsd*-gnu | gnu*)
9522 # On some targets, GNU ld is compatible enough with the native linker
9523 # that we're better off using the native interface for both.
9524 lt_use_gnu_ld_interface=no
9525 if test "$with_gnu_ld" = yes; then
9528 # The AIX port of GNU ld has always aspired to compatibility
9529 # with the native linker. However, as the warning in the GNU ld
9530 # block says, versions before 2.19.5* couldn't really create working
9531 # shared libraries, regardless of the interface used.
9532 case `$LD -v 2>&1` in
9533 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9534 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9535 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9537 lt_use_gnu_ld_interface=yes
9542 lt_use_gnu_ld_interface=yes
9547 if test "$lt_use_gnu_ld_interface" = yes; then
9548 # If archive_cmds runs LD, not CC, wlarc should be empty
9551 # Set some defaults for GNU ld with shared library support. These
9552 # are reset later if shared libraries are not supported. Putting them
9553 # here allows them to be overridden if necessary.
9554 runpath_var=LD_RUN_PATH
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 export_dynamic_flag_spec='${wl}--export-dynamic'
9557 # ancient GNU ld didn't support --whole-archive et. al.
9558 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9559 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9561 whole_archive_flag_spec=
9563 supports_anon_versioning=no
9564 case `$LD -v 2>&1` in
9565 *GNU\ gold*) supports_anon_versioning=yes ;;
9566 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9567 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9568 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9569 *\ 2.11.*) ;; # other 2.11 versions
9570 *) supports_anon_versioning=yes ;;
9573 # See if GNU ld supports shared libraries.
9576 # On AIX/PPC, the GNU linker is very broken
9577 if test "$host_cpu" != ia64; then
9581 *** Warning: the GNU linker, at least up to release 2.19, is reported
9582 *** to be unable to reliably create shared libraries on AIX.
9583 *** Therefore, libtool is disabling shared libraries support. If you
9584 *** really care for shared libraries, you may want to install binutils
9585 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9586 *** You will then need to restart the configuration process.
9595 # see comment about AmigaOS4 .so support
9596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds=''
9600 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)'
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_minus_L=yes
9608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9609 allow_undefined_flag=unsupported
9610 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9611 # support --undefined. This deserves some investigation. FIXME
9612 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9618 cygwin* | mingw* | pw32* | cegcc*)
9619 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9620 # as there is no search path for DLLs.
9621 hardcode_libdir_flag_spec='-L$libdir'
9622 export_dynamic_flag_spec='${wl}--export-all-symbols'
9623 allow_undefined_flag=unsupported
9624 always_export_symbols=no
9625 enable_shared_with_static_runtimes=yes
9626 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'
9627 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9629 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9631 # If the export-symbols file already is a .def file (1st line
9632 # is EXPORTS), use it as is; otherwise, prepend...
9633 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9634 cp $export_symbols $output_objdir/$soname.def;
9636 echo EXPORTS > $output_objdir/$soname.def;
9637 cat $export_symbols >> $output_objdir/$soname.def;
9639 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 link_all_deplibs=yes
9652 hardcode_shlibpath_var=no
9653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654 export_dynamic_flag_spec='${wl}-E'
9655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9656 # Instead, shared libraries are loaded at an image base (0x10000000 by
9657 # default) and relocated if they conflict, which is a slow very memory
9658 # consuming and fragmenting process. To avoid this, we pick a random,
9659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9660 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9662 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'
9665 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9667 if test "$host_os" = linux-dietlibc; then
9668 case $cc_basename in
9669 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9672 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9673 && test "$tmp_diet" = no
9675 tmp_addflag=' $pic_flag'
9676 tmp_sharedflag='-shared'
9677 case $cc_basename,$host_cpu in
9678 pgcc*) # Portland Group C compiler
9679 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'
9680 tmp_addflag=' $pic_flag'
9682 pgf77* | pgf90* | pgf95* | pgfortran*)
9683 # Portland Group f77 and f90 compilers
9684 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'
9685 tmp_addflag=' $pic_flag -Mnomain' ;;
9686 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9687 tmp_addflag=' -i_dynamic' ;;
9688 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9689 tmp_addflag=' -i_dynamic -nofor_main' ;;
9690 ifc* | ifort*) # Intel Fortran compiler
9691 tmp_addflag=' -nofor_main' ;;
9692 lf95*) # Lahey Fortran 8.1
9693 whole_archive_flag_spec=
9694 tmp_sharedflag='--shared' ;;
9695 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9696 tmp_sharedflag='-qmkshrobj'
9698 nvcc*) # Cuda Compiler Driver 2.2
9699 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'
9700 compiler_needs_object=yes
9703 case `$CC -V 2>&1 | sed 5q` in
9704 *Sun\ C*) # Sun C 5.9
9705 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'
9706 compiler_needs_object=yes
9707 tmp_sharedflag='-G' ;;
9708 *Sun\ F*) # Sun Fortran 8.3
9709 tmp_sharedflag='-G' ;;
9711 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713 if test "x$supports_anon_versioning" = xyes; then
9714 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9716 echo "local: *; };" >> $output_objdir/$libname.ver~
9717 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9720 case $cc_basename in
9721 xlf* | bgf* | bgxlf* | mpixlf*)
9722 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9723 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9726 if test "x$supports_anon_versioning" = xyes; then
9727 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9728 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9729 echo "local: *; };" >> $output_objdir/$libname.ver~
9730 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9739 netbsd* | netbsdelf*-gnu)
9740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9741 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9750 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9755 *** create shared libraries on Solaris systems. Therefore, libtool
9756 *** is disabling shared libraries support. We urge you to upgrade GNU
9757 *** binutils to release 2.9.1 or newer. Another option is to modify
9758 *** your PATH or compiler configuration so that the native linker is
9759 *** used, and then restart.
9762 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9771 case `$LD -v 2>&1` in
9772 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9777 *** reliably create shared libraries on SCO systems. Therefore, libtool
9778 *** is disabling shared libraries support. We urge you to upgrade GNU
9779 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9780 *** your PATH or compiler configuration so that the native linker is
9781 *** used, and then restart.
9786 # For security reasons, it is highly recommended that you always
9787 # use absolute paths for naming shared libraries, and exclude the
9788 # DT_RUNPATH tag from executables and libraries. But doing so
9789 # requires that you compile everything twice, which is a pain.
9790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_shlibpath_var=no
9809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9818 if test "$ld_shlibs" = no; then
9820 hardcode_libdir_flag_spec=
9821 export_dynamic_flag_spec=
9822 whole_archive_flag_spec=
9825 # PORTME fill in a description of your system's linker (not GNU ld)
9828 allow_undefined_flag=unsupported
9829 always_export_symbols=yes
9830 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'
9831 # Note: this linker hardcodes the directories in LIBPATH if there
9832 # are no directories specified by -L.
9833 hardcode_minus_L=yes
9834 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9835 # Neither direct hardcoding nor static linking is supported with a
9837 hardcode_direct=unsupported
9842 if test "$host_cpu" = ia64; then
9843 # On IA64, the linker does run time linking by default, so we don't
9844 # have to do anything special.
9845 aix_use_runtimelinking=no
9846 exp_sym_flag='-Bexport'
9849 # If we're using GNU nm, then we don't want the "-C" option.
9850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9851 # Also, AIX nm treats weak defined symbols like other global
9852 # defined symbols, whereas GNU nm marks them as "W".
9853 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9854 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'
9856 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'
9858 aix_use_runtimelinking=no
9860 # Test if we are trying to use run time linking or normal
9861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9862 # need to do runtime linking.
9863 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9864 for ld_flag in $LDFLAGS; do
9865 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9866 aix_use_runtimelinking=yes
9873 exp_sym_flag='-bexport'
9874 no_entry_flag='-bnoentry'
9877 # When large executables or shared objects are built, AIX ld can
9878 # have problems creating the table of contents. If linking a library
9879 # or program results in "error TOC overflow" add -mminimal-toc to
9880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9885 hardcode_direct_absolute=yes
9886 hardcode_libdir_separator=':'
9887 link_all_deplibs=yes
9888 file_list_spec='${wl}-f,'
9890 if test "$GCC" = yes; then
9891 case $host_os in aix4.[012]|aix4.[012].*)
9892 # We only want to do this on AIX 4.2 and lower, the check
9893 # below for broken collect2 doesn't work under 4.3+
9894 collect2name=`${CC} -print-prog-name=collect2`
9895 if test -f "$collect2name" &&
9896 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9898 # We have reworked collect2
9901 # We have old collect2
9902 hardcode_direct=unsupported
9903 # It fails to find uninstalled libraries when the uninstalled
9904 # path is not listed in the libpath. Setting hardcode_minus_L
9905 # to unsupported forces relinking
9906 hardcode_minus_L=yes
9907 hardcode_libdir_flag_spec='-L$libdir'
9908 hardcode_libdir_separator=
9912 shared_flag='-shared'
9913 if test "$aix_use_runtimelinking" = yes; then
9914 shared_flag="$shared_flag "'${wl}-G'
9919 if test "$host_cpu" = ia64; then
9920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9921 # chokes on -Wl,-G. The following line is correct:
9924 if test "$aix_use_runtimelinking" = yes; then
9925 shared_flag='${wl}-G'
9927 shared_flag='${wl}-bM:SRE'
9932 export_dynamic_flag_spec='${wl}-bexpall'
9933 # It seems that -bexpall does not export symbols beginning with
9934 # underscore (_), so it is better to generate a list of symbols to export.
9935 always_export_symbols=yes
9936 if test "$aix_use_runtimelinking" = yes; then
9937 # Warning - without using the other runtime loading flags (-brtl),
9938 # -berok will link without error, but may produce a broken library.
9939 allow_undefined_flag='-berok'
9940 # Determine the default libpath from the value encoded in an
9942 if test "${lt_cv_aix_libpath+set}" = set; then
9943 aix_libpath=$lt_cv_aix_libpath
9945 if ${lt_cv_aix_libpath_+:} false; then :
9946 $as_echo_n "(cached) " >&6
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9959 if ac_fn_c_try_link "$LINENO"; then :
9961 lt_aix_libpath_sed='
9962 /Import File Strings/,/^$/ {
9964 s/^0 *\([^ ]*\) *$/\1/
9968 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9969 # Check for a 64-bit object if we didn't find anything.
9970 if test -z "$lt_cv_aix_libpath_"; then
9971 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 if test -z "$lt_cv_aix_libpath_"; then
9977 lt_cv_aix_libpath_="/usr/lib:/lib"
9982 aix_libpath=$lt_cv_aix_libpath_
9985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9986 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"
9988 if test "$host_cpu" = ia64; then
9989 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9990 allow_undefined_flag="-z nodefs"
9991 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"
9993 # Determine the default libpath from the value encoded in an
9995 if test "${lt_cv_aix_libpath+set}" = set; then
9996 aix_libpath=$lt_cv_aix_libpath
9998 if ${lt_cv_aix_libpath_+:} false; then :
9999 $as_echo_n "(cached) " >&6
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10012 if ac_fn_c_try_link "$LINENO"; then :
10014 lt_aix_libpath_sed='
10015 /Import File Strings/,/^$/ {
10017 s/^0 *\([^ ]*\) *$/\1/
10021 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022 # Check for a 64-bit object if we didn't find anything.
10023 if test -z "$lt_cv_aix_libpath_"; then
10024 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 if test -z "$lt_cv_aix_libpath_"; then
10030 lt_cv_aix_libpath_="/usr/lib:/lib"
10035 aix_libpath=$lt_cv_aix_libpath_
10038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10039 # Warning - without using the other run time loading flags,
10040 # -berok will link without error, but may produce a broken library.
10041 no_undefined_flag=' ${wl}-bernotok'
10042 allow_undefined_flag=' ${wl}-berok'
10043 if test "$with_gnu_ld" = yes; then
10044 # We only use this code for GNU lds that support --whole-archive.
10045 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10047 # Exported symbols can be pulled into shared objects from archives
10048 whole_archive_flag_spec='$convenience'
10050 archive_cmds_need_lc=yes
10051 # This is similar to how AIX traditionally builds its shared libraries.
10052 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'
10060 # see comment about AmigaOS4 .so support
10061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10062 archive_expsym_cmds=''
10065 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)'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_minus_L=yes
10073 export_dynamic_flag_spec=-rdynamic
10076 cygwin* | mingw* | pw32* | cegcc*)
10077 # When not using gcc, we currently assume that we are using
10078 # Microsoft Visual C++.
10079 # hardcode_libdir_flag_spec is actually meaningless, as there is
10080 # no search path for DLLs.
10081 case $cc_basename in
10084 hardcode_libdir_flag_spec=' '
10085 allow_undefined_flag=unsupported
10086 always_export_symbols=yes
10088 # Tell ltmain to make .lib files, not .a files.
10090 # Tell ltmain to make .dll files, not .so files.
10092 # FIXME: Setting linknames here is a bad hack.
10093 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10095 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10097 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10099 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10101 # The linker will not automatically build a static lib if we build a DLL.
10102 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10103 enable_shared_with_static_runtimes=yes
10104 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10105 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10107 old_postinstall_cmds='chmod 644 $oldlib'
10108 postlink_cmds='lt_outputfile="@OUTPUT@"~
10109 lt_tool_outputfile="@TOOL_OUTPUT@"~
10110 case $lt_outputfile in
10113 lt_outputfile="$lt_outputfile.exe"
10114 lt_tool_outputfile="$lt_tool_outputfile.exe"
10117 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10118 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10119 $RM "$lt_outputfile.manifest";
10123 # Assume MSVC wrapper
10124 hardcode_libdir_flag_spec=' '
10125 allow_undefined_flag=unsupported
10126 # Tell ltmain to make .lib files, not .a files.
10128 # Tell ltmain to make .dll files, not .so files.
10130 # FIXME: Setting linknames here is a bad hack.
10131 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10132 # The linker will automatically build a .lib file if we build a DLL.
10133 old_archive_from_new_cmds='true'
10134 # FIXME: Should let the user specify the lib program.
10135 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10136 enable_shared_with_static_runtimes=yes
10141 darwin* | rhapsody*)
10144 archive_cmds_need_lc=no
10146 hardcode_automatic=yes
10147 hardcode_shlibpath_var=unsupported
10148 if test "$lt_cv_ld_force_load" = "yes"; then
10149 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\"`'
10152 whole_archive_flag_spec=''
10154 link_all_deplibs=yes
10155 allow_undefined_flag="$_lt_dar_allow_undefined"
10156 case $cc_basename in
10157 ifort*) _lt_dar_can_shared=yes ;;
10158 *) _lt_dar_can_shared=$GCC ;;
10160 if test "$_lt_dar_can_shared" = "yes"; then
10161 output_verbose_link_cmd=func_echo_all
10162 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10163 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10164 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}"
10165 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}"
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_libdir_flag_spec='-L$libdir'
10176 hardcode_shlibpath_var=no
10179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10180 # support. Future versions do this automatically, but an explicit c++rt0.o
10181 # does not break anything, and helps significantly (at the cost of a little
10184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10185 hardcode_libdir_flag_spec='-R$libdir'
10186 hardcode_direct=yes
10187 hardcode_shlibpath_var=no
10190 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_direct=yes
10194 hardcode_minus_L=yes
10195 hardcode_shlibpath_var=no
10198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10199 freebsd* | dragonfly*)
10200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10201 hardcode_libdir_flag_spec='-R$libdir'
10202 hardcode_direct=yes
10203 hardcode_shlibpath_var=no
10207 if test "$GCC" = yes; then
10208 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'
10210 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'
10212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10213 hardcode_libdir_separator=:
10214 hardcode_direct=yes
10216 # hardcode_minus_L: Not really in the search PATH,
10217 # but as the default location of the library.
10218 hardcode_minus_L=yes
10219 export_dynamic_flag_spec='${wl}-E'
10223 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10224 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10228 if test "$with_gnu_ld" = no; then
10229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10230 hardcode_libdir_separator=:
10231 hardcode_direct=yes
10232 hardcode_direct_absolute=yes
10233 export_dynamic_flag_spec='${wl}-E'
10234 # hardcode_minus_L: Not really in the search PATH,
10235 # but as the default location of the library.
10236 hardcode_minus_L=yes
10241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10244 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10263 # Older versions of the 11.00 compiler do not understand -b yet
10264 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10266 $as_echo_n "checking if $CC understands -b... " >&6; }
10267 if ${lt_cv_prog_compiler__b+:} false; then :
10268 $as_echo_n "(cached) " >&6
10270 lt_cv_prog_compiler__b=no
10271 save_LDFLAGS="$LDFLAGS"
10272 LDFLAGS="$LDFLAGS -b"
10273 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10275 # The linker can only warn and ignore the option if not recognized
10276 # So say no if there are warnings
10277 if test -s conftest.err; then
10278 # Append any errors to the config.log.
10279 cat conftest.err 1>&5
10280 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10282 if diff conftest.exp conftest.er2 >/dev/null; then
10283 lt_cv_prog_compiler__b=yes
10286 lt_cv_prog_compiler__b=yes
10290 LDFLAGS="$save_LDFLAGS"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10294 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10296 if test x"$lt_cv_prog_compiler__b" = xyes; then
10297 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10299 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10305 if test "$with_gnu_ld" = no; then
10306 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10307 hardcode_libdir_separator=:
10312 hardcode_shlibpath_var=no
10315 hardcode_direct=yes
10316 hardcode_direct_absolute=yes
10317 export_dynamic_flag_spec='${wl}-E'
10319 # hardcode_minus_L: Not really in the search PATH,
10320 # but as the default location of the library.
10321 hardcode_minus_L=yes
10327 irix5* | irix6* | nonstopux*)
10328 if test "$GCC" = yes; then
10329 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'
10330 # Try to use the -exported_symbol ld option, if it does not
10331 # work, assume that -exports_file does not work either and
10332 # implicitly export all symbols.
10333 # This should be the same for all languages, so no per-tag cache variable.
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10335 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10336 if ${lt_cv_irix_exported_symbol+:} false; then :
10337 $as_echo_n "(cached) " >&6
10339 save_LDFLAGS="$LDFLAGS"
10340 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 int foo (void) { return 0; }
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 lt_cv_irix_exported_symbol=yes
10348 lt_cv_irix_exported_symbol=no
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LDFLAGS="$save_LDFLAGS"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10355 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10356 if test "$lt_cv_irix_exported_symbol" = yes; then
10357 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'
10360 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'
10361 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'
10363 archive_cmds_need_lc='no'
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 hardcode_libdir_separator=:
10367 link_all_deplibs=yes
10370 netbsd* | netbsdelf*-gnu)
10371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10374 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10376 hardcode_libdir_flag_spec='-R$libdir'
10377 hardcode_direct=yes
10378 hardcode_shlibpath_var=no
10382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383 hardcode_direct=yes
10384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10385 hardcode_libdir_separator=:
10386 hardcode_shlibpath_var=no
10393 if test -f /usr/libexec/ld.so; then
10394 hardcode_direct=yes
10395 hardcode_shlibpath_var=no
10396 hardcode_direct_absolute=yes
10397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10401 export_dynamic_flag_spec='${wl}-E'
10404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_libdir_flag_spec='-R$libdir'
10409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10410 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_minus_L=yes
10422 allow_undefined_flag=unsupported
10423 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'
10424 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10428 if test "$GCC" = yes; then
10429 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10430 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'
10432 allow_undefined_flag=' -expect_unresolved \*'
10433 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'
10435 archive_cmds_need_lc='no'
10436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437 hardcode_libdir_separator=:
10440 osf4* | osf5*) # as osf3* with the addition of -msym flag
10441 if test "$GCC" = yes; then
10442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10443 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'
10444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446 allow_undefined_flag=' -expect_unresolved \*'
10447 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'
10448 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~
10449 $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'
10451 # Both c and cxx compiler support -rpath directly
10452 hardcode_libdir_flag_spec='-rpath $libdir'
10454 archive_cmds_need_lc='no'
10455 hardcode_libdir_separator=:
10459 no_undefined_flag=' -z defs'
10460 if test "$GCC" = yes; then
10462 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10464 $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'
10466 case `$CC -V 2>&1` in
10469 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10471 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10475 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10481 hardcode_libdir_flag_spec='-R$libdir'
10482 hardcode_shlibpath_var=no
10484 solaris2.[0-5] | solaris2.[0-5].*) ;;
10486 # The compiler driver will combine and reorder linker options,
10487 # but understands `-z linker_flag'. GCC discards it without `$wl',
10488 # but is careful enough not to reorder.
10489 # Supported since Solaris 2.6 (maybe 2.5.1?)
10490 if test "$GCC" = yes; then
10491 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10493 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10497 link_all_deplibs=yes
10501 if test "x$host_vendor" = xsequent; then
10502 # Use $CC to link under sequent, because it throws in some extra .o
10503 # files that make .init and .fini sections work.
10504 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10506 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10508 hardcode_libdir_flag_spec='-L$libdir'
10509 hardcode_direct=yes
10510 hardcode_minus_L=yes
10511 hardcode_shlibpath_var=no
10515 case $host_vendor in
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_direct=yes # is this really true???
10521 ## LD is ld it makes a PLAMLIB
10522 ## CC just makes a GrossModule.
10523 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10524 reload_cmds='$CC -r -o $output$reload_objs'
10528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10532 runpath_var='LD_RUN_PATH'
10533 hardcode_shlibpath_var=no
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_shlibpath_var=no
10539 export_dynamic_flag_spec='-Bexport'
10543 if test -d /usr/nec; then
10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 hardcode_shlibpath_var=no
10546 runpath_var=LD_RUN_PATH
10547 hardcode_runpath_var=yes
10552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10553 no_undefined_flag='${wl}-z,text'
10554 archive_cmds_need_lc=no
10555 hardcode_shlibpath_var=no
10556 runpath_var='LD_RUN_PATH'
10558 if test "$GCC" = yes; then
10559 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567 sysv5* | sco3.2v5* | sco5v6*)
10568 # Note: We can NOT use -z defs as we might desire, because we do not
10569 # link with -lc, and that would cause any symbols used from libc to
10570 # always be unresolved, which means just about no library would
10571 # ever link correctly. If we're not using GNU ld we use -z text
10572 # though, which does catch some bad symbols but isn't as heavy-handed
10574 no_undefined_flag='${wl}-z,text'
10575 allow_undefined_flag='${wl}-z,nodefs'
10576 archive_cmds_need_lc=no
10577 hardcode_shlibpath_var=no
10578 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10579 hardcode_libdir_separator=':'
10580 link_all_deplibs=yes
10581 export_dynamic_flag_spec='${wl}-Bexport'
10582 runpath_var='LD_RUN_PATH'
10584 if test "$GCC" = yes; then
10585 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_libdir_flag_spec='-L$libdir'
10596 hardcode_shlibpath_var=no
10604 if test x$host_vendor = xsni; then
10606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10607 export_dynamic_flag_spec='${wl}-Blargedynsym'
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10614 $as_echo "$ld_shlibs" >&6; }
10615 test "$ld_shlibs" = no && can_build_shared=no
10617 with_gnu_ld=$with_gnu_ld
10634 # Do we need to explicitly link libc?
10636 case "x$archive_cmds_need_lc" in
10638 # Assume -lc should be added
10639 archive_cmds_need_lc=yes
10641 if test "$enable_shared" = yes && test "$GCC" = yes; then
10642 case $archive_cmds in
10644 # FIXME: we may have to deal with multi-command sequences.
10647 # Test whether the compiler implicitly links with -lc since on some
10648 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10649 # to ld, don't add -lc before -lgcc.
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10651 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10652 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10653 $as_echo_n "(cached) " >&6
10656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10659 (eval $ac_compile) 2>&5
10661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662 test $ac_status = 0; } 2>conftest.err; then
10665 libobjs=conftest.$ac_objext
10667 wl=$lt_prog_compiler_wl
10668 pic_flag=$lt_prog_compiler_pic
10674 lt_save_allow_undefined_flag=$allow_undefined_flag
10675 allow_undefined_flag=
10676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10677 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10680 test $ac_status = 0; }
10682 lt_cv_archive_cmds_need_lc=no
10684 lt_cv_archive_cmds_need_lc=yes
10686 allow_undefined_flag=$lt_save_allow_undefined_flag
10688 cat conftest.err 1>&5
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10694 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10695 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10854 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10856 if test "$GCC" = yes; then
10858 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10859 *) lt_awk_arg="/^libraries:/" ;;
10862 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10863 *) lt_sed_strip_eq="s,=/,/,g" ;;
10865 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10866 case $lt_search_path_spec in
10868 # if the path contains ";" then we assume it to be the separator
10869 # otherwise default to the standard path separator (i.e. ":") - it is
10870 # assumed that no part of a normal pathname contains ";" but that should
10871 # okay in the real world where ";" in dirpaths is itself problematic.
10872 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10875 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10878 # Ok, now we have the path, separated by spaces, we can step through it
10879 # and add multilib dir if necessary.
10880 lt_tmp_lt_search_path_spec=
10881 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10882 for lt_sys_path in $lt_search_path_spec; do
10883 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10884 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10886 test -d "$lt_sys_path" && \
10887 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10890 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10891 BEGIN {RS=" "; FS="/|\n";} {
10894 for (lt_i = NF; lt_i > 0; lt_i--) {
10895 if ($lt_i != "" && $lt_i != ".") {
10896 if ($lt_i == "..") {
10899 if (lt_count == 0) {
10900 lt_foo="/" $lt_i lt_foo;
10907 if (lt_foo != "") { lt_freq[lt_foo]++; }
10908 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10910 # AWK program above erroneously prepends '/' to C:/dos/paths
10913 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10914 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10916 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10920 library_names_spec=
10921 libname_spec='lib$name'
10925 postuninstall_cmds=
10929 shlibpath_overrides_runpath=unknown
10931 dynamic_linker="$host_os ld.so"
10932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10933 need_lib_prefix=unknown
10934 hardcode_into_libs=no
10936 # when you set need_version to no, make sure it does not cause -set_version
10937 # flags to be left without arguments
10938 need_version=unknown
10942 version_type=linux # correct to gnu/linux during the next big refactor
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10944 shlibpath_var=LIBPATH
10946 # AIX 3 has no versioning support, so we append a major version to the name.
10947 soname_spec='${libname}${release}${shared_ext}$major'
10951 version_type=linux # correct to gnu/linux during the next big refactor
10954 hardcode_into_libs=yes
10955 if test "$host_cpu" = ia64; then
10956 # AIX 5 supports IA64
10957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10958 shlibpath_var=LD_LIBRARY_PATH
10960 # With GCC up to 2.95.x, collect2 would create an import file
10961 # for dependence libraries. The import file would start with
10962 # the line `#! .'. This would cause the generated library to
10963 # depend on `.', always an invalid library. This was fixed in
10964 # development snapshots of GCC prior to 3.0.
10966 aix4 | aix4.[01] | aix4.[01].*)
10967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10969 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10972 can_build_shared=no
10976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10977 # soname into executable. Probably we can add versioning support to
10978 # collect2, so additional links can be useful in future.
10979 if test "$aix_use_runtimelinking" = yes; then
10980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10981 # instead of lib<name>.a to let people know that these are not
10982 # typical AIX shared libraries.
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 # We preserve .a as extension for shared libraries through AIX4.2
10986 # and later when we are not doing run time linking.
10987 library_names_spec='${libname}${release}.a $libname.a'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LIBPATH
10997 # Since July 2007 AmigaOS4 officially supports .so libraries.
10998 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 library_names_spec='$libname.ixlibrary $libname.a'
11003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11004 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'
11010 library_names_spec='${libname}${shared_ext}'
11011 dynamic_linker="$host_os ld.so"
11012 shlibpath_var=LIBRARY_PATH
11016 version_type=linux # correct to gnu/linux during the next big refactor
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11024 # the default ld.so.conf also contains /usr/contrib/lib and
11025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11026 # libtool to hard-code these into programs
11029 cygwin* | mingw* | pw32* | cegcc*)
11030 version_type=windows
11035 case $GCC,$cc_basename in
11038 library_names_spec='$libname.dll.a'
11039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040 postinstall_cmds='base_file=`basename \${file}`~
11041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11042 dldir=$destdir/`dirname \$dlpath`~
11043 test -d \$dldir || mkdir -p \$dldir~
11044 $install_prog $dir/$dlname \$dldir/$dlname~
11045 chmod a+x \$dldir/$dlname~
11046 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11047 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11050 dlpath=$dir/\$dldll~
11052 shlibpath_overrides_runpath=yes
11056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11057 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11059 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11062 # MinGW DLLs use traditional 'lib' prefix
11063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11066 # pw32 DLLs use 'pw' prefix rather than 'lib'
11067 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11070 dynamic_linker='Win32 ld.exe'
11075 libname_spec='$name'
11076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11077 library_names_spec='${libname}.dll.lib'
11081 sys_lib_search_path_spec=
11084 for lt_path in $LIB
11087 # Let DOS variable expansion print the short 8.3 style file name.
11088 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11089 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11092 # Convert to MSYS style.
11093 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11096 # Convert to unix form, then to dos form, then back to unix form
11097 # but this time dos style (no spaces!) so that the unix form looks
11098 # like /cygdrive/c/PROGRA~1:/cygdr...
11099 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11100 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11101 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11104 sys_lib_search_path_spec="$LIB"
11105 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11106 # It is most probably a Windows format PATH.
11107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11109 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11111 # FIXME: find the short name or the path components, as spaces are
11112 # common. (e.g. "Program Files" -> "PROGRA~1")
11116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11117 postinstall_cmds='base_file=`basename \${file}`~
11118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11119 dldir=$destdir/`dirname \$dlpath`~
11120 test -d \$dldir || mkdir -p \$dldir~
11121 $install_prog $dir/$dlname \$dldir/$dlname'
11122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11123 dlpath=$dir/\$dldll~
11125 shlibpath_overrides_runpath=yes
11126 dynamic_linker='Win32 link.exe'
11130 # Assume MSVC wrapper
11131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11132 dynamic_linker='Win32 ld.exe'
11135 # FIXME: first we should search . and the directory the executable is in
11139 darwin* | rhapsody*)
11140 dynamic_linker="$host_os dyld"
11141 version_type=darwin
11144 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11145 soname_spec='${libname}${release}${major}$shared_ext'
11146 shlibpath_overrides_runpath=yes
11147 shlibpath_var=DYLD_LIBRARY_PATH
11148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11155 version_type=linux # correct to gnu/linux during the next big refactor
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11163 freebsd* | dragonfly*)
11164 # DragonFly does not have aout. When/if they implement a new
11165 # versioning mechanism, adjust this.
11166 if test -x /usr/bin/objformat; then
11167 objformat=`/usr/bin/objformat`
11170 freebsd[23].*) objformat=aout ;;
11171 *) objformat=elf ;;
11174 version_type=freebsd-$objformat
11175 case $version_type in
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11186 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11191 freebsd3.[01]* | freebsdelf3.[01]*)
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11200 *) # from 4.6 on, and DragonFly
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11208 version_type=linux # correct to gnu/linux during the next big refactor
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 shlibpath_var=LD_LIBRARY_PATH
11214 shlibpath_overrides_runpath=no
11215 hardcode_into_libs=yes
11219 version_type=linux # correct to gnu/linux during the next big refactor
11222 dynamic_linker="$host_os runtime_loader"
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 shlibpath_var=LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11228 hardcode_into_libs=yes
11231 hpux9* | hpux10* | hpux11*)
11232 # Give a soname corresponding to the major version so that dld.sl refuses to
11233 # link against other versions.
11240 hardcode_into_libs=yes
11241 dynamic_linker="$host_os dld.so"
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 if test "X$HPUX_IA64_MODE" = X32; then
11247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11255 hardcode_into_libs=yes
11256 dynamic_linker="$host_os dld.sl"
11257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11266 dynamic_linker="$host_os dld.sl"
11267 shlibpath_var=SHLIB_PATH
11268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11273 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11274 postinstall_cmds='chmod 555 $lib'
11275 # or fails outright, so override atomically:
11276 install_override_mode=555
11280 version_type=linux # correct to gnu/linux during the next big refactor
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=no
11288 hardcode_into_libs=yes
11291 irix5* | irix6* | nonstopux*)
11293 nonstopux*) version_type=nonstopux ;;
11295 if test "$lt_cv_prog_gnu_ld" = yes; then
11296 version_type=linux # correct to gnu/linux during the next big refactor
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11306 irix5* | nonstopux*)
11307 libsuff= shlibsuff=
11310 case $LD in # libtool.m4 will add one of these switches to LD
11311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11312 libsuff= shlibsuff= libmagic=32-bit;;
11313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11314 libsuff=32 shlibsuff=N32 libmagic=N32;;
11315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11316 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11317 *) libsuff= shlibsuff= libmagic=never-match;;
11321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11322 shlibpath_overrides_runpath=no
11323 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11324 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11325 hardcode_into_libs=yes
11328 # No shared lib support for Linux oldld, aout, or coff.
11329 linux*oldld* | linux*aout* | linux*coff*)
11333 # This must be glibc/ELF.
11334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11335 version_type=linux # correct to gnu/linux during the next big refactor
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=no
11344 # Some binutils ld are patched to set DT_RUNPATH
11345 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11346 $as_echo_n "(cached) " >&6
11348 lt_cv_shlibpath_overrides_runpath=no
11349 save_LDFLAGS=$LDFLAGS
11350 save_libdir=$libdir
11351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11366 lt_cv_shlibpath_overrides_runpath=yes
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LDFLAGS=$save_LDFLAGS
11372 libdir=$save_libdir
11376 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11378 # This implies no fast_install, which is unacceptable.
11379 # Some rework will be needed to allow for fast_install
11380 # before this can be enabled.
11381 hardcode_into_libs=yes
11383 # Append ld.so.conf contents to the search path
11384 if test -f /etc/ld.so.conf; then
11385 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' ' '`
11386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11389 # We used to test for /lib/ld.so.1 and disable shared libraries on
11390 # powerpc, because MkLinux only supported shared libraries with the
11391 # GNU dynamic linker. Since this was broken with cross compilers,
11392 # most powerpc-linux boxes support dynamic linking these days and
11393 # people can always --disable-shared, the test was removed, and we
11394 # assume the GNU/Linux dynamic linker is in use.
11395 dynamic_linker='GNU/Linux ld.so'
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=no
11406 hardcode_into_libs=yes
11407 dynamic_linker='NetBSD ld.elf_so'
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 dynamic_linker='NetBSD (a.out) ld.so'
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 dynamic_linker='NetBSD ld.elf_so'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11429 version_type=linux # correct to gnu/linux during the next big refactor
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=yes
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 hardcode_into_libs=yes
11444 dynamic_linker='ldqnx.so'
11449 sys_lib_dlsearch_path_spec="/usr/lib"
11451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11454 *) need_version=no ;;
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11461 openbsd2.[89] | openbsd2.[89].*)
11462 shlibpath_overrides_runpath=no
11465 shlibpath_overrides_runpath=yes
11469 shlibpath_overrides_runpath=yes
11474 libname_spec='$name'
11477 library_names_spec='$libname${shared_ext} $libname.a'
11478 dynamic_linker='OS/2 ld.exe'
11479 shlibpath_var=LIBPATH
11482 osf3* | osf4* | osf5*)
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11498 version_type=linux # correct to gnu/linux during the next big refactor
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 # ldd complains unless libraries are executable
11507 postinstall_cmds='chmod +x $lib'
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11516 if test "$with_gnu_ld" = yes; then
11523 version_type=linux # correct to gnu/linux during the next big refactor
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 case $host_vendor in
11529 shlibpath_overrides_runpath=no
11531 runpath_var=LD_RUN_PATH
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11546 if test -d /usr/nec ;then
11547 version_type=linux # correct to gnu/linux during the next big refactor
11548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11549 soname_spec='$libname${shared_ext}.$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555 version_type=freebsd-elf
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 if test "$with_gnu_ld" = yes; then
11564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11573 sys_lib_dlsearch_path_spec='/usr/lib'
11577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11578 version_type=linux # correct to gnu/linux during the next big refactor
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11588 version_type=linux # correct to gnu/linux during the next big refactor
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599 $as_echo "$dynamic_linker" >&6; }
11600 test "$dynamic_linker" = no && can_build_shared=no
11602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603 if test "$GCC" = yes; then
11604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11607 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11608 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11610 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11611 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11708 if test -n "$hardcode_libdir_flag_spec" ||
11709 test -n "$runpath_var" ||
11710 test "X$hardcode_automatic" = "Xyes" ; then
11712 # We can hardcode non-existent directories.
11713 if test "$hardcode_direct" != no &&
11714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11715 # have to relink, otherwise we might link with an installed library
11716 # when we should be linking with a yet-to-be-installed one
11717 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11718 test "$hardcode_minus_L" != no; then
11719 # Linking always hardcodes the temporary library directory.
11720 hardcode_action=relink
11722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11723 hardcode_action=immediate
11726 # We cannot hardcode anything, or else we can only hardcode existing
11728 hardcode_action=unsupported
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11731 $as_echo "$hardcode_action" >&6; }
11733 if test "$hardcode_action" = relink ||
11734 test "$inherit_rpath" = yes; then
11735 # Fast installation is not supported
11736 enable_fast_install=no
11737 elif test "$shlibpath_overrides_runpath" = yes ||
11738 test "$enable_shared" = no; then
11739 # Fast installation is not necessary
11740 enable_fast_install=needless
11748 if test "x$enable_dlopen" != xyes; then
11749 enable_dlopen=unknown
11750 enable_dlopen_self=unknown
11751 enable_dlopen_self_static=unknown
11758 lt_cv_dlopen="load_add_on"
11760 lt_cv_dlopen_self=yes
11763 mingw* | pw32* | cegcc*)
11764 lt_cv_dlopen="LoadLibrary"
11769 lt_cv_dlopen="dlopen"
11774 # if libdl is installed we need to link against it
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11777 if ${ac_cv_lib_dl_dlopen+:} false; then :
11778 $as_echo_n "(cached) " >&6
11780 ac_check_lib_save_LIBS=$LIBS
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 ac_cv_lib_dl_dlopen=yes
11803 ac_cv_lib_dl_dlopen=no
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11811 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11815 lt_cv_dlopen="dyld"
11817 lt_cv_dlopen_self=yes
11824 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11825 if test "x$ac_cv_func_shl_load" = xyes; then :
11826 lt_cv_dlopen="shl_load"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11829 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11830 if ${ac_cv_lib_dld_shl_load+:} false; then :
11831 $as_echo_n "(cached) " >&6
11833 ac_check_lib_save_LIBS=$LIBS
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11848 return shl_load ();
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 ac_cv_lib_dld_shl_load=yes
11856 ac_cv_lib_dld_shl_load=no
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11864 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11867 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11868 if test "x$ac_cv_func_dlopen" = xyes; then :
11869 lt_cv_dlopen="dlopen"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11873 if ${ac_cv_lib_dl_dlopen+:} false; then :
11874 $as_echo_n "(cached) " >&6
11876 ac_check_lib_save_LIBS=$LIBS
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_lib_dl_dlopen=yes
11899 ac_cv_lib_dl_dlopen=no
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11907 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11911 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11912 if ${ac_cv_lib_svld_dlopen+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lsvld $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_svld_dlopen=yes
11938 ac_cv_lib_svld_dlopen=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11946 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11950 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11951 if ${ac_cv_lib_dld_dld_link+:} false; then :
11952 $as_echo_n "(cached) " >&6
11954 ac_check_lib_save_LIBS=$LIBS
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11969 return dld_link ();
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_dld_dld_link=yes
11977 ac_cv_lib_dld_dld_link=no
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11984 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11985 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11986 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12007 if test "x$lt_cv_dlopen" != xno; then
12013 case $lt_cv_dlopen in
12015 save_CPPFLAGS="$CPPFLAGS"
12016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12018 save_LDFLAGS="$LDFLAGS"
12019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12022 LIBS="$lt_cv_dlopen_libs $LIBS"
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12025 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12026 if ${lt_cv_dlopen_self+:} false; then :
12027 $as_echo_n "(cached) " >&6
12029 if test "$cross_compiling" = yes; then :
12030 lt_cv_dlopen_self=cross
12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033 lt_status=$lt_dlunknown
12034 cat > conftest.$ac_ext <<_LT_EOF
12035 #line $LINENO "configure"
12036 #include "confdefs.h"
12045 # define LT_DLGLOBAL RTLD_GLOBAL
12048 # define LT_DLGLOBAL DL_GLOBAL
12050 # define LT_DLGLOBAL 0
12054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055 find out it does not work in some platform. */
12056 #ifndef LT_DLLAZY_OR_NOW
12058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12061 # define LT_DLLAZY_OR_NOW DL_LAZY
12064 # define LT_DLLAZY_OR_NOW RTLD_NOW
12067 # define LT_DLLAZY_OR_NOW DL_NOW
12069 # define LT_DLLAZY_OR_NOW 0
12076 /* When -fvisbility=hidden is used, assume the code has been annotated
12077 correspondingly for the symbols needed. */
12078 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12079 int fnord () __attribute__((visibility("default")));
12082 int fnord () { return 42; }
12085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12086 int status = $lt_dlunknown;
12090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12094 else puts (dlerror ());
12096 /* dlclose (self); */
12104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12105 (eval $ac_link) 2>&5
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12109 (./conftest; exit; ) >&5 2>/dev/null
12111 case x$lt_status in
12112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12117 # compilation failed
12118 lt_cv_dlopen_self=no
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12126 $as_echo "$lt_cv_dlopen_self" >&6; }
12128 if test "x$lt_cv_dlopen_self" = xyes; then
12129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12131 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12132 if ${lt_cv_dlopen_self_static+:} false; then :
12133 $as_echo_n "(cached) " >&6
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self_static=cross
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
12141 #line $LINENO "configure"
12142 #include "confdefs.h"
12151 # define LT_DLGLOBAL RTLD_GLOBAL
12154 # define LT_DLGLOBAL DL_GLOBAL
12156 # define LT_DLGLOBAL 0
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12167 # define LT_DLLAZY_OR_NOW DL_LAZY
12170 # define LT_DLLAZY_OR_NOW RTLD_NOW
12173 # define LT_DLLAZY_OR_NOW DL_NOW
12175 # define LT_DLLAZY_OR_NOW 0
12182 /* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185 int fnord () __attribute__((visibility("default")));
12188 int fnord () { return 42; }
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12202 /* dlclose (self); */
12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211 (eval $ac_link) 2>&5
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215 (./conftest; exit; ) >&5 2>/dev/null
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12223 # compilation failed
12224 lt_cv_dlopen_self_static=no
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12232 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12235 CPPFLAGS="$save_CPPFLAGS"
12236 LDFLAGS="$save_LDFLAGS"
12241 case $lt_cv_dlopen_self in
12242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12243 *) enable_dlopen_self=unknown ;;
12246 case $lt_cv_dlopen_self_static in
12247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12248 *) enable_dlopen_self_static=unknown ;;
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12271 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12272 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12278 # FIXME - insert some real tests, host_os isn't really good enough
12281 if test -n "$STRIP" ; then
12282 striplib="$STRIP -x"
12283 old_striplib="$STRIP -S"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12309 # Report which library types will actually be built
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12311 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12313 $as_echo "$can_build_shared" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12316 $as_echo_n "checking whether to build shared libraries... " >&6; }
12317 test "$can_build_shared" = "no" && enable_shared=no
12319 # On AIX, shared libraries and static libraries use the same namespace, and
12320 # are all built from PIC.
12323 test "$enable_shared" = yes && enable_static=no
12324 if test -n "$RANLIB"; then
12325 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12326 postinstall_cmds='$RANLIB $lib'
12331 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12332 test "$enable_shared" = yes && enable_static=no
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12337 $as_echo "$enable_shared" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12340 $as_echo_n "checking whether to build static libraries... " >&6; }
12341 # Make sure either enable_shared or enable_static is yes.
12342 test "$enable_shared" = yes || enable_static=yes
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12344 $as_echo "$enable_static" >&6; }
12351 ac_cpp='$CPP $CPPFLAGS'
12352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372 ac_config_commands="$ac_config_commands libtool"
12377 # Only expand once:
12382 if test "X$prefix" = "XNONE"; then
12383 acl_final_prefix="$ac_default_prefix"
12385 acl_final_prefix="$prefix"
12387 if test "X$exec_prefix" = "XNONE"; then
12388 acl_final_exec_prefix='${prefix}'
12390 acl_final_exec_prefix="$exec_prefix"
12392 acl_save_prefix="$prefix"
12393 prefix="$acl_final_prefix"
12394 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12395 prefix="$acl_save_prefix"
12398 # Check whether --with-gnu-ld was given.
12399 if test "${with_gnu_ld+set}" = set; then :
12400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12405 # Prepare PATH_SEPARATOR.
12406 # The user is always right.
12407 if test "${PATH_SEPARATOR+set}" != set; then
12408 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12409 # contains only /bin. Note that ksh looks also at the FPATH variable,
12410 # so we have to set that as well for the test.
12412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12413 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12414 || PATH_SEPARATOR=';'
12418 if test "$GCC" = yes; then
12419 # Check if gcc -print-prog-name=ld gives a path.
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12421 $as_echo_n "checking for ld used by GCC... " >&6; }
12424 # gcc leaves a trailing carriage return which upsets mingw
12425 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12427 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12430 # Accept absolute paths.
12431 [\\/]* | [A-Za-z]:[\\/]*)
12432 re_direlt='/[^/][^/]*/\.\./'
12433 # Canonicalize the path of ld
12434 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12435 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12436 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12438 test -z "$LD" && LD="$ac_prog"
12441 # If it fails, then pretend we aren't using GCC.
12445 # If it is relative, then search for the first ld in PATH.
12446 with_gnu_ld=unknown
12449 elif test "$with_gnu_ld" = yes; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12451 $as_echo_n "checking for GNU ld... " >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12454 $as_echo_n "checking for non-GNU ld... " >&6; }
12456 if ${acl_cv_path_LD+:} false; then :
12457 $as_echo_n "(cached) " >&6
12459 if test -z "$LD"; then
12460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12461 for ac_dir in $PATH; do
12462 test -z "$ac_dir" && ac_dir=.
12463 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12464 acl_cv_path_LD="$ac_dir/$ac_prog"
12465 # Check to see if the program is GNU ld. I'd rather use --version,
12466 # but apparently some GNU ld's only accept -v.
12467 # Break only if it was the GNU/non-GNU ld that we prefer.
12468 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12469 *GNU* | *'with BFD'*)
12470 test "$with_gnu_ld" != no && break ;;
12472 test "$with_gnu_ld" != yes && break ;;
12478 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12482 LD="$acl_cv_path_LD"
12483 if test -n "$LD"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12485 $as_echo "$LD" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12493 if ${acl_cv_prog_gnu_ld+:} false; then :
12494 $as_echo_n "(cached) " >&6
12496 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12497 case `$LD -v 2>&1 </dev/null` in
12498 *GNU* | *'with BFD'*)
12499 acl_cv_prog_gnu_ld=yes ;;
12501 acl_cv_prog_gnu_ld=no ;;
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12505 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12506 with_gnu_ld=$acl_cv_prog_gnu_ld
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12512 $as_echo_n "checking for shared library run path origin... " >&6; }
12513 if ${acl_cv_rpath+:} false; then :
12514 $as_echo_n "(cached) " >&6
12517 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12518 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12520 rm -f ./conftest.sh
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12525 $as_echo "$acl_cv_rpath" >&6; }
12527 acl_libext="$acl_cv_libext"
12528 acl_shlibext="$acl_cv_shlibext"
12529 acl_libname_spec="$acl_cv_libname_spec"
12530 acl_library_names_spec="$acl_cv_library_names_spec"
12531 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12532 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12533 acl_hardcode_direct="$acl_cv_hardcode_direct"
12534 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12535 # Check whether --enable-rpath was given.
12536 if test "${enable_rpath+set}" = set; then :
12537 enableval=$enable_rpath; :
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12550 $as_echo_n "checking for 64-bit host... " >&6; }
12551 if ${gl_cv_solaris_64bit+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12564 gl_cv_solaris_64bit=yes
12566 gl_cv_solaris_64bit=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12573 $as_echo "$gl_cv_solaris_64bit" >&6; }
12574 if test $gl_cv_solaris_64bit = yes; then
12575 acl_libdirstem=lib/64
12576 case "$host_cpu" in
12577 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12578 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12583 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12584 if test -n "$searchpath"; then
12585 acl_save_IFS="${IFS= }"; IFS=":"
12586 for searchdir in $searchpath; do
12587 if test -d "$searchdir"; then
12588 case "$searchdir" in
12589 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12591 # Better ignore directories of this form. They are misleading.
12593 *) searchdir=`cd "$searchdir" && pwd`
12594 case "$searchdir" in
12595 */lib64 ) acl_libdirstem=lib64 ;;
12600 IFS="$acl_save_IFS"
12604 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12607 # Library code modified: REVISION++
12608 # Interfaces changed/added/removed: CURRENT++ REVISION=0
12609 # Interfaces added: AGE++
12610 # Interfaces removed: AGE=0
12632 # Used when creating the Windows libgnutls-XX.def files.
12633 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
12639 # Check whether --with-libgcrypt was given.
12640 if test "${with_libgcrypt+set}" = set; then :
12641 withval=$with_libgcrypt; libgcrypt=$withval
12646 if test "$libgcrypt" = "yes"; then
12647 cryptolib=libgcrypt
12649 $as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
12666 acl_save_prefix="$prefix"
12667 prefix="$acl_final_prefix"
12668 acl_save_exec_prefix="$exec_prefix"
12669 exec_prefix="$acl_final_exec_prefix"
12671 eval additional_includedir=\"$includedir\"
12672 eval additional_libdir=\"$libdir\"
12674 exec_prefix="$acl_save_exec_prefix"
12675 prefix="$acl_save_prefix"
12678 # Check whether --with-libgcrypt-prefix was given.
12679 if test "${with_libgcrypt_prefix+set}" = set; then :
12680 withval=$with_libgcrypt_prefix;
12681 if test "X$withval" = "Xno"; then
12684 if test "X$withval" = "X"; then
12686 acl_save_prefix="$prefix"
12687 prefix="$acl_final_prefix"
12688 acl_save_exec_prefix="$exec_prefix"
12689 exec_prefix="$acl_final_exec_prefix"
12691 eval additional_includedir=\"$includedir\"
12692 eval additional_libdir=\"$libdir\"
12694 exec_prefix="$acl_save_exec_prefix"
12695 prefix="$acl_save_prefix"
12698 additional_includedir="$withval/include"
12699 additional_libdir="$withval/$acl_libdirstem"
12700 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12701 && ! test -d "$withval/$acl_libdirstem"; then
12702 additional_libdir="$withval/$acl_libdirstem2"
12716 names_already_handled=
12717 names_next_round='gcrypt gpg-error'
12718 while test -n "$names_next_round"; do
12719 names_this_round="$names_next_round"
12721 for name in $names_this_round; do
12723 for n in $names_already_handled; do
12724 if test "$n" = "$name"; then
12725 already_handled=yes
12729 if test -z "$already_handled"; then
12730 names_already_handled="$names_already_handled $name"
12731 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12732 eval value=\"\$HAVE_LIB$uppername\"
12733 if test -n "$value"; then
12734 if test "$value" = yes; then
12735 eval value=\"\$LIB$uppername\"
12736 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
12737 eval value=\"\$LTLIB$uppername\"
12738 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
12747 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12748 if test -n "$acl_shlibext"; then
12749 shrext=".$acl_shlibext" # typically: shrext=.so
12753 if test $use_additional = yes; then
12754 dir="$additional_libdir"
12755 if test -n "$acl_shlibext"; then
12756 if test -f "$dir/$libname$shrext"; then
12758 found_so="$dir/$libname$shrext"
12760 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12761 ver=`(cd "$dir" && \
12762 for f in "$libname$shrext".*; do echo "$f"; done \
12763 | sed -e "s,^$libname$shrext\\\\.,," \
12764 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12765 | sed 1q ) 2>/dev/null`
12766 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12768 found_so="$dir/$libname$shrext.$ver"
12771 eval library_names=\"$acl_library_names_spec\"
12772 for f in $library_names; do
12773 if test -f "$dir/$f"; then
12782 if test "X$found_dir" = "X"; then
12783 if test -f "$dir/$libname.$acl_libext"; then
12785 found_a="$dir/$libname.$acl_libext"
12788 if test "X$found_dir" != "X"; then
12789 if test -f "$dir/$libname.la"; then
12790 found_la="$dir/$libname.la"
12794 if test "X$found_dir" = "X"; then
12795 for x in $LDFLAGS $LTLIBGCRYPT; do
12797 acl_save_prefix="$prefix"
12798 prefix="$acl_final_prefix"
12799 acl_save_exec_prefix="$exec_prefix"
12800 exec_prefix="$acl_final_exec_prefix"
12802 exec_prefix="$acl_save_exec_prefix"
12803 prefix="$acl_save_prefix"
12807 dir=`echo "X$x" | sed -e 's/^X-L//'`
12808 if test -n "$acl_shlibext"; then
12809 if test -f "$dir/$libname$shrext"; then
12811 found_so="$dir/$libname$shrext"
12813 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12814 ver=`(cd "$dir" && \
12815 for f in "$libname$shrext".*; do echo "$f"; done \
12816 | sed -e "s,^$libname$shrext\\\\.,," \
12817 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12818 | sed 1q ) 2>/dev/null`
12819 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12821 found_so="$dir/$libname$shrext.$ver"
12824 eval library_names=\"$acl_library_names_spec\"
12825 for f in $library_names; do
12826 if test -f "$dir/$f"; then
12835 if test "X$found_dir" = "X"; then
12836 if test -f "$dir/$libname.$acl_libext"; then
12838 found_a="$dir/$libname.$acl_libext"
12841 if test "X$found_dir" != "X"; then
12842 if test -f "$dir/$libname.la"; then
12843 found_la="$dir/$libname.la"
12848 if test "X$found_dir" != "X"; then
12853 if test "X$found_dir" != "X"; then
12854 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
12855 if test "X$found_so" != "X"; then
12856 if test "$enable_rpath" = no \
12857 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12858 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12859 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12862 for x in $ltrpathdirs; do
12863 if test "X$x" = "X$found_dir"; then
12868 if test -z "$haveit"; then
12869 ltrpathdirs="$ltrpathdirs $found_dir"
12871 if test "$acl_hardcode_direct" = yes; then
12872 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12874 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12875 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12877 for x in $rpathdirs; do
12878 if test "X$x" = "X$found_dir"; then
12883 if test -z "$haveit"; then
12884 rpathdirs="$rpathdirs $found_dir"
12888 for x in $LDFLAGS $LIBGCRYPT; do
12890 acl_save_prefix="$prefix"
12891 prefix="$acl_final_prefix"
12892 acl_save_exec_prefix="$exec_prefix"
12893 exec_prefix="$acl_final_exec_prefix"
12895 exec_prefix="$acl_save_exec_prefix"
12896 prefix="$acl_save_prefix"
12898 if test "X$x" = "X-L$found_dir"; then
12903 if test -z "$haveit"; then
12904 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
12906 if test "$acl_hardcode_minus_L" != no; then
12907 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12909 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
12915 if test "X$found_a" != "X"; then
12916 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
12918 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
12921 additional_includedir=
12922 case "$found_dir" in
12923 */$acl_libdirstem | */$acl_libdirstem/)
12924 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12925 if test "$name" = 'gcrypt'; then
12926 LIBGCRYPT_PREFIX="$basedir"
12928 additional_includedir="$basedir/include"
12930 */$acl_libdirstem2 | */$acl_libdirstem2/)
12931 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12932 if test "$name" = 'gcrypt'; then
12933 LIBGCRYPT_PREFIX="$basedir"
12935 additional_includedir="$basedir/include"
12938 if test "X$additional_includedir" != "X"; then
12939 if test "X$additional_includedir" != "X/usr/include"; then
12941 if test "X$additional_includedir" = "X/usr/local/include"; then
12942 if test -n "$GCC"; then
12944 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12948 if test -z "$haveit"; then
12949 for x in $CPPFLAGS $INCGCRYPT; do
12951 acl_save_prefix="$prefix"
12952 prefix="$acl_final_prefix"
12953 acl_save_exec_prefix="$exec_prefix"
12954 exec_prefix="$acl_final_exec_prefix"
12956 exec_prefix="$acl_save_exec_prefix"
12957 prefix="$acl_save_prefix"
12959 if test "X$x" = "X-I$additional_includedir"; then
12964 if test -z "$haveit"; then
12965 if test -d "$additional_includedir"; then
12966 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
12972 if test -n "$found_la"; then
12973 save_libdir="$libdir"
12974 case "$found_la" in
12975 */* | *\\*) . "$found_la" ;;
12976 *) . "./$found_la" ;;
12978 libdir="$save_libdir"
12979 for dep in $dependency_libs; do
12982 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12983 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12984 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12986 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12987 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12988 if test -n "$GCC"; then
12990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12994 if test -z "$haveit"; then
12996 for x in $LDFLAGS $LIBGCRYPT; do
12998 acl_save_prefix="$prefix"
12999 prefix="$acl_final_prefix"
13000 acl_save_exec_prefix="$exec_prefix"
13001 exec_prefix="$acl_final_exec_prefix"
13003 exec_prefix="$acl_save_exec_prefix"
13004 prefix="$acl_save_prefix"
13006 if test "X$x" = "X-L$additional_libdir"; then
13011 if test -z "$haveit"; then
13012 if test -d "$additional_libdir"; then
13013 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
13017 for x in $LDFLAGS $LTLIBGCRYPT; do
13019 acl_save_prefix="$prefix"
13020 prefix="$acl_final_prefix"
13021 acl_save_exec_prefix="$exec_prefix"
13022 exec_prefix="$acl_final_exec_prefix"
13024 exec_prefix="$acl_save_exec_prefix"
13025 prefix="$acl_save_prefix"
13027 if test "X$x" = "X-L$additional_libdir"; then
13032 if test -z "$haveit"; then
13033 if test -d "$additional_libdir"; then
13034 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
13041 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13042 if test "$enable_rpath" != no; then
13044 for x in $rpathdirs; do
13045 if test "X$x" = "X$dir"; then
13050 if test -z "$haveit"; then
13051 rpathdirs="$rpathdirs $dir"
13054 for x in $ltrpathdirs; do
13055 if test "X$x" = "X$dir"; then
13060 if test -z "$haveit"; then
13061 ltrpathdirs="$ltrpathdirs $dir"
13066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13069 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13072 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
13073 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
13079 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
13080 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
13086 if test "X$rpathdirs" != "X"; then
13087 if test -n "$acl_hardcode_libdir_separator"; then
13089 for found_dir in $rpathdirs; do
13090 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13092 acl_save_libdir="$libdir"
13094 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13095 libdir="$acl_save_libdir"
13096 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
13098 for found_dir in $rpathdirs; do
13099 acl_save_libdir="$libdir"
13100 libdir="$found_dir"
13101 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13102 libdir="$acl_save_libdir"
13103 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
13107 if test "X$ltrpathdirs" != "X"; then
13108 for found_dir in $ltrpathdirs; do
13109 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
13119 ac_save_CPPFLAGS="$CPPFLAGS"
13121 for element in $INCGCRYPT; do
13123 for x in $CPPFLAGS; do
13125 acl_save_prefix="$prefix"
13126 prefix="$acl_final_prefix"
13127 acl_save_exec_prefix="$exec_prefix"
13128 exec_prefix="$acl_final_exec_prefix"
13130 exec_prefix="$acl_save_exec_prefix"
13131 prefix="$acl_save_prefix"
13133 if test "X$x" = "X$element"; then
13138 if test -z "$haveit"; then
13139 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
13145 $as_echo_n "checking for libgcrypt... " >&6; }
13146 if ${ac_cv_libgcrypt+:} false; then :
13147 $as_echo_n "(cached) " >&6
13150 ac_save_LIBS="$LIBS"
13151 case " $LIBGCRYPT" in
13152 *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;;
13153 *) LIBS="$LIBGCRYPT $LIBS" ;;
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 #include <gcrypt.h>
13161 enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
13166 if ac_fn_c_try_link "$LINENO"; then :
13167 ac_cv_libgcrypt=yes
13169 ac_cv_libgcrypt='no'
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173 LIBS="$ac_save_LIBS"
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
13177 $as_echo "$ac_cv_libgcrypt" >&6; }
13178 if test "$ac_cv_libgcrypt" = yes; then
13181 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
13184 $as_echo_n "checking how to link with libgcrypt... " >&6; }
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
13186 $as_echo "$LIBGCRYPT" >&6; }
13189 CPPFLAGS="$ac_save_CPPFLAGS"
13201 if test "$ac_cv_libgcrypt" != yes; then
13204 *** Libgcrypt v1.4.0 or later was not found. You may want to get it from
13205 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
13212 $as_echo_n "checking whether to use nettle... " >&6; }
13213 if test "$cryptolib" = "nettle";then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215 $as_echo "yes" >&6; }
13231 acl_save_prefix="$prefix"
13232 prefix="$acl_final_prefix"
13233 acl_save_exec_prefix="$exec_prefix"
13234 exec_prefix="$acl_final_exec_prefix"
13236 eval additional_includedir=\"$includedir\"
13237 eval additional_libdir=\"$libdir\"
13239 exec_prefix="$acl_save_exec_prefix"
13240 prefix="$acl_save_prefix"
13243 # Check whether --with-libnettle-prefix was given.
13244 if test "${with_libnettle_prefix+set}" = set; then :
13245 withval=$with_libnettle_prefix;
13246 if test "X$withval" = "Xno"; then
13249 if test "X$withval" = "X"; then
13251 acl_save_prefix="$prefix"
13252 prefix="$acl_final_prefix"
13253 acl_save_exec_prefix="$exec_prefix"
13254 exec_prefix="$acl_final_exec_prefix"
13256 eval additional_includedir=\"$includedir\"
13257 eval additional_libdir=\"$libdir\"
13259 exec_prefix="$acl_save_exec_prefix"
13260 prefix="$acl_save_prefix"
13263 additional_includedir="$withval/include"
13264 additional_libdir="$withval/$acl_libdirstem"
13265 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13266 && ! test -d "$withval/$acl_libdirstem"; then
13267 additional_libdir="$withval/$acl_libdirstem2"
13281 names_already_handled=
13282 names_next_round='nettle '
13283 while test -n "$names_next_round"; do
13284 names_this_round="$names_next_round"
13286 for name in $names_this_round; do
13288 for n in $names_already_handled; do
13289 if test "$n" = "$name"; then
13290 already_handled=yes
13294 if test -z "$already_handled"; then
13295 names_already_handled="$names_already_handled $name"
13296 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13297 eval value=\"\$HAVE_LIB$uppername\"
13298 if test -n "$value"; then
13299 if test "$value" = yes; then
13300 eval value=\"\$LIB$uppername\"
13301 test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
13302 eval value=\"\$LTLIB$uppername\"
13303 test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
13312 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13313 if test -n "$acl_shlibext"; then
13314 shrext=".$acl_shlibext" # typically: shrext=.so
13318 if test $use_additional = yes; then
13319 dir="$additional_libdir"
13320 if test -n "$acl_shlibext"; then
13321 if test -f "$dir/$libname$shrext"; then
13323 found_so="$dir/$libname$shrext"
13325 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13326 ver=`(cd "$dir" && \
13327 for f in "$libname$shrext".*; do echo "$f"; done \
13328 | sed -e "s,^$libname$shrext\\\\.,," \
13329 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13330 | sed 1q ) 2>/dev/null`
13331 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13333 found_so="$dir/$libname$shrext.$ver"
13336 eval library_names=\"$acl_library_names_spec\"
13337 for f in $library_names; do
13338 if test -f "$dir/$f"; then
13347 if test "X$found_dir" = "X"; then
13348 if test -f "$dir/$libname.$acl_libext"; then
13350 found_a="$dir/$libname.$acl_libext"
13353 if test "X$found_dir" != "X"; then
13354 if test -f "$dir/$libname.la"; then
13355 found_la="$dir/$libname.la"
13359 if test "X$found_dir" = "X"; then
13360 for x in $LDFLAGS $LTLIBNETTLE; do
13362 acl_save_prefix="$prefix"
13363 prefix="$acl_final_prefix"
13364 acl_save_exec_prefix="$exec_prefix"
13365 exec_prefix="$acl_final_exec_prefix"
13367 exec_prefix="$acl_save_exec_prefix"
13368 prefix="$acl_save_prefix"
13372 dir=`echo "X$x" | sed -e 's/^X-L//'`
13373 if test -n "$acl_shlibext"; then
13374 if test -f "$dir/$libname$shrext"; then
13376 found_so="$dir/$libname$shrext"
13378 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13379 ver=`(cd "$dir" && \
13380 for f in "$libname$shrext".*; do echo "$f"; done \
13381 | sed -e "s,^$libname$shrext\\\\.,," \
13382 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13383 | sed 1q ) 2>/dev/null`
13384 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13386 found_so="$dir/$libname$shrext.$ver"
13389 eval library_names=\"$acl_library_names_spec\"
13390 for f in $library_names; do
13391 if test -f "$dir/$f"; then
13400 if test "X$found_dir" = "X"; then
13401 if test -f "$dir/$libname.$acl_libext"; then
13403 found_a="$dir/$libname.$acl_libext"
13406 if test "X$found_dir" != "X"; then
13407 if test -f "$dir/$libname.la"; then
13408 found_la="$dir/$libname.la"
13413 if test "X$found_dir" != "X"; then
13418 if test "X$found_dir" != "X"; then
13419 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
13420 if test "X$found_so" != "X"; then
13421 if test "$enable_rpath" = no \
13422 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13423 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13424 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13427 for x in $ltrpathdirs; do
13428 if test "X$x" = "X$found_dir"; then
13433 if test -z "$haveit"; then
13434 ltrpathdirs="$ltrpathdirs $found_dir"
13436 if test "$acl_hardcode_direct" = yes; then
13437 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13439 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13440 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13442 for x in $rpathdirs; do
13443 if test "X$x" = "X$found_dir"; then
13448 if test -z "$haveit"; then
13449 rpathdirs="$rpathdirs $found_dir"
13453 for x in $LDFLAGS $LIBNETTLE; do
13455 acl_save_prefix="$prefix"
13456 prefix="$acl_final_prefix"
13457 acl_save_exec_prefix="$exec_prefix"
13458 exec_prefix="$acl_final_exec_prefix"
13460 exec_prefix="$acl_save_exec_prefix"
13461 prefix="$acl_save_prefix"
13463 if test "X$x" = "X-L$found_dir"; then
13468 if test -z "$haveit"; then
13469 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
13471 if test "$acl_hardcode_minus_L" != no; then
13472 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13474 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
13480 if test "X$found_a" != "X"; then
13481 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
13483 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
13486 additional_includedir=
13487 case "$found_dir" in
13488 */$acl_libdirstem | */$acl_libdirstem/)
13489 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13490 if test "$name" = 'nettle'; then
13491 LIBNETTLE_PREFIX="$basedir"
13493 additional_includedir="$basedir/include"
13495 */$acl_libdirstem2 | */$acl_libdirstem2/)
13496 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13497 if test "$name" = 'nettle'; then
13498 LIBNETTLE_PREFIX="$basedir"
13500 additional_includedir="$basedir/include"
13503 if test "X$additional_includedir" != "X"; then
13504 if test "X$additional_includedir" != "X/usr/include"; then
13506 if test "X$additional_includedir" = "X/usr/local/include"; then
13507 if test -n "$GCC"; then
13509 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13513 if test -z "$haveit"; then
13514 for x in $CPPFLAGS $INCNETTLE; do
13516 acl_save_prefix="$prefix"
13517 prefix="$acl_final_prefix"
13518 acl_save_exec_prefix="$exec_prefix"
13519 exec_prefix="$acl_final_exec_prefix"
13521 exec_prefix="$acl_save_exec_prefix"
13522 prefix="$acl_save_prefix"
13524 if test "X$x" = "X-I$additional_includedir"; then
13529 if test -z "$haveit"; then
13530 if test -d "$additional_includedir"; then
13531 INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
13537 if test -n "$found_la"; then
13538 save_libdir="$libdir"
13539 case "$found_la" in
13540 */* | *\\*) . "$found_la" ;;
13541 *) . "./$found_la" ;;
13543 libdir="$save_libdir"
13544 for dep in $dependency_libs; do
13547 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13548 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13549 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13551 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13552 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13553 if test -n "$GCC"; then
13555 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13559 if test -z "$haveit"; then
13561 for x in $LDFLAGS $LIBNETTLE; do
13563 acl_save_prefix="$prefix"
13564 prefix="$acl_final_prefix"
13565 acl_save_exec_prefix="$exec_prefix"
13566 exec_prefix="$acl_final_exec_prefix"
13568 exec_prefix="$acl_save_exec_prefix"
13569 prefix="$acl_save_prefix"
13571 if test "X$x" = "X-L$additional_libdir"; then
13576 if test -z "$haveit"; then
13577 if test -d "$additional_libdir"; then
13578 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
13582 for x in $LDFLAGS $LTLIBNETTLE; do
13584 acl_save_prefix="$prefix"
13585 prefix="$acl_final_prefix"
13586 acl_save_exec_prefix="$exec_prefix"
13587 exec_prefix="$acl_final_exec_prefix"
13589 exec_prefix="$acl_save_exec_prefix"
13590 prefix="$acl_save_prefix"
13592 if test "X$x" = "X-L$additional_libdir"; then
13597 if test -z "$haveit"; then
13598 if test -d "$additional_libdir"; then
13599 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
13606 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13607 if test "$enable_rpath" != no; then
13609 for x in $rpathdirs; do
13610 if test "X$x" = "X$dir"; then
13615 if test -z "$haveit"; then
13616 rpathdirs="$rpathdirs $dir"
13619 for x in $ltrpathdirs; do
13620 if test "X$x" = "X$dir"; then
13625 if test -z "$haveit"; then
13626 ltrpathdirs="$ltrpathdirs $dir"
13631 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13634 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13637 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
13638 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
13644 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
13645 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
13651 if test "X$rpathdirs" != "X"; then
13652 if test -n "$acl_hardcode_libdir_separator"; then
13654 for found_dir in $rpathdirs; do
13655 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13657 acl_save_libdir="$libdir"
13659 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13660 libdir="$acl_save_libdir"
13661 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
13663 for found_dir in $rpathdirs; do
13664 acl_save_libdir="$libdir"
13665 libdir="$found_dir"
13666 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13667 libdir="$acl_save_libdir"
13668 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
13672 if test "X$ltrpathdirs" != "X"; then
13673 for found_dir in $ltrpathdirs; do
13674 LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
13684 ac_save_CPPFLAGS="$CPPFLAGS"
13686 for element in $INCNETTLE; do
13688 for x in $CPPFLAGS; do
13690 acl_save_prefix="$prefix"
13691 prefix="$acl_final_prefix"
13692 acl_save_exec_prefix="$exec_prefix"
13693 exec_prefix="$acl_final_exec_prefix"
13695 exec_prefix="$acl_save_exec_prefix"
13696 prefix="$acl_save_prefix"
13698 if test "X$x" = "X$element"; then
13703 if test -z "$haveit"; then
13704 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
13710 $as_echo_n "checking for libnettle... " >&6; }
13711 if ${ac_cv_libnettle+:} false; then :
13712 $as_echo_n "(cached) " >&6
13715 ac_save_LIBS="$LIBS"
13716 case " $LIBNETTLE" in
13717 *" -l"*) LIBS="$LIBS $LIBNETTLE" ;;
13718 *) LIBS="$LIBNETTLE $LIBS" ;;
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 #include <nettle/aes.h>
13726 nettle_aes_invert_key (0, 0)
13731 if ac_fn_c_try_link "$LINENO"; then :
13732 ac_cv_libnettle=yes
13734 ac_cv_libnettle='no'
13736 rm -f core conftest.err conftest.$ac_objext \
13737 conftest$ac_exeext conftest.$ac_ext
13738 LIBS="$ac_save_LIBS"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
13742 $as_echo "$ac_cv_libnettle" >&6; }
13743 if test "$ac_cv_libnettle" = yes; then
13746 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
13749 $as_echo_n "checking how to link with libnettle... " >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
13751 $as_echo "$LIBNETTLE" >&6; }
13754 CPPFLAGS="$ac_save_CPPFLAGS"
13766 if test "$ac_cv_libnettle" != yes; then
13769 *** Libnettle 2.1 was not found.
13772 NETTLE_LIBS="-lgmp -lhogweed"
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13778 if test "$cryptolib" = "nettle"; then
13779 ENABLE_NETTLE_TRUE=
13780 ENABLE_NETTLE_FALSE='#'
13782 ENABLE_NETTLE_TRUE='#'
13783 ENABLE_NETTLE_FALSE=
13788 # Check whether --with-included-libtasn1 was given.
13789 if test "${with_included_libtasn1+set}" = set; then :
13790 withval=$with_included_libtasn1; included_libtasn1=$withval
13792 included_libtasn1=no
13795 if test "$included_libtasn1" = "no"; then
13811 acl_save_prefix="$prefix"
13812 prefix="$acl_final_prefix"
13813 acl_save_exec_prefix="$exec_prefix"
13814 exec_prefix="$acl_final_exec_prefix"
13816 eval additional_includedir=\"$includedir\"
13817 eval additional_libdir=\"$libdir\"
13819 exec_prefix="$acl_save_exec_prefix"
13820 prefix="$acl_save_prefix"
13823 # Check whether --with-libtasn1-prefix was given.
13824 if test "${with_libtasn1_prefix+set}" = set; then :
13825 withval=$with_libtasn1_prefix;
13826 if test "X$withval" = "Xno"; then
13829 if test "X$withval" = "X"; then
13831 acl_save_prefix="$prefix"
13832 prefix="$acl_final_prefix"
13833 acl_save_exec_prefix="$exec_prefix"
13834 exec_prefix="$acl_final_exec_prefix"
13836 eval additional_includedir=\"$includedir\"
13837 eval additional_libdir=\"$libdir\"
13839 exec_prefix="$acl_save_exec_prefix"
13840 prefix="$acl_save_prefix"
13843 additional_includedir="$withval/include"
13844 additional_libdir="$withval/$acl_libdirstem"
13845 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13846 && ! test -d "$withval/$acl_libdirstem"; then
13847 additional_libdir="$withval/$acl_libdirstem2"
13861 names_already_handled=
13862 names_next_round='tasn1 '
13863 while test -n "$names_next_round"; do
13864 names_this_round="$names_next_round"
13866 for name in $names_this_round; do
13868 for n in $names_already_handled; do
13869 if test "$n" = "$name"; then
13870 already_handled=yes
13874 if test -z "$already_handled"; then
13875 names_already_handled="$names_already_handled $name"
13876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13877 eval value=\"\$HAVE_LIB$uppername\"
13878 if test -n "$value"; then
13879 if test "$value" = yes; then
13880 eval value=\"\$LIB$uppername\"
13881 test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
13882 eval value=\"\$LTLIB$uppername\"
13883 test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
13892 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13893 if test -n "$acl_shlibext"; then
13894 shrext=".$acl_shlibext" # typically: shrext=.so
13898 if test $use_additional = yes; then
13899 dir="$additional_libdir"
13900 if test -n "$acl_shlibext"; then
13901 if test -f "$dir/$libname$shrext"; then
13903 found_so="$dir/$libname$shrext"
13905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13906 ver=`(cd "$dir" && \
13907 for f in "$libname$shrext".*; do echo "$f"; done \
13908 | sed -e "s,^$libname$shrext\\\\.,," \
13909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13910 | sed 1q ) 2>/dev/null`
13911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13913 found_so="$dir/$libname$shrext.$ver"
13916 eval library_names=\"$acl_library_names_spec\"
13917 for f in $library_names; do
13918 if test -f "$dir/$f"; then
13927 if test "X$found_dir" = "X"; then
13928 if test -f "$dir/$libname.$acl_libext"; then
13930 found_a="$dir/$libname.$acl_libext"
13933 if test "X$found_dir" != "X"; then
13934 if test -f "$dir/$libname.la"; then
13935 found_la="$dir/$libname.la"
13939 if test "X$found_dir" = "X"; then
13940 for x in $LDFLAGS $LTLIBTASN1; do
13942 acl_save_prefix="$prefix"
13943 prefix="$acl_final_prefix"
13944 acl_save_exec_prefix="$exec_prefix"
13945 exec_prefix="$acl_final_exec_prefix"
13947 exec_prefix="$acl_save_exec_prefix"
13948 prefix="$acl_save_prefix"
13952 dir=`echo "X$x" | sed -e 's/^X-L//'`
13953 if test -n "$acl_shlibext"; then
13954 if test -f "$dir/$libname$shrext"; then
13956 found_so="$dir/$libname$shrext"
13958 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13959 ver=`(cd "$dir" && \
13960 for f in "$libname$shrext".*; do echo "$f"; done \
13961 | sed -e "s,^$libname$shrext\\\\.,," \
13962 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13963 | sed 1q ) 2>/dev/null`
13964 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13966 found_so="$dir/$libname$shrext.$ver"
13969 eval library_names=\"$acl_library_names_spec\"
13970 for f in $library_names; do
13971 if test -f "$dir/$f"; then
13980 if test "X$found_dir" = "X"; then
13981 if test -f "$dir/$libname.$acl_libext"; then
13983 found_a="$dir/$libname.$acl_libext"
13986 if test "X$found_dir" != "X"; then
13987 if test -f "$dir/$libname.la"; then
13988 found_la="$dir/$libname.la"
13993 if test "X$found_dir" != "X"; then
13998 if test "X$found_dir" != "X"; then
13999 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
14000 if test "X$found_so" != "X"; then
14001 if test "$enable_rpath" = no \
14002 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14003 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14004 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14007 for x in $ltrpathdirs; do
14008 if test "X$x" = "X$found_dir"; then
14013 if test -z "$haveit"; then
14014 ltrpathdirs="$ltrpathdirs $found_dir"
14016 if test "$acl_hardcode_direct" = yes; then
14017 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14020 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14022 for x in $rpathdirs; do
14023 if test "X$x" = "X$found_dir"; then
14028 if test -z "$haveit"; then
14029 rpathdirs="$rpathdirs $found_dir"
14033 for x in $LDFLAGS $LIBTASN1; do
14035 acl_save_prefix="$prefix"
14036 prefix="$acl_final_prefix"
14037 acl_save_exec_prefix="$exec_prefix"
14038 exec_prefix="$acl_final_exec_prefix"
14040 exec_prefix="$acl_save_exec_prefix"
14041 prefix="$acl_save_prefix"
14043 if test "X$x" = "X-L$found_dir"; then
14048 if test -z "$haveit"; then
14049 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
14051 if test "$acl_hardcode_minus_L" != no; then
14052 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14054 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
14060 if test "X$found_a" != "X"; then
14061 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
14063 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
14066 additional_includedir=
14067 case "$found_dir" in
14068 */$acl_libdirstem | */$acl_libdirstem/)
14069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14070 if test "$name" = 'tasn1'; then
14071 LIBTASN1_PREFIX="$basedir"
14073 additional_includedir="$basedir/include"
14075 */$acl_libdirstem2 | */$acl_libdirstem2/)
14076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14077 if test "$name" = 'tasn1'; then
14078 LIBTASN1_PREFIX="$basedir"
14080 additional_includedir="$basedir/include"
14083 if test "X$additional_includedir" != "X"; then
14084 if test "X$additional_includedir" != "X/usr/include"; then
14086 if test "X$additional_includedir" = "X/usr/local/include"; then
14087 if test -n "$GCC"; then
14089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14093 if test -z "$haveit"; then
14094 for x in $CPPFLAGS $INCTASN1; do
14096 acl_save_prefix="$prefix"
14097 prefix="$acl_final_prefix"
14098 acl_save_exec_prefix="$exec_prefix"
14099 exec_prefix="$acl_final_exec_prefix"
14101 exec_prefix="$acl_save_exec_prefix"
14102 prefix="$acl_save_prefix"
14104 if test "X$x" = "X-I$additional_includedir"; then
14109 if test -z "$haveit"; then
14110 if test -d "$additional_includedir"; then
14111 INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
14117 if test -n "$found_la"; then
14118 save_libdir="$libdir"
14119 case "$found_la" in
14120 */* | *\\*) . "$found_la" ;;
14121 *) . "./$found_la" ;;
14123 libdir="$save_libdir"
14124 for dep in $dependency_libs; do
14127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14128 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14129 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14132 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14133 if test -n "$GCC"; then
14135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14139 if test -z "$haveit"; then
14141 for x in $LDFLAGS $LIBTASN1; do
14143 acl_save_prefix="$prefix"
14144 prefix="$acl_final_prefix"
14145 acl_save_exec_prefix="$exec_prefix"
14146 exec_prefix="$acl_final_exec_prefix"
14148 exec_prefix="$acl_save_exec_prefix"
14149 prefix="$acl_save_prefix"
14151 if test "X$x" = "X-L$additional_libdir"; then
14156 if test -z "$haveit"; then
14157 if test -d "$additional_libdir"; then
14158 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
14162 for x in $LDFLAGS $LTLIBTASN1; do
14164 acl_save_prefix="$prefix"
14165 prefix="$acl_final_prefix"
14166 acl_save_exec_prefix="$exec_prefix"
14167 exec_prefix="$acl_final_exec_prefix"
14169 exec_prefix="$acl_save_exec_prefix"
14170 prefix="$acl_save_prefix"
14172 if test "X$x" = "X-L$additional_libdir"; then
14177 if test -z "$haveit"; then
14178 if test -d "$additional_libdir"; then
14179 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
14186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14187 if test "$enable_rpath" != no; then
14189 for x in $rpathdirs; do
14190 if test "X$x" = "X$dir"; then
14195 if test -z "$haveit"; then
14196 rpathdirs="$rpathdirs $dir"
14199 for x in $ltrpathdirs; do
14200 if test "X$x" = "X$dir"; then
14205 if test -z "$haveit"; then
14206 ltrpathdirs="$ltrpathdirs $dir"
14211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14217 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
14218 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
14224 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
14225 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
14231 if test "X$rpathdirs" != "X"; then
14232 if test -n "$acl_hardcode_libdir_separator"; then
14234 for found_dir in $rpathdirs; do
14235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14237 acl_save_libdir="$libdir"
14239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14240 libdir="$acl_save_libdir"
14241 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
14243 for found_dir in $rpathdirs; do
14244 acl_save_libdir="$libdir"
14245 libdir="$found_dir"
14246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14247 libdir="$acl_save_libdir"
14248 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
14252 if test "X$ltrpathdirs" != "X"; then
14253 for found_dir in $ltrpathdirs; do
14254 LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
14264 ac_save_CPPFLAGS="$CPPFLAGS"
14266 for element in $INCTASN1; do
14268 for x in $CPPFLAGS; do
14270 acl_save_prefix="$prefix"
14271 prefix="$acl_final_prefix"
14272 acl_save_exec_prefix="$exec_prefix"
14273 exec_prefix="$acl_final_exec_prefix"
14275 exec_prefix="$acl_save_exec_prefix"
14276 prefix="$acl_save_prefix"
14278 if test "X$x" = "X$element"; then
14283 if test -z "$haveit"; then
14284 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
14290 $as_echo_n "checking for libtasn1... " >&6; }
14291 if ${ac_cv_libtasn1+:} false; then :
14292 $as_echo_n "(cached) " >&6
14295 ac_save_LIBS="$LIBS"
14296 case " $LIBTASN1" in
14297 *" -l"*) LIBS="$LIBS $LIBTASN1" ;;
14298 *) LIBS="$LIBTASN1 $LIBS" ;;
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 #include <libtasn1.h>
14306 asn1_check_version (NULL)
14311 if ac_fn_c_try_link "$LINENO"; then :
14314 ac_cv_libtasn1='no'
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 LIBS="$ac_save_LIBS"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
14322 $as_echo "$ac_cv_libtasn1" >&6; }
14323 if test "$ac_cv_libtasn1" = yes; then
14326 $as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
14329 $as_echo_n "checking how to link with libtasn1... " >&6; }
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
14331 $as_echo "$LIBTASN1" >&6; }
14334 CPPFLAGS="$ac_save_CPPFLAGS"
14346 if test "$ac_cv_libtasn1" != yes; then
14347 included_libtasn1=yes
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14350 *** Libtasn1 was not found. Will use the included one.
14352 $as_echo "$as_me: WARNING:
14354 *** Libtasn1 was not found. Will use the included one.
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
14359 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
14361 $as_echo "$included_libtasn1" >&6; }
14362 if test "$included_libtasn1" = "yes"; then
14363 ENABLE_MINITASN1_TRUE=
14364 ENABLE_MINITASN1_FALSE='#'
14366 ENABLE_MINITASN1_TRUE='#'
14367 ENABLE_MINITASN1_FALSE=
14371 if test "$included_libtasn1" = "no"; then
14372 GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
14376 # Check whether --with-lzo was given.
14377 if test "${with_lzo+set}" = set; then :
14378 withval=$with_lzo; use_lzo=$withval
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
14384 $as_echo_n "checking whether to include LZO compression support... " >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
14386 $as_echo "$use_lzo" >&6; }
14388 if test "$use_lzo" = "yes"; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
14390 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
14391 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
14392 $as_echo_n "(cached) " >&6
14394 ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-llzo2 $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14405 char lzo1x_1_compress ();
14409 return lzo1x_1_compress ();
14414 if ac_fn_c_try_link "$LINENO"; then :
14415 ac_cv_lib_lzo2_lzo1x_1_compress=yes
14417 ac_cv_lib_lzo2_lzo1x_1_compress=no
14419 rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
14424 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
14425 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
14429 if test "$LZO_LIBS" = ""; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
14431 $as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
14432 if ${ac_cv_lib_lzo_lzo1x_1_compress+:} false; then :
14433 $as_echo_n "(cached) " >&6
14435 ac_check_lib_save_LIBS=$LIBS
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14446 char lzo1x_1_compress ();
14450 return lzo1x_1_compress ();
14455 if ac_fn_c_try_link "$LINENO"; then :
14456 ac_cv_lib_lzo_lzo1x_1_compress=yes
14458 ac_cv_lib_lzo_lzo1x_1_compress=no
14460 rm -f core conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14462 LIBS=$ac_check_lib_save_LIBS
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
14465 $as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
14466 if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = xyes; then :
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
14472 *** Could not find liblzo or liblzo2. Disabling LZO compression.
14474 $as_echo "$as_me: WARNING: ***
14475 *** Could not find liblzo or liblzo2. Disabling LZO compression.
14483 if test "$use_lzo" = "yes"; then
14485 $as_echo "#define USE_LZO 1" >>confdefs.h
14487 if test "$LZO_LIBS" = "-llzo"; then
14488 for ac_header in lzo1x.h
14490 ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
14491 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_LZO1X_H 1
14500 elif test "$LZO_LIBS" = "-llzo2"; then
14501 for ac_header in lzo/lzo1x.h
14503 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
14504 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_LZO_LZO1X_H 1
14515 if test "$use_lzo" = "yes"; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
14525 $as_echo_n "checking whether C99 macros are supported... " >&6; }
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14533 #define test_mac(...)
14542 if ac_fn_c_try_compile "$LINENO"; then :
14545 $as_echo "#define C99_MACROS 1" >>confdefs.h
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14548 $as_echo "yes" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
14555 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
14561 $as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
14562 # Check whether --enable-opaque-prf-input was given.
14563 if test "${enable_opaque_prf_input+set}" = set; then :
14564 enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
14566 ac_opaque_prf_input=no
14569 if test "$ac_opaque_prf_input" != "no"; then
14570 if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
14571 ac_opaque_prf_input=no
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14573 *** Could not parse Opaque PRF Input extension type.
14574 *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
14575 *** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
14576 $as_echo "$as_me: WARNING:
14577 *** Could not parse Opaque PRF Input extension type.
14578 *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
14579 *** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
14582 if test "$ac_opaque_prf_input" != "no"; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
14584 $as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
14586 cat >>confdefs.h <<_ACEOF
14587 #define ENABLE_OPRFI $ac_opaque_prf_input
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14594 if test "$ac_opaque_prf_input" != "no"; then
14596 ENABLE_OPRFI_FALSE='#'
14598 ENABLE_OPRFI_TRUE='#'
14599 ENABLE_OPRFI_FALSE=
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
14604 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
14605 # Check whether --enable-srp-authentication was given.
14606 if test "${enable_srp_authentication+set}" = set; then :
14607 enableval=$enable_srp_authentication; ac_enable_srp=no
14610 if test x$ac_enable_srp != xno; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612 $as_echo "no" >&6; }
14614 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14619 $as_echo "yes" >&6; }
14621 if test "$ac_enable_srp" != "no"; then
14623 ENABLE_SRP_FALSE='#'
14625 ENABLE_SRP_TRUE='#'
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
14631 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
14632 # Check whether --enable-psk-authentication was given.
14633 if test "${enable_psk_authentication+set}" = set; then :
14634 enableval=$enable_psk_authentication; ac_enable_psk=no
14637 if test x$ac_enable_psk != xno; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14641 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646 $as_echo "yes" >&6; }
14648 if test "$ac_enable_psk" != "no"; then
14650 ENABLE_PSK_FALSE='#'
14652 ENABLE_PSK_TRUE='#'
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
14658 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
14659 # Check whether --enable-anon-authentication was given.
14660 if test "${enable_anon_authentication+set}" = set; then :
14661 enableval=$enable_anon_authentication; ac_enable_anon=no
14664 if test x$ac_enable_anon != xno; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14668 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14673 $as_echo "yes" >&6; }
14675 if test "$ac_enable_anon" != "no"; then
14677 ENABLE_ANON_FALSE='#'
14679 ENABLE_ANON_TRUE='#'
14684 # Allow disabling Camellia
14685 if test "$nettle" != "yes";then
14686 # Check whether --enable-camellia was given.
14687 if test "${enable_camellia+set}" = set; then :
14688 enableval=$enable_camellia; enable_camellia=$enableval
14690 enable_camellia=yes
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
14698 $as_echo_n "checking whether to disable Camellia cipher... " >&6; }
14699 if test "$enable_camellia" != "no"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14703 $as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14707 $as_echo "yes" >&6; }
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
14711 $as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
14712 # Check whether --enable-extra-pki was given.
14713 if test "${enable_extra_pki+set}" = set; then :
14714 enableval=$enable_extra_pki; enable_pki=$enableval
14719 if test "$enable_pki" != "yes"; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14722 $as_echo "yes" >&6; }
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14725 $as_echo "no" >&6; }
14727 $as_echo "#define ENABLE_PKI 1" >>confdefs.h
14730 if test "$enable_pki" = "yes"; then
14732 ENABLE_PKI_FALSE='#'
14734 ENABLE_PKI_TRUE='#'
14739 ac_enable_openpgp=yes
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
14741 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
14742 # Check whether --enable-openpgp-authentication was given.
14743 if test "${enable_openpgp_authentication+set}" = set; then :
14744 enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
14747 if test x$ac_enable_openpgp = xno; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749 $as_echo "yes" >&6; }
14753 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14758 if test "$ac_enable_openpgp" = "yes"; then
14759 ENABLE_OPENPGP_TRUE=
14760 ENABLE_OPENPGP_FALSE='#'
14762 ENABLE_OPENPGP_TRUE='#'
14763 ENABLE_OPENPGP_FALSE=
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SessionTicket extension support" >&5
14768 $as_echo_n "checking whether to disable SessionTicket extension support... " >&6; }
14769 # Check whether --enable-session-ticket was given.
14770 if test "${enable_session_ticket+set}" = set; then :
14771 enableval=$enable_session_ticket; ac_session_ticket=no
14774 if test x$ac_session_ticket != xno; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14776 $as_echo "no" >&6; }
14778 $as_echo "#define ENABLE_SESSION_TICKET 1" >>confdefs.h
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783 $as_echo "yes" >&6; }
14785 if test "$ac_enable_session_ticket" != "no"; then
14786 ENABLE_SESSION_TICKET_TRUE=
14787 ENABLE_SESSION_TICKET_FALSE='#'
14789 ENABLE_SESSION_TICKET_TRUE='#'
14790 ENABLE_SESSION_TICKET_FALSE=
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
14796 $as_echo_n "checking whether to add cryptodev support... " >&6; }
14797 # Check whether --enable-cryptodev was given.
14798 if test "${enable_cryptodev+set}" = set; then :
14799 enableval=$enable_cryptodev; enable_cryptodev=yes
14801 enable_cryptodev=no
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
14805 $as_echo "$enable_cryptodev" >&6; }
14807 if test "$enable_cryptodev" = "yes"; then
14809 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
14813 # For storing integers in pointers without warnings
14814 # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
14815 # The cast to long int works around a bug in the HP C Compiler
14816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14818 # This bug is HP SR number 8606223364.
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14820 $as_echo_n "checking size of void *... " >&6; }
14821 if ${ac_cv_sizeof_void_p+:} false; then :
14822 $as_echo_n "(cached) " >&6
14824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14827 if test "$ac_cv_type_void_p" = yes; then
14828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14830 as_fn_error 77 "cannot compute sizeof (void *)
14831 See \`config.log' for more details" "$LINENO" 5; }
14833 ac_cv_sizeof_void_p=0
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14839 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14843 cat >>confdefs.h <<_ACEOF
14844 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14848 # The cast to long int works around a bug in the HP C Compiler
14849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14851 # This bug is HP SR number 8606223364.
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14853 $as_echo_n "checking size of long... " >&6; }
14854 if ${ac_cv_sizeof_long+:} false; then :
14855 $as_echo_n "(cached) " >&6
14857 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14860 if test "$ac_cv_type_long" = yes; then
14861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14863 as_fn_error 77 "cannot compute sizeof (long)
14864 See \`config.log' for more details" "$LINENO" 5; }
14866 ac_cv_sizeof_long=0
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14872 $as_echo "$ac_cv_sizeof_long" >&6; }
14876 cat >>confdefs.h <<_ACEOF
14877 #define SIZEOF_LONG $ac_cv_sizeof_long
14881 # The cast to long int works around a bug in the HP C Compiler
14882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14884 # This bug is HP SR number 8606223364.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14886 $as_echo_n "checking size of int... " >&6; }
14887 if ${ac_cv_sizeof_int+:} false; then :
14888 $as_echo_n "(cached) " >&6
14890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14893 if test "$ac_cv_type_int" = yes; then
14894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14896 as_fn_error 77 "cannot compute sizeof (int)
14897 See \`config.log' for more details" "$LINENO" 5; }
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14905 $as_echo "$ac_cv_sizeof_int" >&6; }
14909 cat >>confdefs.h <<_ACEOF
14910 #define SIZEOF_INT $ac_cv_sizeof_int
14914 case $ac_cv_sizeof_void_p in
14915 $ac_cv_sizeof_long)
14917 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
14921 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14927 $as_echo_n "checking for inline... " >&6; }
14928 if ${ac_cv_c_inline+:} false; then :
14929 $as_echo_n "(cached) " >&6
14932 for ac_kw in inline __inline__ __inline; do
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 #ifndef __cplusplus
14937 static $ac_kw foo_t static_foo () {return 0; }
14938 $ac_kw foo_t foo () {return 0; }
14942 if ac_fn_c_try_compile "$LINENO"; then :
14943 ac_cv_c_inline=$ac_kw
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 test "$ac_cv_c_inline" != no && break
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14951 $as_echo "$ac_cv_c_inline" >&6; }
14953 case $ac_cv_c_inline in
14956 case $ac_cv_c_inline in
14958 *) ac_val=$ac_cv_c_inline;;
14960 cat >>confdefs.h <<_ACEOF
14961 #ifndef __cplusplus
14962 #define inline $ac_val
14976 GNULIB_EUIDACCESS=0;
14977 GNULIB_FACCESSAT=0;
14980 GNULIB_FDATASYNC=0;
14982 GNULIB_FTRUNCATE=0;
14984 GNULIB_GETDOMAINNAME=0;
14985 GNULIB_GETDTABLESIZE=0;
14986 GNULIB_GETGROUPS=0;
14987 GNULIB_GETHOSTNAME=0;
14989 GNULIB_GETLOGIN_R=0;
14990 GNULIB_GETPAGESIZE=0;
14991 GNULIB_GETUSERSHELL=0;
14992 GNULIB_GROUP_MEMBER=0;
15004 GNULIB_READLINKAT=0;
15006 GNULIB_SETHOSTNAME=0;
15009 GNULIB_SYMLINKAT=0;
15010 GNULIB_TTYNAME_R=0;
15011 GNULIB_UNISTD_H_NONBLOCKING=0;
15012 GNULIB_UNISTD_H_SIGPIPE=0;
15027 HAVE_GETDTABLESIZE=1;
15029 HAVE_GETHOSTNAME=1;
15031 HAVE_GETPAGESIZE=1;
15032 HAVE_GROUP_MEMBER=1;
15042 HAVE_SETHOSTNAME=1;
15048 HAVE_DECL_ENVIRON=1;
15049 HAVE_DECL_FCHDIR=1;
15050 HAVE_DECL_FDATASYNC=1;
15051 HAVE_DECL_GETDOMAINNAME=1;
15052 HAVE_DECL_GETLOGIN_R=1;
15053 HAVE_DECL_GETPAGESIZE=1;
15054 HAVE_DECL_GETUSERSHELL=1;
15055 HAVE_DECL_SETHOSTNAME=1;
15056 HAVE_DECL_TTYNAME_R=1;
15058 HAVE_SYS_PARAM_H=0;
15063 REPLACE_FCHOWNAT=0;
15065 REPLACE_GETDOMAINNAME=0;
15066 REPLACE_GETLOGIN_R=0;
15067 REPLACE_GETGROUPS=0;
15068 REPLACE_GETPAGESIZE=0;
15077 REPLACE_READLINK=0;
15081 REPLACE_TTYNAME_R=0;
15083 REPLACE_UNLINKAT=0;
15086 UNISTD_H_HAVE_WINSOCK2_H=0;
15087 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15093 for ac_header in $ac_header_list
15095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15099 cat >>confdefs.h <<_ACEOF
15100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15114 if test $ac_cv_header_sys_socket_h != yes; then
15115 for ac_header in winsock2.h
15117 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_winsock2_h" = xyes; then :
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_WINSOCK2_H 1
15128 if test "$ac_cv_header_winsock2_h" = yes; then
15130 UNISTD_H_HAVE_WINSOCK2_H=1
15131 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15137 if test $HAVE_WINSOCK2_H = 1; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
15139 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
15140 if ${gl_cv_func_wsastartup+:} false; then :
15141 $as_echo_n "(cached) " >&6
15144 gl_save_LIBS="$LIBS"
15145 LIBS="$LIBS -lws2_32"
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15149 #ifdef HAVE_WINSOCK2_H
15150 # include <winsock2.h>
15156 WORD wVersionRequested = MAKEWORD(1, 1);
15158 int err = WSAStartup(wVersionRequested, &wsaData);
15164 if ac_fn_c_try_link "$LINENO"; then :
15165 gl_cv_func_wsastartup=yes
15167 gl_cv_func_wsastartup=no
15169 rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
15171 LIBS="$gl_save_LIBS"
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
15175 $as_echo "$gl_cv_func_wsastartup" >&6; }
15176 if test "$gl_cv_func_wsastartup" = "yes"; then
15178 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
15180 LIBSOCKET='-lws2_32'
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15184 $as_echo_n "checking for library containing setsockopt... " >&6; }
15185 if ${gl_cv_lib_socket+:} false; then :
15186 $as_echo_n "(cached) " >&6
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15205 if ac_fn_c_try_link "$LINENO"; then :
15208 gl_save_LIBS="$LIBS"
15209 LIBS="$gl_save_LIBS -lsocket"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15225 if ac_fn_c_try_link "$LINENO"; then :
15226 gl_cv_lib_socket="-lsocket"
15228 rm -f core conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext conftest.$ac_ext
15230 if test -z "$gl_cv_lib_socket"; then
15231 LIBS="$gl_save_LIBS -lnetwork"
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15247 if ac_fn_c_try_link "$LINENO"; then :
15248 gl_cv_lib_socket="-lnetwork"
15250 rm -f core conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252 if test -z "$gl_cv_lib_socket"; then
15253 LIBS="$gl_save_LIBS -lnet"
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 gl_cv_lib_socket="-lnet"
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15276 LIBS="$gl_save_LIBS"
15279 rm -f core conftest.err conftest.$ac_objext \
15280 conftest$ac_exeext conftest.$ac_ext
15281 if test -z "$gl_cv_lib_socket"; then
15282 gl_cv_lib_socket="none needed"
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
15287 $as_echo "$gl_cv_lib_socket" >&6; }
15288 if test "$gl_cv_lib_socket" != "none needed"; then
15289 LIBSOCKET="$gl_cv_lib_socket"
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
15296 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
15297 # Check whether --enable-openssl-compatibility was given.
15298 if test "${enable_openssl_compatibility+set}" = set; then :
15299 enableval=$enable_openssl_compatibility; enable_openssl=$enableval
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
15305 $as_echo "$enable_openssl" >&6; }
15306 if test "$enable_openssl" = "yes"; then
15307 ENABLE_OPENSSL_TRUE=
15308 ENABLE_OPENSSL_FALSE='#'
15310 ENABLE_OPENSSL_TRUE='#'
15311 ENABLE_OPENSSL_FALSE=
15315 # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
15330 LIBC_FATAL_STDERR_=1
15331 export LIBC_FATAL_STDERR_
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15335 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15336 if ${ac_cv_c_bigendian+:} false; then :
15337 $as_echo_n "(cached) " >&6
15339 ac_cv_c_bigendian=unknown
15340 # See if we're dealing with a universal compiler.
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #ifndef __APPLE_CC__
15344 not a universal capable compiler
15349 if ac_fn_c_try_compile "$LINENO"; then :
15351 # Check for potential -arch flags. It is not universal unless
15352 # there are at least two -arch flags with different values.
15355 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15356 if test -n "$ac_prev"; then
15358 i?86 | x86_64 | ppc | ppc64)
15359 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15362 ac_cv_c_bigendian=universal
15368 elif test "x$ac_word" = "x-arch"; then
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 if test $ac_cv_c_bigendian = unknown; then
15375 # See if sys/param.h defines the BYTE_ORDER macro.
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 #include <sys/types.h>
15379 #include <sys/param.h>
15384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15387 bogus endian macros
15394 if ac_fn_c_try_compile "$LINENO"; then :
15395 # It does; now see whether it defined to BIG_ENDIAN or not.
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 #include <sys/types.h>
15399 #include <sys/param.h>
15404 #if BYTE_ORDER != BIG_ENDIAN
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413 ac_cv_c_bigendian=yes
15415 ac_cv_c_bigendian=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 if test $ac_cv_c_bigendian = unknown; then
15422 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425 #include <limits.h>
15430 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15431 bogus endian macros
15438 if ac_fn_c_try_compile "$LINENO"; then :
15439 # It does; now see whether it defined to _BIG_ENDIAN or not.
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15442 #include <limits.h>
15447 #ifndef _BIG_ENDIAN
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456 ac_cv_c_bigendian=yes
15458 ac_cv_c_bigendian=no
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 if test $ac_cv_c_bigendian = unknown; then
15465 # Compile a test program.
15466 if test "$cross_compiling" = yes; then :
15467 # Try to guess by grepping values from an object file.
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470 short int ascii_mm[] =
15471 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15472 short int ascii_ii[] =
15473 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15474 int use_ascii (int i) {
15475 return ascii_mm[i] + ascii_ii[i];
15477 short int ebcdic_ii[] =
15478 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15479 short int ebcdic_mm[] =
15480 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15481 int use_ebcdic (int i) {
15482 return ebcdic_mm[i] + ebcdic_ii[i];
15489 return use_ascii (foo) == use_ebcdic (foo);
15494 if ac_fn_c_try_compile "$LINENO"; then :
15495 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15496 ac_cv_c_bigendian=yes
15498 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15499 if test "$ac_cv_c_bigendian" = unknown; then
15500 ac_cv_c_bigendian=no
15502 # finding both strings is unlikely to happen, but who knows?
15503 ac_cv_c_bigendian=unknown
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 $ac_includes_default
15516 /* Are we little or big endian? From Harbison&Steele. */
15520 char c[sizeof (long int)];
15523 return u.c[sizeof (long int) - 1] == 1;
15529 if ac_fn_c_try_run "$LINENO"; then :
15530 ac_cv_c_bigendian=no
15532 ac_cv_c_bigendian=yes
15534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15535 conftest.$ac_objext conftest.beam conftest.$ac_ext
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15541 $as_echo "$ac_cv_c_bigendian" >&6; }
15542 case $ac_cv_c_bigendian in #(
15544 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15554 as_fn_error $? "unknown endianness
15555 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15560 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15561 if ${ac_cv_c_restrict+:} false; then :
15562 $as_echo_n "(cached) " >&6
15564 ac_cv_c_restrict=no
15565 # The order here caters to the fact that C++ does not require restrict.
15566 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h. */
15569 typedef int * int_ptr;
15570 int foo (int_ptr $ac_kw ip) {
15577 int * $ac_kw t = s;
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585 ac_cv_c_restrict=$ac_kw
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588 test "$ac_cv_c_restrict" != no && break
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15593 $as_echo "$ac_cv_c_restrict" >&6; }
15595 case $ac_cv_c_restrict in
15597 no) $as_echo "#define restrict /**/" >>confdefs.h
15599 *) cat >>confdefs.h <<_ACEOF
15600 #define restrict $ac_cv_c_restrict
15607 GL_COND_LIBTOOL_TRUE=
15608 GL_COND_LIBTOOL_FALSE='#'
15610 GL_COND_LIBTOOL_TRUE='#'
15611 GL_COND_LIBTOOL_FALSE=
15614 gl_cond_libtool=true
15625 gl_source_base='gl'
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
15633 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
15634 if ${gl_cv_ld_output_def+:} false; then :
15635 $as_echo_n "(cached) " >&6
15637 if test "$enable_shared" = no; then
15638 gl_cv_ld_output_def="not needed, shared libraries are disabled"
15640 gl_ldflags_save=$LDFLAGS
15641 LDFLAGS="-Wl,--output-def,conftest.def"
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15653 if ac_fn_c_try_link "$LINENO"; then :
15654 gl_cv_ld_output_def=yes
15656 gl_cv_ld_output_def=no
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15661 LDFLAGS="$gl_ldflags_save"
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
15665 $as_echo "$gl_cv_ld_output_def" >&6; }
15666 if test "x$gl_cv_ld_output_def" = "xyes"; then
15667 HAVE_LD_OUTPUT_DEF_TRUE=
15668 HAVE_LD_OUTPUT_DEF_FALSE='#'
15670 HAVE_LD_OUTPUT_DEF_TRUE='#'
15671 HAVE_LD_OUTPUT_DEF_FALSE=
15676 # Check whether --enable-ld-version-script was given.
15677 if test "${enable_ld_version_script+set}" = set; then :
15678 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
15681 if test -z "$have_ld_version_script"; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
15683 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
15684 save_LDFLAGS="$LDFLAGS"
15685 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
15686 cat > conftest.map <<EOF
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15700 if ac_fn_c_try_link "$LINENO"; then :
15701 accepts_syntax_errors=yes
15703 accepts_syntax_errors=no
15705 rm -f core conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
15707 if test "$accepts_syntax_errors" = no; then
15708 cat > conftest.map <<EOF
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15728 if ac_fn_c_try_link "$LINENO"; then :
15729 have_ld_version_script=yes
15731 have_ld_version_script=no
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15736 have_ld_version_script=no
15739 LDFLAGS="$save_LDFLAGS"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
15741 $as_echo "$have_ld_version_script" >&6; }
15743 if test "$have_ld_version_script" = "yes"; then
15744 HAVE_LD_VERSION_SCRIPT_TRUE=
15745 HAVE_LD_VERSION_SCRIPT_FALSE='#'
15747 HAVE_LD_VERSION_SCRIPT_TRUE='#'
15748 HAVE_LD_VERSION_SCRIPT_FALSE=
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
15757 $as_echo_n "checking for working stdalign.h... " >&6; }
15758 if ${gl_cv_header_working_stdalign_h+:} false; then :
15759 $as_echo_n "(cached) " >&6
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 #include <stdalign.h>
15764 #include <stddef.h>
15766 /* Test that alignof yields a result consistent with offsetof.
15767 This catches GCC bug 52023
15768 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
15770 template <class t> struct alignof_helper { char a; t b; };
15771 # define ao(type) offsetof (alignof_helper<type>, b)
15773 # define ao(type) offsetof (struct { char a; type b; }, b)
15775 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
15776 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
15777 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
15779 /* Test _Alignas only on platforms where gnulib can help. */
15781 (__GNUC__ || __IBMC__ || __IBMCPP__ \
15782 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
15783 int alignas (8) alignas_int = 1;
15784 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
15795 if ac_fn_c_try_compile "$LINENO"; then :
15796 gl_cv_header_working_stdalign_h=yes
15798 gl_cv_header_working_stdalign_h=no
15800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
15803 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
15805 if test $gl_cv_header_working_stdalign_h = yes; then
15808 STDALIGN_H='stdalign.h'
15812 if test -n "$STDALIGN_H"; then
15813 GL_GENERATE_STDALIGN_H_TRUE=
15814 GL_GENERATE_STDALIGN_H_FALSE='#'
15816 GL_GENERATE_STDALIGN_H_TRUE='#'
15817 GL_GENERATE_STDALIGN_H_FALSE=
15821 # End of code from modules
15840 gl_source_base='gl/tests'
15841 xgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15843 gl_module_indicator_condition=$xgltests_WITNESS
15855 LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS"
15856 LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
15860 # Finish things from ../configure.ac.
15866 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
15869 ac_config_files="$ac_config_files Makefile gnutls-extra.pc gl/Makefile includes/Makefile"
15871 cat >confcache <<\_ACEOF
15872 # This file is a shell script that caches the results of configure
15873 # tests run on this system so they can be shared between configure
15874 # scripts and configure runs, see configure's option --config-cache.
15875 # It is not useful on other systems. If it contains results you don't
15876 # want to keep, you may remove or edit it.
15878 # config.status only pays attention to the cache file if you give it
15879 # the --recheck option to rerun configure.
15881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15883 # following values.
15887 # The following way of writing the cache mishandles newlines in values,
15888 # but we know of no workaround that is simple, portable, and efficient.
15889 # So, we kill variables containing newlines.
15890 # Ultrix sh set writes to stderr and can't be redirected directly,
15891 # and sets the high bit in the cache file unless we assign to the vars.
15893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15894 eval ac_val=\$$ac_var
15898 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15902 _ | IFS | as_nl) ;; #(
15903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15904 *) { eval $ac_var=; unset $ac_var;} ;;
15910 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15911 *${as_nl}ac_space=\ *)
15912 # `set' does not quote correctly, so add quotes: double-quote
15913 # substitution turns \\\\ into \\, and sed turns \\ into \.
15916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15919 # `set' quotes correctly as required by POSIX, so do not add quotes.
15920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15934 if test -w "$cache_file"; then
15935 if test "x$cache_file" != "x/dev/null"; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15937 $as_echo "$as_me: updating cache $cache_file" >&6;}
15938 if test ! -f "$cache_file" || test -h "$cache_file"; then
15939 cat confcache >"$cache_file"
15941 case $cache_file in #(
15943 mv -f confcache "$cache_file"$$ &&
15944 mv -f "$cache_file"$$ "$cache_file" ;; #(
15946 mv -f confcache "$cache_file" ;;
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15952 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15958 # Let make expand exec_prefix.
15959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15961 DEFS=-DHAVE_CONFIG_H
15966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15967 # 1. Remove the extension, and $U if already installed.
15968 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15969 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15970 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15971 # will be set to the directory where LIBOBJS objects are built.
15972 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15973 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15975 LIBOBJS=$ac_libobjs
15977 LTLIBOBJS=$ac_ltlibobjs
15980 if test -n "$EXEEXT"; then
15982 am__EXEEXT_FALSE='#'
15984 am__EXEEXT_TRUE='#'
15988 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15989 as_fn_error $? "conditional \"AMDEP\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15992 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15993 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15996 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
15997 as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
15998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16000 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
16001 as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
16002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16004 if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
16005 as_fn_error $? "conditional \"USE_LZO\" was never defined.
16006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16008 if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
16009 as_fn_error $? "conditional \"ENABLE_OPRFI\" was never defined.
16010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16012 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
16013 as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
16014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16016 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
16017 as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
16018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16020 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
16021 as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
16022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16024 if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
16025 as_fn_error $? "conditional \"ENABLE_PKI\" was never defined.
16026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16028 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
16029 as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
16030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16032 if test -z "${ENABLE_SESSION_TICKET_TRUE}" && test -z "${ENABLE_SESSION_TICKET_FALSE}"; then
16033 as_fn_error $? "conditional \"ENABLE_SESSION_TICKET\" was never defined.
16034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16036 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
16037 as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
16038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16040 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16041 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
16042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16045 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
16046 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
16047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16049 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16050 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16053 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
16054 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
16055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16060 if test -n "$xgl_LIBOBJS"; then
16061 # Remove the extension.
16062 sed_drop_objext='s/\.o$//;s/\.obj$//'
16063 for i in `for i in $xgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16064 xgl_libobjs="$xgl_libobjs $i.$ac_objext"
16065 xgl_ltlibobjs="$xgl_ltlibobjs $i.lo"
16068 xgl_LIBOBJS=$xgl_libobjs
16070 xgl_LTLIBOBJS=$xgl_ltlibobjs
16075 xgltests_ltlibobjs=
16076 if test -n "$xgltests_LIBOBJS"; then
16077 # Remove the extension.
16078 sed_drop_objext='s/\.o$//;s/\.obj$//'
16079 for i in `for i in $xgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16080 xgltests_libobjs="$xgltests_libobjs $i.$ac_objext"
16081 xgltests_ltlibobjs="$xgltests_ltlibobjs $i.lo"
16084 xgltests_LIBOBJS=$xgltests_libobjs
16086 xgltests_LTLIBOBJS=$xgltests_ltlibobjs
16090 : "${CONFIG_STATUS=./config.status}"
16092 ac_clean_files_save=$ac_clean_files
16093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16099 # Generated by $as_me.
16100 # Run this file to recreate the current configuration.
16101 # Compiler output produced by configure, useful for debugging
16102 # configure, is in config.log if it exists.
16105 ac_cs_recheck=false
16108 SHELL=\${CONFIG_SHELL-$SHELL}
16111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16112 ## -------------------- ##
16113 ## M4sh Initialization. ##
16114 ## -------------------- ##
16116 # Be more Bourne compatible
16117 DUALCASE=1; export DUALCASE # for MKS sh
16118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16122 # is contrary to our usage. Disable this feature.
16123 alias -g '${1+"$@"}'='"$@"'
16124 setopt NO_GLOB_SUBST
16126 case `(set -o) 2>/dev/null` in #(
16138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16142 # Prefer a ksh shell builtin over an external printf program on Solaris,
16143 # but without wasting forks for bash or zsh.
16144 if test -z "$BASH_VERSION$ZSH_VERSION" \
16145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16146 as_echo='print -r --'
16147 as_echo_n='print -rn --'
16148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16149 as_echo='printf %s\n'
16150 as_echo_n='printf %s'
16152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16154 as_echo_n='/usr/ucb/echo -n'
16156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16157 as_echo_n_body='eval
16161 expr "X$arg" : "X\\(.*\\)$as_nl";
16162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16166 export as_echo_n_body
16167 as_echo_n='sh -c $as_echo_n_body as_echo'
16169 export as_echo_body
16170 as_echo='sh -c $as_echo_body as_echo'
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16184 # We need space, tab and new line, in precisely that order. Quoting is
16185 # there to prevent editors from complaining about space-tab.
16186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16187 # splitting by setting IFS to empty value.)
16190 # Find who we are. Look in the path if we contain no directory separator.
16193 *[\\/]* ) as_myself=$0 ;;
16194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16195 for as_dir in $PATH
16198 test -z "$as_dir" && as_dir=.
16199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16205 # We did not find ourselves, most probably we were run as `sh COMMAND'
16206 # in which case we are not to be found in the path.
16207 if test "x$as_myself" = x; then
16210 if test ! -f "$as_myself"; then
16211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16215 # Unset variables that we do not need and which cause bugs (e.g. in
16216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16217 # suppresses any "Segmentation fault" message there. '((' could
16218 # trigger a bug in pdksh 5.2.14.
16219 for as_var in BASH_ENV ENV MAIL MAILPATH
16220 do eval test x\${$as_var+set} = xset \
16221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16238 # ----------------------------------------
16239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16241 # script with STATUS, using 1 if that was 0.
16244 as_status=$1; test $as_status -eq 0 && as_status=1
16246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16249 $as_echo "$as_me: error: $2" >&2
16250 as_fn_exit $as_status
16254 # as_fn_set_status STATUS
16255 # -----------------------
16256 # Set $? to STATUS, without forking.
16257 as_fn_set_status ()
16260 } # as_fn_set_status
16262 # as_fn_exit STATUS
16263 # -----------------
16264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16268 as_fn_set_status $1
16274 # Portably unset VAR.
16277 { eval $1=; unset $1;}
16279 as_unset=as_fn_unset
16280 # as_fn_append VAR VALUE
16281 # ----------------------
16282 # Append the text in VALUE to the end of the definition contained in VAR. Take
16283 # advantage of any shell optimizations that allow amortized linear growth over
16284 # repeated appends, instead of the typical quadratic growth present in naive
16286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16287 eval 'as_fn_append ()
16298 # as_fn_arith ARG...
16299 # ------------------
16300 # Perform arithmetic evaluation on the ARGs, and store the result in the
16301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16302 # must be portable across $(()) and expr.
16303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16304 eval 'as_fn_arith ()
16311 as_val=`expr "$@" || test $? -eq 1`
16316 if expr a : '\(a\)' >/dev/null 2>&1 &&
16317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16324 as_basename=basename
16329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16335 as_me=`$as_basename -- "$0" ||
16336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16337 X"$0" : 'X\(//\)$' \| \
16338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16340 sed '/^.*\/\([^/][^/]*\)\/*$/{
16354 # Avoid depending upon Character Ranges.
16355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16358 as_cr_digits='0123456789'
16359 as_cr_alnum=$as_cr_Letters$as_cr_digits
16361 ECHO_C= ECHO_N= ECHO_T=
16362 case `echo -n x` in #(((((
16364 case `echo 'xy\c'` in
16365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16374 rm -f conf$$ conf$$.exe conf$$.file
16375 if test -d conf$$.dir; then
16376 rm -f conf$$.dir/conf$$.file
16379 mkdir conf$$.dir 2>/dev/null
16381 if (echo >conf$$.file) 2>/dev/null; then
16382 if ln -s conf$$.file conf$$ 2>/dev/null; then
16384 # ... but there are two gotchas:
16385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16387 # In both cases, we have to default to `cp -pR'.
16388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16390 elif ln conf$$.file conf$$ 2>/dev/null; then
16398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16399 rmdir conf$$.dir 2>/dev/null
16404 # Create "$as_dir" as a directory, including parents if necessary.
16409 -*) as_dir=./$as_dir;;
16411 test -d "$as_dir" || eval $as_mkdir_p || {
16415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16416 *) as_qdir=$as_dir;;
16418 as_dirs="'$as_qdir' $as_dirs"
16419 as_dir=`$as_dirname -- "$as_dir" ||
16420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16421 X"$as_dir" : 'X\(//\)[^/]' \| \
16422 X"$as_dir" : 'X\(//\)$' \| \
16423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16424 $as_echo X"$as_dir" |
16425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16429 /^X\(\/\/\)[^/].*/{
16442 test -d "$as_dir" && break
16444 test -z "$as_dirs" || eval "mkdir $as_dirs"
16445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16449 if mkdir -p . 2>/dev/null; then
16450 as_mkdir_p='mkdir -p "$as_dir"'
16452 test -d ./-p && rmdir ./-p
16457 # as_fn_executable_p FILE
16458 # -----------------------
16459 # Test if FILE is an executable regular file.
16460 as_fn_executable_p ()
16462 test -f "$1" && test -x "$1"
16463 } # as_fn_executable_p
16464 as_test_x='test -x'
16465 as_executable_p=as_fn_executable_p
16467 # Sed expression to map a string onto a valid CPP name.
16468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16470 # Sed expression to map a string onto a valid variable name.
16471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16475 ## ----------------------------------- ##
16476 ## Main body of $CONFIG_STATUS script. ##
16477 ## ----------------------------------- ##
16479 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482 # Save the log message, to keep $0 and so on meaningful, and to
16483 # report actual input values of CONFIG_FILES etc. instead of their
16484 # values after options handling.
16486 This file was extended by libgnutls-extra $as_me 2.12.20, which was
16487 generated by GNU Autoconf 2.69. Invocation command line was
16489 CONFIG_FILES = $CONFIG_FILES
16490 CONFIG_HEADERS = $CONFIG_HEADERS
16491 CONFIG_LINKS = $CONFIG_LINKS
16492 CONFIG_COMMANDS = $CONFIG_COMMANDS
16495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16500 case $ac_config_files in *"
16501 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16504 case $ac_config_headers in *"
16505 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 # Files that config.status was made for.
16511 config_files="$ac_config_files"
16512 config_headers="$ac_config_headers"
16513 config_commands="$ac_config_commands"
16517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16519 \`$as_me' instantiates files and other configuration actions
16520 from templates according to the current configuration. Unless the files
16521 and actions are specified as TAGs, all are instantiated by default.
16523 Usage: $0 [OPTION]... [TAG]...
16525 -h, --help print this help, then exit
16526 -V, --version print version number and configuration settings, then exit
16527 --config print configuration, then exit
16528 -q, --quiet, --silent
16529 do not print progress messages
16530 -d, --debug don't remove temporary files
16531 --recheck update $as_me by reconfiguring in the same conditions
16532 --file=FILE[:TEMPLATE]
16533 instantiate the configuration file FILE
16534 --header=FILE[:TEMPLATE]
16535 instantiate the configuration header FILE
16537 Configuration files:
16540 Configuration headers:
16543 Configuration commands:
16546 Report bugs to <bug-gnutls@gnu.org>."
16549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16550 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16552 libgnutls-extra config.status 2.12.20
16553 configured by $0, generated by GNU Autoconf 2.69,
16554 with options \\"\$ac_cs_config\\"
16556 Copyright (C) 2012 Free Software Foundation, Inc.
16557 This config.status script is free software; the Free Software Foundation
16558 gives unlimited permission to copy, distribute and modify it."
16565 test -n "\$AWK" || AWK=awk
16568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16569 # The default lists apply if the user does not specify any file.
16575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16580 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16592 # Handling of the options.
16593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16595 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16596 $as_echo "$ac_cs_version"; exit ;;
16597 --config | --confi | --conf | --con | --co | --c )
16598 $as_echo "$ac_cs_config"; exit ;;
16599 --debug | --debu | --deb | --de | --d | -d )
16601 --file | --fil | --fi | --f )
16604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16605 '') as_fn_error $? "missing file argument" ;;
16607 as_fn_append CONFIG_FILES " '$ac_optarg'"
16608 ac_need_defaults=false;;
16609 --header | --heade | --head | --hea )
16612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16614 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16615 ac_need_defaults=false;;
16617 # Conflict between --help and --header
16618 as_fn_error $? "ambiguous option: \`$1'
16619 Try \`$0 --help' for more information.";;
16620 --help | --hel | -h )
16621 $as_echo "$ac_cs_usage"; exit ;;
16622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16626 # This is an error.
16627 -*) as_fn_error $? "unrecognized option: \`$1'
16628 Try \`$0 --help' for more information." ;;
16630 *) as_fn_append ac_config_targets " $1"
16631 ac_need_defaults=false ;;
16637 ac_configure_extra_args=
16639 if $ac_cs_silent; then
16641 ac_configure_extra_args="$ac_configure_extra_args --silent"
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 if \$ac_cs_recheck; then
16647 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16649 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16650 CONFIG_SHELL='$SHELL'
16651 export CONFIG_SHELL
16656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16661 ## Running $as_me. ##
16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16671 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16674 # The HP-UX ksh and POSIX shell print the target directory to stdout
16675 # if CDPATH is set.
16676 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16678 sed_quote_subst='$sed_quote_subst'
16679 double_quote_subst='$double_quote_subst'
16680 delay_variable_subst='$delay_variable_subst'
16681 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16682 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16683 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16684 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16685 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16686 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16687 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16688 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16689 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16690 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16691 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16692 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16713 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16714 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16715 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16716 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16717 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16718 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16719 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16720 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16721 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16722 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16723 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16724 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16725 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16726 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16727 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16728 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16729 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16730 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16731 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16732 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16733 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16734 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16735 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16736 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16738 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"`'
16739 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16740 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16741 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16742 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16743 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16744 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16745 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16746 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16747 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16748 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16749 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16750 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16751 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16752 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16753 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16754 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16755 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16756 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16757 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16758 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16759 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16760 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16761 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16762 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16763 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16764 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16765 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16766 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16767 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16768 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16769 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16770 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16771 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16772 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16773 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16774 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16775 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16776 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16777 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16778 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16779 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16780 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16781 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16782 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16783 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16784 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16785 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16786 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16787 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16788 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16789 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16790 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16791 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16792 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16793 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16794 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16795 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16796 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16797 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16798 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16799 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16800 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16801 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16802 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16803 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16804 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16805 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16806 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16807 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16808 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16809 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16810 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16811 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16814 LTCFLAGS='$LTCFLAGS'
16815 compiler='$compiler_DEFAULT'
16817 # A function that is used when there is no print builtin or printf.
16818 func_fallback_echo ()
16820 eval 'cat <<_LTECHO_EOF
16825 # Quote evaled strings.
16842 deplibs_check_method \
16846 sharedlib_from_linklib_cmd \
16849 archiver_list_spec \
16855 lt_cv_sys_global_symbol_pipe \
16856 lt_cv_sys_global_symbol_to_cdecl \
16857 lt_cv_sys_global_symbol_to_c_name_address \
16858 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16859 nm_file_list_spec \
16860 lt_prog_compiler_no_builtin_flag \
16861 lt_prog_compiler_pic \
16862 lt_prog_compiler_wl \
16863 lt_prog_compiler_static \
16864 lt_cv_prog_compiler_c_o \
16873 export_dynamic_flag_spec \
16874 whole_archive_flag_spec \
16875 compiler_needs_object \
16877 allow_undefined_flag \
16878 no_undefined_flag \
16879 hardcode_libdir_flag_spec \
16880 hardcode_libdir_separator \
16884 variables_saved_for_relink \
16886 library_names_spec \
16888 install_override_mode \
16892 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16893 *[\\\\\\\`\\"\\\$]*)
16894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16902 # Double-quote double-evaled strings.
16903 for var in reload_cmds \
16904 old_postinstall_cmds \
16905 old_postuninstall_cmds \
16907 extract_expsyms_cmds \
16908 old_archive_from_new_cmds \
16909 old_archive_from_expsyms_cmds \
16911 archive_expsym_cmds \
16913 module_expsym_cmds \
16914 export_symbols_cmds \
16918 postuninstall_cmds \
16920 sys_lib_search_path_spec \
16921 sys_lib_dlsearch_path_spec; do
16922 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16923 *[\\\\\\\`\\"\\\$]*)
16924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16932 ac_aux_dir='$ac_aux_dir'
16933 xsi_shell='$xsi_shell'
16934 lt_shell_append='$lt_shell_append'
16936 # See if we are running on zsh, and set the options which allow our
16937 # commands through without removal of \ escapes INIT.
16938 if test -n "\${ZSH_VERSION+set}" ; then
16939 setopt NO_GLOB_SUBST
16945 TIMESTAMP='$TIMESTAMP'
16954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16956 # Handling of arguments.
16957 for ac_config_target in $ac_config_targets
16959 case $ac_config_target in
16960 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16961 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16962 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16963 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16964 "gnutls-extra.pc") CONFIG_FILES="$CONFIG_FILES gnutls-extra.pc" ;;
16965 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
16966 "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
16968 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16973 # If the user did not use the arguments to specify the items to instantiate,
16974 # then the envvar interface is used. Set only those that are not.
16975 # We use the long form for the default assignment because of an extremely
16976 # bizarre bug on SunOS 4.1.3.
16977 if $ac_need_defaults; then
16978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16983 # Have a temporary directory for convenience. Make it in the build tree
16984 # simply because there is no reason against having it here, and in addition,
16985 # creating and moving files from /tmp can sometimes cause problems.
16986 # Hook for its removal unless debugging.
16987 # Note that there is a small window in which the directory will not be cleaned:
16988 # after its creation but before its name has been assigned to `$tmp'.
16992 trap 'exit_status=$?
16993 : "${ac_tmp:=$tmp}"
16994 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16996 trap 'as_fn_exit 1' 1 2 13 15
16998 # Create a (secure) tmp directory for tmp files.
17001 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17005 tmp=./conf$$-$RANDOM
17006 (umask 077 && mkdir "$tmp")
17007 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17010 # Set up the scripts for CONFIG_FILES section.
17011 # No need to generate them if there are no CONFIG_FILES.
17012 # This happens for instance with `./config.status config.h'.
17013 if test -n "$CONFIG_FILES"; then
17016 ac_cr=`echo X | tr X '\015'`
17017 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17018 # But we know of no other shell where ac_cr would be empty at this
17019 # point, so we can use a bashism as a fallback.
17020 if test "x$ac_cr" = x; then
17021 eval ac_cr=\$\'\\r\'
17023 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17024 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17027 ac_cs_awk_cr=$ac_cr
17030 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17035 echo "cat >conf$$subs.awk <<_ACEOF" &&
17036 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17038 } >conf$$subs.sh ||
17039 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17040 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17042 for ac_last_try in false false false false false :; do
17043 . ./conf$$subs.sh ||
17044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17046 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17047 if test $ac_delim_n = $ac_delim_num; then
17049 elif $ac_last_try; then
17050 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17055 rm -f conf$$subs.sh
17057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17058 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17062 s/^/S["/; s/!.*/"]=/
17072 s/\(.\{148\}\)..*/\1/
17074 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17079 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17086 s/\(.\{148\}\)..*/\1/
17088 s/["\\]/\\&/g; s/^/"/; s/$/"/
17092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17097 ' <conf$$subs.awk | sed '
17102 ' >>$CONFIG_STATUS || ac_write_fail=1
17103 rm -f conf$$subs.awk
17104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17106 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17107 for (key in S) S_is_set[key] = 1
17113 nfields = split(line, field, "@")
17115 len = length(field[1])
17116 for (i = 2; i < nfields; i++) {
17118 keylen = length(key)
17119 if (S_is_set[key]) {
17121 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17122 len += length(value) + length(field[++i])
17133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17134 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17135 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17138 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17139 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17142 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17143 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17144 # trailing colons and then remove the whole line if VPATH becomes empty
17145 # (actually we leave an empty line to preserve line numbers).
17146 if test "x$srcdir" = x.; then
17147 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17166 fi # test -n "$CONFIG_FILES"
17168 # Set up the scripts for CONFIG_HEADERS section.
17169 # No need to generate them if there are no CONFIG_HEADERS.
17170 # This happens for instance with `./config.status Makefile'.
17171 if test -n "$CONFIG_HEADERS"; then
17172 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17176 # Transform confdefs.h into an awk script `defines.awk', embedded as
17177 # here-document in config.status, that substitutes the proper values into
17178 # config.h.in to produce config.h.
17180 # Create a delimiter string that does not exist in confdefs.h, to ease
17181 # handling of long lines.
17183 for ac_last_try in false false :; do
17184 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17185 if test -z "$ac_tt"; then
17187 elif $ac_last_try; then
17188 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17194 # For the awk script, D is an array of macro values keyed by name,
17195 # likewise P contains macro parameters if any. Preserve backslash
17196 # newline sequences.
17198 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17200 s/.\{148\}/&'"$ac_delim"'/g
17203 s/^[ ]*#[ ]*define[ ][ ]*/ /
17210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17212 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17216 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17217 D["\1"]=" \3\\\\\\n"\\/p
17219 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17224 s/.\{148\}/&'"$ac_delim"'/g
17229 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17232 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17234 ' <confdefs.h | sed '
17235 s/'"$ac_delim"'/"\\\
17236 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17239 for (key in D) D_is_set[key] = 1
17242 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17244 split(line, arg, " ")
17245 if (arg[1] == "#") {
17249 defundef = substr(arg[1], 2)
17252 split(mac1, mac2, "(") #)
17254 prefix = substr(line, 1, index(line, defundef) - 1)
17255 if (D_is_set[macro]) {
17256 # Preserve the white space surrounding the "#".
17257 print prefix "define", macro P[macro] D[macro]
17260 # Replace #undef with comments. This is necessary, for example,
17261 # in the case of _POSIX_SOURCE, which is predefined and required
17262 # on some systems where configure will not decide to define it.
17263 if (defundef == "undef") {
17264 print "/*", prefix defundef, macro, "*/"
17272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17273 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17274 fi # test -n "$CONFIG_HEADERS"
17277 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17282 :[FHLC]) ac_mode=$ac_tag; continue;;
17284 case $ac_mode$ac_tag in
17286 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17287 :[FH]-) ac_tag=-:-;;
17288 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17305 -) ac_f="$ac_tmp/stdin";;
17306 *) # Look for the file first in the build tree, then in the source tree
17307 # (if the path is not absolute). The absolute path cannot be DOS-style,
17308 # because $ac_f cannot contain `:'.
17312 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17314 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17316 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17317 as_fn_append ac_file_inputs " '$ac_f'"
17320 # Let's still pretend it is `configure' which instantiates (i.e., don't
17321 # use $as_me), people would be surprised to read:
17322 # /* config.h. Generated by config.status. */
17323 configure_input='Generated from '`
17324 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17326 if test x"$ac_file" != x-; then
17327 configure_input="$ac_file. $configure_input"
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17329 $as_echo "$as_me: creating $ac_file" >&6;}
17331 # Neutralize special characters interpreted by sed in replacement strings.
17332 case $configure_input in #(
17333 *\&* | *\|* | *\\* )
17334 ac_sed_conf_input=`$as_echo "$configure_input" |
17335 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17336 *) ac_sed_conf_input=$configure_input;;
17340 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17346 ac_dir=`$as_dirname -- "$ac_file" ||
17347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17348 X"$ac_file" : 'X\(//\)[^/]' \| \
17349 X"$ac_file" : 'X\(//\)$' \| \
17350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17351 $as_echo X"$ac_file" |
17352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17356 /^X\(\/\/\)[^/].*/{
17369 as_dir="$ac_dir"; as_fn_mkdir_p
17373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17376 # A ".." for each directory in $ac_dir_suffix.
17377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17378 case $ac_top_builddir_sub in
17379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17383 ac_abs_top_builddir=$ac_pwd
17384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17385 # for backward compatibility:
17386 ac_top_builddir=$ac_top_build_prefix
17389 .) # We are building in place.
17391 ac_top_srcdir=$ac_top_builddir_sub
17392 ac_abs_top_srcdir=$ac_pwd ;;
17393 [\\/]* | ?:[\\/]* ) # Absolute name.
17394 ac_srcdir=$srcdir$ac_dir_suffix;
17395 ac_top_srcdir=$srcdir
17396 ac_abs_top_srcdir=$srcdir ;;
17397 *) # Relative name.
17398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17399 ac_top_srcdir=$ac_top_build_prefix$srcdir
17400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17415 ac_MKDIR_P=$MKDIR_P
17417 [\\/$]* | ?:[\\/]* ) ;;
17418 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 # If the template does not know about datarootdir, expand it.
17424 # FIXME: This hack should be removed a few years after 2.60.
17425 ac_datarootdir_hack=; ac_datarootdir_seen=
17436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17437 *datarootdir*) ac_datarootdir_seen=yes;;
17438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17443 ac_datarootdir_hack='
17444 s&@datadir@&$datadir&g
17445 s&@docdir@&$docdir&g
17446 s&@infodir@&$infodir&g
17447 s&@localedir@&$localedir&g
17448 s&@mandir@&$mandir&g
17449 s&\\\${datarootdir}&$datarootdir&g' ;;
17453 # Neutralize VPATH when `$srcdir' = `.'.
17454 # Shell code in configure.ac might set extrasub.
17455 # FIXME: do we really want to maintain this feature?
17456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17457 ac_sed_extra="$ac_vpsub
17460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17463 s|@configure_input@|$ac_sed_conf_input|;t t
17464 s&@top_builddir@&$ac_top_builddir_sub&;t t
17465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17466 s&@srcdir@&$ac_srcdir&;t t
17467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17468 s&@top_srcdir@&$ac_top_srcdir&;t t
17469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17470 s&@builddir@&$ac_builddir&;t t
17471 s&@abs_builddir@&$ac_abs_builddir&;t t
17472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17473 s&@INSTALL@&$ac_INSTALL&;t t
17474 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17475 $ac_datarootdir_hack
17477 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17478 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17481 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17483 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17485 which seems to be undefined. Please make sure it is defined" >&5
17486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17487 which seems to be undefined. Please make sure it is defined" >&2;}
17489 rm -f "$ac_tmp/stdin"
17491 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17492 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17500 if test x"$ac_file" != x-; then
17502 $as_echo "/* $configure_input */" \
17503 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17504 } >"$ac_tmp/config.h" \
17505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17506 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17508 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17511 mv "$ac_tmp/config.h" "$ac_file" \
17512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17515 $as_echo "/* $configure_input */" \
17516 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17517 || as_fn_error $? "could not create -" "$LINENO" 5
17519 # Compute "$ac_file"'s index in $config_headers.
17522 for _am_header in $config_headers :; do
17523 case $_am_header in
17524 $_am_arg | $_am_arg:* )
17527 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17530 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17531 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17532 X"$_am_arg" : 'X\(//\)[^/]' \| \
17533 X"$_am_arg" : 'X\(//\)$' \| \
17534 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17535 $as_echo X"$_am_arg" |
17536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17540 /^X\(\/\/\)[^/].*/{
17552 s/.*/./; q'`/stamp-h$_am_stamp_count
17555 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17556 $as_echo "$as_me: executing $ac_file commands" >&6;}
17561 case $ac_file$ac_mode in
17562 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17563 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17564 # are listed without --file. Let's play safe and only enable the eval
17565 # if we detect the quoting.
17566 case $CONFIG_FILES in
17567 *\'*) eval set x "$CONFIG_FILES" ;;
17568 *) set x $CONFIG_FILES ;;
17573 # Strip MF so we end up with the name of the file.
17574 mf=`echo "$mf" | sed -e 's/:.*$//'`
17575 # Check whether this is an Automake generated Makefile or not.
17576 # We used to match only the files named `Makefile.in', but
17577 # some people rename them; so instead we look at the file content.
17578 # Grep'ing the first line is not enough: some people post-process
17579 # each Makefile.in and add a new line on top of each file to say so.
17580 # Grep'ing the whole file is not good either: AIX grep has a line
17581 # limit of 2048, but all sed's we know have understand at least 4000.
17582 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17583 dirpart=`$as_dirname -- "$mf" ||
17584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17585 X"$mf" : 'X\(//\)[^/]' \| \
17586 X"$mf" : 'X\(//\)$' \| \
17587 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17593 /^X\(\/\/\)[^/].*/{
17609 # Extract the definition of DEPDIR, am__include, and am__quote
17610 # from the Makefile without running `make'.
17611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17612 test -z "$DEPDIR" && continue
17613 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17614 test -z "am__include" && continue
17615 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17616 # When using ansi2knr, U may be empty or an underscore; expand it
17617 U=`sed -n 's/^U = //p' < "$mf"`
17618 # Find all dependency output files, they are included files with
17619 # $(DEPDIR) in their names. We invoke sed twice because it is the
17620 # simplest approach to changing $(DEPDIR) to its actual value in the
17622 for file in `sed -n "
17623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17625 # Make sure the directory exists.
17626 test -f "$dirpart/$file" && continue
17627 fdir=`$as_dirname -- "$file" ||
17628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17629 X"$file" : 'X\(//\)[^/]' \| \
17630 X"$file" : 'X\(//\)$' \| \
17631 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17632 $as_echo X"$file" |
17633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17637 /^X\(\/\/\)[^/].*/{
17650 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17651 # echo "creating $dirpart/$file"
17652 echo '# dummy' > "$dirpart/$file"
17659 # See if we are running on zsh, and set the options which allow our
17660 # commands through without removal of \ escapes.
17661 if test -n "${ZSH_VERSION+set}" ; then
17662 setopt NO_GLOB_SUBST
17665 cfgfile="${ofile}T"
17666 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17669 cat <<_LT_EOF >> "$cfgfile"
17672 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17673 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17677 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17678 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17680 # Written by Gordon Matzigkeit, 1996
17682 # This file is part of GNU Libtool.
17684 # GNU Libtool is free software; you can redistribute it and/or
17685 # modify it under the terms of the GNU General Public License as
17686 # published by the Free Software Foundation; either version 2 of
17687 # the License, or (at your option) any later version.
17689 # As a special exception to the GNU General Public License,
17690 # if you distribute this file as part of a program or library that
17691 # is built using GNU Libtool, you may include this file under the
17692 # same distribution terms that you use for the rest of that program.
17694 # GNU Libtool is distributed in the hope that it will be useful,
17695 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17696 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17697 # GNU General Public License for more details.
17699 # You should have received a copy of the GNU General Public License
17700 # along with GNU Libtool; see the file COPYING. If not, a copy
17701 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17702 # obtained by writing to the Free Software Foundation, Inc.,
17703 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17706 # The names of the tagged configurations supported by this script.
17709 # ### BEGIN LIBTOOL CONFIG
17711 # Assembler program.
17714 # DLL creation program.
17715 DLLTOOL=$lt_DLLTOOL
17717 # Object dumper program.
17718 OBJDUMP=$lt_OBJDUMP
17720 # Which release of libtool.m4 was used?
17721 macro_version=$macro_version
17722 macro_revision=$macro_revision
17724 # Whether or not to build shared libraries.
17725 build_libtool_libs=$enable_shared
17727 # Whether or not to build static libraries.
17728 build_old_libs=$enable_static
17730 # What type of objects to build.
17733 # Whether or not to optimize for fast installation.
17734 fast_install=$enable_fast_install
17736 # Shell to use when invoking shell scripts.
17739 # An echo program that protects backslashes.
17742 # The PATH separator for the build system.
17743 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17746 host_alias=$host_alias
17750 # The build system.
17751 build_alias=$build_alias
17755 # A sed program that does not truncate output.
17758 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17759 Xsed="\$SED -e 1s/^X//"
17761 # A grep program that handles long lines.
17767 # A literal string matcher.
17770 # A BSD- or MS-compatible name lister.
17773 # Whether we need soft or hard links.
17776 # What is the maximum length of a command?
17777 max_cmd_len=$max_cmd_len
17779 # Object file suffix (normally "o").
17782 # Executable file suffix (normally "").
17785 # whether the shell understands "unset".
17788 # turn spaces into newlines.
17791 # turn newlines into spaces.
17794 # convert \$build file names to \$host format.
17795 to_host_file_cmd=$lt_cv_to_host_file_cmd
17797 # convert \$build files to toolchain format.
17798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17800 # Method to check whether dependent libraries are shared objects.
17801 deplibs_check_method=$lt_deplibs_check_method
17803 # Command to use when deplibs_check_method = "file_magic".
17804 file_magic_cmd=$lt_file_magic_cmd
17806 # How to find potential files when deplibs_check_method = "file_magic".
17807 file_magic_glob=$lt_file_magic_glob
17809 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17810 want_nocaseglob=$lt_want_nocaseglob
17812 # Command to associate shared and link libraries.
17813 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17818 # Flags to create an archive.
17819 AR_FLAGS=$lt_AR_FLAGS
17821 # How to feed a file listing to the archiver.
17822 archiver_list_spec=$lt_archiver_list_spec
17824 # A symbol stripping program.
17827 # Commands used to install an old-style archive.
17829 old_postinstall_cmds=$lt_old_postinstall_cmds
17830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17832 # Whether to use a lock for old archive extraction.
17833 lock_old_archive_extraction=$lock_old_archive_extraction
17838 # LTCC compiler flags.
17839 LTCFLAGS=$lt_CFLAGS
17841 # Take the output of nm and produce a listing of raw symbols and C names.
17842 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17844 # Transform the output of nm in a proper C declaration.
17845 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17847 # Transform the output of nm in a C name address pair.
17848 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17850 # Transform the output of nm in a C name address pair when lib prefix is needed.
17851 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17853 # Specify filename containing input files for \$NM.
17854 nm_file_list_spec=$lt_nm_file_list_spec
17856 # The root where to search for dependent libraries,and in which our libraries should be installed.
17857 lt_sysroot=$lt_sysroot
17859 # The name of the directory that contains temporary libtool files.
17862 # Used to examine libraries when file_magic_cmd begins with "file".
17863 MAGIC_CMD=$MAGIC_CMD
17865 # Must we lock files when doing compilation?
17866 need_locks=$lt_need_locks
17869 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17871 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17872 DSYMUTIL=$lt_DSYMUTIL
17874 # Tool to change global to local symbols on Mac OS X.
17877 # Tool to manipulate fat objects and archives on Mac OS X.
17880 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17883 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17884 OTOOL64=$lt_OTOOL64
17886 # Old archive suffix (normally "a").
17889 # Shared library suffix (normally ".so").
17890 shrext_cmds=$lt_shrext_cmds
17892 # The commands to extract the exported symbol list from a shared archive.
17893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17895 # Variables whose values should be saved in libtool wrapper scripts and
17896 # restored at link time.
17897 variables_saved_for_relink=$lt_variables_saved_for_relink
17899 # Do we need the "lib" prefix for modules?
17900 need_lib_prefix=$need_lib_prefix
17902 # Do we need a version for libraries?
17903 need_version=$need_version
17905 # Library versioning type.
17906 version_type=$version_type
17908 # Shared library runtime path variable.
17909 runpath_var=$runpath_var
17911 # Shared library path variable.
17912 shlibpath_var=$shlibpath_var
17914 # Is shlibpath searched before the hard-coded library search path?
17915 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17917 # Format of library name prefix.
17918 libname_spec=$lt_libname_spec
17920 # List of archive names. First name is the real one, the rest are links.
17921 # The last name is the one that the linker finds with -lNAME
17922 library_names_spec=$lt_library_names_spec
17924 # The coded name of the library, if different from the real name.
17925 soname_spec=$lt_soname_spec
17927 # Permission mode override for installation of shared libraries.
17928 install_override_mode=$lt_install_override_mode
17930 # Command to use after installation of a shared archive.
17931 postinstall_cmds=$lt_postinstall_cmds
17933 # Command to use after uninstallation of a shared archive.
17934 postuninstall_cmds=$lt_postuninstall_cmds
17936 # Commands used to finish a libtool library installation in a directory.
17937 finish_cmds=$lt_finish_cmds
17939 # As "finish_cmds", except a single script fragment to be evaled but
17941 finish_eval=$lt_finish_eval
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17946 # Compile-time system search path for libraries.
17947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17949 # Run-time system search path for libraries.
17950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17952 # Whether dlopen is supported.
17953 dlopen_support=$enable_dlopen
17955 # Whether dlopen of programs is supported.
17956 dlopen_self=$enable_dlopen_self
17958 # Whether dlopen of statically linked programs is supported.
17959 dlopen_self_static=$enable_dlopen_self_static
17961 # Commands to strip libraries.
17962 old_striplib=$lt_old_striplib
17963 striplib=$lt_striplib
17966 # The linker used to build libraries.
17969 # How to create reloadable object files.
17970 reload_flag=$lt_reload_flag
17971 reload_cmds=$lt_reload_cmds
17973 # Commands used to build an old-style archive.
17974 old_archive_cmds=$lt_old_archive_cmds
17976 # A language specific compiler.
17979 # Is the compiler the GNU compiler?
17982 # Compiler flag to turn off builtin functions.
17983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17985 # Additional compiler flags for building library objects.
17986 pic_flag=$lt_lt_prog_compiler_pic
17988 # How to pass a linker flag through the compiler.
17989 wl=$lt_lt_prog_compiler_wl
17991 # Compiler flag to prevent dynamic linking.
17992 link_static_flag=$lt_lt_prog_compiler_static
17994 # Does compiler simultaneously support -c and -o options?
17995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17997 # Whether or not to add -lc for building shared libraries.
17998 build_libtool_need_lc=$archive_cmds_need_lc
18000 # Whether or not to disallow shared libs when runtime libs are static.
18001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18003 # Compiler flag to allow reflexive dlopens.
18004 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18006 # Compiler flag to generate shared objects directly from archives.
18007 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18009 # Whether the compiler copes with passing no objects directly.
18010 compiler_needs_object=$lt_compiler_needs_object
18012 # Create an old-style archive from a shared archive.
18013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18015 # Create a temporary old-style archive to link instead of a shared archive.
18016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18018 # Commands used to build a shared archive.
18019 archive_cmds=$lt_archive_cmds
18020 archive_expsym_cmds=$lt_archive_expsym_cmds
18022 # Commands used to build a loadable module if different from building
18023 # a shared archive.
18024 module_cmds=$lt_module_cmds
18025 module_expsym_cmds=$lt_module_expsym_cmds
18027 # Whether we are building with GNU ld or not.
18028 with_gnu_ld=$lt_with_gnu_ld
18030 # Flag that allows shared libraries with undefined symbols to be built.
18031 allow_undefined_flag=$lt_allow_undefined_flag
18033 # Flag that enforces no undefined symbols.
18034 no_undefined_flag=$lt_no_undefined_flag
18036 # Flag to hardcode \$libdir into a binary during linking.
18037 # This must work even if \$libdir does not exist
18038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18040 # Whether we need a single "-rpath" flag with a separated argument.
18041 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18043 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18044 # DIR into the resulting binary.
18045 hardcode_direct=$hardcode_direct
18047 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18048 # DIR into the resulting binary and the resulting library dependency is
18049 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18050 # library is relocated.
18051 hardcode_direct_absolute=$hardcode_direct_absolute
18053 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18054 # into the resulting binary.
18055 hardcode_minus_L=$hardcode_minus_L
18057 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18058 # into the resulting binary.
18059 hardcode_shlibpath_var=$hardcode_shlibpath_var
18061 # Set to "yes" if building a shared library automatically hardcodes DIR
18062 # into the library and all subsequent libraries and executables linked
18064 hardcode_automatic=$hardcode_automatic
18066 # Set to yes if linker adds runtime paths of dependent libraries
18067 # to runtime path list.
18068 inherit_rpath=$inherit_rpath
18070 # Whether libtool must link a program against all its dependency libraries.
18071 link_all_deplibs=$link_all_deplibs
18073 # Set to "yes" if exported symbols are required.
18074 always_export_symbols=$always_export_symbols
18076 # The commands to list exported symbols.
18077 export_symbols_cmds=$lt_export_symbols_cmds
18079 # Symbols that should not be listed in the preloaded symbols.
18080 exclude_expsyms=$lt_exclude_expsyms
18082 # Symbols that must always be exported.
18083 include_expsyms=$lt_include_expsyms
18085 # Commands necessary for linking programs (against libraries) with templates.
18086 prelink_cmds=$lt_prelink_cmds
18088 # Commands necessary for finishing linking programs.
18089 postlink_cmds=$lt_postlink_cmds
18091 # Specify filename containing input files.
18092 file_list_spec=$lt_file_list_spec
18094 # How to hardcode a shared library path into an executable.
18095 hardcode_action=$hardcode_action
18097 # ### END LIBTOOL CONFIG
18103 cat <<\_LT_EOF >> "$cfgfile"
18104 # AIX sometimes has problems with the GCC collect2 program. For some
18105 # reason, if we set the COLLECT_NAMES environment variable, the problems
18106 # vanish in a puff of smoke.
18107 if test "X${COLLECT_NAMES+set}" != Xset; then
18109 export COLLECT_NAMES
18116 ltmain="$ac_aux_dir/ltmain.sh"
18119 # We use sed instead of cat because bash on DJGPP gets confused if
18120 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18121 # text mode, it properly converts lines to CR/LF. This bash problem
18122 # is reportedly fixed, but why not run on old versions too?
18123 sed '$q' "$ltmain" >> "$cfgfile" \
18124 || (rm -f "$cfgfile"; exit 1)
18126 if test x"$xsi_shell" = xyes; then
18127 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18131 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18132 \ * ) func_dirname_result="${3}" ;;\
18134 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18135 && mv -f "$cfgfile.tmp" "$cfgfile" \
18136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18137 test 0 -eq $? || _lt_function_replace_fail=:
18140 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18143 \ func_basename_result="${1##*/}"\
18144 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18145 && mv -f "$cfgfile.tmp" "$cfgfile" \
18146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18147 test 0 -eq $? || _lt_function_replace_fail=:
18150 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18151 func_dirname_and_basename ()\
18154 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18155 \ * ) func_dirname_result="${3}" ;;\
18157 \ func_basename_result="${1##*/}"\
18158 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18159 && mv -f "$cfgfile.tmp" "$cfgfile" \
18160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18161 test 0 -eq $? || _lt_function_replace_fail=:
18164 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18167 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18168 \ # positional parameters, so assign one to ordinary parameter first.\
18169 \ func_stripname_result=${3}\
18170 \ func_stripname_result=${func_stripname_result#"${1}"}\
18171 \ func_stripname_result=${func_stripname_result%"${2}"}\
18172 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18173 && mv -f "$cfgfile.tmp" "$cfgfile" \
18174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18175 test 0 -eq $? || _lt_function_replace_fail=:
18178 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18179 func_split_long_opt ()\
18181 \ func_split_long_opt_name=${1%%=*}\
18182 \ func_split_long_opt_arg=${1#*=}\
18183 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18184 && mv -f "$cfgfile.tmp" "$cfgfile" \
18185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18186 test 0 -eq $? || _lt_function_replace_fail=:
18189 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18190 func_split_short_opt ()\
18192 \ func_split_short_opt_arg=${1#??}\
18193 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18194 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18195 && mv -f "$cfgfile.tmp" "$cfgfile" \
18196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18197 test 0 -eq $? || _lt_function_replace_fail=:
18200 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18204 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18205 \ *) func_lo2o_result=${1} ;;\
18207 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18208 && mv -f "$cfgfile.tmp" "$cfgfile" \
18209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18210 test 0 -eq $? || _lt_function_replace_fail=:
18213 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18216 func_xform_result=${1%.*}.lo\
18217 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18218 && mv -f "$cfgfile.tmp" "$cfgfile" \
18219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18220 test 0 -eq $? || _lt_function_replace_fail=:
18223 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18226 func_arith_result=$(( $* ))\
18227 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18228 && mv -f "$cfgfile.tmp" "$cfgfile" \
18229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18230 test 0 -eq $? || _lt_function_replace_fail=:
18233 sed -e '/^func_len ()$/,/^} # func_len /c\
18236 func_len_result=${#1}\
18237 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18238 && mv -f "$cfgfile.tmp" "$cfgfile" \
18239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18240 test 0 -eq $? || _lt_function_replace_fail=:
18244 if test x"$lt_shell_append" = xyes; then
18245 sed -e '/^func_append ()$/,/^} # func_append /c\
18248 eval "${1}+=\\${2}"\
18249 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18250 && mv -f "$cfgfile.tmp" "$cfgfile" \
18251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18252 test 0 -eq $? || _lt_function_replace_fail=:
18255 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18256 func_append_quoted ()\
18258 \ func_quote_for_eval "${2}"\
18259 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18260 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18261 && mv -f "$cfgfile.tmp" "$cfgfile" \
18262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18263 test 0 -eq $? || _lt_function_replace_fail=:
18266 # Save a `func_append' function call where possible by direct use of '+='
18267 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18268 && mv -f "$cfgfile.tmp" "$cfgfile" \
18269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18270 test 0 -eq $? || _lt_function_replace_fail=:
18272 # Save a `func_append' function call even when '+=' is not available
18273 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18274 && mv -f "$cfgfile.tmp" "$cfgfile" \
18275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18276 test 0 -eq $? || _lt_function_replace_fail=:
18279 if test x"$_lt_function_replace_fail" = x":"; then
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18281 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18285 mv -f "$cfgfile" "$ofile" ||
18286 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18297 ac_clean_files=$ac_clean_files_save
18299 test $ac_write_fail = 0 ||
18300 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18303 # configure is writing to config.log, and then calls config.status.
18304 # config.status does its own redirection, appending to config.log.
18305 # Unfortunately, on DOS this fails, as config.log is still kept open
18306 # by configure, so config.status won't be able to write to it; its
18307 # output is simply discarded. So we exec the FD to /dev/null,
18308 # effectively closing config.log, so it can be properly (re)opened and
18309 # appended to by config.status. When coming back to configure, we
18310 # need to make the FD available again.
18311 if test "$no_create" != yes; then
18313 ac_config_status_args=
18314 test "$silent" = yes &&
18315 ac_config_status_args="$ac_config_status_args --quiet"
18317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18320 # would make configure fail if this is the last instruction.
18321 $ac_cs_success || as_fn_exit 1
18323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18325 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}