2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xmlsec1 1.2.22.
5 # Report bugs to <http://www.aleksey.com/xmlsec>.
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
278 $0: http://www.aleksey.com/xmlsec about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='xmlsec1'
592 PACKAGE_TARNAME='xmlsec1'
593 PACKAGE_VERSION='1.2.22'
594 PACKAGE_STRING='xmlsec1 1.2.22'
595 PACKAGE_BUGREPORT='http://www.aleksey.com/xmlsec'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
638 XMLSEC_CRYPTO_PC_FILES_LIST
642 XMLSEC_CRYPTO_DISABLED_LIST
644 XMLSEC_DEFAULT_CRYPTO
645 XMLSEC_CRYPTO_EXTRA_LDFLAGS
658 XMLSEC_OPENSSL_CFLAGS
662 XMLSEC_STATIC_BINARIES
664 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING
665 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE
666 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE
669 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING
670 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE
671 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE
673 XMLSEC_NO_XMLENC_FALSE
674 XMLSEC_NO_XMLENC_TRUE
676 XMLSEC_NO_XMLDSIG_FALSE
677 XMLSEC_NO_XMLDSIG_TRUE
679 XMLSEC_NO_GOST2012_FALSE
680 XMLSEC_NO_GOST2012_TRUE
703 XMLSEC_NO_SHA512_FALSE
704 XMLSEC_NO_SHA512_TRUE
706 XMLSEC_NO_SHA384_FALSE
707 XMLSEC_NO_SHA384_TRUE
709 XMLSEC_NO_SHA256_FALSE
710 XMLSEC_NO_SHA256_TRUE
712 XMLSEC_NO_SHA224_FALSE
713 XMLSEC_NO_SHA224_TRUE
718 XMLSEC_NO_RIPEMD160_FALSE
719 XMLSEC_NO_RIPEMD160_TRUE
727 XMLSEC_NO_MSCRYPTO_FALSE
728 XMLSEC_NO_MSCRYPTO_TRUE
732 XMLSEC_NO_GNUTLS_FALSE
733 XMLSEC_NO_GNUTLS_TRUE
739 XMLSEC_NO_GCRYPT_FALSE
740 XMLSEC_NO_GCRYPT_TRUE
757 XMLSEC_NO_OPENSSL_FALSE
758 XMLSEC_NO_OPENSSL_TRUE
841 MAINTAINER_MODE_FALSE
855 INSTALL_STRIP_PROGRAM
871 XMLSEC_VERSION_SUBMINOR
912 program_transform_name
925 enable_option_checking
927 enable_maintainer_mode
928 enable_dependency_tracking
937 enable_manpages_build
970 enable_apps_crypto_dl
977 enable_static_linking
979 ac_precious_vars='build_alias
1005 # Initialize some variables set by options.
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1019 program_transform_name=s,x,x,
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044 infodir='${datarootdir}/info'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\$ac_option
1065 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070 # Accept the important Cygnus configure options, so we can diagnose typos.
1072 case $ac_dashdash$ac_option in
1076 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079 bindir=$ac_optarg ;;
1081 -build | --build | --buil | --bui | --bu)
1082 ac_prev=build_alias ;;
1083 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084 build_alias=$ac_optarg ;;
1086 -cache-file | --cache-file | --cache-fil | --cache-fi \
1087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088 ac_prev=cache_file ;;
1089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091 cache_file=$ac_optarg ;;
1093 --config-cache | -C)
1094 cache_file=config.cache ;;
1096 -datadir | --datadir | --datadi | --datad)
1098 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099 datadir=$ac_optarg ;;
1101 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102 | --dataroo | --dataro | --datar)
1103 ac_prev=datarootdir ;;
1104 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106 datarootdir=$ac_optarg ;;
1108 -disable-* | --disable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid feature name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_$ac_useropt"
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval enable_$ac_useropt=no ;;
1124 -docdir | --docdir | --docdi | --doc | --do)
1126 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127 docdir=$ac_optarg ;;
1129 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1132 dvidir=$ac_optarg ;;
1134 -enable-* | --enable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid feature name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "enable_$ac_useropt"
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval enable_$ac_useropt=\$ac_optarg ;;
1150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1152 | --exec | --exe | --ex)
1153 ac_prev=exec_prefix ;;
1154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1156 | --exec=* | --exe=* | --ex=*)
1157 exec_prefix=$ac_optarg ;;
1159 -gas | --gas | --ga | --g)
1160 # Obsolete; use --with-gas.
1163 -help | --help | --hel | --he | -h)
1164 ac_init_help=long ;;
1165 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1166 ac_init_help=recursive ;;
1167 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1168 ac_init_help=short ;;
1170 -host | --host | --hos | --ho)
1171 ac_prev=host_alias ;;
1172 -host=* | --host=* | --hos=* | --ho=*)
1173 host_alias=$ac_optarg ;;
1175 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179 htmldir=$ac_optarg ;;
1181 -includedir | --includedir | --includedi | --included | --include \
1182 | --includ | --inclu | --incl | --inc)
1183 ac_prev=includedir ;;
1184 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1185 | --includ=* | --inclu=* | --incl=* | --inc=*)
1186 includedir=$ac_optarg ;;
1188 -infodir | --infodir | --infodi | --infod | --info | --inf)
1190 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1191 infodir=$ac_optarg ;;
1193 -libdir | --libdir | --libdi | --libd)
1195 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1196 libdir=$ac_optarg ;;
1198 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1199 | --libexe | --libex | --libe)
1200 ac_prev=libexecdir ;;
1201 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1202 | --libexe=* | --libex=* | --libe=*)
1203 libexecdir=$ac_optarg ;;
1205 -localedir | --localedir | --localedi | --localed | --locale)
1206 ac_prev=localedir ;;
1207 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1208 localedir=$ac_optarg ;;
1210 -localstatedir | --localstatedir | --localstatedi | --localstated \
1211 | --localstate | --localstat | --localsta | --localst | --locals)
1212 ac_prev=localstatedir ;;
1213 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1214 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1215 localstatedir=$ac_optarg ;;
1217 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1220 mandir=$ac_optarg ;;
1222 -nfp | --nfp | --nf)
1223 # Obsolete; use --without-fp.
1226 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1227 | --no-cr | --no-c | -n)
1230 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1231 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1234 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1235 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1236 | --oldin | --oldi | --old | --ol | --o)
1237 ac_prev=oldincludedir ;;
1238 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1239 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1240 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1241 oldincludedir=$ac_optarg ;;
1243 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1246 prefix=$ac_optarg ;;
1248 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1249 | --program-pre | --program-pr | --program-p)
1250 ac_prev=program_prefix ;;
1251 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1252 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1253 program_prefix=$ac_optarg ;;
1255 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1256 | --program-suf | --program-su | --program-s)
1257 ac_prev=program_suffix ;;
1258 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1259 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1260 program_suffix=$ac_optarg ;;
1262 -program-transform-name | --program-transform-name \
1263 | --program-transform-nam | --program-transform-na \
1264 | --program-transform-n | --program-transform- \
1265 | --program-transform | --program-transfor \
1266 | --program-transfo | --program-transf \
1267 | --program-trans | --program-tran \
1268 | --progr-tra | --program-tr | --program-t)
1269 ac_prev=program_transform_name ;;
1270 -program-transform-name=* | --program-transform-name=* \
1271 | --program-transform-nam=* | --program-transform-na=* \
1272 | --program-transform-n=* | --program-transform-=* \
1273 | --program-transform=* | --program-transfor=* \
1274 | --program-transfo=* | --program-transf=* \
1275 | --program-trans=* | --program-tran=* \
1276 | --progr-tra=* | --program-tr=* | --program-t=*)
1277 program_transform_name=$ac_optarg ;;
1279 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1282 pdfdir=$ac_optarg ;;
1284 -psdir | --psdir | --psdi | --psd | --ps)
1286 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297 sbindir=$ac_optarg ;;
1299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1301 | --sharedst | --shareds | --shared | --share | --shar \
1303 ac_prev=sharedstatedir ;;
1304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308 sharedstatedir=$ac_optarg ;;
1310 -site | --site | --sit)
1312 -site=* | --site=* | --sit=*)
1315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1318 srcdir=$ac_optarg ;;
1320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1321 | --syscon | --sysco | --sysc | --sys | --sy)
1322 ac_prev=sysconfdir ;;
1323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1325 sysconfdir=$ac_optarg ;;
1327 -target | --target | --targe | --targ | --tar | --ta | --t)
1328 ac_prev=target_alias ;;
1329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1330 target_alias=$ac_optarg ;;
1332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1335 -version | --version | --versio | --versi | --vers | -V)
1336 ac_init_version=: ;;
1339 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 as_fn_error $? "invalid package name: $ac_useropt"
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1352 eval with_$ac_useropt=\$ac_optarg ;;
1354 -without-* | --without-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 as_fn_error $? "invalid package name: $ac_useropt"
1359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1368 eval with_$ac_useropt=no ;;
1371 # Obsolete; use --with-x.
1374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1375 | --x-incl | --x-inc | --x-in | --x-i)
1376 ac_prev=x_includes ;;
1377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1379 x_includes=$ac_optarg ;;
1381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1383 ac_prev=x_libraries ;;
1384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1386 x_libraries=$ac_optarg ;;
1388 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1389 Try \`$0 --help' for more information"
1393 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1394 # Reject names that are not valid shell variable names.
1395 case $ac_envvar in #(
1396 '' | [0-9]* | *[!_$as_cr_alnum]* )
1397 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1399 eval $ac_envvar=\$ac_optarg
1400 export $ac_envvar ;;
1403 # FIXME: should be removed in autoconf 3.0.
1404 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1405 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1406 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1407 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1413 if test -n "$ac_prev"; then
1414 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1415 as_fn_error $? "missing argument to $ac_option"
1418 if test -n "$ac_unrecognized_opts"; then
1419 case $enable_option_checking in
1421 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1422 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426 # Check all directory arguments for consistency.
1427 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1428 datadir sysconfdir sharedstatedir localstatedir includedir \
1429 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1430 libdir localedir mandir
1432 eval ac_val=\$$ac_var
1433 # Remove trailing slashes.
1436 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437 eval $ac_var=\$ac_val;;
1439 # Be sure to have absolute directory names.
1441 [\\/$]* | ?:[\\/]* ) continue;;
1442 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456 if test "x$build_alias" = x; then
1457 cross_compiling=maybe
1458 elif test "x$build_alias" != "x$host_alias"; then
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466 test "$silent" = yes && exec 6>/dev/null
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472 as_fn_error $? "working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 as_fn_error $? "pwd does not report name of working directory"
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1509 ac_srcdir_defaulted=no
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 for ac_var in $ac_precious_vars; do
1530 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_${ac_var}_value=\$${ac_var}
1532 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1537 # Report the --help message.
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1543 \`configure' configures xmlsec1 1.2.22 to adapt to many kinds of systems.
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1550 Defaults for the options are specified in brackets.
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking ...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1574 For better control, use the options below.
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/xmlsec1]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1611 if test -n "$ac_init_help"; then
1612 case $ac_init_help in
1613 short | recursive ) echo "Configuration of xmlsec1 1.2.22:";;
1618 --disable-option-checking ignore unrecognized --enable/--with options
1619 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1620 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1621 --enable-silent-rules less verbose build output (undo: "make V=1")
1622 --disable-silent-rules verbose build output (undo: "make V=0")
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-dependency-tracking
1627 do not reject slow dependency extractors
1628 --disable-dependency-tracking
1629 speeds up one-time build
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --enable-development enable development environment (no)
1636 --enable-manpages-build man pages build (no)
1637 --enable-docs-build docs build (no)
1638 --enable-pkgconfig enable pkgconfig for configuration (yes)
1639 --enable-mscrypto enable mscrypto (no)
1640 --enable-md5 enable MD5 support (yes)
1641 --enable-ripemd160 enable RIPEMD-160 support (yes)
1642 --enable-sha1 enable SHA1 support (yes)
1643 --enable-sha224 enable SHA224 support (yes)
1644 --enable-sha256 enable SHA256 support (yes)
1645 --enable-sha384 enable SHA384 support (yes)
1646 --enable-sha512 enable SHA512 support (yes)
1647 --enable-hmac enable HMAC support (yes)
1648 --enable-dsa enable DSA support (yes)
1649 --enable-rsa enable RSA support (yes)
1650 --enable-x509 enable x509 support (yes)
1651 --enable-des enable DES support (yes)
1652 --enable-aes enable AES support
1653 --enable-gost enable GOST support (no)
1654 --enable-gost2012 enable EXPERMIENTAL GOST2012 support (no)
1655 --enable-xmldsig enable XMLDSig support (yes)
1656 --enable-xmlenc enable XMLEnc support (yes)
1657 --enable-crypto-dl enable dynamic loading support for xmlsec-crypto libraries (yes)
1658 --enable-apps-crypto-dl enable dynamic loading support for xmlsec-crypto libraries in xmlsec command line tool (yes)
1659 --enable-skm enable Simple Keys Manager testing (yes)
1660 --enable-tmpl-tests enable templates testing in xmlsec utility (yes)
1661 --enable-debugging enable debugging compilation flags (no)
1662 --enable-profiling enable profiling compilation flags (no)
1663 --enable-pedantic enable pedantic compilation flags (no)
1664 --enable-static-linking enable static linking (no)
1667 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1668 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1669 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-sysroot=DIR Search for dependent libraries within DIR
1673 (or the compiler's sysroot if not specified).
1674 --with-libxml=PFX libxml2 location
1676 --with-libxml-src=PFX not installed yet libxml2 location
1678 --with-libxslt=PFX libxslt location
1680 --with-libxslt-src=PFX not installed yet libxslt location
1682 --with-openssl=PFX openssl location
1683 --with-nss=PFX nss location
1684 --with-nspr=PFX nspr location (needed for NSS)
1685 --with-seamonkey-ver=VER mozilla version (alt to --with-nss, --with-nspr)
1686 --with-mozilla-ver=VER mozilla version (alt to --with-nss, --with-nspr)
1687 --with-gcrypt=PFX gcrypt location
1688 --with-gnutls=PFX gnutls location
1689 --with-default-crypto=name default crypto name
1690 --with-html-dir=PATH path to installed docs
1692 Some influential environment variables:
1693 CC C compiler command
1694 CFLAGS C compiler flags
1695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1696 nonstandard directory <lib dir>
1697 LIBS libraries to pass to the linker, e.g. -l<library>
1698 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1699 you have headers in a nonstandard directory <include dir>
1701 PKG_CONFIG path to pkg-config utility
1703 directories to add to pkg-config's search path
1705 path overriding pkg-config's built-in search path
1707 C compiler flags for LIBXML, overriding pkg-config
1708 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1710 C compiler flags for LIBXSLT, overriding pkg-config
1712 linker flags for LIBXSLT, overriding pkg-config
1714 C compiler flags for OPENSSL, overriding pkg-config
1716 linker flags for OPENSSL, overriding pkg-config
1717 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1718 NSS_LIBS linker flags for NSS, overriding pkg-config
1720 C compiler flags for GCRYPT, overriding pkg-config
1721 GCRYPT_LIBS linker flags for GCRYPT, overriding pkg-config
1723 C compiler flags for GNUTLS, overriding pkg-config
1724 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1729 Report bugs to <http://www.aleksey.com/xmlsec>.
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1759 .) # We are building in place.
1761 ac_top_srcdir=$ac_top_builddir_sub
1762 ac_abs_top_srcdir=$ac_pwd ;;
1763 [\\/]* | ?:[\\/]* ) # Absolute name.
1764 ac_srcdir=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir=$srcdir
1766 ac_abs_top_srcdir=$srcdir ;;
1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1774 cd "$ac_dir" || { ac_status=$?; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1785 cd "$ac_pwd" || { ac_status=$?; break; }
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1792 xmlsec1 configure 1.2.22
1793 generated by GNU Autoconf 2.69
1795 Copyright (C) 2012 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1842 } # ac_fn_c_try_compile
1844 # ac_fn_c_try_cpp LINENO
1845 # ----------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } > conftest.i && {
1866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884 # that executables *can* be run.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=$ac_status
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1967 } # ac_fn_c_try_link
1969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists and can be compiled using the include files in
1972 # INCLUDES, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_compile ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_header_compile
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2015 #define $2 innocuous_$2
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $2 (); below.
2019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020 <limits.h> exists even on freestanding compilers. */
2023 # include <limits.h>
2025 # include <assert.h>
2030 /* Override any GCC internal prototype to avoid an error.
2031 Use char because int might match the return type of a GCC
2032 builtin and then its argument prototype would still apply. */
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined __stub_$2 || defined __stub___$2
2052 if ac_fn_c_try_link "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext \
2058 conftest$ac_exeext conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 } # ac_fn_c_check_func
2067 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070 # the include files in INCLUDES and setting the cache variable VAR
2072 ac_fn_c_check_header_mongrel ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if eval \${$3+:} false; then :
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2085 # Is the header compilable?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087 $as_echo_n "checking $2 usability... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_header_compiler=yes
2096 ac_header_compiler=no
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100 $as_echo "$ac_header_compiler" >&6; }
2102 # Is the header present?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104 $as_echo_n "checking $2 presence... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 if ac_fn_c_try_cpp "$LINENO"; then :
2110 ac_header_preproc=yes
2112 ac_header_preproc=no
2114 rm -f conftest.err conftest.i conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116 $as_echo "$ac_header_preproc" >&6; }
2118 # So? What about this header?
2119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2130 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2134 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2137 ( $as_echo "## -------------------------------------------- ##
2138 ## Report this to http://www.aleksey.com/xmlsec ##
2139 ## -------------------------------------------- ##"
2140 ) | sed "s/^/$as_me: WARNING: /" >&2
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2148 eval "$3=\$ac_header_compiler"
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_header_mongrel
2158 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2159 # --------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2163 ac_fn_c_compute_int ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if test "$cross_compiling" = yes; then
2167 # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2176 return test_array [0];
2182 if ac_fn_c_try_compile "$LINENO"; then :
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid; break
2202 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2203 if test $ac_lo -le $ac_mid; then
2207 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) < 0)];
2220 return test_array [0];
2226 if ac_fn_c_try_compile "$LINENO"; then :
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_lo=$ac_mid; break
2246 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2247 if test $ac_mid -le $ac_hi; then
2251 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 # Binary search between lo and hi bounds.
2262 while test "x$ac_lo" != "x$ac_hi"; do
2263 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2272 return test_array [0];
2278 if ac_fn_c_try_compile "$LINENO"; then :
2281 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2293 static long int longval () { return $2; }
2294 static unsigned long int ulongval () { return $2; }
2301 FILE *f = fopen ("conftest.val", "w");
2306 long int i = longval ();
2309 fprintf (f, "%ld", i);
2313 unsigned long int i = ulongval ();
2316 fprintf (f, "%lu", i);
2318 /* Do not output a trailing newline, as this causes \r\n confusion
2319 on some platforms. */
2320 return ferror (f) || fclose (f) != 0;
2326 if ac_fn_c_try_run "$LINENO"; then :
2327 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2332 conftest.$ac_objext conftest.beam conftest.$ac_ext
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 as_fn_set_status $ac_retval
2339 } # ac_fn_c_compute_int
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2344 It was created by xmlsec1 $as_me 1.2.22, which was
2345 generated by GNU Autoconf 2.69. Invocation command line was
2357 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2363 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2366 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2367 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2368 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2370 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2371 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2372 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 $as_echo "PATH: $as_dir"
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2405 ac_must_keep_next=false
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2416 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2434 -* ) ac_must_keep_next=true ;;
2437 as_fn_append ac_configure_args " '$ac_arg'"
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log. We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451 # Save into config.log some information that might help in debugging.
2455 $as_echo "## ---------------- ##
2456 ## Cache variables. ##
2457 ## ---------------- ##"
2459 # The following way of writing the cache mishandles newlines in values,
2461 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2462 eval ac_val=\$$ac_var
2466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2470 _ | IFS | as_nl) ;; #(
2471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472 *) { eval $ac_var=; unset $ac_var;} ;;
2477 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2478 *${as_nl}ac_space=\ *)
2480 "s/'\''/'\''\\\\'\'''\''/g;
2481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491 $as_echo "## ----------------- ##
2492 ## Output variables. ##
2493 ## ----------------- ##"
2495 for ac_var in $ac_subst_vars
2497 eval ac_val=\$$ac_var
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 $as_echo "$ac_var='\''$ac_val'\''"
2505 if test -n "$ac_subst_files"; then
2506 $as_echo "## ------------------- ##
2507 ## File substitutions. ##
2508 ## ------------------- ##"
2510 for ac_var in $ac_subst_files
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2521 if test -s confdefs.h; then
2522 $as_echo "## ----------- ##
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2537 for ac_signal in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2543 rm -f -r conftest* confdefs.h
2545 $as_echo "/* confdefs.h */" > confdefs.h
2547 # Predefined preprocessor variables.
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_NAME "$PACKAGE_NAME"
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2578 if test -n "$CONFIG_SITE"; then
2579 # We do not want a PATH search for config.site.
2580 case $CONFIG_SITE in #((
2581 -*) ac_site_file1=./$CONFIG_SITE;;
2582 */*) ac_site_file1=$CONFIG_SITE;;
2583 *) ac_site_file1=./$CONFIG_SITE;;
2585 elif test "x$prefix" != xNONE; then
2586 ac_site_file1=$prefix/share/config.site
2587 ac_site_file2=$prefix/etc/config.site
2589 ac_site_file1=$ac_default_prefix/share/config.site
2590 ac_site_file2=$ac_default_prefix/etc/config.site
2592 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2594 test "x$ac_site_file" = xNONE && continue
2595 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598 sed 's/^/| /' "$ac_site_file" >&5
2600 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "failed to load site script $ac_site_file
2603 See \`config.log' for more details" "$LINENO" 5; }
2607 if test -r "$cache_file"; then
2608 # Some versions of bash will fail to source /dev/null (special files
2609 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2610 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612 $as_echo "$as_me: loading cache $cache_file" >&6;}
2614 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615 *) . "./$cache_file";;
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620 $as_echo "$as_me: creating cache $cache_file" >&6;}
2624 # Check that the precious variables saved in the cache have kept the same
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674 if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 XMLSEC_PACKAGE=xmlsec1
2694 XMLSEC_VERSION_MAJOR=1
2695 XMLSEC_VERSION_MINOR=2
2696 XMLSEC_VERSION_SUBMINOR=22
2697 XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR"
2698 XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
2699 XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'`
2703 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2704 if test -f "$ac_dir/install-sh"; then
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2708 elif test -f "$ac_dir/install.sh"; then
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2712 elif test -f "$ac_dir/shtool"; then
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2718 if test -z "$ac_aux_dir"; then
2719 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2731 # Make sure we can run config.sub.
2732 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2733 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2736 $as_echo_n "checking build system type... " >&6; }
2737 if ${ac_cv_build+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 ac_build_alias=$build_alias
2741 test "x$ac_build_alias" = x &&
2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2743 test "x$ac_build_alias" = x &&
2744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2745 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2750 $as_echo "$ac_cv_build" >&6; }
2751 case $ac_cv_build in
2753 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2756 ac_save_IFS=$IFS; IFS='-'
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2770 $as_echo_n "checking host system type... " >&6; }
2771 if ${ac_cv_host+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 if test "x$host_alias" = x; then
2775 ac_cv_host=$ac_cv_build
2777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2783 $as_echo "$ac_cv_host" >&6; }
2786 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2789 ac_save_IFS=$IFS; IFS='-'
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2799 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2812 am__api_version='1.15'
2814 # Find a good install program. We prefer a C program (faster),
2815 # so one script is as good as another. But avoid the broken or
2816 # incompatible versions:
2817 # SysV /etc/install, /usr/sbin/install
2818 # SunOS /usr/etc/install
2819 # IRIX /sbin/install
2821 # AmigaOS /C/install, which installs bootblocks on floppy discs
2822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2825 # OS/2's system install, which has a completely different semantic
2826 # ./install, which can be erroneously created by make from ./install.sh.
2827 # Reject install programs that cannot install multiple files.
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2830 if test -z "$INSTALL"; then
2831 if ${ac_cv_path_install+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 # Account for people who put trailing slashes in PATH elements.
2840 case $as_dir/ in #((
2841 ./ | .// | /[cC]/* | \
2842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2843 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2846 # OSF1 and SCO ODT 3.0 have their own names for install.
2847 # Don't use installbsd from OSF since it installs stuff as root
2849 for ac_prog in ginstall scoinst install; do
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2852 if test $ac_prog = install &&
2853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2854 # AIX install. It has an incompatible calling convention.
2856 elif test $ac_prog = install &&
2857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2858 # program-specific install script used by HP pwplus--don't use.
2861 rm -rf conftest.one conftest.two conftest.dir
2862 echo one > conftest.one
2863 echo two > conftest.two
2865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2866 test -s conftest.one && test -s conftest.two &&
2867 test -s conftest.dir/conftest.one &&
2868 test -s conftest.dir/conftest.two
2870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2883 rm -rf conftest.one conftest.two conftest.dir
2886 if test "${ac_cv_path_install+set}" = set; then
2887 INSTALL=$ac_cv_path_install
2889 # As a last resort, use the slow shell script. Don't cache a
2890 # value for INSTALL within a source directory, because that will
2891 # break other packages using the cache if that directory is
2892 # removed, or if the value is a relative name.
2893 INSTALL=$ac_install_sh
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2897 $as_echo "$INSTALL" >&6; }
2899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2900 # It thinks the first close brace ends the variable substitution.
2901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2908 $as_echo_n "checking whether build environment is sane... " >&6; }
2909 # Reject unsafe characters in $srcdir or the absolute working directory
2910 # name. Accept space and tab only in the latter.
2914 *[\\\"\#\$\&\'\`$am_lf]*)
2915 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2918 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2919 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2922 # Do 'set' in a subshell so we don't clobber the current shell's
2923 # arguments. Must try -L first in case configure is actually a
2924 # symlink; some systems play weird games with the mod time of symlinks
2925 # (eg FreeBSD returns the mod time of the symlink's containing
2929 for am_try in 1 2; do
2930 echo "timestamp, slept: $am_has_slept" > conftest.file
2931 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2932 if test "$*" = "X"; then
2934 set X `ls -t "$srcdir/configure" conftest.file`
2936 if test "$*" != "X $srcdir/configure conftest.file" \
2937 && test "$*" != "X conftest.file $srcdir/configure"; then
2939 # If neither matched, then we have a broken ls. This can happen
2940 # if, for instance, CONFIG_SHELL is bash and it inherits a
2941 # broken ls alias from the environment. This has actually
2942 # happened. Such a system could not be considered "sane".
2943 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2944 alias in your environment" "$LINENO" 5
2946 if test "$2" = conftest.file || test $am_try -eq 2; then
2953 test "$2" = conftest.file
2959 as_fn_error $? "newly created file is older than distributed files!
2960 Check your system clock" "$LINENO" 5
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2964 # If we didn't sleep, we still need to ensure time stamps of config.status and
2965 # generated files are strictly newer.
2967 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2974 test "$program_prefix" != NONE &&
2975 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979 # Double any \ or $.
2980 # By default was `s,x,x', remove it if useless.
2981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2984 # Expand $ac_aux_dir to an absolute path.
2985 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2987 if test x"${MISSING+set}" != xset; then
2990 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2992 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2995 # Use eval to expand $SHELL
2996 if eval "$MISSING --is-lightweight"; then
2997 am_missing_run="$MISSING "
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3001 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3004 if test x"${install_sh+set}" != xset; then
3007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3009 install_sh="\${SHELL} $am_aux_dir/install-sh"
3013 # Installed binaries are usually stripped using 'strip' when the user
3014 # run "make install-strip". However 'strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the 'STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_STRIP+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$STRIP"; then
3027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$ac_cv_prog_STRIP"; then
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 if test -n "$ac_ct_STRIP"; then
3067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_ac_ct_STRIP="strip"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3095 if test "x$ac_ct_STRIP" = x; then
3098 case $cross_compiling:$ac_tool_warned in
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3107 STRIP="$ac_cv_prog_STRIP"
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115 if test -z "$MKDIR_P"; then
3116 if ${ac_cv_path_mkdir+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3123 test -z "$as_dir" && as_dir=.
3124 for ac_prog in mkdir gmkdir; do
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128 'mkdir (GNU coreutils) '* | \
3129 'mkdir (coreutils) '* | \
3130 'mkdir (fileutils) '4.1*)
3131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3141 test -d ./--version && rmdir ./--version
3142 if test "${ac_cv_path_mkdir+set}" = set; then
3143 MKDIR_P="$ac_cv_path_mkdir -p"
3145 # As a last resort, use the slow shell script. Don't cache a
3146 # value for MKDIR_P within a source directory, because that will
3147 # break other packages using the cache if that directory is
3148 # removed, or if the value is a relative name.
3149 MKDIR_P="$ac_install_sh -d"
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153 $as_echo "$MKDIR_P" >&6; }
3155 for ac_prog in gawk mawk nawk awk
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_AWK+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 if test -n "$AWK"; then
3165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_AWK="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test -n "$AWK"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3187 $as_echo "$AWK" >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$AWK" && break
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3200 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3201 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3202 $as_echo_n "(cached) " >&6
3204 cat >conftest.make <<\_ACEOF
3207 @echo '@@@%%%=$(MAKE)=@@@%%%'
3209 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3212 eval ac_cv_prog_make_${ac_make}_set=yes;;
3214 eval ac_cv_prog_make_${ac_make}_set=no;;
3218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 SET_MAKE="MAKE=${MAKE-make}"
3228 rm -rf .tst 2>/dev/null
3229 mkdir .tst 2>/dev/null
3230 if test -d .tst; then
3235 rmdir .tst 2>/dev/null
3237 # Check whether --enable-silent-rules was given.
3238 if test "${enable_silent_rules+set}" = set; then :
3239 enableval=$enable_silent_rules;
3242 case $enable_silent_rules in # (((
3243 yes) AM_DEFAULT_VERBOSITY=0;;
3244 no) AM_DEFAULT_VERBOSITY=1;;
3245 *) AM_DEFAULT_VERBOSITY=1;;
3247 am_make=${MAKE-make}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3249 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3250 if ${am_cv_make_support_nested_variables+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 if $as_echo 'TRUE=$(BAR$(V))
3259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3260 am_cv_make_support_nested_variables=yes
3262 am_cv_make_support_nested_variables=no
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3266 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3267 if test $am_cv_make_support_nested_variables = yes; then
3269 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3271 AM_V=$AM_DEFAULT_VERBOSITY
3272 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3276 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3277 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3278 # is not polluted with repeated "-I."
3279 am__isrc=' -I$(srcdir)'
3280 # test to see if srcdir already configured
3281 if test -f $srcdir/config.status; then
3282 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3286 # test whether we have cygpath
3287 if test -z "$CYGPATH_W"; then
3288 if (cygpath --version) >/dev/null 2>/dev/null; then
3289 CYGPATH_W='cygpath -w'
3296 # Define the identity of the package.
3301 cat >>confdefs.h <<_ACEOF
3302 #define PACKAGE "$PACKAGE"
3306 cat >>confdefs.h <<_ACEOF
3307 #define VERSION "$VERSION"
3310 # Some tools Automake needs.
3312 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3315 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3318 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3321 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3324 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3326 # For better backward compatibility. To be removed once Automake 1.9.x
3327 # dies out for good. For more background, see:
3328 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3330 mkdir_p='$(MKDIR_P)'
3332 # We need awk for the "check" target (and possibly the TAP driver). The
3333 # system "awk" is bad on some platforms.
3334 # Always define AMTAR for backward compatibility. Yes, it's still used
3335 # in the wild :-( We should find a proper way to deprecate it ...
3339 # We'll loop over all known methods to create a tar archive until one works.
3340 _am_tools='gnutar plaintar pax cpio none'
3342 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3343 # There is notably a 21 bits limit for the UID and the GID. In fact,
3344 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3346 am_max_uid=2097151 # 2^21 - 1
3347 am_max_gid=$am_max_uid
3348 # The $UID and $GID variables are not portable, so we need to resort
3349 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3350 # below are definitely unexpected, so allow the users to see them
3351 # (that is, avoid stderr redirection).
3352 am_uid=`id -u || echo unknown`
3353 am_gid=`id -g || echo unknown`
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3355 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3356 if test $am_uid -le $am_max_uid; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3365 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3366 if test $am_gid -le $am_max_gid; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3376 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3378 # Go ahead even if we have the value already cached. We do so because we
3379 # need to set the values for the 'am__tar' and 'am__untar' variables.
3380 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3382 for _am_tool in $_am_tools; do
3385 for _am_tar in tar gnutar gtar; do
3386 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3387 ($_am_tar --version) >&5 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && break
3392 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3393 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3394 am__untar="$_am_tar -xf -"
3397 # Must skip GNU tar: if it does not support --format= it doesn't create
3398 # ustar tarball either.
3399 (tar --version) >/dev/null 2>&1 && continue
3400 am__tar='tar chf - "$$tardir"'
3401 am__tar_='tar chf - "$tardir"'
3402 am__untar='tar xf -'
3405 am__tar='pax -L -x ustar -w "$$tardir"'
3406 am__tar_='pax -L -x ustar -w "$tardir"'
3410 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3411 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3412 am__untar='cpio -i -H ustar -d'
3421 # If the value was cached, stop now. We just wanted to have am__tar
3422 # and am__untar set.
3423 test -n "${am_cv_prog_tar_ustar}" && break
3425 # tar/untar a dummy directory, and stop if the command works.
3428 echo GrepMe > conftest.dir/file
3429 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3430 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }
3435 if test -s conftest.tar; then
3436 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3437 ($am__untar <conftest.tar) >&5 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }
3441 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3442 (cat conftest.dir/file) >&5 2>&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }
3446 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3451 if ${am_cv_prog_tar_ustar+:} false; then :
3452 $as_echo_n "(cached) " >&6
3454 am_cv_prog_tar_ustar=$_am_tool
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3458 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3465 # POSIX will say in a future version that running "rm -f" with no argument
3466 # is OK; and we want to be able to make that assumption in our Makefile
3467 # recipes. So use an aggressive probe to check that the usage we want is
3468 # actually supported "in the wild" to an acceptable degree.
3469 # See automake bug#10828.
3470 # To make any issue more visible, cause the running configure to be aborted
3471 # by default if the 'rm' program in use doesn't match our expectations; the
3472 # user can still override this though.
3473 if rm -f && rm -fr && rm -rf; then : OK; else
3477 Your 'rm' program seems unable to run without file operands specified
3478 on the command line, even when the '-f' option is present. This is contrary
3479 to the behaviour of most rm programs out there, and not conforming with
3480 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3482 Please tell bug-automake@gnu.org about your system, including the value
3483 of your $PATH and any error possibly output before this message. This
3484 can help us improve future automake versions.
3487 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3488 echo 'Configuration will proceed anyway, since you have set the' >&2
3489 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3493 Aborting the configuration process, to ensure you take notice of the issue.
3495 You can download and install GNU coreutils to get an 'rm' implementation
3496 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3498 If you want to complete the configuration process using your problematic
3499 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3500 to "yes", and re-run configure.
3503 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3507 ac_config_headers="$ac_config_headers config.h"
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3511 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3512 # Check whether --enable-maintainer-mode was given.
3513 if test "${enable_maintainer_mode+set}" = set; then :
3514 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3516 USE_MAINTAINER_MODE=no
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3520 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3521 if test $USE_MAINTAINER_MODE = yes; then
3522 MAINTAINER_MODE_TRUE=
3523 MAINTAINER_MODE_FALSE='#'
3525 MAINTAINER_MODE_TRUE='#'
3526 MAINTAINER_MODE_FALSE=
3529 MAINT=$MAINTAINER_MODE_TRUE
3533 # Support silent build rules, requires at least automake-1.11. Disable
3534 # by either passing --disable-silent-rules to configure or passing V=1
3536 # Check whether --enable-silent-rules was given.
3537 if test "${enable_silent_rules+set}" = set; then :
3538 enableval=$enable_silent_rules;
3541 case $enable_silent_rules in # (((
3542 yes) AM_DEFAULT_VERBOSITY=0;;
3543 no) AM_DEFAULT_VERBOSITY=1;;
3544 *) AM_DEFAULT_VERBOSITY=0;;
3546 am_make=${MAKE-make}
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3548 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3549 if ${am_cv_make_support_nested_variables+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 if $as_echo 'TRUE=$(BAR$(V))
3558 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3559 am_cv_make_support_nested_variables=yes
3561 am_cv_make_support_nested_variables=no
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3565 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3566 if test $am_cv_make_support_nested_variables = yes; then
3568 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3570 AM_V=$AM_DEFAULT_VERBOSITY
3571 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CC+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3620 if test -z "$ac_cv_prog_CC"; then
3622 # Extract the first word of "gcc", so it can be a program name with args.
3623 set dummy gcc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3627 $as_echo_n "(cached) " >&6
3629 if test -n "$ac_ct_CC"; then
3630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_ac_ct_CC="gcc"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3650 if test -n "$ac_ct_CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3652 $as_echo "$ac_ct_CC" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3658 if test "x$ac_ct_CC" = x; then
3661 case $cross_compiling:$ac_tool_warned in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3673 if test -z "$CC"; then
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_CC="${ac_tool_prefix}cc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3714 if test -z "$CC"; then
3715 # Extract the first word of "cc", so it can be a program name with args.
3716 set dummy cc; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_CC+:} false; then :
3720 $as_echo_n "(cached) " >&6
3722 if test -n "$CC"; then
3723 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3734 ac_prog_rejected=yes
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 if test $ac_prog_rejected = yes; then
3746 # We found a bogon in the path, so make sure we never use it.
3747 set dummy $ac_cv_prog_CC
3749 if test $# != 0; then
3750 # We chose a different compiler from the bogus one.
3751 # However, it has the same basename, so the bogon will be chosen
3752 # first if we set CC to just the basename; use the full file name.
3754 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3770 if test -z "$CC"; then
3771 if test -n "$ac_tool_prefix"; then
3772 for ac_prog in cl.exe
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if ${ac_cv_prog_CC+:} false; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -n "$CC"; then
3782 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 if test -n "$CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3804 $as_echo "$CC" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$CC" && break
3814 if test -z "$CC"; then
3816 for ac_prog in cl.exe
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_CC="$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3855 test -n "$ac_ct_CC" && break
3858 if test "x$ac_ct_CC" = x; then
3861 case $cross_compiling:$ac_tool_warned in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3874 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details" "$LINENO" 5; }
3879 # Provide some information about the compiler.
3880 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3883 for ac_option in --version -v -V -qversion; do
3884 { { ac_try="$ac_compiler $ac_option >&5"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3893 if test -s conftest.err; then
3895 ... rest of stderr output deleted ...
3896 10q' conftest.err >conftest.er1
3897 cat conftest.er1 >&5
3899 rm -f conftest.er1 conftest.err
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 ac_clean_files_save=$ac_clean_files
3916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3917 # Try to create an executable without -o first, disregard a.out.
3918 # It will help us diagnose broken compilers, and finding out an intuition
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3924 # The possible output files:
3925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3928 for ac_file in $ac_files
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3937 if { { ac_try="$ac_link_default"
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link_default") 2>&5
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3950 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3951 # so that the user can short-circuit this test for compilers unknown to
3953 for ac_file in $ac_files ''
3955 test -f "$ac_file" || continue
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3960 # We found the default executable, but exeext='' is most
3964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 # We set ac_cv_exeext here because the later test for it is not
3969 # safe: cross compilers may not add the suffix if given an `-o'
3970 # argument, so we may need to know it at that point already.
3971 # Even if this section looks crufty: it has the advantage of
3978 test "$ac_cv_exeext" = no && ac_cv_exeext=
3983 if test -z "$ac_file"; then :
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error 77 "C compiler cannot create executables
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3995 $as_echo "yes" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3998 $as_echo_n "checking for C compiler default output file name... " >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4000 $as_echo "$ac_file" >&6; }
4001 ac_exeext=$ac_cv_exeext
4003 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4004 ac_clean_files=$ac_clean_files_save
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4006 $as_echo_n "checking for suffix of executables... " >&6; }
4007 if { { ac_try="$ac_link"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_link") 2>&5
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4019 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4020 # work properly (i.e., refer to `conftest.exe'), while it won't with
4022 for ac_file in conftest.exe conftest conftest.*; do
4023 test -f "$ac_file" || continue
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4035 See \`config.log' for more details" "$LINENO" 5; }
4037 rm -f conftest conftest$ac_cv_exeext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4039 $as_echo "$ac_cv_exeext" >&6; }
4041 rm -f conftest.$ac_ext
4042 EXEEXT=$ac_cv_exeext
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4050 FILE *f = fopen ("conftest.out", "w");
4051 return ferror (f) || fclose (f) != 0;
4057 ac_clean_files="$ac_clean_files conftest.out"
4058 # Check that the compiler produces executables we can run. If not, either
4059 # the compiler is broken, or we cross compile.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4061 $as_echo_n "checking whether we are cross compiling... " >&6; }
4062 if test "$cross_compiling" != yes; then
4063 { { ac_try="$ac_link"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_link") 2>&5
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 if { ac_try='./conftest$ac_cv_exeext'
4075 { { case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_try") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; }; then
4087 if test "$cross_compiling" = maybe; then
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot run C compiled programs.
4093 If you meant to cross compile, use \`--host'.
4094 See \`config.log' for more details" "$LINENO" 5; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4099 $as_echo "$cross_compiling" >&6; }
4101 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4102 ac_clean_files=$ac_clean_files_save
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4104 $as_echo_n "checking for suffix of object files... " >&6; }
4105 if ${ac_cv_objext+:} false; then :
4106 $as_echo_n "(cached) " >&6
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 rm -f conftest.o conftest.obj
4120 if { { ac_try="$ac_compile"
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 $as_echo "$ac_try_echo"; } >&5
4127 (eval "$ac_compile") 2>&5
4129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130 test $ac_status = 0; }; then :
4131 for ac_file in conftest.o conftest.obj conftest.*; do
4132 test -f "$ac_file" || continue;
4134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 as_fn_error $? "cannot compute suffix of object files: cannot compile
4146 See \`config.log' for more details" "$LINENO" 5; }
4148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4151 $as_echo "$ac_cv_objext" >&6; }
4152 OBJEXT=$ac_cv_objext
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4156 if ${ac_cv_c_compiler_gnu+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4173 if ac_fn_c_try_compile "$LINENO"; then :
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4184 if test $ac_compiler_gnu = yes; then
4189 ac_test_CFLAGS=${CFLAGS+set}
4190 ac_save_CFLAGS=$CFLAGS
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4192 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4193 if ${ac_cv_prog_cc_g+:} false; then :
4194 $as_echo_n "(cached) " >&6
4196 ac_save_c_werror_flag=$ac_c_werror_flag
4197 ac_c_werror_flag=yes
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 if ac_fn_c_try_compile "$LINENO"; then :
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4226 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4242 if ac_fn_c_try_compile "$LINENO"; then :
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 ac_c_werror_flag=$ac_save_c_werror_flag
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4253 $as_echo "$ac_cv_prog_cc_g" >&6; }
4254 if test "$ac_test_CFLAGS" = set; then
4255 CFLAGS=$ac_save_CFLAGS
4256 elif test $ac_cv_prog_cc_g = yes; then
4257 if test "$GCC" = yes; then
4263 if test "$GCC" = yes; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4270 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4271 if ${ac_cv_prog_cc_c89+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 ac_cv_prog_cc_c89=no
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4281 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4282 struct buf { int x; };
4283 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4284 static char *e (p, i)
4290 static char *f (char * (*g) (char **, int), char **p, ...)
4295 s = g (p, va_arg (v,int));
4300 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4301 function prototypes and stuff, but not '\xHH' hex character constants.
4302 These don't provoke an error unfortunately, instead are silently treated
4303 as 'x'. The following induces an error, until -std is added to get
4304 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4305 array size at least. It's necessary to write '\x00'==0 to get something
4306 that's true only with -std. */
4307 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4309 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4310 inside strings and character constants. */
4312 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4314 int test (int i, double x);
4315 struct s1 {int (*f) (int a);};
4316 struct s2 {int (*f) (double a);};
4317 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4323 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4328 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4329 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4331 CC="$ac_save_CC $ac_arg"
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_cv_prog_cc_c89=$ac_arg
4335 rm -f core conftest.err conftest.$ac_objext
4336 test "x$ac_cv_prog_cc_c89" != "xno" && break
4338 rm -f conftest.$ac_ext
4343 case "x$ac_cv_prog_cc_c89" in
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346 $as_echo "none needed" >&6; } ;;
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 $as_echo "unsupported" >&6; } ;;
4351 CC="$CC $ac_cv_prog_cc_c89"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4353 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4355 if test "x$ac_cv_prog_cc_c89" != xno; then :
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4371 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4372 if ${am_cv_prog_cc_c_o+:} false; then :
4373 $as_echo_n "(cached) " >&6
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4386 # Make sure it works both with $CC and with simple cc.
4387 # Following AC_PROG_CC_C_O, we do the test twice because some
4388 # compilers refuse to overwrite an existing .o file with -o,
4389 # though they will create one.
4390 am_cv_prog_cc_c_o=yes
4392 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4393 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } \
4397 && test -f conftest2.$ac_objext; then
4400 am_cv_prog_cc_c_o=no
4404 rm -f core conftest*
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4408 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4409 if test "$am_cv_prog_cc_c_o" != yes; then
4410 # Losing compiler, so override with the script.
4411 # FIXME: It is wrong to rewrite CC.
4412 # But if we don't then we get into trouble of one sort or another.
4413 # A longer-term fix would be to have automake use am__CC in this case,
4414 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4415 CC="$am_aux_dir/compile $CC"
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 DEPDIR="${am__leading_dot}deps"
4425 ac_config_commands="$ac_config_commands depfiles"
4428 am_make=${MAKE-make}
4429 cat > confinc << 'END'
4431 @echo this is the am__doit target
4434 # If we don't find an include directive, just comment out the code.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4436 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4440 # First try GNU make style include.
4441 echo "include confinc" > confmf
4442 # Ignore all kinds of additional output from 'make'.
4443 case `$am_make -s -f confmf 2> /dev/null` in #(
4444 *the\ am__doit\ target*)
4450 # Now try BSD make style include.
4451 if test "$am__include" = "#"; then
4452 echo '.include "confinc"' > confmf
4453 case `$am_make -s -f confmf 2> /dev/null` in #(
4454 *the\ am__doit\ target*)
4455 am__include=.include
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4464 $as_echo "$_am_result" >&6; }
4465 rm -f confinc confmf
4467 # Check whether --enable-dependency-tracking was given.
4468 if test "${enable_dependency_tracking+set}" = set; then :
4469 enableval=$enable_dependency_tracking;
4472 if test "x$enable_dependency_tracking" != xno; then
4473 am_depcomp="$ac_aux_dir/depcomp"
4477 if test "x$enable_dependency_tracking" != xno; then
4487 depcc="$CC" am_compiler_list=
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4490 $as_echo_n "checking dependency style of $depcc... " >&6; }
4491 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4492 $as_echo_n "(cached) " >&6
4494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495 # We make a subdir and do the tests there. Otherwise we can end up
4496 # making bogus files that we don't know about and never remove. For
4497 # instance it was reported that on HP-UX the gcc test will end up
4498 # making a dummy file named 'D' -- because '-MD' means "put the output
4502 # Copy depcomp to subdir because otherwise we won't find it if we're
4503 # using a relative directory.
4504 cp "$am_depcomp" conftest.dir
4506 # We will build objects and dependencies in a subdirectory because
4507 # it helps to detect inapplicable dependency modes. For instance
4508 # both Tru64's cc and ICC support -MD to output dependencies as a
4509 # side effect of compilation, but ICC will put the dependencies in
4510 # the current directory while Tru64 will put them in the object
4514 am_cv_CC_dependencies_compiler_type=none
4515 if test "$am_compiler_list" = ""; then
4516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4519 case " $depcc " in #(
4520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4523 for depmode in $am_compiler_list; do
4524 # Setup a source with many dependencies, because some compilers
4525 # like to wrap large dependency lists on column 80 (with \), and
4526 # we should not choose a depcomp mode which is confused by this.
4528 # We need to recreate these files for each test, as the compiler may
4529 # overwrite some of them when testing with obscure command lines.
4530 # This happens at least with the AIX C compiler.
4532 for i in 1 2 3 4 5 6; do
4533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4534 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4535 # Solaris 10 /bin/sh.
4536 echo '/* dummy */' > sub/conftst$i.h
4538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4540 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4541 # mode. It turns out that the SunPro C++ compiler does not properly
4542 # handle '-M -o', and we need to detect this. Also, some Intel
4543 # versions had trouble with output in subdirs.
4544 am__obj=sub/conftest.${OBJEXT-o}
4545 am__minus_obj="-o $am__obj"
4548 # This depmode causes a compiler race in universal mode.
4549 test "$am__universal" = false || continue
4552 # After this tag, mechanisms are not by side-effect, so they'll
4553 # only be used when explicitly requested.
4554 if test "x$enable_dependency_tracking" = xyes; then
4560 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4561 # This compiler won't grok '-c -o', but also, the minuso test has
4562 # not run yet. These depmodes are late enough in the game, and
4563 # so weak that their functioning should not be impacted.
4564 am__obj=conftest.${OBJEXT-o}
4569 if depmode=$depmode \
4570 source=sub/conftest.c object=$am__obj \
4571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4573 >/dev/null 2>conftest.err &&
4574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4578 # icc doesn't choke on unknown options, it will just issue warnings
4579 # or remarks (even with -Werror). So we grep stderr for any message
4580 # that says an option was ignored or not supported.
4581 # When given -MP, icc 7.0 and 7.1 complain thusly:
4582 # icc: Command line warning: ignoring option '-M'; no argument required
4583 # The diagnosis changed in icc 8.0:
4584 # icc: Command line remark: option '-MP' not supported
4585 if (grep 'ignoring option' conftest.err ||
4586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4587 am_cv_CC_dependencies_compiler_type=$depmode
4596 am_cv_CC_dependencies_compiler_type=none
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4601 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4605 test "x$enable_dependency_tracking" != xno \
4606 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4608 am__fastdepCC_FALSE='#'
4610 am__fastdepCC_TRUE='#'
4611 am__fastdepCC_FALSE=
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4623 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4624 # On Suns, sometimes $CPP names a directory.
4625 if test -n "$CPP" && test -d "$CPP"; then
4628 if test -z "$CPP"; then
4629 if ${ac_cv_prog_CPP+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 # Double quotes because CPP needs to be expanded
4633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4636 for ac_c_preproc_warn_flag in '' yes
4638 # Use a header file that comes with gcc, so configuring glibc
4639 # with a fresh cross-compiler works.
4640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4641 # <limits.h> exists even on freestanding compilers.
4642 # On the NeXT, cc -E runs the code through the compiler's parser,
4643 # not just through cpp. "Syntax error" is here to catch this case.
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4647 # include <limits.h>
4649 # include <assert.h>
4653 if ac_fn_c_try_cpp "$LINENO"; then :
4656 # Broken: fails on valid input.
4659 rm -f conftest.err conftest.i conftest.$ac_ext
4661 # OK, works on sane cases. Now check whether nonexistent headers
4662 # can be detected and how.
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <ac_nonexistent.h>
4667 if ac_fn_c_try_cpp "$LINENO"; then :
4668 # Broken: success on invalid input.
4671 # Passes both tests.
4675 rm -f conftest.err conftest.i conftest.$ac_ext
4678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679 rm -f conftest.i conftest.err conftest.$ac_ext
4680 if $ac_preproc_ok; then :
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4693 $as_echo "$CPP" >&6; }
4695 for ac_c_preproc_warn_flag in '' yes
4697 # Use a header file that comes with gcc, so configuring glibc
4698 # with a fresh cross-compiler works.
4699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 # <limits.h> exists even on freestanding compilers.
4701 # On the NeXT, cc -E runs the code through the compiler's parser,
4702 # not just through cpp. "Syntax error" is here to catch this case.
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4706 # include <limits.h>
4708 # include <assert.h>
4712 if ac_fn_c_try_cpp "$LINENO"; then :
4715 # Broken: fails on valid input.
4718 rm -f conftest.err conftest.i conftest.$ac_ext
4720 # OK, works on sane cases. Now check whether nonexistent headers
4721 # can be detected and how.
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <ac_nonexistent.h>
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4727 # Broken: success on invalid input.
4730 # Passes both tests.
4734 rm -f conftest.err conftest.i conftest.$ac_ext
4737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4738 rm -f conftest.i conftest.err conftest.$ac_ext
4739 if $ac_preproc_ok; then :
4742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4745 See \`config.log' for more details" "$LINENO" 5; }
4749 ac_cpp='$CPP $CPPFLAGS'
4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4757 if ${ac_cv_path_GREP+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -z "$GREP"; then
4761 ac_path_GREP_found=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 test -z "$as_dir" && as_dir=.
4768 for ac_prog in grep ggrep; do
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4771 as_fn_executable_p "$ac_path_GREP" || continue
4772 # Check for GNU ac_path_GREP and select it if it is found.
4773 # Check for GNU $ac_path_GREP
4774 case `"$ac_path_GREP" --version 2>&1` in
4776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4779 $as_echo_n 0123456789 >"conftest.in"
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'GREP' >> "conftest.nl"
4786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788 as_fn_arith $ac_count + 1 && ac_count=$as_val
4789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_GREP="$ac_path_GREP"
4792 ac_path_GREP_max=$ac_count
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 $ac_path_GREP_found && break 3
4805 if test -z "$ac_cv_path_GREP"; then
4806 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 ac_cv_path_GREP=$GREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4814 $as_echo "$ac_cv_path_GREP" >&6; }
4815 GREP="$ac_cv_path_GREP"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4819 $as_echo_n "checking for egrep... " >&6; }
4820 if ${ac_cv_path_EGREP+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4824 then ac_cv_path_EGREP="$GREP -E"
4826 if test -z "$EGREP"; then
4827 ac_path_EGREP_found=false
4828 # Loop through the user's path and test for each of PROGNAME-LIST
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 test -z "$as_dir" && as_dir=.
4834 for ac_prog in egrep; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4837 as_fn_executable_p "$ac_path_EGREP" || continue
4838 # Check for GNU ac_path_EGREP and select it if it is found.
4839 # Check for GNU $ac_path_EGREP
4840 case `"$ac_path_EGREP" --version 2>&1` in
4842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4845 $as_echo_n 0123456789 >"conftest.in"
4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
4849 mv "conftest.tmp" "conftest.in"
4850 cp "conftest.in" "conftest.nl"
4851 $as_echo 'EGREP' >> "conftest.nl"
4852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
4855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4856 # Best one so far, save it but keep looking for a better one
4857 ac_cv_path_EGREP="$ac_path_EGREP"
4858 ac_path_EGREP_max=$ac_count
4860 # 10*(2^10) chars as input seems more than enough
4861 test $ac_count -gt 10 && break
4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 $ac_path_EGREP_found && break 3
4871 if test -z "$ac_cv_path_EGREP"; then
4872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875 ac_cv_path_EGREP=$EGREP
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4881 $as_echo "$ac_cv_path_EGREP" >&6; }
4882 EGREP="$ac_cv_path_EGREP"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4886 $as_echo_n "checking for ANSI C header files... " >&6; }
4887 if ${ac_cv_header_stdc+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906 ac_cv_header_stdc=yes
4908 ac_cv_header_stdc=no
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 if test $ac_cv_header_stdc = yes; then
4913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "memchr" >/dev/null 2>&1; then :
4923 ac_cv_header_stdc=no
4929 if test $ac_cv_header_stdc = yes; then
4930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937 $EGREP "free" >/dev/null 2>&1; then :
4940 ac_cv_header_stdc=no
4946 if test $ac_cv_header_stdc = yes; then
4947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4948 if test "$cross_compiling" = yes; then :
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4955 #if ((' ' & 0x0FF) == 0x020)
4956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4959 # define ISLOWER(c) \
4960 (('a' <= (c) && (c) <= 'i') \
4961 || ('j' <= (c) && (c) <= 'r') \
4962 || ('s' <= (c) && (c) <= 'z'))
4963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4971 for (i = 0; i < 256; i++)
4972 if (XOR (islower (i), ISLOWER (i))
4973 || toupper (i) != TOUPPER (i))
4978 if ac_fn_c_try_run "$LINENO"; then :
4981 ac_cv_header_stdc=no
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984 conftest.$ac_objext conftest.beam conftest.$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4990 $as_echo "$ac_cv_header_stdc" >&6; }
4991 if test $ac_cv_header_stdc = yes; then
4993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5000 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5005 macro_version='2.4.2'
5006 macro_revision='1.3337'
5020 ltmain="$ac_aux_dir/ltmain.sh"
5022 # Backslashify metacharacters that are still active within
5023 # double-quoted strings.
5024 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5026 # Same as above, but do not quote variable references.
5027 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5029 # Sed substitution to delay expansion of an escaped shell variable in a
5030 # double_quote_subst'ed string.
5031 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5033 # Sed substitution to delay expansion of an escaped single quote.
5034 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5036 # Sed substitution to avoid accidental globbing in evaled expressions
5037 no_glob_subst='s/\*/\\\*/g'
5039 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5040 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5041 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5044 $as_echo_n "checking how to print strings... " >&6; }
5045 # Test print first, because it will be a builtin if present.
5046 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5047 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5049 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5052 # Use this function as a fallback that always works.
5053 func_fallback_echo ()
5055 eval 'cat <<_LTECHO_EOF
5059 ECHO='func_fallback_echo'
5062 # func_echo_all arg...
5063 # Invoke $ECHO with all args, space-separated.
5070 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5071 $as_echo "printf" >&6; } ;;
5072 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5073 $as_echo "print -r" >&6; } ;;
5074 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5075 $as_echo "cat" >&6; } ;;
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5092 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5093 if ${ac_cv_path_SED+:} false; then :
5094 $as_echo_n "(cached) " >&6
5096 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5097 for ac_i in 1 2 3 4 5 6 7; do
5098 ac_script="$ac_script$as_nl$ac_script"
5100 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5101 { ac_script=; unset ac_script;}
5102 if test -z "$SED"; then
5103 ac_path_SED_found=false
5104 # Loop through the user's path and test for each of PROGNAME-LIST
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_prog in sed gsed; do
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5113 as_fn_executable_p "$ac_path_SED" || continue
5114 # Check for GNU ac_path_SED and select it if it is found.
5115 # Check for GNU $ac_path_SED
5116 case `"$ac_path_SED" --version 2>&1` in
5118 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5121 $as_echo_n 0123456789 >"conftest.in"
5124 cat "conftest.in" "conftest.in" >"conftest.tmp"
5125 mv "conftest.tmp" "conftest.in"
5126 cp "conftest.in" "conftest.nl"
5127 $as_echo '' >> "conftest.nl"
5128 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5130 as_fn_arith $ac_count + 1 && ac_count=$as_val
5131 if test $ac_count -gt ${ac_path_SED_max-0}; then
5132 # Best one so far, save it but keep looking for a better one
5133 ac_cv_path_SED="$ac_path_SED"
5134 ac_path_SED_max=$ac_count
5136 # 10*(2^10) chars as input seems more than enough
5137 test $ac_count -gt 10 && break
5139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142 $ac_path_SED_found && break 3
5147 if test -z "$ac_cv_path_SED"; then
5148 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5156 $as_echo "$ac_cv_path_SED" >&6; }
5157 SED="$ac_cv_path_SED"
5160 test -z "$SED" && SED=sed
5161 Xsed="$SED -e 1s/^X//"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5174 $as_echo_n "checking for fgrep... " >&6; }
5175 if ${ac_cv_path_FGREP+:} false; then :
5176 $as_echo_n "(cached) " >&6
5178 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5179 then ac_cv_path_FGREP="$GREP -F"
5181 if test -z "$FGREP"; then
5182 ac_path_FGREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 test -z "$as_dir" && as_dir=.
5189 for ac_prog in fgrep; do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5192 as_fn_executable_p "$ac_path_FGREP" || continue
5193 # Check for GNU ac_path_FGREP and select it if it is found.
5194 # Check for GNU $ac_path_FGREP
5195 case `"$ac_path_FGREP" --version 2>&1` in
5197 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5200 $as_echo_n 0123456789 >"conftest.in"
5203 cat "conftest.in" "conftest.in" >"conftest.tmp"
5204 mv "conftest.tmp" "conftest.in"
5205 cp "conftest.in" "conftest.nl"
5206 $as_echo 'FGREP' >> "conftest.nl"
5207 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209 as_fn_arith $ac_count + 1 && ac_count=$as_val
5210 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5211 # Best one so far, save it but keep looking for a better one
5212 ac_cv_path_FGREP="$ac_path_FGREP"
5213 ac_path_FGREP_max=$ac_count
5215 # 10*(2^10) chars as input seems more than enough
5216 test $ac_count -gt 10 && break
5218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 $ac_path_FGREP_found && break 3
5226 if test -z "$ac_cv_path_FGREP"; then
5227 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230 ac_cv_path_FGREP=$FGREP
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5236 $as_echo "$ac_cv_path_FGREP" >&6; }
5237 FGREP="$ac_cv_path_FGREP"
5240 test -z "$GREP" && GREP=grep
5260 # Check whether --with-gnu-ld was given.
5261 if test "${with_gnu_ld+set}" = set; then :
5262 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5268 if test "$GCC" = yes; then
5269 # Check if gcc -print-prog-name=ld gives a path.
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5271 $as_echo_n "checking for ld used by $CC... " >&6; }
5274 # gcc leaves a trailing carriage return which upsets mingw
5275 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5277 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5280 # Accept absolute paths.
5282 re_direlt='/[^/][^/]*/\.\./'
5283 # Canonicalize the pathname of ld
5284 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5285 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5286 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5288 test -z "$LD" && LD="$ac_prog"
5291 # If it fails, then pretend we aren't using GCC.
5295 # If it is relative, then search for the first ld in PATH.
5299 elif test "$with_gnu_ld" = yes; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5301 $as_echo_n "checking for GNU ld... " >&6; }
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5304 $as_echo_n "checking for non-GNU ld... " >&6; }
5306 if ${lt_cv_path_LD+:} false; then :
5307 $as_echo_n "(cached) " >&6
5309 if test -z "$LD"; then
5310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5311 for ac_dir in $PATH; do
5313 test -z "$ac_dir" && ac_dir=.
5314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5315 lt_cv_path_LD="$ac_dir/$ac_prog"
5316 # Check to see if the program is GNU ld. I'd rather use --version,
5317 # but apparently some variants of GNU ld only accept -v.
5318 # Break only if it was the GNU/non-GNU ld that we prefer.
5319 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5320 *GNU* | *'with BFD'*)
5321 test "$with_gnu_ld" != no && break
5324 test "$with_gnu_ld" != yes && break
5331 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5336 if test -n "$LD"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5338 $as_echo "$LD" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5343 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5346 if ${lt_cv_prog_gnu_ld+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352 lt_cv_prog_gnu_ld=yes
5355 lt_cv_prog_gnu_ld=no
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5360 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5361 with_gnu_ld=$lt_cv_prog_gnu_ld
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5372 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5373 if ${lt_cv_path_NM+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -n "$NM"; then
5377 # Let the user override the test.
5380 lt_nm_to_check="${ac_tool_prefix}nm"
5381 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5382 lt_nm_to_check="$lt_nm_to_check nm"
5384 for lt_tmp_nm in $lt_nm_to_check; do
5385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5388 test -z "$ac_dir" && ac_dir=.
5389 tmp_nm="$ac_dir/$lt_tmp_nm"
5390 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5391 # Check to see if the nm accepts a BSD-compat flag.
5392 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5393 # nm: unknown option "B" ignored
5394 # Tru64's nm complains that /dev/null is an invalid object file
5395 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5396 */dev/null* | *'Invalid file or object type'*)
5397 lt_cv_path_NM="$tmp_nm -B"
5401 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5403 lt_cv_path_NM="$tmp_nm -p"
5407 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5408 continue # so that we can try to find one that supports BSD flags
5417 : ${lt_cv_path_NM=no}
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5421 $as_echo "$lt_cv_path_NM" >&6; }
5422 if test "$lt_cv_path_NM" != "no"; then
5425 # Didn't find any BSD compatible name lister, look for dumpbin.
5426 if test -n "$DUMPBIN"; then :
5427 # Let the user override the test.
5429 if test -n "$ac_tool_prefix"; then
5430 for ac_prog in dumpbin "link -dump"
5432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_DUMPBIN+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$DUMPBIN"; then
5440 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 DUMPBIN=$ac_cv_prog_DUMPBIN
5460 if test -n "$DUMPBIN"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5462 $as_echo "$DUMPBIN" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 test -n "$DUMPBIN" && break
5472 if test -z "$DUMPBIN"; then
5473 ac_ct_DUMPBIN=$DUMPBIN
5474 for ac_prog in dumpbin "link -dump"
5476 # Extract the first word of "$ac_prog", so it can be a program name with args.
5477 set dummy $ac_prog; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$ac_ct_DUMPBIN"; then
5484 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5504 if test -n "$ac_ct_DUMPBIN"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5506 $as_echo "$ac_ct_DUMPBIN" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 test -n "$ac_ct_DUMPBIN" && break
5516 if test "x$ac_ct_DUMPBIN" = x; then
5519 case $cross_compiling:$ac_tool_warned in
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5525 DUMPBIN=$ac_ct_DUMPBIN
5529 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5531 DUMPBIN="$DUMPBIN -symbols"
5539 if test "$DUMPBIN" != ":"; then
5543 test -z "$NM" && NM=nm
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5551 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5552 if ${lt_cv_nm_interface+:} false; then :
5553 $as_echo_n "(cached) " >&6
5555 lt_cv_nm_interface="BSD nm"
5556 echo "int some_variable = 0;" > conftest.$ac_ext
5557 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5558 (eval "$ac_compile" 2>conftest.err)
5559 cat conftest.err >&5
5560 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5561 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5562 cat conftest.err >&5
5563 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5564 cat conftest.out >&5
5565 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5566 lt_cv_nm_interface="MS dumpbin"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5571 $as_echo "$lt_cv_nm_interface" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5574 $as_echo_n "checking whether ln -s works... " >&6; }
5576 if test "$LN_S" = "ln -s"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578 $as_echo "yes" >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5581 $as_echo "no, using $LN_S" >&6; }
5584 # find the maximum length of command line arguments
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5586 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5587 if ${lt_cv_sys_max_cmd_len+:} false; then :
5588 $as_echo_n "(cached) " >&6
5595 # On DJGPP, this test can blow up pretty badly due to problems in libc
5596 # (any single argument exceeding 2000 bytes causes a buffer overrun
5597 # during glob expansion). Even if it were fixed, the result of this
5598 # check would be larger than it should be.
5599 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5603 # Under GNU Hurd, this test is not required because there is
5604 # no limit to the length of command line arguments.
5605 # Libtool will interpret -1 as no limit whatsoever
5606 lt_cv_sys_max_cmd_len=-1;
5609 cygwin* | mingw* | cegcc*)
5610 # On Win9x/ME, this test blows up -- it succeeds, but takes
5611 # about 5 minutes as the teststring grows exponentially.
5612 # Worse, since 9x/ME are not pre-emptively multitasking,
5613 # you end up with a "frozen" computer, even though with patience
5614 # the test eventually succeeds (with a max line length of 256k).
5615 # Instead, let's just punt: use the minimum linelength reported by
5616 # all of the supported platforms: 8192 (on NT/2K/XP).
5617 lt_cv_sys_max_cmd_len=8192;
5621 # On MiNT this can take a long time and run out of memory.
5622 lt_cv_sys_max_cmd_len=8192;
5626 # On AmigaOS with pdksh, this test takes hours, literally.
5627 # So we just punt and use a minimum line length of 8192.
5628 lt_cv_sys_max_cmd_len=8192;
5631 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5632 # This has been around since 386BSD, at least. Likely further.
5633 if test -x /sbin/sysctl; then
5634 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5635 elif test -x /usr/sbin/sysctl; then
5636 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5638 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5640 # And add a safety zone
5641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5646 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5647 lt_cv_sys_max_cmd_len=196608
5651 # The test takes a long time on OS/2.
5652 lt_cv_sys_max_cmd_len=8192
5656 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5657 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5658 # nice to cause kernel panics so lets avoid the loop below.
5659 # First set a reasonable default.
5660 lt_cv_sys_max_cmd_len=16384
5662 if test -x /sbin/sysconfig; then
5663 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5664 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5669 lt_cv_sys_max_cmd_len=102400
5671 sysv5* | sco5v6* | sysv4.2uw2*)
5672 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5673 if test -n "$kargmax"; then
5674 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5676 lt_cv_sys_max_cmd_len=32768
5680 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5681 if test -n "$lt_cv_sys_max_cmd_len" && \
5682 test undefined != "$lt_cv_sys_max_cmd_len"; then
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 # Make teststring a little bigger before we do anything with it.
5687 # a 1K string should be a reasonable start.
5688 for i in 1 2 3 4 5 6 7 8 ; do
5689 teststring=$teststring$teststring
5691 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5692 # If test is not a shell built-in, we'll probably end up computing a
5693 # maximum length that is only half of the actual maximum length, but
5695 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5696 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5697 test $i != 17 # 1/2 MB should be enough
5700 teststring=$teststring$teststring
5702 # Only check the string length outside the loop.
5703 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5705 # Add a significant safety factor because C++ compilers can tack on
5706 # massive amounts of additional arguments before passing them to the
5707 # linker. It appears as though 1/2 is a usable value.
5708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5715 if test -n $lt_cv_sys_max_cmd_len ; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5720 $as_echo "none" >&6; }
5722 max_cmd_len=$lt_cv_sys_max_cmd_len
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5735 # Try some XSI features
5738 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5740 && eval 'test $(( 1 + 1 )) -eq 2 \
5741 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5744 $as_echo "$xsi_shell" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5752 && lt_shell_append=yes
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5754 $as_echo "$lt_shell_append" >&6; }
5757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5767 # test EBCDIC or ASCII
5768 case `echo X|tr X '\101'` in
5769 A) # ASCII based system
5770 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5771 lt_SP2NL='tr \040 \012'
5772 lt_NL2SP='tr \015\012 \040\040'
5774 *) # EBCDIC based system
5775 lt_SP2NL='tr \100 \n'
5776 lt_NL2SP='tr \r\n \100\100'
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5789 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5790 if ${lt_cv_to_host_file_cmd+:} false; then :
5791 $as_echo_n "(cached) " >&6
5796 *-*-mingw* ) # actually msys
5797 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5800 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5802 * ) # otherwise, assume *nix
5803 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5809 *-*-mingw* ) # actually msys
5810 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5813 lt_cv_to_host_file_cmd=func_convert_file_noop
5815 * ) # otherwise, assume *nix
5816 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5820 * ) # unhandled hosts (and "normal" native builds)
5821 lt_cv_to_host_file_cmd=func_convert_file_noop
5827 to_host_file_cmd=$lt_cv_to_host_file_cmd
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5829 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5836 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5837 if ${lt_cv_to_tool_file_cmd+:} false; then :
5838 $as_echo_n "(cached) " >&6
5840 #assume ordinary cross tools, or native build.
5841 lt_cv_to_tool_file_cmd=func_convert_file_noop
5845 *-*-mingw* ) # actually msys
5846 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5856 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5864 if ${lt_cv_ld_reload_flag+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 lt_cv_ld_reload_flag='-r'
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5871 reload_flag=$lt_cv_ld_reload_flag
5872 case $reload_flag in
5874 *) reload_flag=" $reload_flag" ;;
5876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5878 cygwin* | mingw* | pw32* | cegcc*)
5879 if test "$GCC" != yes; then
5884 if test "$GCC" = yes; then
5885 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_OBJDUMP+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -n "$OBJDUMP"; then
5909 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 OBJDUMP=$ac_cv_prog_OBJDUMP
5929 if test -n "$OBJDUMP"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5931 $as_echo "$OBJDUMP" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5939 if test -z "$ac_cv_prog_OBJDUMP"; then
5940 ac_ct_OBJDUMP=$OBJDUMP
5941 # Extract the first word of "objdump", so it can be a program name with args.
5942 set dummy objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 if test -n "$ac_ct_OBJDUMP"; then
5949 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5969 if test -n "$ac_ct_OBJDUMP"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5971 $as_echo "$ac_ct_OBJDUMP" >&6; }
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5977 if test "x$ac_ct_OBJDUMP" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5986 OBJDUMP=$ac_ct_OBJDUMP
5989 OBJDUMP="$ac_cv_prog_OBJDUMP"
5992 test -z "$OBJDUMP" && OBJDUMP=objdump
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6004 if ${lt_cv_deplibs_check_method+:} false; then :
6005 $as_echo_n "(cached) " >&6
6007 lt_cv_file_magic_cmd='$MAGIC_CMD'
6008 lt_cv_file_magic_test_file=
6009 lt_cv_deplibs_check_method='unknown'
6010 # Need to set the preceding variable on all platforms that support
6011 # interlibrary dependencies.
6012 # 'none' -- dependencies not supported.
6013 # `unknown' -- same as none, but documents that we really don't know.
6014 # 'pass_all' -- all dependencies passed with no checks.
6015 # 'test_compile' -- check by making test program.
6016 # 'file_magic [[regex]]' -- check by looking for files in library path
6017 # which responds to the $file_magic_cmd with a given extended regex.
6018 # If you have `file' or equivalent on your system and you're not sure
6019 # whether `pass_all' will *always* work, you probably want this one.
6023 lt_cv_deplibs_check_method=pass_all
6027 lt_cv_deplibs_check_method=pass_all
6031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6032 lt_cv_file_magic_cmd='/usr/bin/file -L'
6033 lt_cv_file_magic_test_file=/shlib/libc.so
6037 # func_win32_libid is a shell function defined in ltmain.sh
6038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6039 lt_cv_file_magic_cmd='func_win32_libid'
6043 # Base MSYS/MinGW do not provide the 'file' command needed by
6044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6045 # unless we find 'file', for example because we are cross-compiling.
6046 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6047 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6049 lt_cv_file_magic_cmd='func_win32_libid'
6051 # Keep this pattern in sync with the one in func_win32_libid.
6052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6053 lt_cv_file_magic_cmd='$OBJDUMP -f'
6058 # use the weaker test based on 'objdump'. See mingw*.
6059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6060 lt_cv_file_magic_cmd='$OBJDUMP -f'
6063 darwin* | rhapsody*)
6064 lt_cv_deplibs_check_method=pass_all
6067 freebsd* | dragonfly*)
6068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6071 # Not sure whether the presence of OpenBSD here was a mistake.
6072 # Let's accept both of them until this is cleared up.
6073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6074 lt_cv_file_magic_cmd=/usr/bin/file
6075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6079 lt_cv_deplibs_check_method=pass_all
6084 lt_cv_deplibs_check_method=pass_all
6087 hpux10.20* | hpux11*)
6088 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6095 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]'
6096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6110 irix5* | irix6* | nonstopux*)
6112 *-32|*"-32 ") libmagic=32-bit;;
6113 *-n32|*"-n32 ") libmagic=N32;;
6114 *-64|*"-64 ") libmagic=64-bit;;
6115 *) libmagic=never-match;;
6117 lt_cv_deplibs_check_method=pass_all
6120 # This must be glibc/ELF.
6121 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6122 lt_cv_deplibs_check_method=pass_all
6125 netbsd* | netbsdelf*-gnu)
6126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6140 lt_cv_deplibs_check_method=pass_all
6144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6151 osf3* | osf4* | osf5*)
6152 lt_cv_deplibs_check_method=pass_all
6156 lt_cv_deplibs_check_method=pass_all
6160 lt_cv_deplibs_check_method=pass_all
6163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6164 lt_cv_deplibs_check_method=pass_all
6168 case $host_vendor in
6170 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]'
6171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6174 lt_cv_deplibs_check_method=pass_all
6177 lt_cv_file_magic_cmd='/bin/file'
6178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6181 lt_cv_file_magic_cmd='/bin/file'
6182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6183 lt_cv_file_magic_test_file=/lib/libc.so
6186 lt_cv_deplibs_check_method=pass_all
6189 lt_cv_deplibs_check_method=pass_all
6195 lt_cv_deplibs_check_method=pass_all
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6205 if test "$build" = "$host"; then
6208 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6211 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6217 file_magic_cmd=$lt_cv_file_magic_cmd
6218 deplibs_check_method=$lt_cv_deplibs_check_method
6219 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_DLLTOOL+:} false; then :
6248 $as_echo_n "(cached) " >&6
6250 if test -n "$DLLTOOL"; then
6251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 DLLTOOL=$ac_cv_prog_DLLTOOL
6271 if test -n "$DLLTOOL"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6273 $as_echo "$DLLTOOL" >&6; }
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6281 if test -z "$ac_cv_prog_DLLTOOL"; then
6282 ac_ct_DLLTOOL=$DLLTOOL
6283 # Extract the first word of "dlltool", so it can be a program name with args.
6284 set dummy dlltool; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6288 $as_echo_n "(cached) " >&6
6290 if test -n "$ac_ct_DLLTOOL"; then
6291 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6311 if test -n "$ac_ct_DLLTOOL"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6313 $as_echo "$ac_ct_DLLTOOL" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6319 if test "x$ac_ct_DLLTOOL" = x; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6328 DLLTOOL=$ac_ct_DLLTOOL
6331 DLLTOOL="$ac_cv_prog_DLLTOOL"
6334 test -z "$DLLTOOL" && DLLTOOL=dlltool
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6346 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6347 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 lt_cv_sharedlib_from_linklib_cmd='unknown'
6353 cygwin* | mingw* | pw32* | cegcc*)
6354 # two different shell functions defined in ltmain.sh
6355 # decide which to use based on capabilities of $DLLTOOL
6356 case `$DLLTOOL --help 2>&1` in
6357 *--identify-strict*)
6358 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6361 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6366 # fallback: assume linklib IS sharedlib
6367 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6373 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6374 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6375 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6383 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_AR+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 if test -n "$AR"; then
6394 ac_cv_prog_AR="$AR" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 if test -n "$AR"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6416 $as_echo "$AR" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6423 test -n "$AR" && break
6426 if test -z "$AR"; then
6430 # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$ac_ct_AR"; then
6438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_AR="$ac_prog"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6458 if test -n "$ac_ct_AR"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6460 $as_echo "$ac_ct_AR" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6467 test -n "$ac_ct_AR" && break
6470 if test "x$ac_ct_AR" = x; then
6473 case $cross_compiling:$ac_tool_warned in
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6497 $as_echo_n "checking for archiver @FILE support... " >&6; }
6498 if ${lt_cv_ar_at_file+:} false; then :
6499 $as_echo_n "(cached) " >&6
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 echo conftest.$ac_objext > conftest.lst
6515 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6517 (eval $lt_ar_try) 2>&5
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }
6521 if test "$ac_status" -eq 0; then
6522 # Ensure the archiver fails upon bogus file names.
6523 rm -f conftest.$ac_objext libconftest.a
6524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6525 (eval $lt_ar_try) 2>&5
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; }
6529 if test "$ac_status" -ne 0; then
6533 rm -f conftest.* libconftest.a
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6540 $as_echo "$lt_cv_ar_at_file" >&6; }
6542 if test "x$lt_cv_ar_at_file" = xno; then
6545 archiver_list_spec=$lt_cv_ar_at_file
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}strip; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_STRIP+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$STRIP"; then
6563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 STRIP=$ac_cv_prog_STRIP
6583 if test -n "$STRIP"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6585 $as_echo "$STRIP" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6593 if test -z "$ac_cv_prog_STRIP"; then
6595 # Extract the first word of "strip", so it can be a program name with args.
6596 set dummy strip; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$ac_ct_STRIP"; then
6603 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_ac_ct_STRIP="strip"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6623 if test -n "$ac_ct_STRIP"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6625 $as_echo "$ac_ct_STRIP" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6631 if test "x$ac_ct_STRIP" = x; then
6634 case $cross_compiling:$ac_tool_warned in
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6643 STRIP="$ac_cv_prog_STRIP"
6646 test -z "$STRIP" && STRIP=:
6653 if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_RANLIB+:} false; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$RANLIB"; then
6662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 RANLIB=$ac_cv_prog_RANLIB
6682 if test -n "$RANLIB"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684 $as_echo "$RANLIB" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693 ac_ct_RANLIB=$RANLIB
6694 # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$ac_ct_RANLIB"; then
6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_ac_ct_RANLIB="ranlib"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 $as_echo "$ac_ct_RANLIB" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6730 if test "x$ac_ct_RANLIB" = x; then
6733 case $cross_compiling:$ac_tool_warned in
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6739 RANLIB=$ac_ct_RANLIB
6742 RANLIB="$ac_cv_prog_RANLIB"
6745 test -z "$RANLIB" && RANLIB=:
6752 # Determine commands to create old-style static archives.
6753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6754 old_postinstall_cmds='chmod 644 $oldlib'
6755 old_postuninstall_cmds=
6757 if test -n "$RANLIB"; then
6760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6771 lock_old_archive_extraction=yes ;;
6773 lock_old_archive_extraction=no ;;
6814 # If no C compiler was specified, use CC.
6817 # If no C compiler flags were specified, use CFLAGS.
6818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6820 # Allow CC to be a program name with arguments.
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6826 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6827 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6828 $as_echo_n "(cached) " >&6
6831 # These are sane defaults that work on at least a few old systems.
6832 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6834 # Character class describing NM global symbol codes.
6835 symcode='[BCDEGRST]'
6837 # Regexp to match symbols that can be accessed directly from C.
6838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6840 # Define system-specific variables.
6845 cygwin* | mingw* | pw32* | cegcc*)
6846 symcode='[ABCDGISTW]'
6849 if test "$host_cpu" = ia64; then
6850 symcode='[ABCDEGRST]'
6854 symcode='[BCDEGRST]'
6857 symcode='[BCDEGQRST]'
6868 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6876 # If we're using GNU nm, then use its standard symbol codes.
6877 case `$NM -V 2>&1` in
6878 *GNU* | *'with BFD'*)
6879 symcode='[ABCDGIRSTW]' ;;
6882 # Transform an extracted symbol line into a proper C declaration.
6883 # Some systems (esp. on ia64) link data and code symbols differently,
6884 # so use this general approach.
6885 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6887 # Transform an extracted symbol line into symbol name and symbol address
6888 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6889 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'"
6891 # Handle CRLF in mingw tool chain
6895 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6899 # Try without a prefix underscore, then with it.
6900 for ac_symprfx in "" "_"; do
6902 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6903 symxfrm="\\1 $ac_symprfx\\2 \\2"
6905 # Write the raw and C identifiers.
6906 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6907 # Fake it for dumpbin and say T for any non-static function
6908 # and D for any global variable.
6909 # Also find C++ and __fastcall symbols from MSVC++,
6910 # which start with @ or ?.
6911 lt_cv_sys_global_symbol_pipe="$AWK '"\
6912 " {last_section=section; section=\$ 3};"\
6913 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6914 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6915 " \$ 0!~/External *\|/{next};"\
6916 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6917 " {if(hide[section]) next};"\
6918 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6919 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6920 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6921 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6922 " ' prfx=^$ac_symprfx"
6924 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6926 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6928 # Check to see that the pipe works correctly.
6932 cat > conftest.$ac_ext <<_LT_EOF
6937 void nm_test_func(void);
6938 void nm_test_func(void){}
6942 int main(){nm_test_var='a';nm_test_func();return(0);}
6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946 (eval $ac_compile) 2>&5
6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949 test $ac_status = 0; }; then
6950 # Now try to grab the symbols.
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6953 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; } && test -s "$nlist"; then
6957 # Try sorting and uniquifying the output.
6958 if sort "$nlist" | uniq > "$nlist"T; then
6959 mv -f "$nlist"T "$nlist"
6964 # Make sure that we snagged all the symbols we need.
6965 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6966 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6967 cat <<_LT_EOF > conftest.$ac_ext
6968 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6969 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6970 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6971 relocations are performed -- see ld's documentation on pseudo-relocs. */
6972 # define LT_DLSYM_CONST
6973 #elif defined(__osf__)
6974 /* This system does not cope well with relocations in const data. */
6975 # define LT_DLSYM_CONST
6977 # define LT_DLSYM_CONST const
6985 # Now generate the symbol file.
6986 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6988 cat <<_LT_EOF >> conftest.$ac_ext
6990 /* The mapping between symbol names and symbols. */
6991 LT_DLSYM_CONST struct {
6995 lt__PROGRAM__LTX_preloaded_symbols[] =
6997 { "@PROGRAM@", (void *) 0 },
6999 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7000 cat <<\_LT_EOF >> conftest.$ac_ext
7004 /* This works around a problem in FreeBSD linker */
7005 #ifdef FREEBSD_WORKAROUND
7006 static const void *lt_preloaded_setup() {
7007 return lt__PROGRAM__LTX_preloaded_symbols;
7015 # Now try linking the two files.
7016 mv conftest.$ac_objext conftstm.$ac_objext
7017 lt_globsym_save_LIBS=$LIBS
7018 lt_globsym_save_CFLAGS=$CFLAGS
7019 LIBS="conftstm.$ac_objext"
7020 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7022 (eval $ac_link) 2>&5
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7028 LIBS=$lt_globsym_save_LIBS
7029 CFLAGS=$lt_globsym_save_CFLAGS
7031 echo "cannot find nm_test_func in $nlist" >&5
7034 echo "cannot find nm_test_var in $nlist" >&5
7037 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7040 echo "$progname: failed program was:" >&5
7041 cat conftest.$ac_ext >&5
7043 rm -rf conftest* conftst*
7045 # Do not use the global_symbol_pipe unless it works.
7046 if test "$pipe_works" = yes; then
7049 lt_cv_sys_global_symbol_pipe=
7055 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7056 lt_cv_sys_global_symbol_to_cdecl=
7058 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7060 $as_echo "failed" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7063 $as_echo "ok" >&6; }
7066 # Response file support.
7067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7068 nm_file_list_spec='@'
7069 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7070 nm_file_list_spec='@'
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7100 $as_echo_n "checking for sysroot... " >&6; }
7102 # Check whether --with-sysroot was given.
7103 if test "${with_sysroot+set}" = set; then :
7104 withval=$with_sysroot;
7111 case ${with_sysroot} in #(
7113 if test "$GCC" = yes; then
7114 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7118 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7124 $as_echo "${with_sysroot}" >&6; }
7125 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7130 $as_echo "${lt_sysroot:-no}" >&6; }
7136 # Check whether --enable-libtool-lock was given.
7137 if test "${enable_libtool_lock+set}" = set; then :
7138 enableval=$enable_libtool_lock;
7141 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7143 # Some flags need to be propagated to the compiler or linker for good
7147 # Find out which ABI we are using.
7148 echo 'int i;' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 case `/usr/bin/file conftest.$ac_objext` in
7166 # Find out which ABI we are using.
7167 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169 (eval $ac_compile) 2>&5
7171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172 test $ac_status = 0; }; then
7173 if test "$lt_cv_prog_gnu_ld" = yes; then
7174 case `/usr/bin/file conftest.$ac_objext` in
7176 LD="${LD-ld} -melf32bsmip"
7179 LD="${LD-ld} -melf32bmipn32"
7182 LD="${LD-ld} -melf64bmip"
7186 case `/usr/bin/file conftest.$ac_objext` in
7202 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7203 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7204 # Find out which ABI we are using.
7205 echo 'int i;' > conftest.$ac_ext
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 case `/usr/bin/file conftest.o` in
7214 x86_64-*kfreebsd*-gnu)
7215 LD="${LD-ld} -m elf_i386_fbsd"
7218 case `/usr/bin/file conftest.o` in
7220 LD="${LD-ld} -m elf32_x86_64"
7223 LD="${LD-ld} -m elf_i386"
7228 LD="${LD-ld} -m elf32lppclinux"
7231 LD="${LD-ld} -m elf32ppclinux"
7234 LD="${LD-ld} -m elf_s390"
7237 LD="${LD-ld} -m elf32_sparc"
7243 x86_64-*kfreebsd*-gnu)
7244 LD="${LD-ld} -m elf_x86_64_fbsd"
7247 LD="${LD-ld} -m elf_x86_64"
7250 LD="${LD-ld} -m elf64lppc"
7253 LD="${LD-ld} -m elf64ppc"
7255 s390*-*linux*|s390*-*tpf*)
7256 LD="${LD-ld} -m elf64_s390"
7259 LD="${LD-ld} -m elf64_sparc"
7269 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7270 SAVE_CFLAGS="$CFLAGS"
7271 CFLAGS="$CFLAGS -belf"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7273 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7274 if ${lt_cv_cc_needs_belf+:} false; then :
7275 $as_echo_n "(cached) " >&6
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7294 if ac_fn_c_try_link "$LINENO"; then :
7295 lt_cv_cc_needs_belf=yes
7297 lt_cv_cc_needs_belf=no
7299 rm -f core conftest.err conftest.$ac_objext \
7300 conftest$ac_exeext conftest.$ac_ext
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7309 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7310 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7311 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7312 CFLAGS="$SAVE_CFLAGS"
7316 # Find out which ABI we are using.
7317 echo 'int i;' > conftest.$ac_ext
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319 (eval $ac_compile) 2>&5
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; }; then
7323 case `/usr/bin/file conftest.o` in
7325 case $lt_cv_prog_gnu_ld in
7329 LD="${LD-ld} -m elf_x86_64"
7332 LD="${LD-ld} -m elf64_sparc"
7335 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7336 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7341 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7353 need_locks="$enable_libtool_lock"
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}mt; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$MANIFEST_TOOL"; then
7364 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7384 if test -n "$MANIFEST_TOOL"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7386 $as_echo "$MANIFEST_TOOL" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7394 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7395 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7396 # Extract the first word of "mt", so it can be a program name with args.
7397 set dummy mt; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$ac_ct_MANIFEST_TOOL"; then
7404 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7424 if test -n "$ac_ct_MANIFEST_TOOL"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7426 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7432 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7435 case $cross_compiling:$ac_tool_warned in
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7441 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7444 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7447 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7449 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7450 if ${lt_cv_path_mainfest_tool+:} false; then :
7451 $as_echo_n "(cached) " >&6
7453 lt_cv_path_mainfest_tool=no
7454 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7455 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7456 cat conftest.err >&5
7457 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7458 lt_cv_path_mainfest_tool=yes
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7463 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7464 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7474 rhapsody* | darwin*)
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$DSYMUTIL"; then
7484 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7504 if test -n "$DSYMUTIL"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7506 $as_echo "$DSYMUTIL" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7514 if test -z "$ac_cv_prog_DSYMUTIL"; then
7515 ac_ct_DSYMUTIL=$DSYMUTIL
7516 # Extract the first word of "dsymutil", so it can be a program name with args.
7517 set dummy dsymutil; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$ac_ct_DSYMUTIL"; then
7524 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7544 if test -n "$ac_ct_DSYMUTIL"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7546 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7552 if test "x$ac_ct_DSYMUTIL" = x; then
7555 case $cross_compiling:$ac_tool_warned in
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7561 DSYMUTIL=$ac_ct_DSYMUTIL
7564 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_NMEDIT+:} false; then :
7573 $as_echo_n "(cached) " >&6
7575 if test -n "$NMEDIT"; then
7576 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 NMEDIT=$ac_cv_prog_NMEDIT
7596 if test -n "$NMEDIT"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7598 $as_echo "$NMEDIT" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7606 if test -z "$ac_cv_prog_NMEDIT"; then
7607 ac_ct_NMEDIT=$NMEDIT
7608 # Extract the first word of "nmedit", so it can be a program name with args.
7609 set dummy nmedit; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$ac_ct_NMEDIT"; then
7616 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7636 if test -n "$ac_ct_NMEDIT"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7638 $as_echo "$ac_ct_NMEDIT" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7644 if test "x$ac_ct_NMEDIT" = x; then
7647 case $cross_compiling:$ac_tool_warned in
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7653 NMEDIT=$ac_ct_NMEDIT
7656 NMEDIT="$ac_cv_prog_NMEDIT"
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_LIPO+:} false; then :
7665 $as_echo_n "(cached) " >&6
7667 if test -n "$LIPO"; then
7668 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 LIPO=$ac_cv_prog_LIPO
7688 if test -n "$LIPO"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7690 $as_echo "$LIPO" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7698 if test -z "$ac_cv_prog_LIPO"; then
7700 # Extract the first word of "lipo", so it can be a program name with args.
7701 set dummy lipo; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7705 $as_echo_n "(cached) " >&6
7707 if test -n "$ac_ct_LIPO"; then
7708 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_ac_ct_LIPO="lipo"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7728 if test -n "$ac_ct_LIPO"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7730 $as_echo "$ac_ct_LIPO" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7736 if test "x$ac_ct_LIPO" = x; then
7739 case $cross_compiling:$ac_tool_warned in
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7748 LIPO="$ac_cv_prog_LIPO"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_OTOOL+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$OTOOL"; then
7760 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 OTOOL=$ac_cv_prog_OTOOL
7780 if test -n "$OTOOL"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7782 $as_echo "$OTOOL" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7790 if test -z "$ac_cv_prog_OTOOL"; then
7792 # Extract the first word of "otool", so it can be a program name with args.
7793 set dummy otool; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$ac_ct_OTOOL"; then
7800 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_ac_ct_OTOOL="otool"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7820 if test -n "$ac_ct_OTOOL"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7822 $as_echo "$ac_ct_OTOOL" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7828 if test "x$ac_ct_OTOOL" = x; then
7831 case $cross_compiling:$ac_tool_warned in
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7840 OTOOL="$ac_cv_prog_OTOOL"
7843 if test -n "$ac_tool_prefix"; then
7844 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_OTOOL64+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$OTOOL64"; then
7852 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 OTOOL64=$ac_cv_prog_OTOOL64
7872 if test -n "$OTOOL64"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7874 $as_echo "$OTOOL64" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7882 if test -z "$ac_cv_prog_OTOOL64"; then
7883 ac_ct_OTOOL64=$OTOOL64
7884 # Extract the first word of "otool64", so it can be a program name with args.
7885 set dummy otool64; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7889 $as_echo_n "(cached) " >&6
7891 if test -n "$ac_ct_OTOOL64"; then
7892 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901 ac_cv_prog_ac_ct_OTOOL64="otool64"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7912 if test -n "$ac_ct_OTOOL64"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7914 $as_echo "$ac_ct_OTOOL64" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7920 if test "x$ac_ct_OTOOL64" = x; then
7923 case $cross_compiling:$ac_tool_warned in
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7929 OTOOL64=$ac_ct_OTOOL64
7932 OTOOL64="$ac_cv_prog_OTOOL64"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7962 $as_echo_n "checking for -single_module linker flag... " >&6; }
7963 if ${lt_cv_apple_cc_single_mod+:} false; then :
7964 $as_echo_n "(cached) " >&6
7966 lt_cv_apple_cc_single_mod=no
7967 if test -z "${LT_MULTI_MODULE}"; then
7968 # By default we will add the -single_module flag. You can override
7969 # by either setting the environment variable LT_MULTI_MODULE
7970 # non-empty at configure time, or by adding -multi_module to the
7972 rm -rf libconftest.dylib*
7973 echo "int foo(void){return 1;}" > conftest.c
7974 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7975 -dynamiclib -Wl,-single_module conftest.c" >&5
7976 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7977 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7979 # If there is a non-empty error log, and "single_module"
7980 # appears in it, assume the flag caused a linker warning
7981 if test -s conftest.err && $GREP single_module conftest.err; then
7982 cat conftest.err >&5
7983 # Otherwise, if the output was created with a 0 exit code from
7984 # the compiler, it worked.
7985 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7986 lt_cv_apple_cc_single_mod=yes
7988 cat conftest.err >&5
7990 rm -rf libconftest.dylib*
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7995 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7998 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7999 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8000 $as_echo_n "(cached) " >&6
8002 lt_cv_ld_exported_symbols_list=no
8003 save_LDFLAGS=$LDFLAGS
8004 echo "_main" > conftest.sym
8005 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 lt_cv_ld_exported_symbols_list=yes
8020 lt_cv_ld_exported_symbols_list=no
8022 rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LDFLAGS="$save_LDFLAGS"
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8028 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8031 $as_echo_n "checking for -force_load linker flag... " >&6; }
8032 if ${lt_cv_ld_force_load+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 lt_cv_ld_force_load=no
8036 cat > conftest.c << _LT_EOF
8037 int forced_loaded() { return 2;}
8039 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8040 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8041 echo "$AR cru libconftest.a conftest.o" >&5
8042 $AR cru libconftest.a conftest.o 2>&5
8043 echo "$RANLIB libconftest.a" >&5
8044 $RANLIB libconftest.a 2>&5
8045 cat > conftest.c << _LT_EOF
8046 int main() { return 0;}
8048 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8049 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8051 if test -s conftest.err && $GREP force_load conftest.err; then
8052 cat conftest.err >&5
8053 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8054 lt_cv_ld_force_load=yes
8056 cat conftest.err >&5
8058 rm -f conftest.err libconftest.a conftest conftest.c
8059 rm -rf conftest.dSYM
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8063 $as_echo "$lt_cv_ld_force_load" >&6; }
8065 rhapsody* | darwin1.[012])
8066 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8068 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8069 darwin*) # darwin 5.x on
8070 # if running on 10.5 or later, the deployment target defaults
8071 # to the OS version, if on x86, and 10.4, the deployment
8072 # target defaults to 10.4. Don't you love it?
8073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8074 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8075 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8077 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8083 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8084 _lt_dar_single_mod='$single_module'
8086 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8087 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8091 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8092 _lt_dsymutil='~$DSYMUTIL $lib || :'
8099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8100 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8101 inttypes.h stdint.h unistd.h
8103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8107 cat >>confdefs.h <<_ACEOF
8108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8116 for ac_header in dlfcn.h
8118 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8120 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8121 cat >>confdefs.h <<_ACEOF
8122 #define HAVE_DLFCN_H 1
8143 # Check whether --enable-shared was given.
8144 if test "${enable_shared+set}" = set; then :
8145 enableval=$enable_shared; p=${PACKAGE-default}
8147 yes) enable_shared=yes ;;
8148 no) enable_shared=no ;;
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8153 for pkg in $enableval; do
8155 if test "X$pkg" = "X$p"; then
8174 # Check whether --enable-static was given.
8175 if test "${enable_static+set}" = set; then :
8176 enableval=$enable_static; p=${PACKAGE-default}
8178 yes) enable_static=yes ;;
8179 no) enable_static=no ;;
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8186 if test "X$pkg" = "X$p"; then
8206 # Check whether --with-pic was given.
8207 if test "${with_pic+set}" = set; then :
8208 withval=$with_pic; lt_p=${PACKAGE-default}
8210 yes|no) pic_mode=$withval ;;
8213 # Look at the argument we got. We use all the common list separators.
8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215 for lt_pkg in $withval; do
8217 if test "X$lt_pkg" = "X$lt_p"; then
8229 test -z "$pic_mode" && pic_mode=default
8237 # Check whether --enable-fast-install was given.
8238 if test "${enable_fast_install+set}" = set; then :
8239 enableval=$enable_fast_install; p=${PACKAGE-default}
8241 yes) enable_fast_install=yes ;;
8242 no) enable_fast_install=no ;;
8244 enable_fast_install=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8249 if test "X$pkg" = "X$p"; then
8250 enable_fast_install=yes
8257 enable_fast_install=yes
8270 # This can be used to rebuild libtool when needed
8271 LIBTOOL_DEPS="$ltmain"
8273 # Always use our own libtool.
8274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8305 test -z "$LN_S" && LN_S="ln -s"
8320 if test -n "${ZSH_VERSION+set}" ; then
8321 setopt NO_GLOB_SUBST
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8325 $as_echo_n "checking for objdir... " >&6; }
8326 if ${lt_cv_objdir+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 rm -f .libs 2>/dev/null
8330 mkdir .libs 2>/dev/null
8331 if test -d .libs; then
8334 # MS-DOS does not allow filenames that begin with a dot.
8337 rmdir .libs 2>/dev/null
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8340 $as_echo "$lt_cv_objdir" >&6; }
8341 objdir=$lt_cv_objdir
8347 cat >>confdefs.h <<_ACEOF
8348 #define LT_OBJDIR "$lt_cv_objdir/"
8356 # AIX sometimes has problems with the GCC collect2 program. For some
8357 # reason, if we set the COLLECT_NAMES environment variable, the problems
8358 # vanish in a puff of smoke.
8359 if test "X${COLLECT_NAMES+set}" != Xset; then
8361 export COLLECT_NAMES
8368 can_build_shared=yes
8370 # All known linkers require a `.a' archive for static linking (except MSVC,
8371 # which needs '.lib').
8374 with_gnu_ld="$lt_cv_prog_gnu_ld"
8377 old_CFLAGS="$CFLAGS"
8379 # Set sane defaults for various variables
8380 test -z "$CC" && CC=cc
8381 test -z "$LTCC" && LTCC=$CC
8382 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8383 test -z "$LD" && LD=ld
8384 test -z "$ac_objext" && ac_objext=o
8386 for cc_temp in $compiler""; do
8388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8397 # Only perform the check for file, if the check method requires it
8398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8399 case $deplibs_check_method in
8401 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405 $as_echo_n "(cached) " >&6
8409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412 lt_save_MAGIC_CMD="$MAGIC_CMD"
8413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415 for ac_dir in $ac_dummy; do
8417 test -z "$ac_dir" && ac_dir=.
8418 if test -f $ac_dir/${ac_tool_prefix}file; then
8419 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8420 if test -n "$file_magic_test_file"; then
8421 case $deplibs_check_method in
8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426 $EGREP "$file_magic_regex" > /dev/null; then
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such. This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem. Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8448 MAGIC_CMD="$lt_save_MAGIC_CMD"
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467 if test -n "$ac_tool_prefix"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8469 $as_echo_n "checking for file... " >&6; }
8470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8471 $as_echo_n "(cached) " >&6
8475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8478 lt_save_MAGIC_CMD="$MAGIC_CMD"
8479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481 for ac_dir in $ac_dummy; do
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f $ac_dir/file; then
8485 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486 if test -n "$file_magic_test_file"; then
8487 case $deplibs_check_method in
8489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492 $EGREP "$file_magic_regex" > /dev/null; then
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such. This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem. Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** bug-libtool@gnu.org
8514 MAGIC_CMD="$lt_save_MAGIC_CMD"
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if test -n "$MAGIC_CMD"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8522 $as_echo "$MAGIC_CMD" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8538 # Use C for the default configuration in the libtool script
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548 # Source file extension for C test sources.
8551 # Object file extension for compiled C test sources.
8555 # Code to be used in simple compile tests
8556 lt_simple_compile_test_code="int some_variable = 0;"
8558 # Code to be used in simple link tests
8559 lt_simple_link_test_code='int main(){return(0);}'
8567 # If no C compiler was specified, use CC.
8570 # If no C compiler flags were specified, use CFLAGS.
8571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8573 # Allow CC to be a program name with arguments.
8576 # Save the default compiler, since it gets overwritten when the other
8577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8578 compiler_DEFAULT=$CC
8580 # save warnings/boilerplate of simple test code
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_compiler_boilerplate=`cat conftest.err`
8587 ac_outfile=conftest.$ac_objext
8588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8590 _lt_linker_boilerplate=`cat conftest.err`
8595 ## There is no encapsulation within the following macros, do not change
8596 ## the running order or otherwise move them around unless you know exactly
8597 ## what you are doing...
8598 if test -n "$compiler"; then
8600 lt_prog_compiler_no_builtin_flag=
8602 if test "$GCC" = yes; then
8603 case $cc_basename in
8605 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8607 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8613 $as_echo_n "(cached) " >&6
8615 lt_cv_prog_compiler_rtti_exceptions=no
8616 ac_outfile=conftest.$ac_objext
8617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618 lt_compiler_flag="-fno-rtti -fno-exceptions"
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 # The option is referenced via a variable to avoid confusing sed.
8624 lt_compile=`echo "$ac_compile" | $SED \
8625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627 -e 's:$: $lt_compiler_flag:'`
8628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8629 (eval "$lt_compile" 2>conftest.err)
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 if (exit $ac_status) && test -s "$ac_outfile"; then
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings other than the usual output.
8636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_rtti_exceptions=yes
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8661 lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8666 if test "$GCC" = yes; then
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_static='-static'
8672 # All AIX code is PIC.
8673 if test "$host_cpu" = ia64; then
8674 # AIX 5 now supports IA64 processor
8675 lt_prog_compiler_static='-Bstatic'
8682 # see comment about AmigaOS4 .so support
8683 lt_prog_compiler_pic='-fPIC'
8686 # FIXME: we need at least 68020 code to build shared libraries, but
8687 # adding the `-m68020' flag to GCC prevents building anything better,
8689 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8694 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8695 # PIC is the default for these OSes.
8698 mingw* | cygwin* | pw32* | os2* | cegcc*)
8699 # This hack is so that the source file can tell whether it is being
8700 # built for inclusion in a dll (and should export symbols for example).
8701 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8702 # (--disable-auto-import) libraries
8703 lt_prog_compiler_pic='-DDLL_EXPORT'
8706 darwin* | rhapsody*)
8707 # PIC is the default on this platform
8708 # Common symbols not allowed in MH_DYLIB files
8709 lt_prog_compiler_pic='-fno-common'
8713 # PIC is the default for Haiku.
8714 # The "-static" flag exists, but is broken.
8715 lt_prog_compiler_static=
8719 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8720 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8721 # sets the default TLS model and affects inlining.
8727 lt_prog_compiler_pic='-fPIC'
8733 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8734 # Instead, we relocate shared libraries at runtime.
8738 # Just because we use GCC doesn't mean we suddenly get shared libraries
8739 # on systems that don't support them.
8740 lt_prog_compiler_can_build_shared=no
8745 # QNX uses GNU C++, but need to define -shared option too, otherwise
8747 lt_prog_compiler_pic='-fPIC -shared'
8751 if test -d /usr/nec; then
8752 lt_prog_compiler_pic=-Kconform_pic
8757 lt_prog_compiler_pic='-fPIC'
8761 case $cc_basename in
8762 nvcc*) # Cuda Compiler Driver 2.2
8763 lt_prog_compiler_wl='-Xlinker '
8764 if test -n "$lt_prog_compiler_pic"; then
8765 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8770 # PORTME Check for flag to pass linker flags through the system compiler.
8773 lt_prog_compiler_wl='-Wl,'
8774 if test "$host_cpu" = ia64; then
8775 # AIX 5 now supports IA64 processor
8776 lt_prog_compiler_static='-Bstatic'
8778 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8782 mingw* | cygwin* | pw32* | os2* | cegcc*)
8783 # This hack is so that the source file can tell whether it is being
8784 # built for inclusion in a dll (and should export symbols for example).
8785 lt_prog_compiler_pic='-DDLL_EXPORT'
8788 hpux9* | hpux10* | hpux11*)
8789 lt_prog_compiler_wl='-Wl,'
8790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8797 lt_prog_compiler_pic='+Z'
8800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8801 lt_prog_compiler_static='${wl}-a ${wl}archive'
8804 irix5* | irix6* | nonstopux*)
8805 lt_prog_compiler_wl='-Wl,'
8806 # PIC (with -KPIC) is the default.
8807 lt_prog_compiler_static='-non_shared'
8810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8811 case $cc_basename in
8812 # old Intel for x86_64 which still supported -KPIC.
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-static'
8818 # icc used to be incompatible with GCC.
8819 # ICC 10 doesn't accept -KPIC any more.
8821 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='-fPIC'
8823 lt_prog_compiler_static='-static'
8825 # Lahey Fortran 8.1.
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='--shared'
8829 lt_prog_compiler_static='--static'
8832 # NAG Fortran compiler
8833 lt_prog_compiler_wl='-Wl,-Wl,,'
8834 lt_prog_compiler_pic='-PIC'
8835 lt_prog_compiler_static='-Bstatic'
8837 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8838 # Portland Group compilers (*not* the Pentium gcc compiler,
8839 # which looks to be a dead project)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='-fpic'
8842 lt_prog_compiler_static='-Bstatic'
8845 lt_prog_compiler_wl='-Wl,'
8846 # All Alpha code is PIC.
8847 lt_prog_compiler_static='-non_shared'
8849 xl* | bgxl* | bgf* | mpixl*)
8850 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-qpic'
8853 lt_prog_compiler_static='-qstaticlink'
8856 case `$CC -V 2>&1 | sed 5q` in
8857 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8858 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 lt_prog_compiler_wl=''
8863 *Sun\ F* | *Sun*Fortran*)
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Qoption ld '
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_wl='-Wl,'
8874 *Intel*\ [CF]*Compiler*)
8875 lt_prog_compiler_wl='-Wl,'
8876 lt_prog_compiler_pic='-fPIC'
8877 lt_prog_compiler_static='-static'
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='-fpic'
8882 lt_prog_compiler_static='-Bstatic'
8890 lt_prog_compiler_pic='-KPIC'
8891 lt_prog_compiler_static='-Bstatic'
8895 # QNX uses GNU C++, but need to define -shared option too, otherwise
8897 lt_prog_compiler_pic='-fPIC -shared'
8900 osf3* | osf4* | osf5*)
8901 lt_prog_compiler_wl='-Wl,'
8902 # All OSF/1 code is PIC.
8903 lt_prog_compiler_static='-non_shared'
8907 lt_prog_compiler_static='-non_shared'
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 case $cc_basename in
8914 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8915 lt_prog_compiler_wl='-Qoption ld ';;
8917 lt_prog_compiler_wl='-Wl,';;
8922 lt_prog_compiler_wl='-Qoption ld '
8923 lt_prog_compiler_pic='-PIC'
8924 lt_prog_compiler_static='-Bstatic'
8927 sysv4 | sysv4.2uw2* | sysv4.3*)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8934 if test -d /usr/nec ;then
8935 lt_prog_compiler_pic='-Kconform_pic'
8936 lt_prog_compiler_static='-Bstatic'
8940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8947 lt_prog_compiler_wl='-Wl,'
8948 lt_prog_compiler_can_build_shared=no
8952 lt_prog_compiler_pic='-pic'
8953 lt_prog_compiler_static='-Bstatic'
8957 lt_prog_compiler_can_build_shared=no
8963 # For platforms which do not support PIC, -DPIC is meaningless:
8965 lt_prog_compiler_pic=
8968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8973 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8974 if ${lt_cv_prog_compiler_pic+:} false; then :
8975 $as_echo_n "(cached) " >&6
8977 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8980 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8981 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8984 # Check to make sure the PIC flag actually works.
8986 if test -n "$lt_prog_compiler_pic"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8988 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8989 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8990 $as_echo_n "(cached) " >&6
8992 lt_cv_prog_compiler_pic_works=no
8993 ac_outfile=conftest.$ac_objext
8994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 # The option is referenced via a variable to avoid confusing sed.
9001 lt_compile=`echo "$ac_compile" | $SED \
9002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004 -e 's:$: $lt_compiler_flag:'`
9005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9006 (eval "$lt_compile" 2>conftest.err)
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 if (exit $ac_status) && test -s "$ac_outfile"; then
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings other than the usual output.
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_pic_works=yes
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9023 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9025 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9026 case $lt_prog_compiler_pic in
9028 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9031 lt_prog_compiler_pic=
9032 lt_prog_compiler_can_build_shared=no
9048 # Check to make sure the static flag actually works.
9050 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9052 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9053 if ${lt_cv_prog_compiler_static_works+:} false; then :
9054 $as_echo_n "(cached) " >&6
9056 lt_cv_prog_compiler_static_works=no
9057 save_LDFLAGS="$LDFLAGS"
9058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9061 # The linker can only warn and ignore the option if not recognized
9062 # So say no if there are warnings
9063 if test -s conftest.err; then
9064 # Append any errors to the config.log.
9065 cat conftest.err 1>&5
9066 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068 if diff conftest.exp conftest.er2 >/dev/null; then
9069 lt_cv_prog_compiler_static_works=yes
9072 lt_cv_prog_compiler_static_works=yes
9076 LDFLAGS="$save_LDFLAGS"
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9080 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9082 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9085 lt_prog_compiler_static=
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9096 if ${lt_cv_prog_compiler_c_o+:} false; then :
9097 $as_echo_n "(cached) " >&6
9099 lt_cv_prog_compiler_c_o=no
9100 $RM -r conftest 2>/dev/null
9104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9106 lt_compiler_flag="-o out/conftest2.$ac_objext"
9107 # Insert the option either (1) after the last *FLAGS variable, or
9108 # (2) before a word containing "conftest.", or (3) at the end.
9109 # Note that $ac_compile itself does not contain backslashes and begins
9110 # with a dollar sign (not a hyphen), so the echo should work correctly.
9111 lt_compile=`echo "$ac_compile" | $SED \
9112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9114 -e 's:$: $lt_compiler_flag:'`
9115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9116 (eval "$lt_compile" 2>out/conftest.err)
9118 cat out/conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9122 # The compiler can only warn and ignore the option if not recognized
9123 # So say no if there are warnings
9124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9127 lt_cv_prog_compiler_c_o=yes
9132 # SGI C++ compiler will create directory out/ii_files/ for
9133 # template instantiation
9134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9135 $RM out/* && rmdir out
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9142 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9151 if ${lt_cv_prog_compiler_c_o+:} false; then :
9152 $as_echo_n "(cached) " >&6
9154 lt_cv_prog_compiler_c_o=no
9155 $RM -r conftest 2>/dev/null
9159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9161 lt_compiler_flag="-o out/conftest2.$ac_objext"
9162 # Insert the option either (1) after the last *FLAGS variable, or
9163 # (2) before a word containing "conftest.", or (3) at the end.
9164 # Note that $ac_compile itself does not contain backslashes and begins
9165 # with a dollar sign (not a hyphen), so the echo should work correctly.
9166 lt_compile=`echo "$ac_compile" | $SED \
9167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9169 -e 's:$: $lt_compiler_flag:'`
9170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9171 (eval "$lt_compile" 2>out/conftest.err)
9173 cat out/conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9177 # The compiler can only warn and ignore the option if not recognized
9178 # So say no if there are warnings
9179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9182 lt_cv_prog_compiler_c_o=yes
9187 # SGI C++ compiler will create directory out/ii_files/ for
9188 # template instantiation
9189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9190 $RM out/* && rmdir out
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9197 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9202 hard_links="nottested"
9203 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9204 # do not overwrite the value of need_locks provided by the user
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9206 $as_echo_n "checking if we can lock with hard links... " >&6; }
9209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9211 ln conftest.a conftest.b 2>&5 || hard_links=no
9212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9214 $as_echo "$hard_links" >&6; }
9215 if test "$hard_links" = no; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9217 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9230 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9233 allow_undefined_flag=
9234 always_export_symbols=no
9236 archive_expsym_cmds=
9237 compiler_needs_object=no
9238 enable_shared_with_static_runtimes=no
9239 export_dynamic_flag_spec=
9240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9241 hardcode_automatic=no
9243 hardcode_direct_absolute=no
9244 hardcode_libdir_flag_spec=
9245 hardcode_libdir_separator=
9247 hardcode_shlibpath_var=unsupported
9249 link_all_deplibs=unknown
9252 old_archive_from_new_cmds=
9253 old_archive_from_expsyms_cmds=
9254 thread_safe_flag_spec=
9255 whole_archive_flag_spec=
9256 # include_expsyms should be a list of space-separated symbols to be *always*
9257 # included in the symbol list
9259 # exclude_expsyms can be an extended regexp of symbols to exclude
9260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9262 # as well as any symbol that contains `d'.
9263 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9265 # platforms (ab)use it in PIC code, but their linkers get confused if
9266 # the symbol is explicitly referenced. Since portable code cannot
9267 # rely on this symbol name, it's probably fine to never include it in
9268 # preloaded symbol tables.
9269 # Exclude shared library initialization/finalization symbols.
9270 extract_expsyms_cmds=
9273 cygwin* | mingw* | pw32* | cegcc*)
9274 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 if test "$GCC" != yes; then
9282 # we just hope/assume this is gcc and not c89 (= MSVC++)
9288 linux* | k*bsd*-gnu | gnu*)
9295 # On some targets, GNU ld is compatible enough with the native linker
9296 # that we're better off using the native interface for both.
9297 lt_use_gnu_ld_interface=no
9298 if test "$with_gnu_ld" = yes; then
9301 # The AIX port of GNU ld has always aspired to compatibility
9302 # with the native linker. However, as the warning in the GNU ld
9303 # block says, versions before 2.19.5* couldn't really create working
9304 # shared libraries, regardless of the interface used.
9305 case `$LD -v 2>&1` in
9306 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9307 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9308 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9310 lt_use_gnu_ld_interface=yes
9315 lt_use_gnu_ld_interface=yes
9320 if test "$lt_use_gnu_ld_interface" = yes; then
9321 # If archive_cmds runs LD, not CC, wlarc should be empty
9324 # Set some defaults for GNU ld with shared library support. These
9325 # are reset later if shared libraries are not supported. Putting them
9326 # here allows them to be overridden if necessary.
9327 runpath_var=LD_RUN_PATH
9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329 export_dynamic_flag_spec='${wl}--export-dynamic'
9330 # ancient GNU ld didn't support --whole-archive et. al.
9331 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9332 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9334 whole_archive_flag_spec=
9336 supports_anon_versioning=no
9337 case `$LD -v 2>&1` in
9338 *GNU\ gold*) supports_anon_versioning=yes ;;
9339 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9342 *\ 2.11.*) ;; # other 2.11 versions
9343 *) supports_anon_versioning=yes ;;
9346 # See if GNU ld supports shared libraries.
9349 # On AIX/PPC, the GNU linker is very broken
9350 if test "$host_cpu" != ia64; then
9354 *** Warning: the GNU linker, at least up to release 2.19, is reported
9355 *** to be unable to reliably create shared libraries on AIX.
9356 *** Therefore, libtool is disabling shared libraries support. If you
9357 *** really care for shared libraries, you may want to install binutils
9358 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9359 *** You will then need to restart the configuration process.
9368 # see comment about AmigaOS4 .so support
9369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370 archive_expsym_cmds=''
9373 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)'
9374 hardcode_libdir_flag_spec='-L$libdir'
9375 hardcode_minus_L=yes
9381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9382 allow_undefined_flag=unsupported
9383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9384 # support --undefined. This deserves some investigation. FIXME
9385 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 cygwin* | mingw* | pw32* | cegcc*)
9392 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9393 # as there is no search path for DLLs.
9394 hardcode_libdir_flag_spec='-L$libdir'
9395 export_dynamic_flag_spec='${wl}--export-all-symbols'
9396 allow_undefined_flag=unsupported
9397 always_export_symbols=no
9398 enable_shared_with_static_runtimes=yes
9399 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'
9400 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404 # If the export-symbols file already is a .def file (1st line
9405 # is EXPORTS), use it as is; otherwise, prepend...
9406 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9407 cp $export_symbols $output_objdir/$soname.def;
9409 echo EXPORTS > $output_objdir/$soname.def;
9410 cat $export_symbols >> $output_objdir/$soname.def;
9412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 link_all_deplibs=yes
9425 hardcode_shlibpath_var=no
9426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9427 export_dynamic_flag_spec='${wl}-E'
9428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9429 # Instead, shared libraries are loaded at an image base (0x10000000 by
9430 # default) and relocated if they conflict, which is a slow very memory
9431 # consuming and fragmenting process. To avoid this, we pick a random,
9432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9435 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'
9438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9440 if test "$host_os" = linux-dietlibc; then
9441 case $cc_basename in
9442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9446 && test "$tmp_diet" = no
9448 tmp_addflag=' $pic_flag'
9449 tmp_sharedflag='-shared'
9450 case $cc_basename,$host_cpu in
9451 pgcc*) # Portland Group C compiler
9452 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'
9453 tmp_addflag=' $pic_flag'
9455 pgf77* | pgf90* | pgf95* | pgfortran*)
9456 # Portland Group f77 and f90 compilers
9457 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'
9458 tmp_addflag=' $pic_flag -Mnomain' ;;
9459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9460 tmp_addflag=' -i_dynamic' ;;
9461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9462 tmp_addflag=' -i_dynamic -nofor_main' ;;
9463 ifc* | ifort*) # Intel Fortran compiler
9464 tmp_addflag=' -nofor_main' ;;
9465 lf95*) # Lahey Fortran 8.1
9466 whole_archive_flag_spec=
9467 tmp_sharedflag='--shared' ;;
9468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9469 tmp_sharedflag='-qmkshrobj'
9471 nvcc*) # Cuda Compiler Driver 2.2
9472 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'
9473 compiler_needs_object=yes
9476 case `$CC -V 2>&1 | sed 5q` in
9477 *Sun\ C*) # Sun C 5.9
9478 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'
9479 compiler_needs_object=yes
9480 tmp_sharedflag='-G' ;;
9481 *Sun\ F*) # Sun Fortran 8.3
9482 tmp_sharedflag='-G' ;;
9484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 if test "x$supports_anon_versioning" = xyes; then
9487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9489 echo "local: *; };" >> $output_objdir/$libname.ver~
9490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9493 case $cc_basename in
9494 xlf* | bgf* | bgxlf* | mpixlf*)
9495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9499 if test "x$supports_anon_versioning" = xyes; then
9500 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9502 echo "local: *; };" >> $output_objdir/$libname.ver~
9503 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9512 netbsd* | netbsdelf*-gnu)
9513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9514 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9528 *** create shared libraries on Solaris systems. Therefore, libtool
9529 *** is disabling shared libraries support. We urge you to upgrade GNU
9530 *** binutils to release 2.9.1 or newer. Another option is to modify
9531 *** your PATH or compiler configuration so that the native linker is
9532 *** used, and then restart.
9535 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9544 case `$LD -v 2>&1` in
9545 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9550 *** reliably create shared libraries on SCO systems. Therefore, libtool
9551 *** is disabling shared libraries support. We urge you to upgrade GNU
9552 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9553 *** your PATH or compiler configuration so that the native linker is
9554 *** used, and then restart.
9559 # For security reasons, it is highly recommended that you always
9560 # use absolute paths for naming shared libraries, and exclude the
9561 # DT_RUNPATH tag from executables and libraries. But doing so
9562 # requires that you compile everything twice, which is a pain.
9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9575 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_shlibpath_var=no
9582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9591 if test "$ld_shlibs" = no; then
9593 hardcode_libdir_flag_spec=
9594 export_dynamic_flag_spec=
9595 whole_archive_flag_spec=
9598 # PORTME fill in a description of your system's linker (not GNU ld)
9601 allow_undefined_flag=unsupported
9602 always_export_symbols=yes
9603 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'
9604 # Note: this linker hardcodes the directories in LIBPATH if there
9605 # are no directories specified by -L.
9606 hardcode_minus_L=yes
9607 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9608 # Neither direct hardcoding nor static linking is supported with a
9610 hardcode_direct=unsupported
9615 if test "$host_cpu" = ia64; then
9616 # On IA64, the linker does run time linking by default, so we don't
9617 # have to do anything special.
9618 aix_use_runtimelinking=no
9619 exp_sym_flag='-Bexport'
9622 # If we're using GNU nm, then we don't want the "-C" option.
9623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9624 # Also, AIX nm treats weak defined symbols like other global
9625 # defined symbols, whereas GNU nm marks them as "W".
9626 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9627 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'
9629 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'
9631 aix_use_runtimelinking=no
9633 # Test if we are trying to use run time linking or normal
9634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9635 # need to do runtime linking.
9636 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9637 for ld_flag in $LDFLAGS; do
9638 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9639 aix_use_runtimelinking=yes
9646 exp_sym_flag='-bexport'
9647 no_entry_flag='-bnoentry'
9650 # When large executables or shared objects are built, AIX ld can
9651 # have problems creating the table of contents. If linking a library
9652 # or program results in "error TOC overflow" add -mminimal-toc to
9653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9658 hardcode_direct_absolute=yes
9659 hardcode_libdir_separator=':'
9660 link_all_deplibs=yes
9661 file_list_spec='${wl}-f,'
9663 if test "$GCC" = yes; then
9664 case $host_os in aix4.[012]|aix4.[012].*)
9665 # We only want to do this on AIX 4.2 and lower, the check
9666 # below for broken collect2 doesn't work under 4.3+
9667 collect2name=`${CC} -print-prog-name=collect2`
9668 if test -f "$collect2name" &&
9669 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9671 # We have reworked collect2
9674 # We have old collect2
9675 hardcode_direct=unsupported
9676 # It fails to find uninstalled libraries when the uninstalled
9677 # path is not listed in the libpath. Setting hardcode_minus_L
9678 # to unsupported forces relinking
9679 hardcode_minus_L=yes
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_libdir_separator=
9685 shared_flag='-shared'
9686 if test "$aix_use_runtimelinking" = yes; then
9687 shared_flag="$shared_flag "'${wl}-G'
9692 if test "$host_cpu" = ia64; then
9693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9694 # chokes on -Wl,-G. The following line is correct:
9697 if test "$aix_use_runtimelinking" = yes; then
9698 shared_flag='${wl}-G'
9700 shared_flag='${wl}-bM:SRE'
9705 export_dynamic_flag_spec='${wl}-bexpall'
9706 # It seems that -bexpall does not export symbols beginning with
9707 # underscore (_), so it is better to generate a list of symbols to export.
9708 always_export_symbols=yes
9709 if test "$aix_use_runtimelinking" = yes; then
9710 # Warning - without using the other runtime loading flags (-brtl),
9711 # -berok will link without error, but may produce a broken library.
9712 allow_undefined_flag='-berok'
9713 # Determine the default libpath from the value encoded in an
9715 if test "${lt_cv_aix_libpath+set}" = set; then
9716 aix_libpath=$lt_cv_aix_libpath
9718 if ${lt_cv_aix_libpath_+:} false; then :
9719 $as_echo_n "(cached) " >&6
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9732 if ac_fn_c_try_link "$LINENO"; then :
9734 lt_aix_libpath_sed='
9735 /Import File Strings/,/^$/ {
9737 s/^0 *\([^ ]*\) *$/\1/
9741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742 # Check for a 64-bit object if we didn't find anything.
9743 if test -z "$lt_cv_aix_libpath_"; then
9744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747 rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 if test -z "$lt_cv_aix_libpath_"; then
9750 lt_cv_aix_libpath_="/usr/lib:/lib"
9755 aix_libpath=$lt_cv_aix_libpath_
9758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9759 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"
9761 if test "$host_cpu" = ia64; then
9762 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9763 allow_undefined_flag="-z nodefs"
9764 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"
9766 # Determine the default libpath from the value encoded in an
9768 if test "${lt_cv_aix_libpath+set}" = set; then
9769 aix_libpath=$lt_cv_aix_libpath
9771 if ${lt_cv_aix_libpath_+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9785 if ac_fn_c_try_link "$LINENO"; then :
9787 lt_aix_libpath_sed='
9788 /Import File Strings/,/^$/ {
9790 s/^0 *\([^ ]*\) *$/\1/
9794 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$lt_cv_aix_libpath_"; then
9797 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_="/usr/lib:/lib"
9808 aix_libpath=$lt_cv_aix_libpath_
9811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9812 # Warning - without using the other run time loading flags,
9813 # -berok will link without error, but may produce a broken library.
9814 no_undefined_flag=' ${wl}-bernotok'
9815 allow_undefined_flag=' ${wl}-berok'
9816 if test "$with_gnu_ld" = yes; then
9817 # We only use this code for GNU lds that support --whole-archive.
9818 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9820 # Exported symbols can be pulled into shared objects from archives
9821 whole_archive_flag_spec='$convenience'
9823 archive_cmds_need_lc=yes
9824 # This is similar to how AIX traditionally builds its shared libraries.
9825 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'
9833 # see comment about AmigaOS4 .so support
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835 archive_expsym_cmds=''
9838 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)'
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 hardcode_minus_L=yes
9846 export_dynamic_flag_spec=-rdynamic
9849 cygwin* | mingw* | pw32* | cegcc*)
9850 # When not using gcc, we currently assume that we are using
9851 # Microsoft Visual C++.
9852 # hardcode_libdir_flag_spec is actually meaningless, as there is
9853 # no search path for DLLs.
9854 case $cc_basename in
9857 hardcode_libdir_flag_spec=' '
9858 allow_undefined_flag=unsupported
9859 always_export_symbols=yes
9861 # Tell ltmain to make .lib files, not .a files.
9863 # Tell ltmain to make .dll files, not .so files.
9865 # FIXME: Setting linknames here is a bad hack.
9866 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9867 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9868 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9870 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9872 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9874 # The linker will not automatically build a static lib if we build a DLL.
9875 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9876 enable_shared_with_static_runtimes=yes
9877 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9878 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9880 old_postinstall_cmds='chmod 644 $oldlib'
9881 postlink_cmds='lt_outputfile="@OUTPUT@"~
9882 lt_tool_outputfile="@TOOL_OUTPUT@"~
9883 case $lt_outputfile in
9886 lt_outputfile="$lt_outputfile.exe"
9887 lt_tool_outputfile="$lt_tool_outputfile.exe"
9890 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9891 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9892 $RM "$lt_outputfile.manifest";
9896 # Assume MSVC wrapper
9897 hardcode_libdir_flag_spec=' '
9898 allow_undefined_flag=unsupported
9899 # Tell ltmain to make .lib files, not .a files.
9901 # Tell ltmain to make .dll files, not .so files.
9903 # FIXME: Setting linknames here is a bad hack.
9904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9905 # The linker will automatically build a .lib file if we build a DLL.
9906 old_archive_from_new_cmds='true'
9907 # FIXME: Should let the user specify the lib program.
9908 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9909 enable_shared_with_static_runtimes=yes
9914 darwin* | rhapsody*)
9917 archive_cmds_need_lc=no
9919 hardcode_automatic=yes
9920 hardcode_shlibpath_var=unsupported
9921 if test "$lt_cv_ld_force_load" = "yes"; then
9922 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\"`'
9925 whole_archive_flag_spec=''
9927 link_all_deplibs=yes
9928 allow_undefined_flag="$_lt_dar_allow_undefined"
9929 case $cc_basename in
9930 ifort*) _lt_dar_can_shared=yes ;;
9931 *) _lt_dar_can_shared=$GCC ;;
9933 if test "$_lt_dar_can_shared" = "yes"; then
9934 output_verbose_link_cmd=func_echo_all
9935 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9936 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9937 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}"
9938 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}"
9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_shlibpath_var=no
9952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9953 # support. Future versions do this automatically, but an explicit c++rt0.o
9954 # does not break anything, and helps significantly (at the cost of a little
9957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9958 hardcode_libdir_flag_spec='-R$libdir'
9960 hardcode_shlibpath_var=no
9963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_minus_L=yes
9968 hardcode_shlibpath_var=no
9971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9972 freebsd* | dragonfly*)
9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_shlibpath_var=no
9980 if test "$GCC" = yes; then
9981 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'
9983 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'
9985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator=:
9989 # hardcode_minus_L: Not really in the search PATH,
9990 # but as the default location of the library.
9991 hardcode_minus_L=yes
9992 export_dynamic_flag_spec='${wl}-E'
9996 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9997 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10001 if test "$with_gnu_ld" = no; then
10002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10003 hardcode_libdir_separator=:
10004 hardcode_direct=yes
10005 hardcode_direct_absolute=yes
10006 export_dynamic_flag_spec='${wl}-E'
10007 # hardcode_minus_L: Not really in the search PATH,
10008 # but as the default location of the library.
10009 hardcode_minus_L=yes
10014 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10017 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10036 # Older versions of the 11.00 compiler do not understand -b yet
10037 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10039 $as_echo_n "checking if $CC understands -b... " >&6; }
10040 if ${lt_cv_prog_compiler__b+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 lt_cv_prog_compiler__b=no
10044 save_LDFLAGS="$LDFLAGS"
10045 LDFLAGS="$LDFLAGS -b"
10046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10048 # The linker can only warn and ignore the option if not recognized
10049 # So say no if there are warnings
10050 if test -s conftest.err; then
10051 # Append any errors to the config.log.
10052 cat conftest.err 1>&5
10053 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10055 if diff conftest.exp conftest.er2 >/dev/null; then
10056 lt_cv_prog_compiler__b=yes
10059 lt_cv_prog_compiler__b=yes
10063 LDFLAGS="$save_LDFLAGS"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10067 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10069 if test x"$lt_cv_prog_compiler__b" = xyes; then
10070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10078 if test "$with_gnu_ld" = no; then
10079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10080 hardcode_libdir_separator=:
10085 hardcode_shlibpath_var=no
10088 hardcode_direct=yes
10089 hardcode_direct_absolute=yes
10090 export_dynamic_flag_spec='${wl}-E'
10092 # hardcode_minus_L: Not really in the search PATH,
10093 # but as the default location of the library.
10094 hardcode_minus_L=yes
10100 irix5* | irix6* | nonstopux*)
10101 if test "$GCC" = yes; then
10102 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'
10103 # Try to use the -exported_symbol ld option, if it does not
10104 # work, assume that -exports_file does not work either and
10105 # implicitly export all symbols.
10106 # This should be the same for all languages, so no per-tag cache variable.
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10108 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10109 if ${lt_cv_irix_exported_symbol+:} false; then :
10110 $as_echo_n "(cached) " >&6
10112 save_LDFLAGS="$LDFLAGS"
10113 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 int foo (void) { return 0; }
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 lt_cv_irix_exported_symbol=yes
10121 lt_cv_irix_exported_symbol=no
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LDFLAGS="$save_LDFLAGS"
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10128 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10129 if test "$lt_cv_irix_exported_symbol" = yes; then
10130 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'
10133 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'
10134 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'
10136 archive_cmds_need_lc='no'
10137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10138 hardcode_libdir_separator=:
10140 link_all_deplibs=yes
10143 netbsd* | netbsdelf*-gnu)
10144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10147 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10149 hardcode_libdir_flag_spec='-R$libdir'
10150 hardcode_direct=yes
10151 hardcode_shlibpath_var=no
10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_direct=yes
10157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10158 hardcode_libdir_separator=:
10159 hardcode_shlibpath_var=no
10166 if test -f /usr/libexec/ld.so; then
10167 hardcode_direct=yes
10168 hardcode_shlibpath_var=no
10169 hardcode_direct_absolute=yes
10170 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10174 export_dynamic_flag_spec='${wl}-E'
10177 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_libdir_flag_spec='-R$libdir'
10182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_minus_L=yes
10195 allow_undefined_flag=unsupported
10196 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'
10197 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10201 if test "$GCC" = yes; then
10202 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10203 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'
10205 allow_undefined_flag=' -expect_unresolved \*'
10206 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'
10208 archive_cmds_need_lc='no'
10209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210 hardcode_libdir_separator=:
10213 osf4* | osf5*) # as osf3* with the addition of -msym flag
10214 if test "$GCC" = yes; then
10215 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10216 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'
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219 allow_undefined_flag=' -expect_unresolved \*'
10220 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'
10221 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~
10222 $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'
10224 # Both c and cxx compiler support -rpath directly
10225 hardcode_libdir_flag_spec='-rpath $libdir'
10227 archive_cmds_need_lc='no'
10228 hardcode_libdir_separator=:
10232 no_undefined_flag=' -z defs'
10233 if test "$GCC" = yes; then
10235 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10237 $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'
10239 case `$CC -V 2>&1` in
10242 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10244 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10248 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10254 hardcode_libdir_flag_spec='-R$libdir'
10255 hardcode_shlibpath_var=no
10257 solaris2.[0-5] | solaris2.[0-5].*) ;;
10259 # The compiler driver will combine and reorder linker options,
10260 # but understands `-z linker_flag'. GCC discards it without `$wl',
10261 # but is careful enough not to reorder.
10262 # Supported since Solaris 2.6 (maybe 2.5.1?)
10263 if test "$GCC" = yes; then
10264 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10266 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10270 link_all_deplibs=yes
10274 if test "x$host_vendor" = xsequent; then
10275 # Use $CC to link under sequent, because it throws in some extra .o
10276 # files that make .init and .fini sections work.
10277 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_libdir_flag_spec='-L$libdir'
10282 hardcode_direct=yes
10283 hardcode_minus_L=yes
10284 hardcode_shlibpath_var=no
10288 case $host_vendor in
10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_direct=yes # is this really true???
10294 ## LD is ld it makes a PLAMLIB
10295 ## CC just makes a GrossModule.
10296 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10297 reload_cmds='$CC -r -o $output$reload_objs'
10301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10305 runpath_var='LD_RUN_PATH'
10306 hardcode_shlibpath_var=no
10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311 hardcode_shlibpath_var=no
10312 export_dynamic_flag_spec='-Bexport'
10316 if test -d /usr/nec; then
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 hardcode_shlibpath_var=no
10319 runpath_var=LD_RUN_PATH
10320 hardcode_runpath_var=yes
10325 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10326 no_undefined_flag='${wl}-z,text'
10327 archive_cmds_need_lc=no
10328 hardcode_shlibpath_var=no
10329 runpath_var='LD_RUN_PATH'
10331 if test "$GCC" = yes; then
10332 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 sysv5* | sco3.2v5* | sco5v6*)
10341 # Note: We can NOT use -z defs as we might desire, because we do not
10342 # link with -lc, and that would cause any symbols used from libc to
10343 # always be unresolved, which means just about no library would
10344 # ever link correctly. If we're not using GNU ld we use -z text
10345 # though, which does catch some bad symbols but isn't as heavy-handed
10347 no_undefined_flag='${wl}-z,text'
10348 allow_undefined_flag='${wl}-z,nodefs'
10349 archive_cmds_need_lc=no
10350 hardcode_shlibpath_var=no
10351 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10352 hardcode_libdir_separator=':'
10353 link_all_deplibs=yes
10354 export_dynamic_flag_spec='${wl}-Bexport'
10355 runpath_var='LD_RUN_PATH'
10357 if test "$GCC" = yes; then
10358 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 hardcode_shlibpath_var=no
10377 if test x$host_vendor = xsni; then
10379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10380 export_dynamic_flag_spec='${wl}-Blargedynsym'
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10387 $as_echo "$ld_shlibs" >&6; }
10388 test "$ld_shlibs" = no && can_build_shared=no
10390 with_gnu_ld=$with_gnu_ld
10407 # Do we need to explicitly link libc?
10409 case "x$archive_cmds_need_lc" in
10411 # Assume -lc should be added
10412 archive_cmds_need_lc=yes
10414 if test "$enable_shared" = yes && test "$GCC" = yes; then
10415 case $archive_cmds in
10417 # FIXME: we may have to deal with multi-command sequences.
10420 # Test whether the compiler implicitly links with -lc since on some
10421 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10422 # to ld, don't add -lc before -lgcc.
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10424 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10425 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10426 $as_echo_n "(cached) " >&6
10429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10432 (eval $ac_compile) 2>&5
10434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435 test $ac_status = 0; } 2>conftest.err; then
10438 libobjs=conftest.$ac_objext
10440 wl=$lt_prog_compiler_wl
10441 pic_flag=$lt_prog_compiler_pic
10447 lt_save_allow_undefined_flag=$allow_undefined_flag
10448 allow_undefined_flag=
10449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10450 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10453 test $ac_status = 0; }
10455 lt_cv_archive_cmds_need_lc=no
10457 lt_cv_archive_cmds_need_lc=yes
10459 allow_undefined_flag=$lt_save_allow_undefined_flag
10461 cat conftest.err 1>&5
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10467 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10468 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10629 if test "$GCC" = yes; then
10631 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10632 *) lt_awk_arg="/^libraries:/" ;;
10635 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10636 *) lt_sed_strip_eq="s,=/,/,g" ;;
10638 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10639 case $lt_search_path_spec in
10641 # if the path contains ";" then we assume it to be the separator
10642 # otherwise default to the standard path separator (i.e. ":") - it is
10643 # assumed that no part of a normal pathname contains ";" but that should
10644 # okay in the real world where ";" in dirpaths is itself problematic.
10645 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10648 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10651 # Ok, now we have the path, separated by spaces, we can step through it
10652 # and add multilib dir if necessary.
10653 lt_tmp_lt_search_path_spec=
10654 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10655 for lt_sys_path in $lt_search_path_spec; do
10656 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10657 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10659 test -d "$lt_sys_path" && \
10660 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10663 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10664 BEGIN {RS=" "; FS="/|\n";} {
10667 for (lt_i = NF; lt_i > 0; lt_i--) {
10668 if ($lt_i != "" && $lt_i != ".") {
10669 if ($lt_i == "..") {
10672 if (lt_count == 0) {
10673 lt_foo="/" $lt_i lt_foo;
10680 if (lt_foo != "") { lt_freq[lt_foo]++; }
10681 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10683 # AWK program above erroneously prepends '/' to C:/dos/paths
10686 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10687 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10689 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10693 library_names_spec=
10694 libname_spec='lib$name'
10698 postuninstall_cmds=
10702 shlibpath_overrides_runpath=unknown
10704 dynamic_linker="$host_os ld.so"
10705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10706 need_lib_prefix=unknown
10707 hardcode_into_libs=no
10709 # when you set need_version to no, make sure it does not cause -set_version
10710 # flags to be left without arguments
10711 need_version=unknown
10715 version_type=linux # correct to gnu/linux during the next big refactor
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10717 shlibpath_var=LIBPATH
10719 # AIX 3 has no versioning support, so we append a major version to the name.
10720 soname_spec='${libname}${release}${shared_ext}$major'
10724 version_type=linux # correct to gnu/linux during the next big refactor
10727 hardcode_into_libs=yes
10728 if test "$host_cpu" = ia64; then
10729 # AIX 5 supports IA64
10730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10731 shlibpath_var=LD_LIBRARY_PATH
10733 # With GCC up to 2.95.x, collect2 would create an import file
10734 # for dependence libraries. The import file would start with
10735 # the line `#! .'. This would cause the generated library to
10736 # depend on `.', always an invalid library. This was fixed in
10737 # development snapshots of GCC prior to 3.0.
10739 aix4 | aix4.[01] | aix4.[01].*)
10740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10742 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10745 can_build_shared=no
10749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10750 # soname into executable. Probably we can add versioning support to
10751 # collect2, so additional links can be useful in future.
10752 if test "$aix_use_runtimelinking" = yes; then
10753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10754 # instead of lib<name>.a to let people know that these are not
10755 # typical AIX shared libraries.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 # We preserve .a as extension for shared libraries through AIX4.2
10759 # and later when we are not doing run time linking.
10760 library_names_spec='${libname}${release}.a $libname.a'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LIBPATH
10770 # Since July 2007 AmigaOS4 officially supports .so libraries.
10771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 library_names_spec='$libname.ixlibrary $libname.a'
10776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10777 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'
10783 library_names_spec='${libname}${shared_ext}'
10784 dynamic_linker="$host_os ld.so"
10785 shlibpath_var=LIBRARY_PATH
10789 version_type=linux # correct to gnu/linux during the next big refactor
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10797 # the default ld.so.conf also contains /usr/contrib/lib and
10798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10799 # libtool to hard-code these into programs
10802 cygwin* | mingw* | pw32* | cegcc*)
10803 version_type=windows
10808 case $GCC,$cc_basename in
10811 library_names_spec='$libname.dll.a'
10812 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10813 postinstall_cmds='base_file=`basename \${file}`~
10814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10815 dldir=$destdir/`dirname \$dlpath`~
10816 test -d \$dldir || mkdir -p \$dldir~
10817 $install_prog $dir/$dlname \$dldir/$dlname~
10818 chmod a+x \$dldir/$dlname~
10819 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10820 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823 dlpath=$dir/\$dldll~
10825 shlibpath_overrides_runpath=yes
10829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10832 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10835 # MinGW DLLs use traditional 'lib' prefix
10836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839 # pw32 DLLs use 'pw' prefix rather than 'lib'
10840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10843 dynamic_linker='Win32 ld.exe'
10848 libname_spec='$name'
10849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10850 library_names_spec='${libname}.dll.lib'
10854 sys_lib_search_path_spec=
10857 for lt_path in $LIB
10860 # Let DOS variable expansion print the short 8.3 style file name.
10861 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10862 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10865 # Convert to MSYS style.
10866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10869 # Convert to unix form, then to dos form, then back to unix form
10870 # but this time dos style (no spaces!) so that the unix form looks
10871 # like /cygdrive/c/PROGRA~1:/cygdr...
10872 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10873 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10874 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10877 sys_lib_search_path_spec="$LIB"
10878 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10879 # It is most probably a Windows format PATH.
10880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10884 # FIXME: find the short name or the path components, as spaces are
10885 # common. (e.g. "Program Files" -> "PROGRA~1")
10889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890 postinstall_cmds='base_file=`basename \${file}`~
10891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10892 dldir=$destdir/`dirname \$dlpath`~
10893 test -d \$dldir || mkdir -p \$dldir~
10894 $install_prog $dir/$dlname \$dldir/$dlname'
10895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896 dlpath=$dir/\$dldll~
10898 shlibpath_overrides_runpath=yes
10899 dynamic_linker='Win32 link.exe'
10903 # Assume MSVC wrapper
10904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10905 dynamic_linker='Win32 ld.exe'
10908 # FIXME: first we should search . and the directory the executable is in
10912 darwin* | rhapsody*)
10913 dynamic_linker="$host_os dyld"
10914 version_type=darwin
10917 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10918 soname_spec='${libname}${release}${major}$shared_ext'
10919 shlibpath_overrides_runpath=yes
10920 shlibpath_var=DYLD_LIBRARY_PATH
10921 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10923 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10928 version_type=linux # correct to gnu/linux during the next big refactor
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 shlibpath_var=LD_LIBRARY_PATH
10936 freebsd* | dragonfly*)
10937 # DragonFly does not have aout. When/if they implement a new
10938 # versioning mechanism, adjust this.
10939 if test -x /usr/bin/objformat; then
10940 objformat=`/usr/bin/objformat`
10943 freebsd[23].*) objformat=aout ;;
10944 *) objformat=elf ;;
10947 version_type=freebsd-$objformat
10948 case $version_type in
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10959 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10964 freebsd3.[01]* | freebsdelf3.[01]*)
10965 shlibpath_overrides_runpath=yes
10966 hardcode_into_libs=yes
10968 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10969 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10970 shlibpath_overrides_runpath=no
10971 hardcode_into_libs=yes
10973 *) # from 4.6 on, and DragonFly
10974 shlibpath_overrides_runpath=yes
10975 hardcode_into_libs=yes
10981 version_type=linux # correct to gnu/linux during the next big refactor
10984 dynamic_linker="$host_os runtime_loader"
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 shlibpath_var=LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10989 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10990 hardcode_into_libs=yes
10993 hpux9* | hpux10* | hpux11*)
10994 # Give a soname corresponding to the major version so that dld.sl refuses to
10995 # link against other versions.
11002 hardcode_into_libs=yes
11003 dynamic_linker="$host_os dld.so"
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 if test "X$HPUX_IA64_MODE" = X32; then
11009 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11011 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11017 hardcode_into_libs=yes
11018 dynamic_linker="$host_os dld.sl"
11019 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11028 dynamic_linker="$host_os dld.sl"
11029 shlibpath_var=SHLIB_PATH
11030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11035 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11036 postinstall_cmds='chmod 555 $lib'
11037 # or fails outright, so override atomically:
11038 install_override_mode=555
11042 version_type=linux # correct to gnu/linux during the next big refactor
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=no
11050 hardcode_into_libs=yes
11053 irix5* | irix6* | nonstopux*)
11055 nonstopux*) version_type=nonstopux ;;
11057 if test "$lt_cv_prog_gnu_ld" = yes; then
11058 version_type=linux # correct to gnu/linux during the next big refactor
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11068 irix5* | nonstopux*)
11069 libsuff= shlibsuff=
11072 case $LD in # libtool.m4 will add one of these switches to LD
11073 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11074 libsuff= shlibsuff= libmagic=32-bit;;
11075 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11076 libsuff=32 shlibsuff=N32 libmagic=N32;;
11077 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11078 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11079 *) libsuff= shlibsuff= libmagic=never-match;;
11083 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11084 shlibpath_overrides_runpath=no
11085 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11086 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11087 hardcode_into_libs=yes
11090 # No shared lib support for Linux oldld, aout, or coff.
11091 linux*oldld* | linux*aout* | linux*coff*)
11095 # This must be glibc/ELF.
11096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11097 version_type=linux # correct to gnu/linux during the next big refactor
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11106 # Some binutils ld are patched to set DT_RUNPATH
11107 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11108 $as_echo_n "(cached) " >&6
11110 lt_cv_shlibpath_overrides_runpath=no
11111 save_LDFLAGS=$LDFLAGS
11112 save_libdir=$libdir
11113 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11114 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11128 lt_cv_shlibpath_overrides_runpath=yes
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LDFLAGS=$save_LDFLAGS
11134 libdir=$save_libdir
11138 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11140 # This implies no fast_install, which is unacceptable.
11141 # Some rework will be needed to allow for fast_install
11142 # before this can be enabled.
11143 hardcode_into_libs=yes
11145 # Append ld.so.conf contents to the search path
11146 if test -f /etc/ld.so.conf; then
11147 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' ' '`
11148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11151 # We used to test for /lib/ld.so.1 and disable shared libraries on
11152 # powerpc, because MkLinux only supported shared libraries with the
11153 # GNU dynamic linker. Since this was broken with cross compilers,
11154 # most powerpc-linux boxes support dynamic linking these days and
11155 # people can always --disable-shared, the test was removed, and we
11156 # assume the GNU/Linux dynamic linker is in use.
11157 dynamic_linker='GNU/Linux ld.so'
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
11168 hardcode_into_libs=yes
11169 dynamic_linker='NetBSD ld.elf_so'
11176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11179 dynamic_linker='NetBSD (a.out) ld.so'
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 dynamic_linker='NetBSD ld.elf_so'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=yes
11187 hardcode_into_libs=yes
11191 version_type=linux # correct to gnu/linux during the next big refactor
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11206 dynamic_linker='ldqnx.so'
11211 sys_lib_dlsearch_path_spec="/usr/lib"
11213 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11215 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11216 *) need_version=no ;;
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11223 openbsd2.[89] | openbsd2.[89].*)
11224 shlibpath_overrides_runpath=no
11227 shlibpath_overrides_runpath=yes
11231 shlibpath_overrides_runpath=yes
11236 libname_spec='$name'
11239 library_names_spec='$libname${shared_ext} $libname.a'
11240 dynamic_linker='OS/2 ld.exe'
11241 shlibpath_var=LIBPATH
11244 osf3* | osf4* | osf5*)
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11260 version_type=linux # correct to gnu/linux during the next big refactor
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11267 hardcode_into_libs=yes
11268 # ldd complains unless libraries are executable
11269 postinstall_cmds='chmod +x $lib'
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 if test "$with_gnu_ld" = yes; then
11285 version_type=linux # correct to gnu/linux during the next big refactor
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 case $host_vendor in
11291 shlibpath_overrides_runpath=no
11293 runpath_var=LD_RUN_PATH
11301 shlibpath_overrides_runpath=no
11302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11308 if test -d /usr/nec ;then
11309 version_type=linux # correct to gnu/linux during the next big refactor
11310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11311 soname_spec='$libname${shared_ext}.$major'
11312 shlibpath_var=LD_LIBRARY_PATH
11316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11317 version_type=freebsd-elf
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 shlibpath_var=LD_LIBRARY_PATH
11323 shlibpath_overrides_runpath=yes
11324 hardcode_into_libs=yes
11325 if test "$with_gnu_ld" = yes; then
11326 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11335 sys_lib_dlsearch_path_spec='/usr/lib'
11339 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11340 version_type=linux # correct to gnu/linux during the next big refactor
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 shlibpath_overrides_runpath=no
11346 hardcode_into_libs=yes
11350 version_type=linux # correct to gnu/linux during the next big refactor
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11361 $as_echo "$dynamic_linker" >&6; }
11362 test "$dynamic_linker" = no && can_build_shared=no
11364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11365 if test "$GCC" = yes; then
11366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11369 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11370 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11372 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11373 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11468 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11470 if test -n "$hardcode_libdir_flag_spec" ||
11471 test -n "$runpath_var" ||
11472 test "X$hardcode_automatic" = "Xyes" ; then
11474 # We can hardcode non-existent directories.
11475 if test "$hardcode_direct" != no &&
11476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11477 # have to relink, otherwise we might link with an installed library
11478 # when we should be linking with a yet-to-be-installed one
11479 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11480 test "$hardcode_minus_L" != no; then
11481 # Linking always hardcodes the temporary library directory.
11482 hardcode_action=relink
11484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11485 hardcode_action=immediate
11488 # We cannot hardcode anything, or else we can only hardcode existing
11490 hardcode_action=unsupported
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11493 $as_echo "$hardcode_action" >&6; }
11495 if test "$hardcode_action" = relink ||
11496 test "$inherit_rpath" = yes; then
11497 # Fast installation is not supported
11498 enable_fast_install=no
11499 elif test "$shlibpath_overrides_runpath" = yes ||
11500 test "$enable_shared" = no; then
11501 # Fast installation is not necessary
11502 enable_fast_install=needless
11510 if test "x$enable_dlopen" != xyes; then
11511 enable_dlopen=unknown
11512 enable_dlopen_self=unknown
11513 enable_dlopen_self_static=unknown
11520 lt_cv_dlopen="load_add_on"
11522 lt_cv_dlopen_self=yes
11525 mingw* | pw32* | cegcc*)
11526 lt_cv_dlopen="LoadLibrary"
11531 lt_cv_dlopen="dlopen"
11536 # if libdl is installed we need to link against it
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11538 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11539 if ${ac_cv_lib_dl_dlopen+:} false; then :
11540 $as_echo_n "(cached) " >&6
11542 ac_check_lib_save_LIBS=$LIBS
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11562 if ac_fn_c_try_link "$LINENO"; then :
11563 ac_cv_lib_dl_dlopen=yes
11565 ac_cv_lib_dl_dlopen=no
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11572 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11573 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11577 lt_cv_dlopen="dyld"
11579 lt_cv_dlopen_self=yes
11586 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11587 if test "x$ac_cv_func_shl_load" = xyes; then :
11588 lt_cv_dlopen="shl_load"
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11591 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11592 if ${ac_cv_lib_dld_shl_load+:} false; then :
11593 $as_echo_n "(cached) " >&6
11595 ac_check_lib_save_LIBS=$LIBS
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11610 return shl_load ();
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_dld_shl_load=yes
11618 ac_cv_lib_dld_shl_load=no
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11625 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11626 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11627 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11629 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11630 if test "x$ac_cv_func_dlopen" = xyes; then :
11631 lt_cv_dlopen="dlopen"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11635 if ${ac_cv_lib_dl_dlopen+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 ac_check_lib_save_LIBS=$LIBS
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_dl_dlopen=yes
11661 ac_cv_lib_dl_dlopen=no
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11673 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11674 if ${ac_cv_lib_svld_dlopen+:} false; then :
11675 $as_echo_n "(cached) " >&6
11677 ac_check_lib_save_LIBS=$LIBS
11678 LIBS="-lsvld $LIBS"
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11697 if ac_fn_c_try_link "$LINENO"; then :
11698 ac_cv_lib_svld_dlopen=yes
11700 ac_cv_lib_svld_dlopen=no
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_lib_save_LIBS
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11707 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11708 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11712 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11713 if ${ac_cv_lib_dld_dld_link+:} false; then :
11714 $as_echo_n "(cached) " >&6
11716 ac_check_lib_save_LIBS=$LIBS
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11731 return dld_link ();
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_dld_dld_link=yes
11739 ac_cv_lib_dld_dld_link=no
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11746 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11747 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11748 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11769 if test "x$lt_cv_dlopen" != xno; then
11775 case $lt_cv_dlopen in
11777 save_CPPFLAGS="$CPPFLAGS"
11778 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11780 save_LDFLAGS="$LDFLAGS"
11781 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11784 LIBS="$lt_cv_dlopen_libs $LIBS"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11787 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11788 if ${lt_cv_dlopen_self+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 if test "$cross_compiling" = yes; then :
11792 lt_cv_dlopen_self=cross
11794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11795 lt_status=$lt_dlunknown
11796 cat > conftest.$ac_ext <<_LT_EOF
11797 #line $LINENO "configure"
11798 #include "confdefs.h"
11807 # define LT_DLGLOBAL RTLD_GLOBAL
11810 # define LT_DLGLOBAL DL_GLOBAL
11812 # define LT_DLGLOBAL 0
11816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11817 find out it does not work in some platform. */
11818 #ifndef LT_DLLAZY_OR_NOW
11820 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11823 # define LT_DLLAZY_OR_NOW DL_LAZY
11826 # define LT_DLLAZY_OR_NOW RTLD_NOW
11829 # define LT_DLLAZY_OR_NOW DL_NOW
11831 # define LT_DLLAZY_OR_NOW 0
11838 /* When -fvisbility=hidden is used, assume the code has been annotated
11839 correspondingly for the symbols needed. */
11840 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11841 int fnord () __attribute__((visibility("default")));
11844 int fnord () { return 42; }
11847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11848 int status = $lt_dlunknown;
11852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11855 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11856 else puts (dlerror ());
11858 /* dlclose (self); */
11866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11867 (eval $ac_link) 2>&5
11869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11871 (./conftest; exit; ) >&5 2>/dev/null
11873 case x$lt_status in
11874 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11875 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11876 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11879 # compilation failed
11880 lt_cv_dlopen_self=no
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11888 $as_echo "$lt_cv_dlopen_self" >&6; }
11890 if test "x$lt_cv_dlopen_self" = xyes; then
11891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11893 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11894 if ${lt_cv_dlopen_self_static+:} false; then :
11895 $as_echo_n "(cached) " >&6
11897 if test "$cross_compiling" = yes; then :
11898 lt_cv_dlopen_self_static=cross
11900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11901 lt_status=$lt_dlunknown
11902 cat > conftest.$ac_ext <<_LT_EOF
11903 #line $LINENO "configure"
11904 #include "confdefs.h"
11913 # define LT_DLGLOBAL RTLD_GLOBAL
11916 # define LT_DLGLOBAL DL_GLOBAL
11918 # define LT_DLGLOBAL 0
11922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11923 find out it does not work in some platform. */
11924 #ifndef LT_DLLAZY_OR_NOW
11926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11929 # define LT_DLLAZY_OR_NOW DL_LAZY
11932 # define LT_DLLAZY_OR_NOW RTLD_NOW
11935 # define LT_DLLAZY_OR_NOW DL_NOW
11937 # define LT_DLLAZY_OR_NOW 0
11944 /* When -fvisbility=hidden is used, assume the code has been annotated
11945 correspondingly for the symbols needed. */
11946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11947 int fnord () __attribute__((visibility("default")));
11950 int fnord () { return 42; }
11953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11954 int status = $lt_dlunknown;
11958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11962 else puts (dlerror ());
11964 /* dlclose (self); */
11972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11973 (eval $ac_link) 2>&5
11975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11976 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11977 (./conftest; exit; ) >&5 2>/dev/null
11979 case x$lt_status in
11980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11982 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11985 # compilation failed
11986 lt_cv_dlopen_self_static=no
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11994 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11997 CPPFLAGS="$save_CPPFLAGS"
11998 LDFLAGS="$save_LDFLAGS"
12003 case $lt_cv_dlopen_self in
12004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12005 *) enable_dlopen_self=unknown ;;
12008 case $lt_cv_dlopen_self_static in
12009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12010 *) enable_dlopen_self_static=unknown ;;
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12033 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12034 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12035 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12036 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038 $as_echo "yes" >&6; }
12040 # FIXME - insert some real tests, host_os isn't really good enough
12043 if test -n "$STRIP" ; then
12044 striplib="$STRIP -x"
12045 old_striplib="$STRIP -S"
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12071 # Report which library types will actually be built
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12073 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12075 $as_echo "$can_build_shared" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12078 $as_echo_n "checking whether to build shared libraries... " >&6; }
12079 test "$can_build_shared" = "no" && enable_shared=no
12081 # On AIX, shared libraries and static libraries use the same namespace, and
12082 # are all built from PIC.
12085 test "$enable_shared" = yes && enable_static=no
12086 if test -n "$RANLIB"; then
12087 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12088 postinstall_cmds='$RANLIB $lib'
12093 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12094 test "$enable_shared" = yes && enable_static=no
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12099 $as_echo "$enable_shared" >&6; }
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12102 $as_echo_n "checking whether to build static libraries... " >&6; }
12103 # Make sure either enable_shared or enable_static is yes.
12104 test "$enable_shared" = yes || enable_static=yes
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12106 $as_echo "$enable_static" >&6; }
12113 ac_cpp='$CPP $CPPFLAGS'
12114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12134 ac_config_commands="$ac_config_commands libtool"
12139 # Only expand once:
12145 if test "z$RM" == "z" ; then
12146 # Extract the first word of "rm", so it can be a program name with args.
12147 set dummy rm; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_RM+:} false; then :
12151 $as_echo_n "(cached) " >&6
12155 ac_cv_path_RM="$RM" # Let the user override the test with a path.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
12178 if test -n "$RM"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12180 $as_echo "$RM" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12188 # Extract the first word of "cp", so it can be a program name with args.
12189 set dummy cp; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_CP+:} false; then :
12193 $as_echo_n "(cached) " >&6
12197 ac_cv_path_CP="$CP" # Let the user override the test with a path.
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
12220 if test -n "$CP"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
12222 $as_echo "$CP" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12229 # Extract the first word of "mv", so it can be a program name with args.
12230 set dummy mv; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_path_MV+:} false; then :
12234 $as_echo_n "(cached) " >&6
12238 ac_cv_path_MV="$MV" # Let the user override the test with a path.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
12261 if test -n "$MV"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
12263 $as_echo "$MV" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12270 # Extract the first word of "tar", so it can be a program name with args.
12271 set dummy tar; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_path_TAR+:} false; then :
12275 $as_echo_n "(cached) " >&6
12279 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
12301 TAR=$ac_cv_path_TAR
12302 if test -n "$TAR"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
12304 $as_echo "$TAR" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12311 # Extract the first word of "perl", so it can be a program name with args.
12312 set dummy perl; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_path_PERL+:} false; then :
12316 $as_echo_n "(cached) " >&6
12320 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 PERL=$ac_cv_path_PERL
12342 if test -n "$PERL"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12344 $as_echo "$PERL" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12353 ac_header_dirent=no
12354 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12355 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12357 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12358 if eval \${$as_ac_Header+:} false; then :
12359 $as_echo_n "(cached) " >&6
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 #include <sys/types.h>
12375 if ac_fn_c_try_compile "$LINENO"; then :
12376 eval "$as_ac_Header=yes"
12378 eval "$as_ac_Header=no"
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 eval ac_res=\$$as_ac_Header
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12384 $as_echo "$ac_res" >&6; }
12385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12386 cat >>confdefs.h <<_ACEOF
12387 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12390 ac_header_dirent=$ac_hdr; break
12394 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12395 if test $ac_header_dirent = dirent.h; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12397 $as_echo_n "checking for library containing opendir... " >&6; }
12398 if ${ac_cv_search_opendir+:} false; then :
12399 $as_echo_n "(cached) " >&6
12401 ac_func_search_save_LIBS=$LIBS
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12420 for ac_lib in '' dir; do
12421 if test -z "$ac_lib"; then
12422 ac_res="none required"
12425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_search_opendir=$ac_res
12430 rm -f core conftest.err conftest.$ac_objext \
12432 if ${ac_cv_search_opendir+:} false; then :
12436 if ${ac_cv_search_opendir+:} false; then :
12439 ac_cv_search_opendir=no
12441 rm conftest.$ac_ext
12442 LIBS=$ac_func_search_save_LIBS
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12445 $as_echo "$ac_cv_search_opendir" >&6; }
12446 ac_res=$ac_cv_search_opendir
12447 if test "$ac_res" != no; then :
12448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12454 $as_echo_n "checking for library containing opendir... " >&6; }
12455 if ${ac_cv_search_opendir+:} false; then :
12456 $as_echo_n "(cached) " >&6
12458 ac_func_search_save_LIBS=$LIBS
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12477 for ac_lib in '' x; do
12478 if test -z "$ac_lib"; then
12479 ac_res="none required"
12482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_search_opendir=$ac_res
12487 rm -f core conftest.err conftest.$ac_objext \
12489 if ${ac_cv_search_opendir+:} false; then :
12493 if ${ac_cv_search_opendir+:} false; then :
12496 ac_cv_search_opendir=no
12498 rm conftest.$ac_ext
12499 LIBS=$ac_func_search_save_LIBS
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12502 $as_echo "$ac_cv_search_opendir" >&6; }
12503 ac_res=$ac_cv_search_opendir
12504 if test "$ac_res" != no; then :
12505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12512 $as_echo_n "checking for ANSI C header files... " >&6; }
12513 if ${ac_cv_header_stdc+:} false; then :
12514 $as_echo_n "(cached) " >&6
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 #include <stdlib.h>
12519 #include <stdarg.h>
12520 #include <string.h>
12531 if ac_fn_c_try_compile "$LINENO"; then :
12532 ac_cv_header_stdc=yes
12534 ac_cv_header_stdc=no
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 if test $ac_cv_header_stdc = yes; then
12539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542 #include <string.h>
12545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12546 $EGREP "memchr" >/dev/null 2>&1; then :
12549 ac_cv_header_stdc=no
12555 if test $ac_cv_header_stdc = yes; then
12556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #include <stdlib.h>
12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563 $EGREP "free" >/dev/null 2>&1; then :
12566 ac_cv_header_stdc=no
12572 if test $ac_cv_header_stdc = yes; then
12573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12574 if test "$cross_compiling" = yes; then :
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12580 #include <stdlib.h>
12581 #if ((' ' & 0x0FF) == 0x020)
12582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12585 # define ISLOWER(c) \
12586 (('a' <= (c) && (c) <= 'i') \
12587 || ('j' <= (c) && (c) <= 'r') \
12588 || ('s' <= (c) && (c) <= 'z'))
12589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12597 for (i = 0; i < 256; i++)
12598 if (XOR (islower (i), ISLOWER (i))
12599 || toupper (i) != TOUPPER (i))
12604 if ac_fn_c_try_run "$LINENO"; then :
12607 ac_cv_header_stdc=no
12609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12610 conftest.$ac_objext conftest.beam conftest.$ac_ext
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12616 $as_echo "$ac_cv_header_stdc" >&6; }
12617 if test $ac_cv_header_stdc = yes; then
12619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12623 for ac_header in stdio.h
12625 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
12626 if test "x$ac_cv_header_stdio_h" = xyes; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_STDIO_H 1
12635 for ac_header in stdlib.h
12637 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12638 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12639 cat >>confdefs.h <<_ACEOF
12640 #define HAVE_STDLIB_H 1
12647 for ac_header in string.h
12649 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12650 if test "x$ac_cv_header_string_h" = xyes; then :
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_STRING_H 1
12659 for ac_header in ctype.h
12661 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12662 if test "x$ac_cv_header_ctype_h" = xyes; then :
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_CTYPE_H 1
12671 for ac_header in errno.h
12673 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12674 if test "x$ac_cv_header_errno_h" = xyes; then :
12675 cat >>confdefs.h <<_ACEOF
12676 #define HAVE_ERRNO_H 1
12683 for ac_header in ansidecl.h
12685 ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12686 if test "x$ac_cv_header_ansidecl_h" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_ANSIDECL_H 1
12695 for ac_header in time.h
12697 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_time_h" = xyes; then :
12699 cat >>confdefs.h <<_ACEOF
12700 #define HAVE_TIME_H 1
12707 for ac_func in strchr strrchr printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf timegm
12709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12712 cat >>confdefs.h <<_ACEOF
12713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for development environment" >&5
12723 $as_echo_n "checking for development environment... " >&6; }
12724 # Check whether --enable-development was given.
12725 if test "${enable_development+set}" = set; then :
12726 enableval=$enable_development;
12729 if test "z$enable_development" = "zyes" ; then
12730 enable_debugging="yes"
12731 enable_pedantic="yes"
12732 enable_static_linking="yes"
12733 enable_manpages_build="yes"
12734 enable_docs_build="yes"
12735 enable_crypto_dl="no"
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737 $as_echo "yes" >&6; }
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for man pages build" >&5
12744 $as_echo_n "checking for man pages build... " >&6; }
12745 # Check whether --enable-manpages_build was given.
12746 if test "${enable_manpages_build+set}" = set; then :
12747 enableval=$enable_manpages_build;
12750 if test "z$enable_manpages_build" = "zyes" ; then
12751 # Extract the first word of "help2man", so it can be a program name with args.
12752 set dummy help2man; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_HELP2MAN+:} false; then :
12756 $as_echo_n "(cached) " >&6
12760 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 HELP2MAN=$ac_cv_path_HELP2MAN
12782 if test -n "$HELP2MAN"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
12784 $as_echo "$HELP2MAN" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12799 if test x"$HELP2MAN" != x; then
12801 HAS_HELP2MAN_FALSE='#'
12803 HAS_HELP2MAN_TRUE='#'
12804 HAS_HELP2MAN_FALSE=
12807 if test x"$HELP2MAN" != x; then
12808 BUILD_MANPAGES_TRUE=
12809 BUILD_MANPAGES_FALSE='#'
12811 BUILD_MANPAGES_TRUE='#'
12812 BUILD_MANPAGES_FALSE=
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docs build" >&5
12817 $as_echo_n "checking for docs build... " >&6; }
12818 # Check whether --enable-docs_build was given.
12819 if test "${enable_docs_build+set}" = set; then :
12820 enableval=$enable_docs_build;
12823 if test "z$enable_docs_build" = "zyes" ; then
12824 # Extract the first word of "xsltproc", so it can be a program name with args.
12825 set dummy xsltproc; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if ${ac_cv_path_XSLTPROC+:} false; then :
12829 $as_echo_n "(cached) " >&6
12833 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 XSLTPROC=$ac_cv_path_XSLTPROC
12855 if test -n "$XSLTPROC"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12857 $as_echo "$XSLTPROC" >&6; }
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12864 # Extract the first word of "man2html", so it can be a program name with args.
12865 set dummy man2html; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_path_MAN2HTML+:} false; then :
12869 $as_echo_n "(cached) " >&6
12873 ac_cv_path_MAN2HTML="$MAN2HTML" # Let the user override the test with a path.
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_path_MAN2HTML="$as_dir/$ac_word$ac_exec_ext"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 MAN2HTML=$ac_cv_path_MAN2HTML
12895 if test -n "$MAN2HTML"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
12897 $as_echo "$MAN2HTML" >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12904 # Extract the first word of "gtkdoc-mkhtml", so it can be a program name with args.
12905 set dummy gtkdoc-mkhtml; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_path_GTKDOC_MKHTML+:} false; then :
12909 $as_echo_n "(cached) " >&6
12911 case $GTKDOC_MKHTML in
12913 ac_cv_path_GTKDOC_MKHTML="$GTKDOC_MKHTML" # Let the user override the test with a path.
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_path_GTKDOC_MKHTML="$as_dir/$ac_word$ac_exec_ext"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 GTKDOC_MKHTML=$ac_cv_path_GTKDOC_MKHTML
12935 if test -n "$GTKDOC_MKHTML"; then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKHTML" >&5
12937 $as_echo "$GTKDOC_MKHTML" >&6; }
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 $as_echo "no" >&6; }
12944 # Extract the first word of "gtkdoc-mktmpl", so it can be a program name with args.
12945 set dummy gtkdoc-mktmpl; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if ${ac_cv_path_GTKDOC_MKTMPL+:} false; then :
12949 $as_echo_n "(cached) " >&6
12951 case $GTKDOC_MKTMPL in
12953 ac_cv_path_GTKDOC_MKTMPL="$GTKDOC_MKTMPL" # Let the user override the test with a path.
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_path_GTKDOC_MKTMPL="$as_dir/$ac_word$ac_exec_ext"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 GTKDOC_MKTMPL=$ac_cv_path_GTKDOC_MKTMPL
12975 if test -n "$GTKDOC_MKTMPL"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKTMPL" >&5
12977 $as_echo "$GTKDOC_MKTMPL" >&6; }
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12984 # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
12985 set dummy gtkdoc-mkdb; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if ${ac_cv_path_GTKDOC_MKDB+:} false; then :
12989 $as_echo_n "(cached) " >&6
12991 case $GTKDOC_MKDB in
12993 ac_cv_path_GTKDOC_MKDB="$GTKDOC_MKDB" # Let the user override the test with a path.
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
13000 test -z "$as_dir" && as_dir=.
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13003 ac_cv_path_GTKDOC_MKDB="$as_dir/$ac_word$ac_exec_ext"
13004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 GTKDOC_MKDB=$ac_cv_path_GTKDOC_MKDB
13015 if test -n "$GTKDOC_MKDB"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKDB" >&5
13017 $as_echo "$GTKDOC_MKDB" >&6; }
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13024 # Extract the first word of "gtkdoc-scan", so it can be a program name with args.
13025 set dummy gtkdoc-scan; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if ${ac_cv_path_GTKDOC_SCAN+:} false; then :
13029 $as_echo_n "(cached) " >&6
13031 case $GTKDOC_SCAN in
13033 ac_cv_path_GTKDOC_SCAN="$GTKDOC_SCAN" # Let the user override the test with a path.
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_path_GTKDOC_SCAN="$as_dir/$ac_word$ac_exec_ext"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054 GTKDOC_SCAN=$ac_cv_path_GTKDOC_SCAN
13055 if test -n "$GTKDOC_SCAN"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_SCAN" >&5
13057 $as_echo "$GTKDOC_SCAN" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13072 if test x"$MAN2HTML" != x; then
13074 HAS_MAN2HTML_FALSE='#'
13076 HAS_MAN2HTML_TRUE='#'
13077 HAS_MAN2HTML_FALSE=
13080 if test x"$XSLTPROC" != x; then
13082 HAS_XSLTPROC_FALSE='#'
13084 HAS_XSLTPROC_TRUE='#'
13085 HAS_XSLTPROC_FALSE=
13089 if test x"$PERL" != x && test x"$XSLTPROC" != x && test x"$MAN2HTML" != x; then
13090 BUILD_MAN_DOCS_TRUE=
13091 BUILD_MAN_DOCS_FALSE='#'
13093 BUILD_MAN_DOCS_TRUE='#'
13094 BUILD_MAN_DOCS_FALSE=
13097 if test x"$PERL" != x && test x"$XSLTPROC" != x && test x"$GTKDOC_MKHTML" != x && test x"$GTKDOC_MKTMPL" != x && test x"$GTKDOC_MKDB" != x && test x"$GTKDOC_SCAN" != x; then
13098 BUILD_API_DOCS_TRUE=
13099 BUILD_API_DOCS_FALSE='#'
13101 BUILD_API_DOCS_TRUE='#'
13102 BUILD_API_DOCS_FALSE=
13106 XMLSEC_EXTRA_LDFLAGS=
13107 XMLSEC_CRYPTO_EXTRA_LDFLAGS=
13109 xmlsec_sharedlib_hack="no"
13110 if test -n "$shrext"; then
13111 XMLSEC_SHLIBSFX="$shrext"
13113 XMLSEC_SHLIBSFX="$shrext_cmds"
13117 CFLAGS="${CFLAGS} -D_ALL_SOURCE"
13120 XMLSEC_EXTRA_LDFLAGS="-no-undefined -avoid-version"
13121 XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined -avoid-version"
13122 XMLSEC_SHLIBSFX=".dll.a"
13123 xmlsec_sharedlib_hack="yes"
13126 XMLSEC_EXTRA_LDFLAGS="-no-undefined"
13127 XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined"
13130 XMLSEC_SHLIBSFX=".dylib"
13134 # To avoid problem with loading of a shared library (dlopen or equivalent)
13135 # at run time on some platforms we need to link crypto modules with extra
13136 # source. It's work without hack on 9x and under emulation.
13137 # On nt 5.x (w2k,xp) the error is 998("Invalid access to memory location").
13138 if test "z$xmlsec_sharedlib_hack" = "zyes"; then
13139 SHAREDLIB_HACK_TRUE=
13140 SHAREDLIB_HACK_FALSE='#'
13142 SHAREDLIB_HACK_TRUE='#'
13143 SHAREDLIB_HACK_FALSE=
13147 if test "z$shrext" == "z" ; then
13148 shrext=$shrext_cmds
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__ or __func__" >&5
13152 $as_echo_n "checking for __FUNCTION__ or __func__... " >&6; }
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13159 char *foo = __FUNCTION__;
13164 if ac_fn_c_try_compile "$LINENO"; then :
13165 ac_function_exists=yes
13167 ac_function_exists=no
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13176 char *foo = __func__;
13181 if ac_fn_c_try_compile "$LINENO"; then :
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 if test "z$ac_func_exists" = "zyes" ; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __func__" >&5
13189 $as_echo "__func__" >&6; }
13190 XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__func__"
13191 elif test "z$ac_function_exists" = "zyes" ; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __FUNCTION__" >&5
13193 $as_echo "__FUNCTION__" >&6; }
13194 XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__FUNCTION__"
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
13197 $as_echo "\"no\"" >&6; }
13200 # The cast to long int works around a bug in the HP C Compiler
13201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13203 # This bug is HP SR number 8606223364.
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13205 $as_echo_n "checking size of size_t... " >&6; }
13206 if ${ac_cv_sizeof_size_t+:} false; then :
13207 $as_echo_n "(cached) " >&6
13209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13212 if test "$ac_cv_type_size_t" = yes; then
13213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13215 as_fn_error 77 "cannot compute sizeof (size_t)
13216 See \`config.log' for more details" "$LINENO" 5; }
13218 ac_cv_sizeof_size_t=0
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13224 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13228 cat >>confdefs.h <<_ACEOF
13229 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13233 if test "$ac_cv_sizeof_size_t" -ne "4" ; then
13234 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SIZE_T"
13237 PKG_CONFIG="pkg-config"
13238 PKGCONFIG_FOUND="no"
13239 # Check whether --enable-pkgconfig was given.
13240 if test "${enable_pkgconfig+set}" = set; then :
13241 enableval=$enable_pkgconfig;
13244 if test "z$enable_pkgconfig" != "zno" ; then
13245 # Extract the first word of "$PKG_CONFIG", so it can be a program name with args.
13246 set dummy $PKG_CONFIG; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_prog_PKGCONFIG_PRESENT+:} false; then :
13250 $as_echo_n "(cached) " >&6
13252 if test -n "$PKGCONFIG_PRESENT"; then
13253 ac_cv_prog_PKGCONFIG_PRESENT="$PKGCONFIG_PRESENT" # Let the user override the test.
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_prog_PKGCONFIG_PRESENT="yes"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270 test -z "$ac_cv_prog_PKGCONFIG_PRESENT" && ac_cv_prog_PKGCONFIG_PRESENT="no"
13273 PKGCONFIG_PRESENT=$ac_cv_prog_PKGCONFIG_PRESENT
13274 if test -n "$PKGCONFIG_PRESENT"; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG_PRESENT" >&5
13276 $as_echo "$PKGCONFIG_PRESENT" >&6; }
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13283 if test "z$PKGCONFIG_PRESENT" = "zyes" ; then
13284 if $PKG_CONFIG --atleast-pkgconfig-version 0.9 ; then
13285 PKGCONFIG_FOUND="yes"
13290 LIBXML_MIN_VERSION="2.7.4"
13291 LIBXML_CONFIG="xml2-config"
13296 # Check whether --with-libxml was given.
13297 if test "${with_libxml+set}" = set; then :
13298 withval=$with_libxml;
13302 # Check whether --with-libxml-src was given.
13303 if test "${with_libxml_src+set}" = set; then :
13304 withval=$with_libxml_src;
13308 if test "z$with_libxml" = "zno" -o "z$with_libxml_src" = "zno"; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
13310 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
13311 as_fn_error $? "libxml2 >= $LIBXML_MIN_VERSION is required for $XMLSEC_PACKAGE" "$LINENO" 5
13312 elif test "z$with_libxml_src" != "z" ; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
13314 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
13316 if cd "$with_libxml_src" ; then
13318 LIBXML_CONFIG=${SRC_DIR}/xml2-config
13319 LIBXML_LIBS="-L${SRC_DIR}/.libs -lxml2"
13320 LIBXML_CFLAGS="-I${SRC_DIR}/include"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
13324 $as_echo "yes (source)" >&6; }
13326 as_fn_error $? "libxml source dir not found (${with_libxml_src}), typo?" "$LINENO" 5
13328 elif test "z$with_libxml" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
13336 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13337 if test -n "$ac_tool_prefix"; then
13338 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13339 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13343 $as_echo_n "(cached) " >&6
13345 case $PKG_CONFIG in
13347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13369 if test -n "$PKG_CONFIG"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13371 $as_echo "$PKG_CONFIG" >&6; }
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13379 if test -z "$ac_cv_path_PKG_CONFIG"; then
13380 ac_pt_PKG_CONFIG=$PKG_CONFIG
13381 # Extract the first word of "pkg-config", so it can be a program name with args.
13382 set dummy pkg-config; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13386 $as_echo_n "(cached) " >&6
13388 case $ac_pt_PKG_CONFIG in
13390 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13412 if test -n "$ac_pt_PKG_CONFIG"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13414 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13420 if test "x$ac_pt_PKG_CONFIG" = x; then
13423 case $cross_compiling:$ac_tool_warned in
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13427 ac_tool_warned=yes ;;
13429 PKG_CONFIG=$ac_pt_PKG_CONFIG
13432 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13436 if test -n "$PKG_CONFIG"; then
13437 _pkg_min_version=0.9.0
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13439 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13440 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442 $as_echo "yes" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
13452 $as_echo_n "checking for LIBXML... " >&6; }
13454 if test -n "$LIBXML_CFLAGS"; then
13455 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
13456 elif test -n "$PKG_CONFIG"; then
13457 if test -n "$PKG_CONFIG" && \
13458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
13459 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
13461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462 test $ac_status = 0; }; then
13463 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
13464 test "x$?" != "x0" && pkg_failed=yes
13471 if test -n "$LIBXML_LIBS"; then
13472 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
13473 elif test -n "$PKG_CONFIG"; then
13474 if test -n "$PKG_CONFIG" && \
13475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
13476 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
13478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479 test $ac_status = 0; }; then
13480 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
13481 test "x$?" != "x0" && pkg_failed=yes
13491 if test $pkg_failed = yes; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13496 _pkg_short_errors_supported=yes
13498 _pkg_short_errors_supported=no
13500 if test $_pkg_short_errors_supported = yes; then
13501 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>&1`
13503 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>&1`
13505 # Put the nasty error message in config.log where it belongs
13506 echo "$LIBXML_PKG_ERRORS" >&5
13509 elif test $pkg_failed = untried; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13514 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
13515 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517 $as_echo "yes" >&6; }
13521 if test "z$LIBXML_FOUND" = "zno" ; then
13522 if test "z$with_libxml" != "zyes" ; then
13523 if test "z$with_libxml" != "z" ; then
13524 # Extract the first word of "$LIBXML_CONFIG", so it can be a program name with args.
13525 set dummy $LIBXML_CONFIG; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_LIBXML_CONFIG+:} false; then :
13529 $as_echo_n "(cached) " >&6
13531 case $LIBXML_CONFIG in
13533 ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 as_dummy="$with_libxml/bin:$PATH"
13538 for as_dir in $as_dummy
13541 test -z "$as_dir" && as_dir=.
13542 for ac_exec_ext in '' $ac_executable_extensions; do
13543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13544 ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
13556 if test -n "$LIBXML_CONFIG"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
13558 $as_echo "$LIBXML_CONFIG" >&6; }
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13566 # Extract the first word of "$LIBXML_CONFIG", so it can be a program name with args.
13567 set dummy $LIBXML_CONFIG; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_path_LIBXML_CONFIG+:} false; then :
13571 $as_echo_n "(cached) " >&6
13573 case $LIBXML_CONFIG in
13575 ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
13597 if test -n "$LIBXML_CONFIG"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
13599 $as_echo "$LIBXML_CONFIG" >&6; }
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 $LIBXML_CONFIG " >&5
13609 $as_echo_n "checking libxml2 $LIBXML_CONFIG ... " >&6; }
13610 if ! LIBXML_VERSION=`$LIBXML_CONFIG --version 2>/dev/null`; then
13611 as_fn_error $? "Could not find libxml2 anywhere." "$LINENO" 5
13613 vers=`echo $LIBXML_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13614 minvers=`echo $LIBXML_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13615 if test "$vers" -ge "$minvers" ; then
13616 LIBXML_LIBS="`$LIBXML_CONFIG --libs`"
13617 LIBXML_CFLAGS="`$LIBXML_CONFIG --cflags`"
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXML_VERSION')" >&5
13620 $as_echo "yes ('$LIBXML_VERSION')" >&6; }
13622 as_fn_error $? "You need at least libxml2 $LIBXML_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
13631 XMLSEC_NO_LIBXSLT="1"
13632 LIBXSLT_MIN_VERSION=1.0.20
13633 LIBXSLT_PC_FILE_COND="libxslt >= $LIBXSLT_MIN_VERSION"
13634 LIBXSLT_CONFIG="xslt-config"
13639 # Check whether --with-libxslt was given.
13640 if test "${with_libxslt+set}" = set; then :
13641 withval=$with_libxslt;
13645 # Check whether --with-libxslt-src was given.
13646 if test "${with_libxslt_src+set}" = set; then :
13647 withval=$with_libxslt_src;
13650 if test "z$with_libxslt" = "zno" -o "z$with_libxslt_src" = "zno" ; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
13652 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13655 LIBXSLT_FOUND="without"
13656 elif test "z$with_libxslt_src" != "z" ; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
13658 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
13660 if cd "$with_libxslt_src" ; then
13662 LIBXSLT_CONFIG=${SRC_DIR}/xslt-config
13663 LIBXSLT_LIBS="-L${SRC_DIR}/libxslt/.libs -lxslt"
13664 LIBXSLT_CFLAGS="-I${SRC_DIR}"
13665 LIBXSLT_FOUND="yes"
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
13668 $as_echo "yes (source)" >&6; }
13670 as_fn_error $? "libxslt source dir not found (${with_libxslt_src}), typo?" "$LINENO" 5
13672 elif test "z$with_libxslt" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXSLT" >&5
13676 $as_echo_n "checking for LIBXSLT... " >&6; }
13678 if test -n "$LIBXSLT_CFLAGS"; then
13679 pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
13680 elif test -n "$PKG_CONFIG"; then
13681 if test -n "$PKG_CONFIG" && \
13682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
13683 ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
13685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686 test $ac_status = 0; }; then
13687 pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
13688 test "x$?" != "x0" && pkg_failed=yes
13695 if test -n "$LIBXSLT_LIBS"; then
13696 pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
13697 elif test -n "$PKG_CONFIG"; then
13698 if test -n "$PKG_CONFIG" && \
13699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
13700 ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
13702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703 test $ac_status = 0; }; then
13704 pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
13705 test "x$?" != "x0" && pkg_failed=yes
13715 if test $pkg_failed = yes; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13719 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13720 _pkg_short_errors_supported=yes
13722 _pkg_short_errors_supported=no
13724 if test $_pkg_short_errors_supported = yes; then
13725 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>&1`
13727 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>&1`
13729 # Put the nasty error message in config.log where it belongs
13730 echo "$LIBXSLT_PKG_ERRORS" >&5
13733 elif test $pkg_failed = untried; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13738 LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
13739 LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13746 if test "z$LIBXSLT_FOUND" = "zno" ; then
13747 if test "z$with_libxslt" != "zyes" ; then
13748 if test "z$with_libxslt" != "z" ; then
13749 # Extract the first word of "$LIBXSLT_CONFIG", so it can be a program name with args.
13750 set dummy $LIBXSLT_CONFIG; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if ${ac_cv_path_LIBXSLT_CONFIG+:} false; then :
13754 $as_echo_n "(cached) " >&6
13756 case $LIBXSLT_CONFIG in
13758 ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 as_dummy="$with_libxslt/bin:$PATH"
13763 for as_dir in $as_dummy
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13769 ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
13781 if test -n "$LIBXSLT_CONFIG"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
13783 $as_echo "$LIBXSLT_CONFIG" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13791 # Extract the first word of "$LIBXSLT_CONFIG", so it can be a program name with args.
13792 set dummy $LIBXSLT_CONFIG; ac_word=$2
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if ${ac_cv_path_LIBXSLT_CONFIG+:} false; then :
13796 $as_echo_n "(cached) " >&6
13798 case $LIBXSLT_CONFIG in
13800 ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
13822 if test -n "$LIBXSLT_CONFIG"; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
13824 $as_echo "$LIBXSLT_CONFIG" >&6; }
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827 $as_echo "no" >&6; }
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
13834 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
13835 if ! LIBXSLT_VERSION=`$LIBXSLT_CONFIG --version 2>/dev/null`; then
13836 if test "z$with_libxslt" != "zyes" ; then
13837 as_fn_error $? "Unable to find libxslt at '$with_libxslt'" "$LINENO" 5
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13843 vers=`echo $LIBXSLT_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13844 minvers=`echo $LIBXSLT_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13845 if test "$vers" -ge "$minvers" ; then
13846 LIBXSLT_LIBS="`$LIBXSLT_CONFIG --libs`"
13847 LIBXSLT_CFLAGS="`$LIBXSLT_CONFIG --cflags`"
13848 LIBXSLT_FOUND="yes"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXSLT_VERSION')" >&5
13850 $as_echo "yes ('$LIBXSLT_VERSION')" >&6; }
13852 as_fn_error $? "You need at least libxslt $LIBXSLT_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
13857 if test "z$LIBXSLT_FOUND" = "zyes" ; then
13858 XMLSEC_NO_LIBXSLT="0"
13860 LIBXSLT_PC_FILE_COND=""
13861 LIBXSLT_MIN_VERSION=""
13862 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XSLT=1"
13872 XMLSEC_CRYPTO_LIST=""
13873 XMLSEC_CRYPTO_DISABLED_LIST=""
13875 ac_openssl_lib_dir="/usr/local/lib /usr/lib /usr/lib64 /usr/local /usr/local/ssl /usr/local/ssl/lib /usr/pkg"
13876 ac_openssl_inc_dir="/usr/local/include /usr/include /usr/local /usr/local/ssl /usr/pkg /usr/local/ssl/include"
13878 XMLSEC_NO_OPENSSL="1"
13879 OPENSSL_MIN_VERSION="0.9.8"
13883 OPENSSL_CRYPTO_LIB="$XMLSEC_PACKAGE-openssl"
13886 # Check whether --with-openssl was given.
13887 if test "${with_openssl+set}" = set; then :
13888 withval=$with_openssl;
13891 if test "z$with_openssl" = "zno" ; then
13892 OPENSSL_FOUND=without
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
13894 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 elif test "z$with_openssl" != "z" ; then
13899 *-*-mingw*) openssl_exlibs=;;
13900 *-*-osf5*) openssl_exlibs=;;
13901 *-*-openbsd*) openssl_exlibs=;;
13902 *-*-netbsd*) openssl_exlibs=;;
13903 #FIXME: check if lib "dl" is required
13904 *) openssl_exlibs=-ldl;;
13906 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$with_openssl/include"
13907 if test -f "$with_openssl/lib/libcrypto${XMLSEC_SHLIBSFX}" ; then
13908 OPENSSL_LIBS="-L$with_openssl/lib -lcrypto $openssl_exlibs"
13910 OPENSSL_LIBS="$with_openssl/lib/libcrypto.a $openssl_exlibs"
13912 OPENSSL_FOUND="yes"
13913 elif test "z$PKGCONFIG_FOUND" = "zyes" ; then
13914 if test "z$OPENSSL_VERSION" = "z" ; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13918 $as_echo_n "checking for OPENSSL... " >&6; }
13920 if test -n "$OPENSSL_CFLAGS"; then
13921 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13922 elif test -n "$PKG_CONFIG"; then
13923 if test -n "$PKG_CONFIG" && \
13924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5
13925 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5
13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }; then
13929 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.0" 2>/dev/null`
13930 test "x$?" != "x0" && pkg_failed=yes
13937 if test -n "$OPENSSL_LIBS"; then
13938 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13939 elif test -n "$PKG_CONFIG"; then
13940 if test -n "$PKG_CONFIG" && \
13941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5
13942 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }; then
13946 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.0" 2>/dev/null`
13947 test "x$?" != "x0" && pkg_failed=yes
13957 if test $pkg_failed = yes; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13962 _pkg_short_errors_supported=yes
13964 _pkg_short_errors_supported=no
13966 if test $_pkg_short_errors_supported = yes; then
13967 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
13969 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
13971 # Put the nasty error message in config.log where it belongs
13972 echo "$OPENSSL_PKG_ERRORS" >&5
13975 elif test $pkg_failed = untried; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13980 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13981 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13983 $as_echo "yes" >&6; }
13984 OPENSSL_VERSION="1.1.0"
13988 if test "z$OPENSSL_VERSION" = "z" ; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13992 $as_echo_n "checking for OPENSSL... " >&6; }
13994 if test -n "$OPENSSL_CFLAGS"; then
13995 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13996 elif test -n "$PKG_CONFIG"; then
13997 if test -n "$PKG_CONFIG" && \
13998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.0\""; } >&5
13999 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.0") 2>&5
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; }; then
14003 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.0" 2>/dev/null`
14004 test "x$?" != "x0" && pkg_failed=yes
14011 if test -n "$OPENSSL_LIBS"; then
14012 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14013 elif test -n "$PKG_CONFIG"; then
14014 if test -n "$PKG_CONFIG" && \
14015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.0\""; } >&5
14016 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.0") 2>&5
14018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14019 test $ac_status = 0; }; then
14020 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.0" 2>/dev/null`
14021 test "x$?" != "x0" && pkg_failed=yes
14031 if test $pkg_failed = yes; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14036 _pkg_short_errors_supported=yes
14038 _pkg_short_errors_supported=no
14040 if test $_pkg_short_errors_supported = yes; then
14041 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.0" 2>&1`
14043 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.0" 2>&1`
14045 # Put the nasty error message in config.log where it belongs
14046 echo "$OPENSSL_PKG_ERRORS" >&5
14049 elif test $pkg_failed = untried; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14054 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14055 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14057 $as_echo "yes" >&6; }
14058 OPENSSL_VERSION="1.0.0"
14062 if test "z$OPENSSL_VERSION" = "z" ; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14066 $as_echo_n "checking for OPENSSL... " >&6; }
14068 if test -n "$OPENSSL_CFLAGS"; then
14069 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14070 elif test -n "$PKG_CONFIG"; then
14071 if test -n "$PKG_CONFIG" && \
14072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
14073 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076 test $ac_status = 0; }; then
14077 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
14078 test "x$?" != "x0" && pkg_failed=yes
14085 if test -n "$OPENSSL_LIBS"; then
14086 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14087 elif test -n "$PKG_CONFIG"; then
14088 if test -n "$PKG_CONFIG" && \
14089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
14090 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
14092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093 test $ac_status = 0; }; then
14094 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
14095 test "x$?" != "x0" && pkg_failed=yes
14105 if test $pkg_failed = yes; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14110 _pkg_short_errors_supported=yes
14112 _pkg_short_errors_supported=no
14114 if test $_pkg_short_errors_supported = yes; then
14115 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
14117 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
14119 # Put the nasty error message in config.log where it belongs
14120 echo "$OPENSSL_PKG_ERRORS" >&5
14123 elif test $pkg_failed = untried; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14128 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14129 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14131 $as_echo "yes" >&6; }
14132 OPENSSL_VERSION="0.9.8"
14136 if test "z$OPENSSL_VERSION" = "z" ; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14140 $as_echo_n "checking for OPENSSL... " >&6; }
14142 if test -n "$OPENSSL_CFLAGS"; then
14143 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14144 elif test -n "$PKG_CONFIG"; then
14145 if test -n "$PKG_CONFIG" && \
14146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
14147 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
14149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150 test $ac_status = 0; }; then
14151 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
14152 test "x$?" != "x0" && pkg_failed=yes
14159 if test -n "$OPENSSL_LIBS"; then
14160 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14161 elif test -n "$PKG_CONFIG"; then
14162 if test -n "$PKG_CONFIG" && \
14163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
14164 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
14166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167 test $ac_status = 0; }; then
14168 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
14169 test "x$?" != "x0" && pkg_failed=yes
14179 if test $pkg_failed = yes; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14183 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14184 _pkg_short_errors_supported=yes
14186 _pkg_short_errors_supported=no
14188 if test $_pkg_short_errors_supported = yes; then
14189 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= $OPENSSL_MIN_VERSION" 2>&1`
14191 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= $OPENSSL_MIN_VERSION" 2>&1`
14193 # Put the nasty error message in config.log where it belongs
14194 echo "$OPENSSL_PKG_ERRORS" >&5
14197 elif test $pkg_failed = untried; then
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14202 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14203 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205 $as_echo "yes" >&6; }
14206 OPENSSL_VERSION="$OPENSSL_MIN_VERSION"
14210 if test "z$OPENSSL_VERSION" != "z" ; then
14211 OPENSSL_FOUND="yes"
14215 if test "z$OPENSSL_FOUND" = "zno" ; then
14216 OPENSSL_INCLUDES_FOUND="no"
14217 OPENSSL_LIBS_FOUND="no"
14219 for dir in $ac_openssl_inc_dir ; do
14220 if test -f $dir/openssl/ssl.h ; then
14221 if test "z$dir" = "z/usr/include" ; then
14222 OPENSSL_CFLAGS="$OPENSSL_CFLAGS "
14224 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$dir"
14226 OPENSSL_INCLUDES_FOUND="yes"
14231 for dir in $ac_openssl_lib_dir ; do
14232 if test -f $dir/libcrypto.a ; then
14233 if test "z$dir" = "z/usr/lib" ; then
14234 OPENSSL_LIBS="-lcrypto -ldl"
14236 OPENSSL_LIBS="-L$dir -lcrypto -ldl"
14238 OPENSSL_LIBS_FOUND="yes"
14239 ac_found_openssl_lib_dir=$dir
14244 if test "z$OPENSSL_INCLUDES_FOUND" = "zyes" -a "z$OPENSSL_LIBS_FOUND" = "zyes" ; then
14245 OPENSSL_FOUND="yes"
14249 if test "z$OPENSSL_FOUND" = "zyes" -a "z$OPENSSL_VERSION" = "z" ; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
14251 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
14253 OLD_CPPFLAGS=$CPPFLAGS
14254 CPPFLAGS="$OPENSSL_CFLAGS"
14256 if test "z$OPENSSL_VERSION" = "z" ; then
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 #include <openssl/opensslv.h>
14261 #if OPENSSL_VERSION_NUMBER >= 0x10100000L
14266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267 $EGREP "yes" >/dev/null 2>&1; then :
14269 OPENSSL_VERSION="1.1.0"
14280 if test "z$OPENSSL_VERSION" = "z" ; then
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14284 #include <openssl/opensslv.h>
14285 #if OPENSSL_VERSION_NUMBER >= 0x10000000L
14290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14291 $EGREP "yes" >/dev/null 2>&1; then :
14293 OPENSSL_VERSION="1.0.0"
14304 if test "z$OPENSSL_VERSION" = "z" ; then
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14308 #include <openssl/opensslv.h>
14309 #if OPENSSL_VERSION_NUMBER >= 0x00908000L
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315 $EGREP "yes" >/dev/null 2>&1; then :
14317 OPENSSL_VERSION="0.9.8"
14328 if test "z$OPENSSL_VERSION" = "z" ; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$OPENSSL_VERSION')" >&5
14333 $as_echo "yes ('$OPENSSL_VERSION')" >&6; }
14336 CPPFLAGS=$OLD_CPPFLAGS
14339 if test "z$OPENSSL_FOUND" = "zyes" ; then
14340 OLD_CPPFLAGS=$CPPFLAGS
14341 CPPFLAGS="$OPENSSL_CFLAGS"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14346 #include <openssl/opensslconf.h>
14347 #ifdef OPENSSL_NO_ECDSA
14352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14353 $EGREP "yes" >/dev/null 2>&1; then :
14355 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_NO_ECDSA=1"
14360 CPPFLAGS=$OLD_CPPFLAGS
14363 if test "z$OPENSSL_FOUND" = "zyes" ; then
14364 XMLSEC_NO_OPENSSL="0"
14365 if test "z$OPENSSL_VERSION" = "z0.9.8" ; then
14366 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_098=1 -DXMLSEC_NO_ECDSA=1 -DXMLSEC_NO_SHA256=1"
14368 if test "z$OPENSSL_VERSION" = "z1.0.0" ; then
14369 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_100=1"
14371 if test "z$OPENSSL_VERSION" = "z1.1.0" ; then
14372 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_110=1"
14374 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_CRYPTO_OPENSSL=1"
14375 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"
14377 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST openssl"
14380 if test "z$XMLSEC_NO_OPENSSL" == "z1"; then
14381 XMLSEC_NO_OPENSSL_TRUE=
14382 XMLSEC_NO_OPENSSL_FALSE='#'
14384 XMLSEC_NO_OPENSSL_TRUE='#'
14385 XMLSEC_NO_OPENSSL_FALSE=
14395 SEAMONKEY_MIN_VERSION="1.0"
14396 MOZILLA_MIN_VERSION="1.4"
14397 NSS_MIN_VERSION="3.9"
14398 NSPR_MIN_VERSION="4.4.1"
14401 NSS_LIBS_LIST="-lnss3 -lsmime3"
14402 NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4"
14403 NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss"
14405 NSPR_PACKAGE=mozilla-nspr
14406 NSS_PACKAGE=mozilla-nss
14410 # Check whether --with-nss was given.
14411 if test "${with_nss+set}" = set; then :
14416 # Check whether --with-nspr was given.
14417 if test "${with_nspr+set}" = set; then :
14418 withval=$with_nspr;
14422 # Check whether --with-seamonkey_ver was given.
14423 if test "${with_seamonkey_ver+set}" = set; then :
14424 withval=$with_seamonkey_ver;
14428 # Check whether --with-mozilla_ver was given.
14429 if test "${with_mozilla_ver+set}" = set; then :
14430 withval=$with_mozilla_ver;
14433 if test "z$with_nss" = "zno" -o "z$with_nspr" = "zno" ; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS libraries" >&5
14435 $as_echo_n "checking for NSS libraries... " >&6; }
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 $as_echo "no" >&6; }
14438 NSS_FOUND="without"
14439 elif test "z$with_nss" = "z" -a "z$with_nspr" = "z" -a "z$with_mozilla_ver" = "z" -a "z$with_seamonkey_ver" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
14440 if test "z$NSS_FOUND" = "zno" ; then
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14444 $as_echo_n "checking for NSS... " >&6; }
14446 if test -n "$NSS_CFLAGS"; then
14447 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14448 elif test -n "$PKG_CONFIG"; then
14449 if test -n "$PKG_CONFIG" && \
14450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"seamonkey-nspr >= \$NSPR_MIN_VERSION seamonkey-nss >= \$SEAMONKEY_MIN_VERSION\""; } >&5
14451 ($PKG_CONFIG --exists --print-errors "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION") 2>&5
14453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14454 test $ac_status = 0; }; then
14455 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>/dev/null`
14456 test "x$?" != "x0" && pkg_failed=yes
14463 if test -n "$NSS_LIBS"; then
14464 pkg_cv_NSS_LIBS="$NSS_LIBS"
14465 elif test -n "$PKG_CONFIG"; then
14466 if test -n "$PKG_CONFIG" && \
14467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"seamonkey-nspr >= \$NSPR_MIN_VERSION seamonkey-nss >= \$SEAMONKEY_MIN_VERSION\""; } >&5
14468 ($PKG_CONFIG --exists --print-errors "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION") 2>&5
14470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471 test $ac_status = 0; }; then
14472 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>/dev/null`
14473 test "x$?" != "x0" && pkg_failed=yes
14483 if test $pkg_failed = yes; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485 $as_echo "no" >&6; }
14487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14488 _pkg_short_errors_supported=yes
14490 _pkg_short_errors_supported=no
14492 if test $_pkg_short_errors_supported = yes; then
14493 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>&1`
14495 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>&1`
14497 # Put the nasty error message in config.log where it belongs
14498 echo "$NSS_PKG_ERRORS" >&5
14501 elif test $pkg_failed = untried; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14506 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14507 NSS_LIBS=$pkg_cv_NSS_LIBS
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14509 $as_echo "yes" >&6; }
14510 NSS_FOUND=yes NSPR_PACKAGE=seamonkey-nspr NSS_PACKAGE=seamonkey-nss
14513 if test "z$NSS_FOUND" = "zno" ; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14517 $as_echo_n "checking for NSS... " >&6; }
14519 if test -n "$NSS_CFLAGS"; then
14520 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14521 elif test -n "$PKG_CONFIG"; then
14522 if test -n "$PKG_CONFIG" && \
14523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
14524 ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
14526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14527 test $ac_status = 0; }; then
14528 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
14529 test "x$?" != "x0" && pkg_failed=yes
14536 if test -n "$NSS_LIBS"; then
14537 pkg_cv_NSS_LIBS="$NSS_LIBS"
14538 elif test -n "$PKG_CONFIG"; then
14539 if test -n "$PKG_CONFIG" && \
14540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
14541 ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
14543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544 test $ac_status = 0; }; then
14545 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
14546 test "x$?" != "x0" && pkg_failed=yes
14556 if test $pkg_failed = yes; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558 $as_echo "no" >&6; }
14560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14561 _pkg_short_errors_supported=yes
14563 _pkg_short_errors_supported=no
14565 if test $_pkg_short_errors_supported = yes; then
14566 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>&1`
14568 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>&1`
14570 # Put the nasty error message in config.log where it belongs
14571 echo "$NSS_PKG_ERRORS" >&5
14574 elif test $pkg_failed = untried; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 $as_echo "no" >&6; }
14579 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14580 NSS_LIBS=$pkg_cv_NSS_LIBS
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14582 $as_echo "yes" >&6; }
14583 NSS_FOUND=yes NSPR_PACKAGE=mozilla-nspr NSS_PACKAGE=mozilla-nss
14586 if test "z$NSS_FOUND" = "zno" ; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14590 $as_echo_n "checking for NSS... " >&6; }
14592 if test -n "$NSS_CFLAGS"; then
14593 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14594 elif test -n "$PKG_CONFIG"; then
14595 if test -n "$PKG_CONFIG" && \
14596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$NSPR_MIN_VERSION xulrunner-nss >= \$NSS_MIN_VERSION\""; } >&5
14597 ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION") 2>&5
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }; then
14601 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>/dev/null`
14602 test "x$?" != "x0" && pkg_failed=yes
14609 if test -n "$NSS_LIBS"; then
14610 pkg_cv_NSS_LIBS="$NSS_LIBS"
14611 elif test -n "$PKG_CONFIG"; then
14612 if test -n "$PKG_CONFIG" && \
14613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$NSPR_MIN_VERSION xulrunner-nss >= \$NSS_MIN_VERSION\""; } >&5
14614 ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION") 2>&5
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }; then
14618 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>/dev/null`
14619 test "x$?" != "x0" && pkg_failed=yes
14629 if test $pkg_failed = yes; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14633 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14634 _pkg_short_errors_supported=yes
14636 _pkg_short_errors_supported=no
14638 if test $_pkg_short_errors_supported = yes; then
14639 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>&1`
14641 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>&1`
14643 # Put the nasty error message in config.log where it belongs
14644 echo "$NSS_PKG_ERRORS" >&5
14647 elif test $pkg_failed = untried; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14652 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14653 NSS_LIBS=$pkg_cv_NSS_LIBS
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14655 $as_echo "yes" >&6; }
14656 NSS_FOUND=yes NSPR_PACKAGE=xulrunner-nspr NSS_PACKAGE=xulrunner-nss
14659 if test "z$NSS_FOUND" = "zno" ; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14663 $as_echo_n "checking for NSS... " >&6; }
14665 if test -n "$NSS_CFLAGS"; then
14666 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14667 elif test -n "$PKG_CONFIG"; then
14668 if test -n "$PKG_CONFIG" && \
14669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_MIN_VERSION nss >= \$NSS_MIN_VERSION\""; } >&5
14670 ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION") 2>&5
14672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673 test $ac_status = 0; }; then
14674 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>/dev/null`
14675 test "x$?" != "x0" && pkg_failed=yes
14682 if test -n "$NSS_LIBS"; then
14683 pkg_cv_NSS_LIBS="$NSS_LIBS"
14684 elif test -n "$PKG_CONFIG"; then
14685 if test -n "$PKG_CONFIG" && \
14686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_MIN_VERSION nss >= \$NSS_MIN_VERSION\""; } >&5
14687 ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION") 2>&5
14689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14690 test $ac_status = 0; }; then
14691 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>/dev/null`
14692 test "x$?" != "x0" && pkg_failed=yes
14702 if test $pkg_failed = yes; then
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14707 _pkg_short_errors_supported=yes
14709 _pkg_short_errors_supported=no
14711 if test $_pkg_short_errors_supported = yes; then
14712 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>&1`
14714 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>&1`
14716 # Put the nasty error message in config.log where it belongs
14717 echo "$NSS_PKG_ERRORS" >&5
14720 elif test $pkg_failed = untried; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14725 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14726 NSS_LIBS=$pkg_cv_NSS_LIBS
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14728 $as_echo "yes" >&6; }
14729 NSS_FOUND=yes NSPR_PACKAGE=nspr NSS_PACKAGE=nss
14734 if test "z$NSS_FOUND" = "zno" ; then
14735 if test "z$with_seamonkey_ver" != "z" ; then
14736 ac_mozilla_name=seamonkey-$with_seamonkey_ver
14737 elif test "z$with_mozilla_ver" != "z" ; then
14738 ac_mozilla_name=mozilla-$with_mozilla_ver
14740 ac_mozilla_name=mozilla-$MOZILLA_MIN_VERSION
14743 ac_nss_lib_dir="/usr/lib /usr/lib64 /usr/local/lib /usr/lib/$ac_mozilla_name /usr/local/lib/$ac_mozilla_name"
14744 ac_nss_inc_dir="/usr/include /usr/include/mozilla /usr/local/include /usr/local/include/mozilla /usr/include/$ac_mozilla_name /usr/local/include/$ac_mozilla_name"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr libraries >= $NSPR_MIN_VERSION" >&5
14747 $as_echo_n "checking for nspr libraries >= $NSPR_MIN_VERSION... " >&6; }
14748 NSPR_INCLUDES_FOUND="no"
14749 NSPR_LIBS_FOUND="no"
14753 if test "z$with_nspr" != "z" ; then
14754 NSPR_PREFIX="$with_nspr"
14755 NSPR_CFLAGS="-I$with_nspr/include -I$with_nspr/include/nspr"
14756 if test "z$with_gnu_ld" = "zyes" ; then
14757 NSPR_LIBS="-Wl,-rpath-link -Wl,$with_nspr/lib -L$with_nspr/lib $NSPR_LIBS_LIST"
14759 NSPR_LIBS="-L$with_nspr/lib $NSPR_LIBS_LIST"
14761 NSPR_INCLUDES_FOUND="yes"
14762 NSPR_LIBS_FOUND="yes"
14763 NSPR_PRINIT_H="$with_nspr/include/prinit.h"
14765 for dir in $ac_nss_inc_dir ; do
14766 if test -f $dir/nspr/prinit.h ; then
14767 if test "z$dir" = "z/usr/include" ; then
14770 NSPR_CFLAGS="-I$dir/nspr"
14772 NSPR_INCLUDES_FOUND="yes"
14773 NSPR_PRINIT_H="$dir/nspr/prinit.h"
14778 for dir in $ac_nss_lib_dir ; do
14779 if test -f $dir/libnspr4$shrext ; then
14780 if test "z$dir" = "z/usr/lib" ; then
14781 NSPR_LIBS="$NSPR_LIBS_LIST"
14783 if test "z$with_gnu_ld" = "zyes" ; then
14784 NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST"
14786 NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
14789 NSPR_LIBS_FOUND="yes"
14795 if test "z$NSPR_INCLUDES_FOUND" = "zyes" -a "z$NSPR_LIBS_FOUND" = "zyes" ; then
14796 OLD_CPPFLAGS=$CPPFLAGS
14797 CPPFLAGS="$NSPR_CFLAGS"
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 #include <prinit.h>
14807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14808 $EGREP "yes" >/dev/null 2>&1; then :
14819 CPPFLAGS="$OLD_CPPFLAGS"
14822 if test "z$NSPR_FOUND" = "zyes" ; then
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14824 $as_echo "yes" >&6; }
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14827 $as_echo "no" >&6; }
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss libraries >= $NSS_MIN_VERSION" >&5
14831 $as_echo_n "checking for nss libraries >= $NSS_MIN_VERSION... " >&6; }
14832 NSS_INCLUDES_FOUND="no"
14833 NSS_LIBS_FOUND="no"
14836 if test "z$with_nss" != "z" ; then
14837 NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss"
14838 if test "z$with_gnu_ld" = "zyes" ; then
14839 NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST"
14841 NSS_LIBS="$NSS_LIBS -L$with_nss/lib $NSS_LIBS_LIST"
14843 NSS_INCLUDES_FOUND="yes"
14844 NSS_LIBS_FOUND="yes"
14845 NSS_NSS_H="$with_nss/include/nss.h"
14847 for dir in $ac_nss_inc_dir ; do
14848 if test -f $dir/nss/nss.h ; then
14849 if test "z$dir" = "z/usr/include" ; then
14850 NSS_CFLAGS="$NSS_CFLAGS"
14852 NSS_CFLAGS="$NSS_CFLAGS -I$dir/nss"
14854 NSS_INCLUDES_FOUND="yes"
14855 NSS_NSS_H="$dir/nss/nss.h"
14860 for dir in $ac_nss_lib_dir ; do
14861 if test -f $dir/libnss3$shrext ; then
14862 if test "z$dir" = "z/usr/lib" ; then
14863 NSS_LIBS="$NSS_LIBS_LIST"
14865 if test "z$with_gnu_ld" = "zyes" ; then
14866 NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST"
14868 NSS_LIBS="-L$dir $NSS_LIBS_LIST"
14871 NSS_LIBS_FOUND="yes"
14877 if test "z$NSS_INCLUDES_FOUND" = "zyes" -a "z$NSS_LIBS_FOUND" = "zyes" ; then
14878 OLD_CPPFLAGS=$CPPFLAGS
14879 CPPFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14884 #if NSS_VMAJOR >= 3 && NSS_VMINOR >= 2
14889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14890 $EGREP "yes" >/dev/null 2>&1; then :
14901 CPPFLAGS="$OLD_CPPFLAGS"
14904 if test "z$NSS_FOUND" = "zyes" ; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14906 $as_echo "yes" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14912 if test "z$NSPR_FOUND" = "zyes" -a "z$NSS_FOUND" = "zyes" ; then
14913 NSS_CFLAGS="$NSS_CFLAGS $NSPR_CFLAGS"
14914 NSS_LIBS="$NSS_LIBS $NSPR_LIBS"
14915 elif test "z$NSPR_FOUND" != "zyes" -a "z$NSS_FOUND" = "zyes" ; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NSPR library is required for NSS" >&5
14918 $as_echo "NSPR library is required for NSS" >&6; }
14922 if test "z$NSS_FOUND" = "zyes" ; then
14924 NSS_CFLAGS="$NSS_CFLAGS -DXMLSEC_CRYPTO_NSS=1"
14925 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST nss"
14927 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST nss"
14930 if test "z$XMLSEC_NO_NSS" = "z1"; then
14931 XMLSEC_NO_NSS_TRUE=
14932 XMLSEC_NO_NSS_FALSE='#'
14934 XMLSEC_NO_NSS_TRUE='#'
14935 XMLSEC_NO_NSS_FALSE=
14949 GCRYPT_CONFIG="libgcrypt-config"
14950 XMLSEC_NO_GCRYPT="1"
14951 GCRYPT_MIN_VERSION="1.4.0"
14955 GCRYPT_CRYPTO_LIB="$XMLSEC_PACKAGE-gcrypt"
14958 # Check whether --with-gcrypt was given.
14959 if test "${with_gcrypt+set}" = set; then :
14960 withval=$with_gcrypt;
14963 if test "z$with_gcrypt" = "zno" ; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcrypt libraries >= $GCRYPT_MIN_VERSION" >&5
14965 $as_echo_n "checking for gcrypt libraries >= $GCRYPT_MIN_VERSION... " >&6; }
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14967 $as_echo "no" >&6; }
14968 GCRYPT_FOUND="without"
14969 elif test "z$with_gcrypt" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCRYPT" >&5
14973 $as_echo_n "checking for GCRYPT... " >&6; }
14975 if test -n "$GCRYPT_CFLAGS"; then
14976 pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
14977 elif test -n "$PKG_CONFIG"; then
14978 if test -n "$PKG_CONFIG" && \
14979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
14980 ($PKG_CONFIG --exists --print-errors "gcrypt >= $GCRYPT_MIN_VERSION") 2>&5
14982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14983 test $ac_status = 0; }; then
14984 pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "gcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
14985 test "x$?" != "x0" && pkg_failed=yes
14992 if test -n "$GCRYPT_LIBS"; then
14993 pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
14994 elif test -n "$PKG_CONFIG"; then
14995 if test -n "$PKG_CONFIG" && \
14996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
14997 ($PKG_CONFIG --exists --print-errors "gcrypt >= $GCRYPT_MIN_VERSION") 2>&5
14999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15000 test $ac_status = 0; }; then
15001 pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "gcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15002 test "x$?" != "x0" && pkg_failed=yes
15012 if test $pkg_failed = yes; then
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15017 _pkg_short_errors_supported=yes
15019 _pkg_short_errors_supported=no
15021 if test $_pkg_short_errors_supported = yes; then
15022 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15024 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15026 # Put the nasty error message in config.log where it belongs
15027 echo "$GCRYPT_PKG_ERRORS" >&5
15030 elif test $pkg_failed = untried; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032 $as_echo "no" >&6; }
15035 GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
15036 GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15042 if test "z$GCRYPT_FOUND" = "zno" ; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCRYPT" >&5
15046 $as_echo_n "checking for GCRYPT... " >&6; }
15048 if test -n "$GCRYPT_CFLAGS"; then
15049 pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
15050 elif test -n "$PKG_CONFIG"; then
15051 if test -n "$PKG_CONFIG" && \
15052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
15053 ($PKG_CONFIG --exists --print-errors "libgcrypt >= $GCRYPT_MIN_VERSION") 2>&5
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056 test $ac_status = 0; }; then
15057 pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15058 test "x$?" != "x0" && pkg_failed=yes
15065 if test -n "$GCRYPT_LIBS"; then
15066 pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
15067 elif test -n "$PKG_CONFIG"; then
15068 if test -n "$PKG_CONFIG" && \
15069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
15070 ($PKG_CONFIG --exists --print-errors "libgcrypt >= $GCRYPT_MIN_VERSION") 2>&5
15072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15073 test $ac_status = 0; }; then
15074 pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15075 test "x$?" != "x0" && pkg_failed=yes
15085 if test $pkg_failed = yes; then
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087 $as_echo "no" >&6; }
15089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15090 _pkg_short_errors_supported=yes
15092 _pkg_short_errors_supported=no
15094 if test $_pkg_short_errors_supported = yes; then
15095 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15097 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15099 # Put the nasty error message in config.log where it belongs
15100 echo "$GCRYPT_PKG_ERRORS" >&5
15103 elif test $pkg_failed = untried; then
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15108 GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
15109 GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15111 $as_echo "yes" >&6; }
15116 if test "z$GCRYPT_FOUND" = "zno" ; then
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCRYPT" >&5
15120 $as_echo_n "checking for GCRYPT... " >&6; }
15122 if test -n "$GCRYPT_CFLAGS"; then
15123 pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
15124 elif test -n "$PKG_CONFIG"; then
15125 if test -n "$PKG_CONFIG" && \
15126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt11 >= \$GCRYPT_MIN_VERSION\""; } >&5
15127 ($PKG_CONFIG --exists --print-errors "libgcrypt11 >= $GCRYPT_MIN_VERSION") 2>&5
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130 test $ac_status = 0; }; then
15131 pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15132 test "x$?" != "x0" && pkg_failed=yes
15139 if test -n "$GCRYPT_LIBS"; then
15140 pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
15141 elif test -n "$PKG_CONFIG"; then
15142 if test -n "$PKG_CONFIG" && \
15143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt11 >= \$GCRYPT_MIN_VERSION\""; } >&5
15144 ($PKG_CONFIG --exists --print-errors "libgcrypt11 >= $GCRYPT_MIN_VERSION") 2>&5
15146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15147 test $ac_status = 0; }; then
15148 pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15149 test "x$?" != "x0" && pkg_failed=yes
15159 if test $pkg_failed = yes; then
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15164 _pkg_short_errors_supported=yes
15166 _pkg_short_errors_supported=no
15168 if test $_pkg_short_errors_supported = yes; then
15169 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>&1`
15171 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>&1`
15173 # Put the nasty error message in config.log where it belongs
15174 echo "$GCRYPT_PKG_ERRORS" >&5
15177 elif test $pkg_failed = untried; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15179 $as_echo "no" >&6; }
15182 GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
15183 GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15185 $as_echo "yes" >&6; }
15191 if test "z$GCRYPT_FOUND" = "zno" ; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcrypt libraries >= $GCRYPT_MIN_VERSION" >&5
15193 $as_echo_n "checking for gcrypt libraries >= $GCRYPT_MIN_VERSION... " >&6; }
15194 if test "z$with_gcrypt" != "z" ; then
15195 GCRYPT_CONFIG=$with_gcrypt/bin/$GCRYPT_CONFIG
15197 if ! $GCRYPT_CONFIG --version > /dev/null 2>&1 ; then
15198 if test "z$with_gcrypt" != "z" ; then
15199 as_fn_error $? "Unable to find gcrypt at '$with_gcrypt'" "$LINENO" 5
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 $as_echo "no" >&6; }
15205 vers=`$GCRYPT_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15206 minvers=`echo $GCRYPT_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15207 if test "$vers" -ge "$minvers" ; then
15208 GCRYPT_CFLAGS="$GCRYPT_CFLAGS `$GCRYPT_CONFIG --cflags`"
15209 GCRYPT_LIBS="$GCRYPT_LIBS `$GCRYPT_CONFIG --libs`"
15212 as_fn_error $? "You need at least gcrypt $GCRYPT_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
15217 if test "z$GCRYPT_FOUND" = "zyes" ; then
15218 XMLSEC_NO_GCRYPT="0"
15219 GCRYPT_CFLAGS="$GCRYPT_CFLAGS -DXMLSEC_CRYPTO_GCRYPT=1"
15220 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST gcrypt"
15222 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST gcrypt"
15225 if test "z$XMLSEC_NO_GCRYPT" = "z1"; then
15226 XMLSEC_NO_GCRYPT_TRUE=
15227 XMLSEC_NO_GCRYPT_FALSE='#'
15229 XMLSEC_NO_GCRYPT_TRUE='#'
15230 XMLSEC_NO_GCRYPT_FALSE=
15240 GNUTLS_CONFIG="libgnutls-config"
15241 XMLSEC_NO_GNUTLS="1"
15242 GNUTLS_MIN_VERSION="2.8.0"
15246 GNUTLS_CRYPTO_LIB="$XMLSEC_PACKAGE-gnutls"
15249 # Check whether --with-gnutls was given.
15250 if test "${with_gnutls+set}" = set; then :
15251 withval=$with_gnutls;
15254 if test "z$with_gnutls" = "zno" ; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
15256 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258 $as_echo "no" >&6; }
15259 GNUTLS_FOUND="without"
15260 elif test "z$with_gnutls" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15264 $as_echo_n "checking for GNUTLS... " >&6; }
15266 if test -n "$GNUTLS_CFLAGS"; then
15267 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15268 elif test -n "$PKG_CONFIG"; then
15269 if test -n "$PKG_CONFIG" && \
15270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15271 ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_MIN_VERSION") 2>&5
15273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15274 test $ac_status = 0; }; then
15275 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15276 test "x$?" != "x0" && pkg_failed=yes
15283 if test -n "$GNUTLS_LIBS"; then
15284 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15285 elif test -n "$PKG_CONFIG"; then
15286 if test -n "$PKG_CONFIG" && \
15287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15288 ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_MIN_VERSION") 2>&5
15290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15291 test $ac_status = 0; }; then
15292 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15293 test "x$?" != "x0" && pkg_failed=yes
15303 if test $pkg_failed = yes; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15305 $as_echo "no" >&6; }
15307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15308 _pkg_short_errors_supported=yes
15310 _pkg_short_errors_supported=no
15312 if test $_pkg_short_errors_supported = yes; then
15313 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15315 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15317 # Put the nasty error message in config.log where it belongs
15318 echo "$GNUTLS_PKG_ERRORS" >&5
15321 elif test $pkg_failed = untried; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15323 $as_echo "no" >&6; }
15326 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15327 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15329 $as_echo "yes" >&6; }
15332 if test "z$GNUTLS_FOUND" = "zno" ; then
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15336 $as_echo_n "checking for GNUTLS... " >&6; }
15338 if test -n "$GNUTLS_CFLAGS"; then
15339 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15340 elif test -n "$PKG_CONFIG"; then
15341 if test -n "$PKG_CONFIG" && \
15342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15343 ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
15345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15346 test $ac_status = 0; }; then
15347 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15348 test "x$?" != "x0" && pkg_failed=yes
15355 if test -n "$GNUTLS_LIBS"; then
15356 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15357 elif test -n "$PKG_CONFIG"; then
15358 if test -n "$PKG_CONFIG" && \
15359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15360 ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
15362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15363 test $ac_status = 0; }; then
15364 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15365 test "x$?" != "x0" && pkg_failed=yes
15375 if test $pkg_failed = yes; then
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15380 _pkg_short_errors_supported=yes
15382 _pkg_short_errors_supported=no
15384 if test $_pkg_short_errors_supported = yes; then
15385 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15387 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15389 # Put the nasty error message in config.log where it belongs
15390 echo "$GNUTLS_PKG_ERRORS" >&5
15393 elif test $pkg_failed = untried; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 $as_echo "no" >&6; }
15398 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15399 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15401 $as_echo "yes" >&6; }
15407 if test "z$GNUTLS_FOUND" = "zno" ; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
15409 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
15410 if test "z$with_gnutls" != "z" ; then
15411 GNUTLS_CONFIG=$with_gnutls/bin/$GNUTLS_CONFIG
15413 if ! $GNUTLS_CONFIG --version > /dev/null 2>&1 ; then
15414 if test "z$with_gnutls" != "z" ; then
15415 as_fn_error $? "Unable to find gnutls at '$with_gnutls'" "$LINENO" 5
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15421 vers=`$GNUTLS_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15422 minvers=`echo $GNUTLS_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15423 if test "$vers" -ge "$minvers" ; then
15424 GNUTLS_CFLAGS="$GNUTLS_CFLAGS `$GNUTLS_CONFIG --cflags`"
15425 GNUTLS_LIBS="$GNUTLS_LIBS `$GNUTLS_CONFIG --libs`"
15428 as_fn_error $? "You need at least gnutls $GNUTLS_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
15433 if test "z$GNUTLS_FOUND" = "zyes" ; then
15434 XMLSEC_NO_GNUTLS="0"
15435 GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_CRYPTO_GNUTLS=1"
15436 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST gnutls"
15438 if test "z$GCRYPT_FOUND" != "zyes" ; then
15439 as_fn_error $? "xmlsec-gnutls library requires xmlsec-gcrypt library which is disabled or missing" "$LINENO" 5
15443 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST gnutls"
15446 if test "z$XMLSEC_NO_GNUTLS" = "z1"; then
15447 XMLSEC_NO_GNUTLS_TRUE=
15448 XMLSEC_NO_GNUTLS_FALSE='#'
15450 XMLSEC_NO_GNUTLS_TRUE='#'
15451 XMLSEC_NO_GNUTLS_FALSE=
15461 XMLSEC_NO_MSCRYPTO="1"
15464 MSCRYPTO_CRYPTO_LIB="$XMLSEC_PACKAGE-mscrypto"
15465 MSCRYPTO_ENABLE='none'
15466 # Check whether --enable-mscrypto was given.
15467 if test "${enable_mscrypto+set}" = set; then :
15468 enableval=$enable_mscrypto; MSCRYPTO_ENABLE=$enableval
15471 if test "z$MSCRYPTO_ENABLE" != "zyes" ; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
15473 $as_echo_n "checking for mscrypto libraries... " >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
15475 $as_echo "$MSCRYPTO_ENABLE" >&6; }
15478 LIBS="$LIBS -lcrypt32"
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
15480 $as_echo_n "checking for mscrypto libraries... " >&6; }
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15484 #include <windows.h>
15485 #include <wincrypt.h>
15490 int main () { CertOpenStore(0,0,0,0,0);; return(0); }
15496 if ac_fn_c_try_link "$LINENO"; then :
15499 MSCRYPTO_ENABLE="no"
15501 rm -f core conftest.err conftest.$ac_objext \
15502 conftest$ac_exeext conftest.$ac_ext
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
15504 $as_echo "$MSCRYPTO_ENABLE" >&6; }
15508 if test "z$MSCRYPTO_ENABLE" = "zyes" ; then
15509 XMLSEC_NO_MSCRYPTO="0"
15511 MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1"
15514 MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';;
15516 MSCRYPTO_LIBS="-lcrypt32";;
15519 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST mscrypto"
15521 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST mscrypto"
15524 if test "z$XMLSEC_NO_MSCRYPTO" = "z1"; then
15525 XMLSEC_NO_MSCRYPTO_TRUE=
15526 XMLSEC_NO_MSCRYPTO_FALSE='#'
15528 XMLSEC_NO_MSCRYPTO_TRUE='#'
15529 XMLSEC_NO_MSCRYPTO_FALSE=
15538 XMLSEC_DEFAULT_CRYPTO=""
15539 XMLSEC_CRYPTO_LIB=""
15540 XMLSEC_CRYPTO_CFLAGS=""
15541 XMLSEC_CRYPTO_LIBS=""
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default crypto library" >&5
15543 $as_echo_n "checking for default crypto library... " >&6; }
15545 # Check whether --with-default_crypto was given.
15546 if test "${with_default_crypto+set}" = set; then :
15547 withval=$with_default_crypto;
15551 # check the argument
15552 case "z$with_default_crypto" in
15554 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
15555 XMLSEC_DEFAULT_CRYPTO="mscrypto"
15557 as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15561 if test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
15562 XMLSEC_DEFAULT_CRYPTO="openssl"
15564 as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15568 if test "z$XMLSEC_NO_NSS" != "z1" ; then
15569 XMLSEC_DEFAULT_CRYPTO="nss"
15571 as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15575 if test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
15576 XMLSEC_DEFAULT_CRYPTO="gnutls"
15578 as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15582 if test "z$XMLSEC_NO_GCRYPT" != "z1" ; then
15583 XMLSEC_DEFAULT_CRYPTO="gcrypt"
15585 as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15589 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
15590 XMLSEC_DEFAULT_CRYPTO="mscrypto"
15591 elif test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
15592 XMLSEC_DEFAULT_CRYPTO="openssl"
15593 elif test "z$XMLSEC_NO_NSS" != "z1" ; then
15594 XMLSEC_DEFAULT_CRYPTO="nss"
15595 elif test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
15596 XMLSEC_DEFAULT_CRYPTO="gnutls"
15597 elif test "z$XMLSEC_NO_GCRYPT" != "z1" ; then
15598 XMLSEC_DEFAULT_CRYPTO="gcrypt"
15600 as_fn_error $? "At least one crypto library should exist for $XMLSEC_PACKAGE" "$LINENO" 5
15604 as_fn_error $? "The value '$with_default_crypto' is not a recongnized crypto library name" "$LINENO" 5
15608 case "$XMLSEC_DEFAULT_CRYPTO" in
15610 XMLSEC_CRYPTO_LIB="$MSCRYPTO_CRYPTO_LIB"
15611 XMLSEC_CRYPTO_CFLAGS="$MSCRYPTO_CFLAGS"
15612 XMLSEC_CRYPTO_LIBS="$MSCRYPTO_LIBS"
15615 XMLSEC_CRYPTO_LIB="$OPENSSL_CRYPTO_LIB"
15616 XMLSEC_CRYPTO_CFLAGS="$OPENSSL_CFLAGS"
15617 XMLSEC_CRYPTO_LIBS="$OPENSSL_LIBS"
15620 XMLSEC_CRYPTO_LIB="$NSS_CRYPTO_LIB"
15621 XMLSEC_CRYPTO_CFLAGS="$NSS_CFLAGS"
15622 XMLSEC_CRYPTO_LIBS="$NSS_LIBS"
15625 XMLSEC_CRYPTO_LIB="$GNUTLS_CRYPTO_LIB"
15626 XMLSEC_CRYPTO_CFLAGS="$GNUTLS_CFLAGS"
15627 XMLSEC_CRYPTO_LIBS="$GNUTLS_LIBS"
15630 XMLSEC_CRYPTO_LIB="$GCRYPT_CRYPTO_LIB"
15631 XMLSEC_CRYPTO_CFLAGS="$GCRYPT_CFLAGS"
15632 XMLSEC_CRYPTO_LIBS="$GCRYPT_LIBS"
15635 as_fn_error $? "The value \"$XMLSEC_DEFAULT_CRYPTO\" is not a recongnized crypto library name" "$LINENO" 5
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$XMLSEC_DEFAULT_CRYPTO')" >&5
15639 $as_echo "yes ('$XMLSEC_DEFAULT_CRYPTO')" >&6; }
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 support" >&5
15642 $as_echo_n "checking for MD5 support... " >&6; }
15643 # Check whether --enable-md5 was given.
15644 if test "${enable_md5+set}" = set; then :
15645 enableval=$enable_md5;
15648 if test "z$enable_md5" = "zno" ; then
15649 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_MD5=1"
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15656 $as_echo "yes" >&6; }
15658 if test "z$XMLSEC_NO_MD5" = "z1"; then
15659 XMLSEC_NO_MD5_TRUE=
15660 XMLSEC_NO_MD5_FALSE='#'
15662 XMLSEC_NO_MD5_TRUE='#'
15663 XMLSEC_NO_MD5_FALSE=
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RIPEMD-160 support" >&5
15669 $as_echo_n "checking for RIPEMD-160 support... " >&6; }
15670 # Check whether --enable-ripemd160 was given.
15671 if test "${enable_ripemd160+set}" = set; then :
15672 enableval=$enable_ripemd160;
15675 if test "z$enable_ripemd160" = "zno" ; then
15676 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RIPEMD160=1"
15677 XMLSEC_NO_RIPEMD160="1"
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679 $as_echo "no" >&6; }
15681 XMLSEC_NO_RIPEMD160="0"
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15685 if test "z$XMLSEC_NO_RIPEMD160" = "z1"; then
15686 XMLSEC_NO_RIPEMD160_TRUE=
15687 XMLSEC_NO_RIPEMD160_FALSE='#'
15689 XMLSEC_NO_RIPEMD160_TRUE='#'
15690 XMLSEC_NO_RIPEMD160_FALSE=
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 support" >&5
15696 $as_echo_n "checking for SHA1 support... " >&6; }
15697 # Check whether --enable-sha1 was given.
15698 if test "${enable_sha1+set}" = set; then :
15699 enableval=$enable_sha1;
15702 if test "z$enable_sha1" = "zno" ; then
15703 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA1=1"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 $as_echo "no" >&6; }
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15710 $as_echo "yes" >&6; }
15712 if test "z$XMLSEC_NO_SHA1" = "z1"; then
15713 XMLSEC_NO_SHA1_TRUE=
15714 XMLSEC_NO_SHA1_FALSE='#'
15716 XMLSEC_NO_SHA1_TRUE='#'
15717 XMLSEC_NO_SHA1_FALSE=
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224 support" >&5
15723 $as_echo_n "checking for SHA224 support... " >&6; }
15724 # Check whether --enable-sha224 was given.
15725 if test "${enable_sha224+set}" = set; then :
15726 enableval=$enable_sha224;
15729 if test "z$enable_sha224" = "zno" ; then
15730 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA224=1"
15731 XMLSEC_NO_SHA224="1"
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15733 $as_echo "no" >&6; }
15735 XMLSEC_NO_SHA224="0"
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737 $as_echo "yes" >&6; }
15739 if test "z$XMLSEC_NO_SHA224" = "z1"; then
15740 XMLSEC_NO_SHA224_TRUE=
15741 XMLSEC_NO_SHA224_FALSE='#'
15743 XMLSEC_NO_SHA224_TRUE='#'
15744 XMLSEC_NO_SHA224_FALSE=
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 support" >&5
15750 $as_echo_n "checking for SHA256 support... " >&6; }
15751 # Check whether --enable-sha256 was given.
15752 if test "${enable_sha256+set}" = set; then :
15753 enableval=$enable_sha256;
15756 if test "z$enable_sha256" = "zno" ; then
15757 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA256=1"
15758 XMLSEC_NO_SHA256="1"
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15760 $as_echo "no" >&6; }
15762 XMLSEC_NO_SHA256="0"
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15764 $as_echo "yes" >&6; }
15766 if test "z$XMLSEC_NO_SHA256" = "z1"; then
15767 XMLSEC_NO_SHA256_TRUE=
15768 XMLSEC_NO_SHA256_FALSE='#'
15770 XMLSEC_NO_SHA256_TRUE='#'
15771 XMLSEC_NO_SHA256_FALSE=
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA384 support" >&5
15777 $as_echo_n "checking for SHA384 support... " >&6; }
15778 # Check whether --enable-sha384 was given.
15779 if test "${enable_sha384+set}" = set; then :
15780 enableval=$enable_sha384;
15783 if test "z$enable_sha384" = "zno" ; then
15784 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA384=1"
15785 XMLSEC_NO_SHA384="1"
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15789 XMLSEC_NO_SHA384="0"
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15791 $as_echo "yes" >&6; }
15793 if test "z$XMLSEC_NO_SHA384" = "z1"; then
15794 XMLSEC_NO_SHA384_TRUE=
15795 XMLSEC_NO_SHA384_FALSE='#'
15797 XMLSEC_NO_SHA384_TRUE='#'
15798 XMLSEC_NO_SHA384_FALSE=
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 support" >&5
15804 $as_echo_n "checking for SHA512 support... " >&6; }
15805 # Check whether --enable-sha512 was given.
15806 if test "${enable_sha512+set}" = set; then :
15807 enableval=$enable_sha512;
15810 if test "z$enable_sha512" = "zno" ; then
15811 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA512=1"
15812 XMLSEC_NO_SHA512="1"
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15816 XMLSEC_NO_SHA512="0"
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15820 if test "z$XMLSEC_NO_SHA512" = "z1"; then
15821 XMLSEC_NO_SHA512_TRUE=
15822 XMLSEC_NO_SHA512_FALSE='#'
15824 XMLSEC_NO_SHA512_TRUE='#'
15825 XMLSEC_NO_SHA512_FALSE=
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC support" >&5
15832 $as_echo_n "checking for HMAC support... " >&6; }
15833 # Check whether --enable-hmac was given.
15834 if test "${enable_hmac+set}" = set; then :
15835 enableval=$enable_hmac;
15838 if test "z$enable_hmac" = "zno" ; then
15839 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_HMAC=1"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15846 $as_echo "yes" >&6; }
15848 if test "z$XMLSEC_NO_HMAC" = "z1"; then
15849 XMLSEC_NO_HMAC_TRUE=
15850 XMLSEC_NO_HMAC_FALSE='#'
15852 XMLSEC_NO_HMAC_TRUE='#'
15853 XMLSEC_NO_HMAC_FALSE=
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA support" >&5
15859 $as_echo_n "checking for DSA support... " >&6; }
15860 # Check whether --enable-dsa was given.
15861 if test "${enable_dsa+set}" = set; then :
15862 enableval=$enable_dsa;
15865 if test "z$enable_dsa" = "zno" ; then
15866 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DSA=1"
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15869 $as_echo "no" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 $as_echo "yes" >&6; }
15875 if test "z$XMLSEC_NO_DSA" = "z1"; then
15876 XMLSEC_NO_DSA_TRUE=
15877 XMLSEC_NO_DSA_FALSE='#'
15879 XMLSEC_NO_DSA_TRUE='#'
15880 XMLSEC_NO_DSA_FALSE=
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA support" >&5
15886 $as_echo_n "checking for RSA support... " >&6; }
15887 # Check whether --enable-rsa was given.
15888 if test "${enable_rsa+set}" = set; then :
15889 enableval=$enable_rsa;
15892 if test "z$enable_rsa" = "zno" ; then
15893 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RSA=1"
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900 $as_echo "yes" >&6; }
15902 if test "z$XMLSEC_NO_RSA" = "z1"; then
15903 XMLSEC_NO_RSA_TRUE=
15904 XMLSEC_NO_RSA_FALSE='#'
15906 XMLSEC_NO_RSA_TRUE='#'
15907 XMLSEC_NO_RSA_FALSE=
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x509 support" >&5
15913 $as_echo_n "checking for x509 support... " >&6; }
15914 # Check whether --enable-x509 was given.
15915 if test "${enable_x509+set}" = set; then :
15916 enableval=$enable_x509;
15919 if test "z$enable_x509" = "zno" ; then
15920 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_X509=1"
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927 $as_echo "yes" >&6; }
15929 if test "z$XMLSEC_NO_X509" = "z1"; then
15930 XMLSEC_NO_X509_TRUE=
15931 XMLSEC_NO_X509_FALSE='#'
15933 XMLSEC_NO_X509_TRUE='#'
15934 XMLSEC_NO_X509_FALSE=
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES support" >&5
15940 $as_echo_n "checking for DES support... " >&6; }
15941 # Check whether --enable-des was given.
15942 if test "${enable_des+set}" = set; then :
15943 enableval=$enable_des;
15946 if test "z$enable_des" = "zno" ; then
15947 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DES=1"
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15950 $as_echo "no" >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15954 $as_echo "yes" >&6; }
15956 if test "z$XMLSEC_NO_DES" = "z1"; then
15957 XMLSEC_NO_DES_TRUE=
15958 XMLSEC_NO_DES_FALSE='#'
15960 XMLSEC_NO_DES_TRUE='#'
15961 XMLSEC_NO_DES_FALSE=
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES support" >&5
15967 $as_echo_n "checking for AES support... " >&6; }
15968 # Check whether --enable-aes was given.
15969 if test "${enable_aes+set}" = set; then :
15970 enableval=$enable_aes;
15973 if test "z$enable_aes" = "zno" ; then
15974 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_AES=1"
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 $as_echo "no" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15981 $as_echo "yes" >&6; }
15983 if test "z$XMLSEC_NO_AES" = "z1"; then
15984 XMLSEC_NO_AES_TRUE=
15985 XMLSEC_NO_AES_FALSE='#'
15987 XMLSEC_NO_AES_TRUE='#'
15988 XMLSEC_NO_AES_FALSE=
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST support" >&5
15994 $as_echo_n "checking for GOST support... " >&6; }
15995 # Check whether --enable-gost was given.
15996 if test "${enable_gost+set}" = set; then :
15997 enableval=$enable_gost;
16000 if test "z$enable_gost" != "zyes" ; then
16001 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_GOST=1"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004 $as_echo "no" >&6; }
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16010 if test "z$XMLSEC_NO_GOST" = "z1"; then
16011 XMLSEC_NO_GOST_TRUE=
16012 XMLSEC_NO_GOST_FALSE='#'
16014 XMLSEC_NO_GOST_TRUE='#'
16015 XMLSEC_NO_GOST_FALSE=
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPERMIENTAL GOST2012 support" >&5
16022 $as_echo_n "checking for EXPERMIENTAL GOST2012 support... " >&6; }
16023 # Check whether --enable-gost was given.
16024 if test "${enable_gost+set}" = set; then :
16025 enableval=$enable_gost;
16028 if test "z$enable_gost2012" != "zyes" ; then
16029 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_GOST2012=1"
16030 XMLSEC_NO_GOST2012="1"
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16034 XMLSEC_NO_GOST2012="0"
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036 $as_echo "yes" >&6; }
16038 if test "z$XMLSEC_NO_GOST2012" = "z1"; then
16039 XMLSEC_NO_GOST2012_TRUE=
16040 XMLSEC_NO_GOST2012_FALSE='#'
16042 XMLSEC_NO_GOST2012_TRUE='#'
16043 XMLSEC_NO_GOST2012_FALSE=
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLDSig support" >&5
16050 $as_echo_n "checking for XMLDSig support... " >&6; }
16051 # Check whether --enable-xmldsig was given.
16052 if test "${enable_xmldsig+set}" = set; then :
16053 enableval=$enable_xmldsig;
16056 if test "z$enable_xmldsig" = "zno" ; then
16057 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLDSIG=1"
16058 XMLSEC_NO_XMLDSIG="1"
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 $as_echo "no" >&6; }
16062 XMLSEC_NO_XMLDSIG="0"
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16066 if test "z$XMLSEC_NO_XMLDSIG" = "z1"; then
16067 XMLSEC_NO_XMLDSIG_TRUE=
16068 XMLSEC_NO_XMLDSIG_FALSE='#'
16070 XMLSEC_NO_XMLDSIG_TRUE='#'
16071 XMLSEC_NO_XMLDSIG_FALSE=
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLEnc support" >&5
16077 $as_echo_n "checking for XMLEnc support... " >&6; }
16078 # Check whether --enable-xmlenc was given.
16079 if test "${enable_xmlenc+set}" = set; then :
16080 enableval=$enable_xmlenc;
16083 if test "z$enable_xmlenc" = "zno" ; then
16084 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLENC=1"
16085 XMLSEC_NO_XMLENC="1"
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16087 $as_echo "no" >&6; }
16089 XMLSEC_NO_XMLENC="0"
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091 $as_echo "yes" >&6; }
16093 if test "z$XMLSEC_NO_XMLENC" = "z1"; then
16094 XMLSEC_NO_XMLENC_TRUE=
16095 XMLSEC_NO_XMLENC_FALSE='#'
16097 XMLSEC_NO_XMLENC_TRUE='#'
16098 XMLSEC_NO_XMLENC_FALSE=
16103 XMLSEC_DL_INCLUDES=""
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support" >&5
16106 $as_echo_n "checking for xmlsec-crypto dynamic loading support... " >&6; }
16107 # Check whether --enable-crypto_dl was given.
16108 if test "${enable_crypto_dl+set}" = set; then :
16109 enableval=$enable_crypto_dl;
16112 if test "z$enable_crypto_dl" = "zno" ; then
16113 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1"
16114 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="1"
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16118 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
16119 if test "x$ac_cv_header_ltdl_h" = xyes; then :
16121 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_DL_LIBLTDL=1"
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
16123 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; }
16124 if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then :
16125 $as_echo_n "(cached) " >&6
16127 ac_check_lib_save_LIBS=$LIBS
16128 LIBS="-lltdl $LIBS"
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16138 char lt_dlopenext ();
16142 return lt_dlopenext ();
16147 if ac_fn_c_try_link "$LINENO"; then :
16148 ac_cv_lib_ltdl_lt_dlopenext=yes
16150 ac_cv_lib_ltdl_lt_dlopenext=no
16152 rm -f core conftest.err conftest.$ac_objext \
16153 conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
16157 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
16158 if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then :
16172 if test "z$LIBLTDL" != "z" ; then
16173 XMLSEC_DL_INCLUDES="$INCLTDL"
16174 XMLSEC_DL_LIBS="$LIBLTDL"
16175 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="0"
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16177 $as_echo "yes" >&6; }
16179 as_fn_error $? "libltdl is required for xmlsec-crypto dynamic loading" "$LINENO" 5
16182 if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1"; then
16183 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE=
16184 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE='#'
16186 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE='#'
16187 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE=
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support in command line tool" >&5
16195 $as_echo_n "checking for xmlsec-crypto dynamic loading support in command line tool... " >&6; }
16196 # Check whether --enable-apps_crypto_dl was given.
16197 if test "${enable_apps_crypto_dl+set}" = set; then :
16198 enableval=$enable_apps_crypto_dl;
16201 if test "z$enable_apps_crypto_dl" = "z" ; then
16202 enable_apps_crypto_dl="$enable_crypto_dl"
16204 if test "z$enable_apps_crypto_dl" = "zno" ; then
16205 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="1"
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16207 $as_echo "no" >&6; }
16208 elif test "z$enable_crypto_dl" = "zno" ; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16211 as_fn_error $? "xmlsec-crypto libraries dynamic loading support in xmlsec command line tool is requested but no dynamic loading in xmlsec itself is disabled" "$LINENO" 5
16213 XMLSEC_APP_DEFINES="$XMLSEC_APP_DEFINES -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1"
16214 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="0"
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16216 $as_echo "yes" >&6; }
16218 if test "z$XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING" = "z1"; then
16219 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE=
16220 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE='#'
16222 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE='#'
16223 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE=
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docs folder" >&5
16229 $as_echo_n "checking for docs folder... " >&6; }
16231 # Check whether --with-html-dir was given.
16232 if test "${with_html_dir+set}" = set; then :
16233 withval=$with_html_dir;
16236 if test "z$with_html_dir" != "z" ; then
16237 XMLSEC_DOCDIR=$with_html_dir
16239 XMLSEC_DOCDIR='$(datadir)/doc/xmlsec1'
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSEC_DOCDIR" >&5
16243 $as_echo "$XMLSEC_DOCDIR" >&6; }
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Simple Keys Manager testing" >&5
16247 $as_echo_n "checking for Simple Keys Manager testing... " >&6; }
16248 # Check whether --enable-skm was given.
16249 if test "${enable_skm+set}" = set; then :
16250 enableval=$enable_skm;
16253 if test "z$enable_skm" = "zno" ; then
16254 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SKM_TEST=1"
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16259 $as_echo "yes" >&6; }
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for templates testing" >&5
16263 $as_echo_n "checking for templates testing... " >&6; }
16264 # Check whether --enable-tmpl_tests was given.
16265 if test "${enable_tmpl_tests+set}" = set; then :
16266 enableval=$enable_tmpl_tests;
16269 if test "z$enable_tmpl_tests" = "zyes" ; then
16270 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_TMPL_TEST=1"
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16272 $as_echo "no" >&6; }
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275 $as_echo "yes" >&6; }
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5
16279 $as_echo_n "checking for debugging... " >&6; }
16280 # Check whether --enable-debugging was given.
16281 if test "${enable_debugging+set}" = set; then :
16282 enableval=$enable_debugging;
16285 if test "z$enable_debugging" = "zyes" ; then
16286 CFLAGS="$CFLAGS -g"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16288 $as_echo "yes" >&6; }
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
16295 $as_echo_n "checking for profiling... " >&6; }
16296 # Check whether --enable-profiling was given.
16297 if test "${enable_profiling+set}" = set; then :
16298 enableval=$enable_profiling;
16301 if test "z$enable_profiling" = "zyes" ; then
16302 CFLAGS="$CFLAGS -pg"
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16304 $as_echo "yes" >&6; }
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pedantic" >&5
16311 $as_echo_n "checking for pedantic... " >&6; }
16312 # Check whether --enable-pedantic was given.
16313 if test "${enable_pedantic+set}" = set; then :
16314 enableval=$enable_pedantic;
16317 if test "z$enable_pedantic" = "zyes" ; then
16318 CFLAGS="$CFLAGS -O -pedantic -Wall -std=c99 -fno-inline -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wredundant-decls"
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16320 $as_echo "yes" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16326 XMLSEC_STATIC_BINARIES=""
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static linking" >&5
16328 $as_echo_n "checking for static linking... " >&6; }
16329 # Check whether --enable-static_linking was given.
16330 if test "${enable_static_linking+set}" = set; then :
16331 enableval=$enable_static_linking;
16334 if test "z$enable_static_linking" = "zyes" ; then
16335 XMLSEC_STATIC_BINARIES="-static"
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16337 $as_echo "yes" >&6; }
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340 $as_echo "no" >&6; }
16344 XMLSEC_CORE_CFLAGS="$XMLSEC_DEFINES -I${includedir}/xmlsec1 $XMLSEC_DL_INCLUDES"
16345 XMLSEC_CORE_LIBS="-lxmlsec1 $XMLSEC_DL_LIBS "
16349 XMLSEC_LIBDIR="${libdir}"
16352 XMLSEC_OPENSSL_CFLAGS="$XMLSEC_CORE_CFLAGS $OPENSSL_CFLAGS"
16353 XMLSEC_OPENSSL_LIBS="-L${libdir} -l$OPENSSL_CRYPTO_LIB $XMLSEC_CORE_LIBS $OPENSSL_LIBS"
16357 XMLSEC_GCRYPT_CFLAGS="$XMLSEC_CORE_CFLAGS $GCRYPT_CFLAGS"
16358 XMLSEC_GCRYPT_LIBS="-L${libdir} -l$GCRYPT_CRYPTO_LIB $XMLSEC_CORE_LIBS $GCRYPT_LIBS"
16362 # xmlsec-gnutls is using xmlsec-gcrypt
16363 XMLSEC_GNUTLS_CFLAGS="$XMLSEC_CORE_CFLAGS $GNUTLS_CFLAGS"
16364 XMLSEC_GNUTLS_LIBS="-L${libdir} -l$GNUTLS_CRYPTO_LIB -l$GCRYPT_CRYPTO_LIB $XMLSEC_CORE_LIBS $GNUTLS_LIBS"
16368 XMLSEC_NSS_CFLAGS="$XMLSEC_CORE_CFLAGS $NSS_CFLAGS"
16369 XMLSEC_NSS_LIBS="-L${libdir} -l$NSS_CRYPTO_LIB $XMLSEC_CORE_LIBS $NSS_LIBS"
16374 XMLSEC_CFLAGS="$XMLSEC_CORE_CFLAGS $LIBXML_CFLAGS $LIBXSLT_CFLAGS $XMLSEC_CRYPTO_CFLAGS"
16375 XMLSEC_LIBS="-L${libdir} -l$XMLSEC_CRYPTO_LIB $XMLSEC_CORE_LIBS $LIBXML_LIBS $LIBXSLT_LIBS $XMLSEC_CRYPTO_LIBS"
16394 XMLSEC_CRYPTO_PC_FILES_LIST=""
16395 for i in $XMLSEC_CRYPTO_LIST ; do
16396 test x$i = xmscrypto && continue
16397 XMLSEC_CRYPTO_PC_FILES_LIST="$XMLSEC_CRYPTO_PC_FILES_LIST $XMLSEC_PACKAGE-$i.pc"
16401 if test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
16402 ac_config_files="$ac_config_files include/xmlsec/openssl/Makefile src/openssl/Makefile"
16406 if test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
16407 ac_config_files="$ac_config_files include/xmlsec/gnutls/Makefile src/gnutls/Makefile"
16411 if test "z$XMLSEC_NO_GCRYPT" != "z1" ; then
16412 ac_config_files="$ac_config_files include/xmlsec/gcrypt/Makefile src/gcrypt/Makefile"
16416 if test "z$XMLSEC_NO_NSS" != "z1" ; then
16417 ac_config_files="$ac_config_files include/xmlsec/nss/Makefile src/nss/Makefile"
16421 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
16422 ac_config_files="$ac_config_files include/xmlsec/mscrypto/Makefile src/mscrypto/Makefile"
16426 if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1" ; then
16427 (rm -f xmlsec1.pc && $LN_S xmlsec1-$XMLSEC_DEFAULT_CRYPTO.pc xmlsec1.pc)
16429 ac_config_files="$ac_config_files xmlsec1.pc:xmlsec.pc.in"
16433 ac_config_files="$ac_config_files include/xmlsec/version.h Makefile include/Makefile include/xmlsec/Makefile include/xmlsec/private/Makefile src/Makefile apps/Makefile docs/Makefile docs/api/Makefile man/Makefile xmlsec1-openssl.pc:xmlsec-openssl.pc.in xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in xmlsec1-gcrypt.pc:xmlsec-gcrypt.pc.in xmlsec1-nss.pc:xmlsec-nss.pc.in xmlsec1.spec:xmlsec.spec.in"
16435 ac_config_files="$ac_config_files xmlsec1Conf.sh:xmlsecConf.sh.in"
16437 ac_config_files="$ac_config_files xmlsec1-config:xmlsec-config.in"
16439 cat >confcache <<\_ACEOF
16440 # This file is a shell script that caches the results of configure
16441 # tests run on this system so they can be shared between configure
16442 # scripts and configure runs, see configure's option --config-cache.
16443 # It is not useful on other systems. If it contains results you don't
16444 # want to keep, you may remove or edit it.
16446 # config.status only pays attention to the cache file if you give it
16447 # the --recheck option to rerun configure.
16449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16451 # following values.
16455 # The following way of writing the cache mishandles newlines in values,
16456 # but we know of no workaround that is simple, portable, and efficient.
16457 # So, we kill variables containing newlines.
16458 # Ultrix sh set writes to stderr and can't be redirected directly,
16459 # and sets the high bit in the cache file unless we assign to the vars.
16461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16462 eval ac_val=\$$ac_var
16466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16470 _ | IFS | as_nl) ;; #(
16471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16472 *) { eval $ac_var=; unset $ac_var;} ;;
16478 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16479 *${as_nl}ac_space=\ *)
16480 # `set' does not quote correctly, so add quotes: double-quote
16481 # substitution turns \\\\ into \\, and sed turns \\ into \.
16484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16487 # `set' quotes correctly as required by POSIX, so do not add quotes.
16488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16499 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16502 if test -w "$cache_file"; then
16503 if test "x$cache_file" != "x/dev/null"; then
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16505 $as_echo "$as_me: updating cache $cache_file" >&6;}
16506 if test ! -f "$cache_file" || test -h "$cache_file"; then
16507 cat confcache >"$cache_file"
16509 case $cache_file in #(
16511 mv -f confcache "$cache_file"$$ &&
16512 mv -f "$cache_file"$$ "$cache_file" ;; #(
16514 mv -f confcache "$cache_file" ;;
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16526 # Let make expand exec_prefix.
16527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16529 DEFS=-DHAVE_CONFIG_H
16534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16535 # 1. Remove the extension, and $U if already installed.
16536 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16537 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16538 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16539 # will be set to the directory where LIBOBJS objects are built.
16540 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16541 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16543 LIBOBJS=$ac_libobjs
16545 LTLIBOBJS=$ac_ltlibobjs
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16549 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16550 if test -n "$am_sleep_pid"; then
16551 # Hide warnings about reused PIDs.
16552 wait $am_sleep_pid 2>/dev/null
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16555 $as_echo "done" >&6; }
16556 if test -n "$EXEEXT"; then
16558 am__EXEEXT_FALSE='#'
16560 am__EXEEXT_TRUE='#'
16564 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16565 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16569 as_fn_error $? "conditional \"AMDEP\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576 if test -z "${HAS_HELP2MAN_TRUE}" && test -z "${HAS_HELP2MAN_FALSE}"; then
16577 as_fn_error $? "conditional \"HAS_HELP2MAN\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580 if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
16581 as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16584 if test -z "${HAS_MAN2HTML_TRUE}" && test -z "${HAS_MAN2HTML_FALSE}"; then
16585 as_fn_error $? "conditional \"HAS_MAN2HTML\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16588 if test -z "${HAS_XSLTPROC_TRUE}" && test -z "${HAS_XSLTPROC_FALSE}"; then
16589 as_fn_error $? "conditional \"HAS_XSLTPROC\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16592 if test -z "${BUILD_MAN_DOCS_TRUE}" && test -z "${BUILD_MAN_DOCS_FALSE}"; then
16593 as_fn_error $? "conditional \"BUILD_MAN_DOCS\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16596 if test -z "${BUILD_API_DOCS_TRUE}" && test -z "${BUILD_API_DOCS_FALSE}"; then
16597 as_fn_error $? "conditional \"BUILD_API_DOCS\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16600 if test -z "${SHAREDLIB_HACK_TRUE}" && test -z "${SHAREDLIB_HACK_FALSE}"; then
16601 as_fn_error $? "conditional \"SHAREDLIB_HACK\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604 if test -z "${XMLSEC_NO_OPENSSL_TRUE}" && test -z "${XMLSEC_NO_OPENSSL_FALSE}"; then
16605 as_fn_error $? "conditional \"XMLSEC_NO_OPENSSL\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16608 if test -z "${XMLSEC_NO_NSS_TRUE}" && test -z "${XMLSEC_NO_NSS_FALSE}"; then
16609 as_fn_error $? "conditional \"XMLSEC_NO_NSS\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16612 if test -z "${XMLSEC_NO_GCRYPT_TRUE}" && test -z "${XMLSEC_NO_GCRYPT_FALSE}"; then
16613 as_fn_error $? "conditional \"XMLSEC_NO_GCRYPT\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 if test -z "${XMLSEC_NO_GNUTLS_TRUE}" && test -z "${XMLSEC_NO_GNUTLS_FALSE}"; then
16617 as_fn_error $? "conditional \"XMLSEC_NO_GNUTLS\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16620 if test -z "${XMLSEC_NO_MSCRYPTO_TRUE}" && test -z "${XMLSEC_NO_MSCRYPTO_FALSE}"; then
16621 as_fn_error $? "conditional \"XMLSEC_NO_MSCRYPTO\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16624 if test -z "${XMLSEC_NO_MD5_TRUE}" && test -z "${XMLSEC_NO_MD5_FALSE}"; then
16625 as_fn_error $? "conditional \"XMLSEC_NO_MD5\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16628 if test -z "${XMLSEC_NO_RIPEMD160_TRUE}" && test -z "${XMLSEC_NO_RIPEMD160_FALSE}"; then
16629 as_fn_error $? "conditional \"XMLSEC_NO_RIPEMD160\" was never defined.
16630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16632 if test -z "${XMLSEC_NO_SHA1_TRUE}" && test -z "${XMLSEC_NO_SHA1_FALSE}"; then
16633 as_fn_error $? "conditional \"XMLSEC_NO_SHA1\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636 if test -z "${XMLSEC_NO_SHA224_TRUE}" && test -z "${XMLSEC_NO_SHA224_FALSE}"; then
16637 as_fn_error $? "conditional \"XMLSEC_NO_SHA224\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640 if test -z "${XMLSEC_NO_SHA256_TRUE}" && test -z "${XMLSEC_NO_SHA256_FALSE}"; then
16641 as_fn_error $? "conditional \"XMLSEC_NO_SHA256\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16644 if test -z "${XMLSEC_NO_SHA384_TRUE}" && test -z "${XMLSEC_NO_SHA384_FALSE}"; then
16645 as_fn_error $? "conditional \"XMLSEC_NO_SHA384\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16648 if test -z "${XMLSEC_NO_SHA512_TRUE}" && test -z "${XMLSEC_NO_SHA512_FALSE}"; then
16649 as_fn_error $? "conditional \"XMLSEC_NO_SHA512\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16652 if test -z "${XMLSEC_NO_HMAC_TRUE}" && test -z "${XMLSEC_NO_HMAC_FALSE}"; then
16653 as_fn_error $? "conditional \"XMLSEC_NO_HMAC\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16656 if test -z "${XMLSEC_NO_DSA_TRUE}" && test -z "${XMLSEC_NO_DSA_FALSE}"; then
16657 as_fn_error $? "conditional \"XMLSEC_NO_DSA\" was never defined.
16658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16660 if test -z "${XMLSEC_NO_RSA_TRUE}" && test -z "${XMLSEC_NO_RSA_FALSE}"; then
16661 as_fn_error $? "conditional \"XMLSEC_NO_RSA\" was never defined.
16662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16664 if test -z "${XMLSEC_NO_X509_TRUE}" && test -z "${XMLSEC_NO_X509_FALSE}"; then
16665 as_fn_error $? "conditional \"XMLSEC_NO_X509\" was never defined.
16666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16668 if test -z "${XMLSEC_NO_DES_TRUE}" && test -z "${XMLSEC_NO_DES_FALSE}"; then
16669 as_fn_error $? "conditional \"XMLSEC_NO_DES\" was never defined.
16670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16672 if test -z "${XMLSEC_NO_AES_TRUE}" && test -z "${XMLSEC_NO_AES_FALSE}"; then
16673 as_fn_error $? "conditional \"XMLSEC_NO_AES\" was never defined.
16674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16676 if test -z "${XMLSEC_NO_GOST_TRUE}" && test -z "${XMLSEC_NO_GOST_FALSE}"; then
16677 as_fn_error $? "conditional \"XMLSEC_NO_GOST\" was never defined.
16678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16680 if test -z "${XMLSEC_NO_GOST2012_TRUE}" && test -z "${XMLSEC_NO_GOST2012_FALSE}"; then
16681 as_fn_error $? "conditional \"XMLSEC_NO_GOST2012\" was never defined.
16682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16684 if test -z "${XMLSEC_NO_XMLDSIG_TRUE}" && test -z "${XMLSEC_NO_XMLDSIG_FALSE}"; then
16685 as_fn_error $? "conditional \"XMLSEC_NO_XMLDSIG\" was never defined.
16686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16688 if test -z "${XMLSEC_NO_XMLENC_TRUE}" && test -z "${XMLSEC_NO_XMLENC_FALSE}"; then
16689 as_fn_error $? "conditional \"XMLSEC_NO_XMLENC\" was never defined.
16690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16692 if test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
16693 as_fn_error $? "conditional \"XMLSEC_NO_CRYPTO_DYNAMIC_LOADING\" was never defined.
16694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16696 if test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
16697 as_fn_error $? "conditional \"XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING\" was never defined.
16698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16701 : "${CONFIG_STATUS=./config.status}"
16703 ac_clean_files_save=$ac_clean_files
16704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16710 # Generated by $as_me.
16711 # Run this file to recreate the current configuration.
16712 # Compiler output produced by configure, useful for debugging
16713 # configure, is in config.log if it exists.
16716 ac_cs_recheck=false
16719 SHELL=\${CONFIG_SHELL-$SHELL}
16722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16723 ## -------------------- ##
16724 ## M4sh Initialization. ##
16725 ## -------------------- ##
16727 # Be more Bourne compatible
16728 DUALCASE=1; export DUALCASE # for MKS sh
16729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16733 # is contrary to our usage. Disable this feature.
16734 alias -g '${1+"$@"}'='"$@"'
16735 setopt NO_GLOB_SUBST
16737 case `(set -o) 2>/dev/null` in #(
16749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16753 # Prefer a ksh shell builtin over an external printf program on Solaris,
16754 # but without wasting forks for bash or zsh.
16755 if test -z "$BASH_VERSION$ZSH_VERSION" \
16756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16757 as_echo='print -r --'
16758 as_echo_n='print -rn --'
16759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16760 as_echo='printf %s\n'
16761 as_echo_n='printf %s'
16763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16765 as_echo_n='/usr/ucb/echo -n'
16767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16768 as_echo_n_body='eval
16772 expr "X$arg" : "X\\(.*\\)$as_nl";
16773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16777 export as_echo_n_body
16778 as_echo_n='sh -c $as_echo_n_body as_echo'
16780 export as_echo_body
16781 as_echo='sh -c $as_echo_body as_echo'
16784 # The user is always right.
16785 if test "${PATH_SEPARATOR+set}" != set; then
16787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16795 # We need space, tab and new line, in precisely that order. Quoting is
16796 # there to prevent editors from complaining about space-tab.
16797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16798 # splitting by setting IFS to empty value.)
16801 # Find who we are. Look in the path if we contain no directory separator.
16804 *[\\/]* ) as_myself=$0 ;;
16805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16806 for as_dir in $PATH
16809 test -z "$as_dir" && as_dir=.
16810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16816 # We did not find ourselves, most probably we were run as `sh COMMAND'
16817 # in which case we are not to be found in the path.
16818 if test "x$as_myself" = x; then
16821 if test ! -f "$as_myself"; then
16822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16826 # Unset variables that we do not need and which cause bugs (e.g. in
16827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16828 # suppresses any "Segmentation fault" message there. '((' could
16829 # trigger a bug in pdksh 5.2.14.
16830 for as_var in BASH_ENV ENV MAIL MAILPATH
16831 do eval test x\${$as_var+set} = xset \
16832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16849 # ----------------------------------------
16850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16852 # script with STATUS, using 1 if that was 0.
16855 as_status=$1; test $as_status -eq 0 && as_status=1
16857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16860 $as_echo "$as_me: error: $2" >&2
16861 as_fn_exit $as_status
16865 # as_fn_set_status STATUS
16866 # -----------------------
16867 # Set $? to STATUS, without forking.
16868 as_fn_set_status ()
16871 } # as_fn_set_status
16873 # as_fn_exit STATUS
16874 # -----------------
16875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16879 as_fn_set_status $1
16885 # Portably unset VAR.
16888 { eval $1=; unset $1;}
16890 as_unset=as_fn_unset
16891 # as_fn_append VAR VALUE
16892 # ----------------------
16893 # Append the text in VALUE to the end of the definition contained in VAR. Take
16894 # advantage of any shell optimizations that allow amortized linear growth over
16895 # repeated appends, instead of the typical quadratic growth present in naive
16897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16898 eval 'as_fn_append ()
16909 # as_fn_arith ARG...
16910 # ------------------
16911 # Perform arithmetic evaluation on the ARGs, and store the result in the
16912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16913 # must be portable across $(()) and expr.
16914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16915 eval 'as_fn_arith ()
16922 as_val=`expr "$@" || test $? -eq 1`
16927 if expr a : '\(a\)' >/dev/null 2>&1 &&
16928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16935 as_basename=basename
16940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16946 as_me=`$as_basename -- "$0" ||
16947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16948 X"$0" : 'X\(//\)$' \| \
16949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16951 sed '/^.*\/\([^/][^/]*\)\/*$/{
16965 # Avoid depending upon Character Ranges.
16966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16969 as_cr_digits='0123456789'
16970 as_cr_alnum=$as_cr_Letters$as_cr_digits
16972 ECHO_C= ECHO_N= ECHO_T=
16973 case `echo -n x` in #(((((
16975 case `echo 'xy\c'` in
16976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16985 rm -f conf$$ conf$$.exe conf$$.file
16986 if test -d conf$$.dir; then
16987 rm -f conf$$.dir/conf$$.file
16990 mkdir conf$$.dir 2>/dev/null
16992 if (echo >conf$$.file) 2>/dev/null; then
16993 if ln -s conf$$.file conf$$ 2>/dev/null; then
16995 # ... but there are two gotchas:
16996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16998 # In both cases, we have to default to `cp -pR'.
16999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17001 elif ln conf$$.file conf$$ 2>/dev/null; then
17009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17010 rmdir conf$$.dir 2>/dev/null
17015 # Create "$as_dir" as a directory, including parents if necessary.
17020 -*) as_dir=./$as_dir;;
17022 test -d "$as_dir" || eval $as_mkdir_p || {
17026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17027 *) as_qdir=$as_dir;;
17029 as_dirs="'$as_qdir' $as_dirs"
17030 as_dir=`$as_dirname -- "$as_dir" ||
17031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17032 X"$as_dir" : 'X\(//\)[^/]' \| \
17033 X"$as_dir" : 'X\(//\)$' \| \
17034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17035 $as_echo X"$as_dir" |
17036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17040 /^X\(\/\/\)[^/].*/{
17053 test -d "$as_dir" && break
17055 test -z "$as_dirs" || eval "mkdir $as_dirs"
17056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17060 if mkdir -p . 2>/dev/null; then
17061 as_mkdir_p='mkdir -p "$as_dir"'
17063 test -d ./-p && rmdir ./-p
17068 # as_fn_executable_p FILE
17069 # -----------------------
17070 # Test if FILE is an executable regular file.
17071 as_fn_executable_p ()
17073 test -f "$1" && test -x "$1"
17074 } # as_fn_executable_p
17075 as_test_x='test -x'
17076 as_executable_p=as_fn_executable_p
17078 # Sed expression to map a string onto a valid CPP name.
17079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17081 # Sed expression to map a string onto a valid variable name.
17082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17086 ## ----------------------------------- ##
17087 ## Main body of $CONFIG_STATUS script. ##
17088 ## ----------------------------------- ##
17090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 # Save the log message, to keep $0 and so on meaningful, and to
17094 # report actual input values of CONFIG_FILES etc. instead of their
17095 # values after options handling.
17097 This file was extended by xmlsec1 $as_me 1.2.22, which was
17098 generated by GNU Autoconf 2.69. Invocation command line was
17100 CONFIG_FILES = $CONFIG_FILES
17101 CONFIG_HEADERS = $CONFIG_HEADERS
17102 CONFIG_LINKS = $CONFIG_LINKS
17103 CONFIG_COMMANDS = $CONFIG_COMMANDS
17106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17111 case $ac_config_files in *"
17112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17115 case $ac_config_headers in *"
17116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17121 # Files that config.status was made for.
17122 config_files="$ac_config_files"
17123 config_headers="$ac_config_headers"
17124 config_commands="$ac_config_commands"
17128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17130 \`$as_me' instantiates files and other configuration actions
17131 from templates according to the current configuration. Unless the files
17132 and actions are specified as TAGs, all are instantiated by default.
17134 Usage: $0 [OPTION]... [TAG]...
17136 -h, --help print this help, then exit
17137 -V, --version print version number and configuration settings, then exit
17138 --config print configuration, then exit
17139 -q, --quiet, --silent
17140 do not print progress messages
17141 -d, --debug don't remove temporary files
17142 --recheck update $as_me by reconfiguring in the same conditions
17143 --file=FILE[:TEMPLATE]
17144 instantiate the configuration file FILE
17145 --header=FILE[:TEMPLATE]
17146 instantiate the configuration header FILE
17148 Configuration files:
17151 Configuration headers:
17154 Configuration commands:
17157 Report bugs to <http://www.aleksey.com/xmlsec>."
17160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17163 xmlsec1 config.status 1.2.22
17164 configured by $0, generated by GNU Autoconf 2.69,
17165 with options \\"\$ac_cs_config\\"
17167 Copyright (C) 2012 Free Software Foundation, Inc.
17168 This config.status script is free software; the Free Software Foundation
17169 gives unlimited permission to copy, distribute and modify it."
17176 test -n "\$AWK" || AWK=awk
17179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 # The default lists apply if the user does not specify any file.
17186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17203 # Handling of the options.
17204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17207 $as_echo "$ac_cs_version"; exit ;;
17208 --config | --confi | --conf | --con | --co | --c )
17209 $as_echo "$ac_cs_config"; exit ;;
17210 --debug | --debu | --deb | --de | --d | -d )
17212 --file | --fil | --fi | --f )
17215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17216 '') as_fn_error $? "missing file argument" ;;
17218 as_fn_append CONFIG_FILES " '$ac_optarg'"
17219 ac_need_defaults=false;;
17220 --header | --heade | --head | --hea )
17223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17226 ac_need_defaults=false;;
17228 # Conflict between --help and --header
17229 as_fn_error $? "ambiguous option: \`$1'
17230 Try \`$0 --help' for more information.";;
17231 --help | --hel | -h )
17232 $as_echo "$ac_cs_usage"; exit ;;
17233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17237 # This is an error.
17238 -*) as_fn_error $? "unrecognized option: \`$1'
17239 Try \`$0 --help' for more information." ;;
17241 *) as_fn_append ac_config_targets " $1"
17242 ac_need_defaults=false ;;
17248 ac_configure_extra_args=
17250 if $ac_cs_silent; then
17252 ac_configure_extra_args="$ac_configure_extra_args --silent"
17256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17257 if \$ac_cs_recheck; then
17258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17261 CONFIG_SHELL='$SHELL'
17262 export CONFIG_SHELL
17267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17272 ## Running $as_me. ##
17278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17285 # The HP-UX ksh and POSIX shell print the target directory to stdout
17286 # if CDPATH is set.
17287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17289 sed_quote_subst='$sed_quote_subst'
17290 double_quote_subst='$double_quote_subst'
17291 delay_variable_subst='$delay_variable_subst'
17292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17296 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17297 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17298 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17299 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17300 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17307 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17308 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17309 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17310 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17311 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17312 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17313 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17314 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17315 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17316 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17317 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17318 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17319 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17320 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17321 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17322 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17323 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17324 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17325 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17326 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17327 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17328 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17329 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17331 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17332 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17333 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17334 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17335 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17336 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17337 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17338 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17339 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17340 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17341 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17342 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17343 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17344 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17345 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17346 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17347 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17348 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"`'
17349 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17350 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17351 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17352 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17353 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17354 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17355 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17356 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17357 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17358 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17359 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17360 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17361 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17362 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17363 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17364 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17365 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17366 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17367 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17368 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17369 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17370 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17371 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17372 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17373 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17374 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17375 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17376 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17377 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17378 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17379 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17380 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17381 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17382 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17383 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17384 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17385 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17386 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17387 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17388 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17389 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17390 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17391 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17392 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17393 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17394 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17395 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17396 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17397 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17398 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17399 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17400 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17401 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17402 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17403 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17404 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17405 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17406 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17407 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17408 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17409 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17410 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17411 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17412 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17413 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17414 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17415 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17416 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17417 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17418 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17419 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17420 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17421 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17424 LTCFLAGS='$LTCFLAGS'
17425 compiler='$compiler_DEFAULT'
17427 # A function that is used when there is no print builtin or printf.
17428 func_fallback_echo ()
17430 eval 'cat <<_LTECHO_EOF
17435 # Quote evaled strings.
17450 deplibs_check_method \
17455 sharedlib_from_linklib_cmd \
17458 archiver_list_spec \
17464 lt_cv_sys_global_symbol_pipe \
17465 lt_cv_sys_global_symbol_to_cdecl \
17466 lt_cv_sys_global_symbol_to_c_name_address \
17467 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17468 nm_file_list_spec \
17469 lt_prog_compiler_no_builtin_flag \
17470 lt_prog_compiler_pic \
17471 lt_prog_compiler_wl \
17472 lt_prog_compiler_static \
17473 lt_cv_prog_compiler_c_o \
17482 export_dynamic_flag_spec \
17483 whole_archive_flag_spec \
17484 compiler_needs_object \
17486 allow_undefined_flag \
17487 no_undefined_flag \
17488 hardcode_libdir_flag_spec \
17489 hardcode_libdir_separator \
17493 variables_saved_for_relink \
17495 library_names_spec \
17497 install_override_mode \
17501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17502 *[\\\\\\\`\\"\\\$]*)
17503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17511 # Double-quote double-evaled strings.
17512 for var in reload_cmds \
17513 old_postinstall_cmds \
17514 old_postuninstall_cmds \
17516 extract_expsyms_cmds \
17517 old_archive_from_new_cmds \
17518 old_archive_from_expsyms_cmds \
17520 archive_expsym_cmds \
17522 module_expsym_cmds \
17523 export_symbols_cmds \
17527 postuninstall_cmds \
17529 sys_lib_search_path_spec \
17530 sys_lib_dlsearch_path_spec; do
17531 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17532 *[\\\\\\\`\\"\\\$]*)
17533 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17536 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17541 ac_aux_dir='$ac_aux_dir'
17542 xsi_shell='$xsi_shell'
17543 lt_shell_append='$lt_shell_append'
17545 # See if we are running on zsh, and set the options which allow our
17546 # commands through without removal of \ escapes INIT.
17547 if test -n "\${ZSH_VERSION+set}" ; then
17548 setopt NO_GLOB_SUBST
17554 TIMESTAMP='$TIMESTAMP'
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17565 # Handling of arguments.
17566 for ac_config_target in $ac_config_targets
17568 case $ac_config_target in
17569 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17570 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17571 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17572 "include/xmlsec/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/openssl/Makefile" ;;
17573 "src/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES src/openssl/Makefile" ;;
17574 "include/xmlsec/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/gnutls/Makefile" ;;
17575 "src/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnutls/Makefile" ;;
17576 "include/xmlsec/gcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/gcrypt/Makefile" ;;
17577 "src/gcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES src/gcrypt/Makefile" ;;
17578 "include/xmlsec/nss/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/nss/Makefile" ;;
17579 "src/nss/Makefile") CONFIG_FILES="$CONFIG_FILES src/nss/Makefile" ;;
17580 "include/xmlsec/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/mscrypto/Makefile" ;;
17581 "src/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/mscrypto/Makefile" ;;
17582 "xmlsec1.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1.pc:xmlsec.pc.in" ;;
17583 "include/xmlsec/version.h") CONFIG_FILES="$CONFIG_FILES include/xmlsec/version.h" ;;
17584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17585 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17586 "include/xmlsec/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/Makefile" ;;
17587 "include/xmlsec/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/private/Makefile" ;;
17588 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17589 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
17590 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17591 "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
17592 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17593 "xmlsec1-openssl.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-openssl.pc:xmlsec-openssl.pc.in" ;;
17594 "xmlsec1-gnutls.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in" ;;
17595 "xmlsec1-gcrypt.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-gcrypt.pc:xmlsec-gcrypt.pc.in" ;;
17596 "xmlsec1-nss.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-nss.pc:xmlsec-nss.pc.in" ;;
17597 "xmlsec1.spec") CONFIG_FILES="$CONFIG_FILES xmlsec1.spec:xmlsec.spec.in" ;;
17598 "xmlsec1Conf.sh") CONFIG_FILES="$CONFIG_FILES xmlsec1Conf.sh:xmlsecConf.sh.in" ;;
17599 "xmlsec1-config") CONFIG_FILES="$CONFIG_FILES xmlsec1-config:xmlsec-config.in" ;;
17601 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17606 # If the user did not use the arguments to specify the items to instantiate,
17607 # then the envvar interface is used. Set only those that are not.
17608 # We use the long form for the default assignment because of an extremely
17609 # bizarre bug on SunOS 4.1.3.
17610 if $ac_need_defaults; then
17611 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17612 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17613 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17616 # Have a temporary directory for convenience. Make it in the build tree
17617 # simply because there is no reason against having it here, and in addition,
17618 # creating and moving files from /tmp can sometimes cause problems.
17619 # Hook for its removal unless debugging.
17620 # Note that there is a small window in which the directory will not be cleaned:
17621 # after its creation but before its name has been assigned to `$tmp'.
17625 trap 'exit_status=$?
17626 : "${ac_tmp:=$tmp}"
17627 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17629 trap 'as_fn_exit 1' 1 2 13 15
17631 # Create a (secure) tmp directory for tmp files.
17634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17638 tmp=./conf$$-$RANDOM
17639 (umask 077 && mkdir "$tmp")
17640 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17643 # Set up the scripts for CONFIG_FILES section.
17644 # No need to generate them if there are no CONFIG_FILES.
17645 # This happens for instance with `./config.status config.h'.
17646 if test -n "$CONFIG_FILES"; then
17649 ac_cr=`echo X | tr X '\015'`
17650 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17651 # But we know of no other shell where ac_cr would be empty at this
17652 # point, so we can use a bashism as a fallback.
17653 if test "x$ac_cr" = x; then
17654 eval ac_cr=\$\'\\r\'
17656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17660 ac_cs_awk_cr=$ac_cr
17663 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17668 echo "cat >conf$$subs.awk <<_ACEOF" &&
17669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17671 } >conf$$subs.sh ||
17672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17675 for ac_last_try in false false false false false :; do
17676 . ./conf$$subs.sh ||
17677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17680 if test $ac_delim_n = $ac_delim_num; then
17682 elif $ac_last_try; then
17683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17688 rm -f conf$$subs.sh
17690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17695 s/^/S["/; s/!.*/"]=/
17705 s/\(.\{148\}\)..*/\1/
17707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17719 s/\(.\{148\}\)..*/\1/
17721 s/["\\]/\\&/g; s/^/"/; s/$/"/
17725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17730 ' <conf$$subs.awk | sed '
17735 ' >>$CONFIG_STATUS || ac_write_fail=1
17736 rm -f conf$$subs.awk
17737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17740 for (key in S) S_is_set[key] = 1
17746 nfields = split(line, field, "@")
17748 len = length(field[1])
17749 for (i = 2; i < nfields; i++) {
17751 keylen = length(key)
17752 if (S_is_set[key]) {
17754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17755 len += length(value) + length(field[++i])
17766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17771 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17772 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17775 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17776 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17777 # trailing colons and then remove the whole line if VPATH becomes empty
17778 # (actually we leave an empty line to preserve line numbers).
17779 if test "x$srcdir" = x.; then
17780 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799 fi # test -n "$CONFIG_FILES"
17801 # Set up the scripts for CONFIG_HEADERS section.
17802 # No need to generate them if there are no CONFIG_HEADERS.
17803 # This happens for instance with `./config.status Makefile'.
17804 if test -n "$CONFIG_HEADERS"; then
17805 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17809 # Transform confdefs.h into an awk script `defines.awk', embedded as
17810 # here-document in config.status, that substitutes the proper values into
17811 # config.h.in to produce config.h.
17813 # Create a delimiter string that does not exist in confdefs.h, to ease
17814 # handling of long lines.
17816 for ac_last_try in false false :; do
17817 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17818 if test -z "$ac_tt"; then
17820 elif $ac_last_try; then
17821 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17827 # For the awk script, D is an array of macro values keyed by name,
17828 # likewise P contains macro parameters if any. Preserve backslash
17829 # newline sequences.
17831 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17833 s/.\{148\}/&'"$ac_delim"'/g
17836 s/^[ ]*#[ ]*define[ ][ ]*/ /
17843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17845 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17850 D["\1"]=" \3\\\\\\n"\\/p
17852 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17857 s/.\{148\}/&'"$ac_delim"'/g
17862 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17865 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17867 ' <confdefs.h | sed '
17868 s/'"$ac_delim"'/"\\\
17869 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17872 for (key in D) D_is_set[key] = 1
17875 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17877 split(line, arg, " ")
17878 if (arg[1] == "#") {
17882 defundef = substr(arg[1], 2)
17885 split(mac1, mac2, "(") #)
17887 prefix = substr(line, 1, index(line, defundef) - 1)
17888 if (D_is_set[macro]) {
17889 # Preserve the white space surrounding the "#".
17890 print prefix "define", macro P[macro] D[macro]
17893 # Replace #undef with comments. This is necessary, for example,
17894 # in the case of _POSIX_SOURCE, which is predefined and required
17895 # on some systems where configure will not decide to define it.
17896 if (defundef == "undef") {
17897 print "/*", prefix defundef, macro, "*/"
17905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17906 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17907 fi # test -n "$CONFIG_HEADERS"
17910 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17915 :[FHLC]) ac_mode=$ac_tag; continue;;
17917 case $ac_mode$ac_tag in
17919 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17920 :[FH]-) ac_tag=-:-;;
17921 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17938 -) ac_f="$ac_tmp/stdin";;
17939 *) # Look for the file first in the build tree, then in the source tree
17940 # (if the path is not absolute). The absolute path cannot be DOS-style,
17941 # because $ac_f cannot contain `:'.
17945 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17947 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17949 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17950 as_fn_append ac_file_inputs " '$ac_f'"
17953 # Let's still pretend it is `configure' which instantiates (i.e., don't
17954 # use $as_me), people would be surprised to read:
17955 # /* config.h. Generated by config.status. */
17956 configure_input='Generated from '`
17957 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17959 if test x"$ac_file" != x-; then
17960 configure_input="$ac_file. $configure_input"
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17962 $as_echo "$as_me: creating $ac_file" >&6;}
17964 # Neutralize special characters interpreted by sed in replacement strings.
17965 case $configure_input in #(
17966 *\&* | *\|* | *\\* )
17967 ac_sed_conf_input=`$as_echo "$configure_input" |
17968 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17969 *) ac_sed_conf_input=$configure_input;;
17973 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17979 ac_dir=`$as_dirname -- "$ac_file" ||
17980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17981 X"$ac_file" : 'X\(//\)[^/]' \| \
17982 X"$ac_file" : 'X\(//\)$' \| \
17983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17984 $as_echo X"$ac_file" |
17985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17989 /^X\(\/\/\)[^/].*/{
18002 as_dir="$ac_dir"; as_fn_mkdir_p
18006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18008 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18009 # A ".." for each directory in $ac_dir_suffix.
18010 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18011 case $ac_top_builddir_sub in
18012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18016 ac_abs_top_builddir=$ac_pwd
18017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18018 # for backward compatibility:
18019 ac_top_builddir=$ac_top_build_prefix
18022 .) # We are building in place.
18024 ac_top_srcdir=$ac_top_builddir_sub
18025 ac_abs_top_srcdir=$ac_pwd ;;
18026 [\\/]* | ?:[\\/]* ) # Absolute name.
18027 ac_srcdir=$srcdir$ac_dir_suffix;
18028 ac_top_srcdir=$srcdir
18029 ac_abs_top_srcdir=$srcdir ;;
18030 *) # Relative name.
18031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18032 ac_top_srcdir=$ac_top_build_prefix$srcdir
18033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18048 ac_MKDIR_P=$MKDIR_P
18050 [\\/$]* | ?:[\\/]* ) ;;
18051 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18056 # If the template does not know about datarootdir, expand it.
18057 # FIXME: This hack should be removed a few years after 2.60.
18058 ac_datarootdir_hack=; ac_datarootdir_seen=
18069 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18070 *datarootdir*) ac_datarootdir_seen=yes;;
18071 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18073 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18076 ac_datarootdir_hack='
18077 s&@datadir@&$datadir&g
18078 s&@docdir@&$docdir&g
18079 s&@infodir@&$infodir&g
18080 s&@localedir@&$localedir&g
18081 s&@mandir@&$mandir&g
18082 s&\\\${datarootdir}&$datarootdir&g' ;;
18086 # Neutralize VPATH when `$srcdir' = `.'.
18087 # Shell code in configure.ac might set extrasub.
18088 # FIXME: do we really want to maintain this feature?
18089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18090 ac_sed_extra="$ac_vpsub
18093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18096 s|@configure_input@|$ac_sed_conf_input|;t t
18097 s&@top_builddir@&$ac_top_builddir_sub&;t t
18098 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18099 s&@srcdir@&$ac_srcdir&;t t
18100 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18101 s&@top_srcdir@&$ac_top_srcdir&;t t
18102 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18103 s&@builddir@&$ac_builddir&;t t
18104 s&@abs_builddir@&$ac_abs_builddir&;t t
18105 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18106 s&@INSTALL@&$ac_INSTALL&;t t
18107 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18108 $ac_datarootdir_hack
18110 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18111 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18114 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18116 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18118 which seems to be undefined. Please make sure it is defined" >&5
18119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18120 which seems to be undefined. Please make sure it is defined" >&2;}
18122 rm -f "$ac_tmp/stdin"
18124 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18125 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18133 if test x"$ac_file" != x-; then
18135 $as_echo "/* $configure_input */" \
18136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18137 } >"$ac_tmp/config.h" \
18138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18139 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18144 mv "$ac_tmp/config.h" "$ac_file" \
18145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18148 $as_echo "/* $configure_input */" \
18149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18150 || as_fn_error $? "could not create -" "$LINENO" 5
18152 # Compute "$ac_file"'s index in $config_headers.
18155 for _am_header in $config_headers :; do
18156 case $_am_header in
18157 $_am_arg | $_am_arg:* )
18160 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18163 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18164 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18165 X"$_am_arg" : 'X\(//\)[^/]' \| \
18166 X"$_am_arg" : 'X\(//\)$' \| \
18167 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18168 $as_echo X"$_am_arg" |
18169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18173 /^X\(\/\/\)[^/].*/{
18185 s/.*/./; q'`/stamp-h$_am_stamp_count
18188 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18189 $as_echo "$as_me: executing $ac_file commands" >&6;}
18194 case $ac_file$ac_mode in
18195 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18196 # Older Autoconf quotes --file arguments for eval, but not when files
18197 # are listed without --file. Let's play safe and only enable the eval
18198 # if we detect the quoting.
18199 case $CONFIG_FILES in
18200 *\'*) eval set x "$CONFIG_FILES" ;;
18201 *) set x $CONFIG_FILES ;;
18206 # Strip MF so we end up with the name of the file.
18207 mf=`echo "$mf" | sed -e 's/:.*$//'`
18208 # Check whether this is an Automake generated Makefile or not.
18209 # We used to match only the files named 'Makefile.in', but
18210 # some people rename them; so instead we look at the file content.
18211 # Grep'ing the first line is not enough: some people post-process
18212 # each Makefile.in and add a new line on top of each file to say so.
18213 # Grep'ing the whole file is not good either: AIX grep has a line
18214 # limit of 2048, but all sed's we know have understand at least 4000.
18215 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18216 dirpart=`$as_dirname -- "$mf" ||
18217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18218 X"$mf" : 'X\(//\)[^/]' \| \
18219 X"$mf" : 'X\(//\)$' \| \
18220 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18226 /^X\(\/\/\)[^/].*/{
18242 # Extract the definition of DEPDIR, am__include, and am__quote
18243 # from the Makefile without running 'make'.
18244 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18245 test -z "$DEPDIR" && continue
18246 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18247 test -z "$am__include" && continue
18248 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18249 # Find all dependency output files, they are included files with
18250 # $(DEPDIR) in their names. We invoke sed twice because it is the
18251 # simplest approach to changing $(DEPDIR) to its actual value in the
18253 for file in `sed -n "
18254 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18256 # Make sure the directory exists.
18257 test -f "$dirpart/$file" && continue
18258 fdir=`$as_dirname -- "$file" ||
18259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260 X"$file" : 'X\(//\)[^/]' \| \
18261 X"$file" : 'X\(//\)$' \| \
18262 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18263 $as_echo X"$file" |
18264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18268 /^X\(\/\/\)[^/].*/{
18281 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18282 # echo "creating $dirpart/$file"
18283 echo '# dummy' > "$dirpart/$file"
18290 # See if we are running on zsh, and set the options which allow our
18291 # commands through without removal of \ escapes.
18292 if test -n "${ZSH_VERSION+set}" ; then
18293 setopt NO_GLOB_SUBST
18296 cfgfile="${ofile}T"
18297 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18300 cat <<_LT_EOF >> "$cfgfile"
18303 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18304 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18308 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18309 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18311 # Written by Gordon Matzigkeit, 1996
18313 # This file is part of GNU Libtool.
18315 # GNU Libtool is free software; you can redistribute it and/or
18316 # modify it under the terms of the GNU General Public License as
18317 # published by the Free Software Foundation; either version 2 of
18318 # the License, or (at your option) any later version.
18320 # As a special exception to the GNU General Public License,
18321 # if you distribute this file as part of a program or library that
18322 # is built using GNU Libtool, you may include this file under the
18323 # same distribution terms that you use for the rest of that program.
18325 # GNU Libtool is distributed in the hope that it will be useful,
18326 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18327 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18328 # GNU General Public License for more details.
18330 # You should have received a copy of the GNU General Public License
18331 # along with GNU Libtool; see the file COPYING. If not, a copy
18332 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18333 # obtained by writing to the Free Software Foundation, Inc.,
18334 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18337 # The names of the tagged configurations supported by this script.
18340 # ### BEGIN LIBTOOL CONFIG
18342 # Which release of libtool.m4 was used?
18343 macro_version=$macro_version
18344 macro_revision=$macro_revision
18346 # Whether or not to build shared libraries.
18347 build_libtool_libs=$enable_shared
18349 # Whether or not to build static libraries.
18350 build_old_libs=$enable_static
18352 # What type of objects to build.
18355 # Whether or not to optimize for fast installation.
18356 fast_install=$enable_fast_install
18358 # Shell to use when invoking shell scripts.
18361 # An echo program that protects backslashes.
18364 # The PATH separator for the build system.
18365 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18368 host_alias=$host_alias
18372 # The build system.
18373 build_alias=$build_alias
18377 # A sed program that does not truncate output.
18380 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18381 Xsed="\$SED -e 1s/^X//"
18383 # A grep program that handles long lines.
18389 # A literal string matcher.
18392 # A BSD- or MS-compatible name lister.
18395 # Whether we need soft or hard links.
18398 # What is the maximum length of a command?
18399 max_cmd_len=$max_cmd_len
18401 # Object file suffix (normally "o").
18404 # Executable file suffix (normally "").
18407 # whether the shell understands "unset".
18410 # turn spaces into newlines.
18413 # turn newlines into spaces.
18416 # convert \$build file names to \$host format.
18417 to_host_file_cmd=$lt_cv_to_host_file_cmd
18419 # convert \$build files to toolchain format.
18420 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18422 # An object symbol dumper.
18423 OBJDUMP=$lt_OBJDUMP
18425 # Method to check whether dependent libraries are shared objects.
18426 deplibs_check_method=$lt_deplibs_check_method
18428 # Command to use when deplibs_check_method = "file_magic".
18429 file_magic_cmd=$lt_file_magic_cmd
18431 # How to find potential files when deplibs_check_method = "file_magic".
18432 file_magic_glob=$lt_file_magic_glob
18434 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18435 want_nocaseglob=$lt_want_nocaseglob
18437 # DLL creation program.
18438 DLLTOOL=$lt_DLLTOOL
18440 # Command to associate shared and link libraries.
18441 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18446 # Flags to create an archive.
18447 AR_FLAGS=$lt_AR_FLAGS
18449 # How to feed a file listing to the archiver.
18450 archiver_list_spec=$lt_archiver_list_spec
18452 # A symbol stripping program.
18455 # Commands used to install an old-style archive.
18457 old_postinstall_cmds=$lt_old_postinstall_cmds
18458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18460 # Whether to use a lock for old archive extraction.
18461 lock_old_archive_extraction=$lock_old_archive_extraction
18466 # LTCC compiler flags.
18467 LTCFLAGS=$lt_CFLAGS
18469 # Take the output of nm and produce a listing of raw symbols and C names.
18470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18472 # Transform the output of nm in a proper C declaration.
18473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18475 # Transform the output of nm in a C name address pair.
18476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18478 # Transform the output of nm in a C name address pair when lib prefix is needed.
18479 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18481 # Specify filename containing input files for \$NM.
18482 nm_file_list_spec=$lt_nm_file_list_spec
18484 # The root where to search for dependent libraries,and in which our libraries should be installed.
18485 lt_sysroot=$lt_sysroot
18487 # The name of the directory that contains temporary libtool files.
18490 # Used to examine libraries when file_magic_cmd begins with "file".
18491 MAGIC_CMD=$MAGIC_CMD
18493 # Must we lock files when doing compilation?
18494 need_locks=$lt_need_locks
18497 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18500 DSYMUTIL=$lt_DSYMUTIL
18502 # Tool to change global to local symbols on Mac OS X.
18505 # Tool to manipulate fat objects and archives on Mac OS X.
18508 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18512 OTOOL64=$lt_OTOOL64
18514 # Old archive suffix (normally "a").
18517 # Shared library suffix (normally ".so").
18518 shrext_cmds=$lt_shrext_cmds
18520 # The commands to extract the exported symbol list from a shared archive.
18521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18523 # Variables whose values should be saved in libtool wrapper scripts and
18524 # restored at link time.
18525 variables_saved_for_relink=$lt_variables_saved_for_relink
18527 # Do we need the "lib" prefix for modules?
18528 need_lib_prefix=$need_lib_prefix
18530 # Do we need a version for libraries?
18531 need_version=$need_version
18533 # Library versioning type.
18534 version_type=$version_type
18536 # Shared library runtime path variable.
18537 runpath_var=$runpath_var
18539 # Shared library path variable.
18540 shlibpath_var=$shlibpath_var
18542 # Is shlibpath searched before the hard-coded library search path?
18543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18545 # Format of library name prefix.
18546 libname_spec=$lt_libname_spec
18548 # List of archive names. First name is the real one, the rest are links.
18549 # The last name is the one that the linker finds with -lNAME
18550 library_names_spec=$lt_library_names_spec
18552 # The coded name of the library, if different from the real name.
18553 soname_spec=$lt_soname_spec
18555 # Permission mode override for installation of shared libraries.
18556 install_override_mode=$lt_install_override_mode
18558 # Command to use after installation of a shared archive.
18559 postinstall_cmds=$lt_postinstall_cmds
18561 # Command to use after uninstallation of a shared archive.
18562 postuninstall_cmds=$lt_postuninstall_cmds
18564 # Commands used to finish a libtool library installation in a directory.
18565 finish_cmds=$lt_finish_cmds
18567 # As "finish_cmds", except a single script fragment to be evaled but
18569 finish_eval=$lt_finish_eval
18571 # Whether we should hardcode library paths into libraries.
18572 hardcode_into_libs=$hardcode_into_libs
18574 # Compile-time system search path for libraries.
18575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18577 # Run-time system search path for libraries.
18578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18580 # Whether dlopen is supported.
18581 dlopen_support=$enable_dlopen
18583 # Whether dlopen of programs is supported.
18584 dlopen_self=$enable_dlopen_self
18586 # Whether dlopen of statically linked programs is supported.
18587 dlopen_self_static=$enable_dlopen_self_static
18589 # Commands to strip libraries.
18590 old_striplib=$lt_old_striplib
18591 striplib=$lt_striplib
18594 # The linker used to build libraries.
18597 # How to create reloadable object files.
18598 reload_flag=$lt_reload_flag
18599 reload_cmds=$lt_reload_cmds
18601 # Commands used to build an old-style archive.
18602 old_archive_cmds=$lt_old_archive_cmds
18604 # A language specific compiler.
18607 # Is the compiler the GNU compiler?
18610 # Compiler flag to turn off builtin functions.
18611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18613 # Additional compiler flags for building library objects.
18614 pic_flag=$lt_lt_prog_compiler_pic
18616 # How to pass a linker flag through the compiler.
18617 wl=$lt_lt_prog_compiler_wl
18619 # Compiler flag to prevent dynamic linking.
18620 link_static_flag=$lt_lt_prog_compiler_static
18622 # Does compiler simultaneously support -c and -o options?
18623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18625 # Whether or not to add -lc for building shared libraries.
18626 build_libtool_need_lc=$archive_cmds_need_lc
18628 # Whether or not to disallow shared libs when runtime libs are static.
18629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18631 # Compiler flag to allow reflexive dlopens.
18632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18634 # Compiler flag to generate shared objects directly from archives.
18635 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18637 # Whether the compiler copes with passing no objects directly.
18638 compiler_needs_object=$lt_compiler_needs_object
18640 # Create an old-style archive from a shared archive.
18641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18643 # Create a temporary old-style archive to link instead of a shared archive.
18644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18646 # Commands used to build a shared archive.
18647 archive_cmds=$lt_archive_cmds
18648 archive_expsym_cmds=$lt_archive_expsym_cmds
18650 # Commands used to build a loadable module if different from building
18651 # a shared archive.
18652 module_cmds=$lt_module_cmds
18653 module_expsym_cmds=$lt_module_expsym_cmds
18655 # Whether we are building with GNU ld or not.
18656 with_gnu_ld=$lt_with_gnu_ld
18658 # Flag that allows shared libraries with undefined symbols to be built.
18659 allow_undefined_flag=$lt_allow_undefined_flag
18661 # Flag that enforces no undefined symbols.
18662 no_undefined_flag=$lt_no_undefined_flag
18664 # Flag to hardcode \$libdir into a binary during linking.
18665 # This must work even if \$libdir does not exist
18666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18668 # Whether we need a single "-rpath" flag with a separated argument.
18669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18672 # DIR into the resulting binary.
18673 hardcode_direct=$hardcode_direct
18675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18676 # DIR into the resulting binary and the resulting library dependency is
18677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18678 # library is relocated.
18679 hardcode_direct_absolute=$hardcode_direct_absolute
18681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18682 # into the resulting binary.
18683 hardcode_minus_L=$hardcode_minus_L
18685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18686 # into the resulting binary.
18687 hardcode_shlibpath_var=$hardcode_shlibpath_var
18689 # Set to "yes" if building a shared library automatically hardcodes DIR
18690 # into the library and all subsequent libraries and executables linked
18692 hardcode_automatic=$hardcode_automatic
18694 # Set to yes if linker adds runtime paths of dependent libraries
18695 # to runtime path list.
18696 inherit_rpath=$inherit_rpath
18698 # Whether libtool must link a program against all its dependency libraries.
18699 link_all_deplibs=$link_all_deplibs
18701 # Set to "yes" if exported symbols are required.
18702 always_export_symbols=$always_export_symbols
18704 # The commands to list exported symbols.
18705 export_symbols_cmds=$lt_export_symbols_cmds
18707 # Symbols that should not be listed in the preloaded symbols.
18708 exclude_expsyms=$lt_exclude_expsyms
18710 # Symbols that must always be exported.
18711 include_expsyms=$lt_include_expsyms
18713 # Commands necessary for linking programs (against libraries) with templates.
18714 prelink_cmds=$lt_prelink_cmds
18716 # Commands necessary for finishing linking programs.
18717 postlink_cmds=$lt_postlink_cmds
18719 # Specify filename containing input files.
18720 file_list_spec=$lt_file_list_spec
18722 # How to hardcode a shared library path into an executable.
18723 hardcode_action=$hardcode_action
18725 # ### END LIBTOOL CONFIG
18731 cat <<\_LT_EOF >> "$cfgfile"
18732 # AIX sometimes has problems with the GCC collect2 program. For some
18733 # reason, if we set the COLLECT_NAMES environment variable, the problems
18734 # vanish in a puff of smoke.
18735 if test "X${COLLECT_NAMES+set}" != Xset; then
18737 export COLLECT_NAMES
18744 ltmain="$ac_aux_dir/ltmain.sh"
18747 # We use sed instead of cat because bash on DJGPP gets confused if
18748 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18749 # text mode, it properly converts lines to CR/LF. This bash problem
18750 # is reportedly fixed, but why not run on old versions too?
18751 sed '$q' "$ltmain" >> "$cfgfile" \
18752 || (rm -f "$cfgfile"; exit 1)
18754 if test x"$xsi_shell" = xyes; then
18755 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18759 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18760 \ * ) func_dirname_result="${3}" ;;\
18762 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18763 && mv -f "$cfgfile.tmp" "$cfgfile" \
18764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18765 test 0 -eq $? || _lt_function_replace_fail=:
18768 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18771 \ func_basename_result="${1##*/}"\
18772 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18773 && mv -f "$cfgfile.tmp" "$cfgfile" \
18774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18775 test 0 -eq $? || _lt_function_replace_fail=:
18778 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18779 func_dirname_and_basename ()\
18782 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18783 \ * ) func_dirname_result="${3}" ;;\
18785 \ func_basename_result="${1##*/}"\
18786 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18787 && mv -f "$cfgfile.tmp" "$cfgfile" \
18788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18789 test 0 -eq $? || _lt_function_replace_fail=:
18792 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18795 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18796 \ # positional parameters, so assign one to ordinary parameter first.\
18797 \ func_stripname_result=${3}\
18798 \ func_stripname_result=${func_stripname_result#"${1}"}\
18799 \ func_stripname_result=${func_stripname_result%"${2}"}\
18800 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18801 && mv -f "$cfgfile.tmp" "$cfgfile" \
18802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18803 test 0 -eq $? || _lt_function_replace_fail=:
18806 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18807 func_split_long_opt ()\
18809 \ func_split_long_opt_name=${1%%=*}\
18810 \ func_split_long_opt_arg=${1#*=}\
18811 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18812 && mv -f "$cfgfile.tmp" "$cfgfile" \
18813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18814 test 0 -eq $? || _lt_function_replace_fail=:
18817 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18818 func_split_short_opt ()\
18820 \ func_split_short_opt_arg=${1#??}\
18821 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18822 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18823 && mv -f "$cfgfile.tmp" "$cfgfile" \
18824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18825 test 0 -eq $? || _lt_function_replace_fail=:
18828 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18832 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18833 \ *) func_lo2o_result=${1} ;;\
18835 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18836 && mv -f "$cfgfile.tmp" "$cfgfile" \
18837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18838 test 0 -eq $? || _lt_function_replace_fail=:
18841 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18844 func_xform_result=${1%.*}.lo\
18845 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18846 && mv -f "$cfgfile.tmp" "$cfgfile" \
18847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18848 test 0 -eq $? || _lt_function_replace_fail=:
18851 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18854 func_arith_result=$(( $* ))\
18855 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18856 && mv -f "$cfgfile.tmp" "$cfgfile" \
18857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18858 test 0 -eq $? || _lt_function_replace_fail=:
18861 sed -e '/^func_len ()$/,/^} # func_len /c\
18864 func_len_result=${#1}\
18865 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18866 && mv -f "$cfgfile.tmp" "$cfgfile" \
18867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18868 test 0 -eq $? || _lt_function_replace_fail=:
18872 if test x"$lt_shell_append" = xyes; then
18873 sed -e '/^func_append ()$/,/^} # func_append /c\
18876 eval "${1}+=\\${2}"\
18877 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18878 && mv -f "$cfgfile.tmp" "$cfgfile" \
18879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18880 test 0 -eq $? || _lt_function_replace_fail=:
18883 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18884 func_append_quoted ()\
18886 \ func_quote_for_eval "${2}"\
18887 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18888 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18889 && mv -f "$cfgfile.tmp" "$cfgfile" \
18890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18891 test 0 -eq $? || _lt_function_replace_fail=:
18894 # Save a `func_append' function call where possible by direct use of '+='
18895 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18896 && mv -f "$cfgfile.tmp" "$cfgfile" \
18897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18898 test 0 -eq $? || _lt_function_replace_fail=:
18900 # Save a `func_append' function call even when '+=' is not available
18901 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18902 && mv -f "$cfgfile.tmp" "$cfgfile" \
18903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18904 test 0 -eq $? || _lt_function_replace_fail=:
18907 if test x"$_lt_function_replace_fail" = x":"; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18909 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18913 mv -f "$cfgfile" "$ofile" ||
18914 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18918 "xmlsec1Conf.sh":F) chmod +x xmlsec1Conf.sh ;;
18919 "xmlsec1-config":F) chmod +x xmlsec1-config ;;
18927 ac_clean_files=$ac_clean_files_save
18929 test $ac_write_fail = 0 ||
18930 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18933 # configure is writing to config.log, and then calls config.status.
18934 # config.status does its own redirection, appending to config.log.
18935 # Unfortunately, on DOS this fails, as config.log is still kept open
18936 # by configure, so config.status won't be able to write to it; its
18937 # output is simply discarded. So we exec the FD to /dev/null,
18938 # effectively closing config.log, so it can be properly (re)opened and
18939 # appended to by config.status. When coming back to configure, we
18940 # need to make the FD available again.
18941 if test "$no_create" != yes; then
18943 ac_config_status_args=
18944 test "$silent" = yes &&
18945 ac_config_status_args="$ac_config_status_args --quiet"
18947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18950 # would make configure fail if this is the last instruction.
18951 $ac_cs_success || as_fn_exit 1
18953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}