2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for xmlsec1 1.2.14.
5 # Report bugs to <http://www.aleksey.com/xmlsec>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: http://www.aleksey.com/xmlsec about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='xmlsec1'
700 PACKAGE_TARNAME='xmlsec1'
701 PACKAGE_VERSION='1.2.14'
702 PACKAGE_STRING='xmlsec1 1.2.14'
703 PACKAGE_BUGREPORT='http://www.aleksey.com/xmlsec'
706 # Factoring default headers for most tests.
707 ac_includes_default="\
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
719 # ifdef HAVE_STDLIB_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
742 ac_subst_vars='am__EXEEXT_FALSE
746 XMLSEC_CRYPTO_PC_FILES_LIST
750 XMLSEC_CRYPTO_DISABLED_LIST
753 XMLSEC_CRYPTO_EXTRA_LDFLAGS
764 XMLSEC_OPENSSL_CFLAGS
768 XMLSEC_STATIC_BINARIES
770 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING
771 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE
772 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE
775 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING
776 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE
777 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE
782 XMLSEC_NO_XMLENC_FALSE
783 XMLSEC_NO_XMLENC_TRUE
785 XMLSEC_NO_XMLDSIG_FALSE
786 XMLSEC_NO_XMLDSIG_TRUE
809 XMLSEC_NO_SHA512_FALSE
810 XMLSEC_NO_SHA512_TRUE
812 XMLSEC_NO_SHA384_FALSE
813 XMLSEC_NO_SHA384_TRUE
815 XMLSEC_NO_SHA256_FALSE
816 XMLSEC_NO_SHA256_TRUE
818 XMLSEC_NO_SHA224_FALSE
819 XMLSEC_NO_SHA224_TRUE
824 XMLSEC_NO_RIPEMD160_FALSE
825 XMLSEC_NO_RIPEMD160_TRUE
833 XMLSEC_NO_MSCRYPTO_FALSE
834 XMLSEC_NO_MSCRYPTO_TRUE
838 XMLSEC_NO_GNUTLS_FALSE
839 XMLSEC_NO_GNUTLS_TRUE
856 XMLSEC_NO_OPENSSL_FALSE
857 XMLSEC_NO_OPENSSL_TRUE
918 MAINTAINER_MODE_FALSE
928 INSTALL_STRIP_PROGRAM
944 XMLSEC_VERSION_SUBMINOR
985 program_transform_name
998 enable_option_checking
999 enable_maintainer_mode
1000 enable_dependency_tracking
1038 enable_apps_crypto_dl
1045 enable_static_linking
1047 ac_precious_vars='build_alias
1069 # Initialize some variables set by options.
1071 ac_init_version=false
1072 ac_unrecognized_opts=
1073 ac_unrecognized_sep=
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1083 program_transform_name=s,x,x,
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1108 infodir='${datarootdir}/info'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1121 # If the previous option needs an argument, assign it.
1122 if test -n "$ac_prev"; then
1123 eval $ac_prev=\$ac_option
1129 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1133 # Accept the important Cygnus configure options, so we can diagnose typos.
1135 case $ac_dashdash$ac_option in
1139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142 bindir=$ac_optarg ;;
1144 -build | --build | --buil | --bui | --bu)
1145 ac_prev=build_alias ;;
1146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147 build_alias=$ac_optarg ;;
1149 -cache-file | --cache-file | --cache-fil | --cache-fi \
1150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151 ac_prev=cache_file ;;
1152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154 cache_file=$ac_optarg ;;
1156 --config-cache | -C)
1157 cache_file=config.cache ;;
1159 -datadir | --datadir | --datadi | --datad)
1161 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162 datadir=$ac_optarg ;;
1164 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165 | --dataroo | --dataro | --datar)
1166 ac_prev=datarootdir ;;
1167 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169 datarootdir=$ac_optarg ;;
1171 -disable-* | --disable-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid feature name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "enable_$ac_useropt"
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval enable_$ac_useropt=no ;;
1187 -docdir | --docdir | --docdi | --doc | --do)
1189 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1190 docdir=$ac_optarg ;;
1192 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1194 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1195 dvidir=$ac_optarg ;;
1197 -enable-* | --enable-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid feature name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1206 "enable_$ac_useropt"
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1211 eval enable_$ac_useropt=\$ac_optarg ;;
1213 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1214 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215 | --exec | --exe | --ex)
1216 ac_prev=exec_prefix ;;
1217 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1218 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1219 | --exec=* | --exe=* | --ex=*)
1220 exec_prefix=$ac_optarg ;;
1222 -gas | --gas | --ga | --g)
1223 # Obsolete; use --with-gas.
1226 -help | --help | --hel | --he | -h)
1227 ac_init_help=long ;;
1228 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1229 ac_init_help=recursive ;;
1230 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1231 ac_init_help=short ;;
1233 -host | --host | --hos | --ho)
1234 ac_prev=host_alias ;;
1235 -host=* | --host=* | --hos=* | --ho=*)
1236 host_alias=$ac_optarg ;;
1238 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1240 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1242 htmldir=$ac_optarg ;;
1244 -includedir | --includedir | --includedi | --included | --include \
1245 | --includ | --inclu | --incl | --inc)
1246 ac_prev=includedir ;;
1247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1248 | --includ=* | --inclu=* | --incl=* | --inc=*)
1249 includedir=$ac_optarg ;;
1251 -infodir | --infodir | --infodi | --infod | --info | --inf)
1253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1254 infodir=$ac_optarg ;;
1256 -libdir | --libdir | --libdi | --libd)
1258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1259 libdir=$ac_optarg ;;
1261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1262 | --libexe | --libex | --libe)
1263 ac_prev=libexecdir ;;
1264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1265 | --libexe=* | --libex=* | --libe=*)
1266 libexecdir=$ac_optarg ;;
1268 -localedir | --localedir | --localedi | --localed | --locale)
1269 ac_prev=localedir ;;
1270 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1271 localedir=$ac_optarg ;;
1273 -localstatedir | --localstatedir | --localstatedi | --localstated \
1274 | --localstate | --localstat | --localsta | --localst | --locals)
1275 ac_prev=localstatedir ;;
1276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1277 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1278 localstatedir=$ac_optarg ;;
1280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1283 mandir=$ac_optarg ;;
1285 -nfp | --nfp | --nf)
1286 # Obsolete; use --without-fp.
1289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1290 | --no-cr | --no-c | -n)
1293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1299 | --oldin | --oldi | --old | --ol | --o)
1300 ac_prev=oldincludedir ;;
1301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1304 oldincludedir=$ac_optarg ;;
1306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1309 prefix=$ac_optarg ;;
1311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1312 | --program-pre | --program-pr | --program-p)
1313 ac_prev=program_prefix ;;
1314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1316 program_prefix=$ac_optarg ;;
1318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1319 | --program-suf | --program-su | --program-s)
1320 ac_prev=program_suffix ;;
1321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1323 program_suffix=$ac_optarg ;;
1325 -program-transform-name | --program-transform-name \
1326 | --program-transform-nam | --program-transform-na \
1327 | --program-transform-n | --program-transform- \
1328 | --program-transform | --program-transfor \
1329 | --program-transfo | --program-transf \
1330 | --program-trans | --program-tran \
1331 | --progr-tra | --program-tr | --program-t)
1332 ac_prev=program_transform_name ;;
1333 -program-transform-name=* | --program-transform-name=* \
1334 | --program-transform-nam=* | --program-transform-na=* \
1335 | --program-transform-n=* | --program-transform-=* \
1336 | --program-transform=* | --program-transfor=* \
1337 | --program-transfo=* | --program-transf=* \
1338 | --program-trans=* | --program-tran=* \
1339 | --progr-tra=* | --program-tr=* | --program-t=*)
1340 program_transform_name=$ac_optarg ;;
1342 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1344 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1345 pdfdir=$ac_optarg ;;
1347 -psdir | --psdir | --psdi | --psd | --ps)
1349 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1353 | -silent | --silent | --silen | --sile | --sil)
1356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1360 sbindir=$ac_optarg ;;
1362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1364 | --sharedst | --shareds | --shared | --share | --shar \
1366 ac_prev=sharedstatedir ;;
1367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1371 sharedstatedir=$ac_optarg ;;
1373 -site | --site | --sit)
1375 -site=* | --site=* | --sit=*)
1378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1381 srcdir=$ac_optarg ;;
1383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1384 | --syscon | --sysco | --sysc | --sys | --sy)
1385 ac_prev=sysconfdir ;;
1386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1388 sysconfdir=$ac_optarg ;;
1390 -target | --target | --targe | --targ | --tar | --ta | --t)
1391 ac_prev=target_alias ;;
1392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1393 target_alias=$ac_optarg ;;
1395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1398 -version | --version | --versio | --versi | --vers | -V)
1399 ac_init_version=: ;;
1402 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1405 as_fn_error "invalid package name: $ac_useropt"
1406 ac_useropt_orig=$ac_useropt
1407 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1408 case $ac_user_opts in
1412 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1413 ac_unrecognized_sep=', ';;
1415 eval with_$ac_useropt=\$ac_optarg ;;
1417 -without-* | --without-*)
1418 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1419 # Reject names that are not valid shell variable names.
1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421 as_fn_error "invalid package name: $ac_useropt"
1422 ac_useropt_orig=$ac_useropt
1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1429 ac_unrecognized_sep=', ';;
1431 eval with_$ac_useropt=no ;;
1434 # Obsolete; use --with-x.
1437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1438 | --x-incl | --x-inc | --x-in | --x-i)
1439 ac_prev=x_includes ;;
1440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1442 x_includes=$ac_optarg ;;
1444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1446 ac_prev=x_libraries ;;
1447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1449 x_libraries=$ac_optarg ;;
1451 -*) as_fn_error "unrecognized option: \`$ac_option'
1452 Try \`$0 --help' for more information."
1456 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1457 # Reject names that are not valid shell variable names.
1458 case $ac_envvar in #(
1459 '' | [0-9]* | *[!_$as_cr_alnum]* )
1460 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1462 eval $ac_envvar=\$ac_optarg
1463 export $ac_envvar ;;
1466 # FIXME: should be removed in autoconf 3.0.
1467 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1468 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1469 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1470 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1476 if test -n "$ac_prev"; then
1477 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1478 as_fn_error "missing argument to $ac_option"
1481 if test -n "$ac_unrecognized_opts"; then
1482 case $enable_option_checking in
1484 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1485 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1489 # Check all directory arguments for consistency.
1490 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1491 datadir sysconfdir sharedstatedir localstatedir includedir \
1492 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1493 libdir localedir mandir
1495 eval ac_val=\$$ac_var
1496 # Remove trailing slashes.
1499 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1500 eval $ac_var=\$ac_val;;
1502 # Be sure to have absolute directory names.
1504 [\\/$]* | ?:[\\/]* ) continue;;
1505 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1507 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1510 # There might be people who depend on the old broken behavior: `$host'
1511 # used to hold the argument of --host etc.
1512 # FIXME: To remove some day.
1515 target=$target_alias
1517 # FIXME: To remove some day.
1518 if test "x$host_alias" != x; then
1519 if test "x$build_alias" = x; then
1520 cross_compiling=maybe
1521 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1522 If a cross compiler is detected then cross compile mode will be used." >&2
1523 elif test "x$build_alias" != "x$host_alias"; then
1529 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1531 test "$silent" = yes && exec 6>/dev/null
1534 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1535 ac_ls_di=`ls -di .` &&
1536 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1537 as_fn_error "working directory cannot be determined"
1538 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1539 as_fn_error "pwd does not report name of working directory"
1542 # Find the source files, if location was not specified.
1543 if test -z "$srcdir"; then
1544 ac_srcdir_defaulted=yes
1545 # Try the directory containing this script, then the parent directory.
1546 ac_confdir=`$as_dirname -- "$as_myself" ||
1547 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1548 X"$as_myself" : 'X\(//\)[^/]' \| \
1549 X"$as_myself" : 'X\(//\)$' \| \
1550 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1551 $as_echo X"$as_myself" |
1552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1570 if test ! -r "$srcdir/$ac_unique_file"; then
1574 ac_srcdir_defaulted=no
1576 if test ! -r "$srcdir/$ac_unique_file"; then
1577 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1578 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1580 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1582 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1584 # When building in place, set srcdir=.
1585 if test "$ac_abs_confdir" = "$ac_pwd"; then
1588 # Remove unnecessary trailing slashes from srcdir.
1589 # Double slashes in file names in object file debugging info
1590 # mess up M-x gdb in Emacs.
1592 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1594 for ac_var in $ac_precious_vars; do
1595 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1596 eval ac_env_${ac_var}_value=\$${ac_var}
1597 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1598 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1602 # Report the --help message.
1604 if test "$ac_init_help" = "long"; then
1605 # Omit some internal or obsolete options to make the list less imposing.
1606 # This message is too long to be a string in the A/UX 3.1 sh.
1608 \`configure' configures xmlsec1 1.2.14 to adapt to many kinds of systems.
1610 Usage: $0 [OPTION]... [VAR=VALUE]...
1612 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1613 VAR=VALUE. See below for descriptions of some of the useful variables.
1615 Defaults for the options are specified in brackets.
1618 -h, --help display this help and exit
1619 --help=short display options specific to this package
1620 --help=recursive display the short help of all the included packages
1621 -V, --version display version information and exit
1622 -q, --quiet, --silent do not print \`checking...' messages
1623 --cache-file=FILE cache test results in FILE [disabled]
1624 -C, --config-cache alias for \`--cache-file=config.cache'
1625 -n, --no-create do not create output files
1626 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1628 Installation directories:
1629 --prefix=PREFIX install architecture-independent files in PREFIX
1630 [$ac_default_prefix]
1631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1634 By default, \`make install' will install all the files in
1635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1637 for instance \`--prefix=\$HOME'.
1639 For better control, use the options below.
1641 Fine tuning of the installation directories:
1642 --bindir=DIR user executables [EPREFIX/bin]
1643 --sbindir=DIR system admin executables [EPREFIX/sbin]
1644 --libexecdir=DIR program executables [EPREFIX/libexec]
1645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1648 --libdir=DIR object code libraries [EPREFIX/lib]
1649 --includedir=DIR C header files [PREFIX/include]
1650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1651 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1652 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1653 --infodir=DIR info documentation [DATAROOTDIR/info]
1654 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1655 --mandir=DIR man documentation [DATAROOTDIR/man]
1656 --docdir=DIR documentation root [DATAROOTDIR/doc/xmlsec1]
1657 --htmldir=DIR html documentation [DOCDIR]
1658 --dvidir=DIR dvi documentation [DOCDIR]
1659 --pdfdir=DIR pdf documentation [DOCDIR]
1660 --psdir=DIR ps documentation [DOCDIR]
1666 --program-prefix=PREFIX prepend PREFIX to installed program names
1667 --program-suffix=SUFFIX append SUFFIX to installed program names
1668 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1671 --build=BUILD configure for building on BUILD [guessed]
1672 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1676 if test -n "$ac_init_help"; then
1677 case $ac_init_help in
1678 short | recursive ) echo "Configuration of xmlsec1 1.2.14:";;
1683 --disable-option-checking ignore unrecognized --enable/--with options
1684 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1685 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1686 --enable-maintainer-mode enable make rules and dependencies not useful
1687 (and sometimes confusing) to the casual installer
1688 --disable-dependency-tracking speeds up one-time build
1689 --enable-dependency-tracking do not reject slow dependency extractors
1690 --enable-shared[=PKGS] build shared libraries [default=yes]
1691 --enable-static[=PKGS] build static libraries [default=yes]
1692 --enable-fast-install[=PKGS]
1693 optimize for fast installation [default=yes]
1694 --disable-libtool-lock avoid locking (might break parallel builds)
1695 --enable-development enable development environment (no)
1696 --enable-pkgconfig enable pkgconfig for configuration (yes)
1697 --enable-mscrypto enable mscrypto (no)
1698 --enable-md5 enable MD5 support (yes)
1699 --enable-ripemd160 enable RIPEMD-160 support (yes)
1700 --enable-sha1 enable SHA1 support (yes)
1701 --enable-sha224 enable SHA224 support (yes)
1702 --enable-sha256 enable SHA256 support (yes)
1703 --enable-sha384 enable SHA384 support (yes)
1704 --enable-sha512 enable SHA512 support (yes)
1705 --enable-hmac enable HMAC support (yes)
1706 --enable-dsa enable DSA support (yes)
1707 --enable-rsa enable RSA support (yes)
1708 --enable-x509 enable x509 support (yes)
1709 --enable-des enable DES support (yes)
1710 --enable-aes enable AES support (OpenSSL >= 0.9.7 is required)
1711 --enable-gost enable GOST support (no)
1712 --enable-xmldsig enable XMLDSig support (yes)
1713 --enable-xmlenc enable XMLEnc support (yes)
1714 --enable-xkms enable XKMS support - under development (no)
1715 --enable-crypto-dl enable dynamic loading support for xmlsec-crypto libraries (yes)
1716 --enable-apps-crypto-dl enable dynamic loading support for xmlsec-crypto libraries in xmlsec command line tool (yes)
1717 --enable-skm enable Simple Keys Manager testing (yes)
1718 --enable-tmpl-tests enable templates testing in xmlsec utility (yes)
1719 --enable-debuging enable debuging compilation flags (no)
1720 --enable-profiling enable profiling compilation flags (no)
1721 --enable-pedantic enable pedantic compilation flags (no)
1722 --enable-static-linking enable static linking (no)
1725 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1726 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1727 --with-pic try to use only PIC/non-PIC objects [default=use
1729 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1730 --with-libxml=PFX libxml2 location
1732 --with-libxml-src=PFX not installed yet libxml2 location
1734 --with-libxslt=PFX libxslt location
1736 --with-libxslt-src=PFX not installed yet libxslt location
1738 --with-openssl=PFX openssl location
1739 --with-nss=PFX nss location
1740 --with-nspr=PFX nspr location (needed for NSS)
1741 --with-seamonkey-ver=VER mozilla version (alt to --with-nss, --with-nspr)
1742 --with-mozilla-ver=VER mozilla version (alt to --with-nss, --with-nspr)
1743 --with-gnutls=PFX gnutls location
1744 --with-html-dir=PATH path to installed docs
1746 Some influential environment variables:
1747 CC C compiler command
1748 CFLAGS C compiler flags
1749 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1750 nonstandard directory <lib dir>
1751 LIBS libraries to pass to the linker, e.g. -l<library>
1752 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753 you have headers in a nonstandard directory <include dir>
1755 PKG_CONFIG path to pkg-config utility
1757 C compiler flags for LIBXML, overriding pkg-config
1758 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1760 C compiler flags for LIBXSLT, overriding pkg-config
1762 linker flags for LIBXSLT, overriding pkg-config
1764 C compiler flags for OPENSSL, overriding pkg-config
1766 linker flags for OPENSSL, overriding pkg-config
1767 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1768 NSS_LIBS linker flags for NSS, overriding pkg-config
1770 C compiler flags for GNUTLS, overriding pkg-config
1771 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1776 Report bugs to <http://www.aleksey.com/xmlsec>.
1781 if test "$ac_init_help" = "recursive"; then
1782 # If there are subdirs, report their specific --help.
1783 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1784 test -d "$ac_dir" ||
1785 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1793 # A ".." for each directory in $ac_dir_suffix.
1794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1795 case $ac_top_builddir_sub in
1796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1806 .) # We are building in place.
1808 ac_top_srcdir=$ac_top_builddir_sub
1809 ac_abs_top_srcdir=$ac_pwd ;;
1810 [\\/]* | ?:[\\/]* ) # Absolute name.
1811 ac_srcdir=$srcdir$ac_dir_suffix;
1812 ac_top_srcdir=$srcdir
1813 ac_abs_top_srcdir=$srcdir ;;
1815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816 ac_top_srcdir=$ac_top_build_prefix$srcdir
1817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821 cd "$ac_dir" || { ac_status=$?; continue; }
1822 # Check for guested configure.
1823 if test -f "$ac_srcdir/configure.gnu"; then
1825 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826 elif test -f "$ac_srcdir/configure"; then
1828 $SHELL "$ac_srcdir/configure" --help=recursive
1830 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832 cd "$ac_pwd" || { ac_status=$?; break; }
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1839 xmlsec1 configure 1.2.14
1840 generated by GNU Autoconf 2.64
1842 Copyright (C) 2009 Free Software Foundation, Inc.
1843 This configure script is free software; the Free Software Foundation
1844 gives unlimited permission to copy, distribute and modify it.
1849 ## ------------------------ ##
1850 ## Autoconf initialization. ##
1851 ## ------------------------ ##
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 } # ac_fn_c_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1931 # that executables *can* be run.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }; then :
1958 $as_echo "$as_me: program exited with status $ac_status" >&5
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=$ac_status
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 $as_test_x conftest$ac_exeext
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2062 #define $2 innocuous_$2
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char $2 (); below.
2066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2067 <limits.h> exists even on freestanding compilers. */
2070 # include <limits.h>
2072 # include <assert.h>
2077 /* Override any GCC internal prototype to avoid an error.
2078 Use char because int might match the return type of a GCC
2079 builtin and then its argument prototype would still apply. */
2084 /* The GNU C library defines this for functions which it implements
2085 to always fail with ENOSYS. Some functions are actually named
2086 something starting with __ and the normal name is an alias. */
2087 #if defined __stub_$2 || defined __stub___$2
2099 if ac_fn_c_try_link "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext \
2105 conftest$ac_exeext conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_func
2114 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # -------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2119 ac_fn_c_check_header_mongrel ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2132 # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_header_compiler=yes
2143 ac_header_compiler=no
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 if ac_fn_c_try_cpp "$LINENO"; then :
2157 ac_header_preproc=yes
2159 ac_header_preproc=no
2161 rm -f conftest.err conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2165 # So? What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185 ## -------------------------------------------- ##
2186 ## Report this to http://www.aleksey.com/xmlsec ##
2187 ## -------------------------------------------- ##
2189 ) | sed "s/^/$as_me: WARNING: /" >&2
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2195 $as_echo_n "(cached) " >&6
2197 eval "$3=\$ac_header_compiler"
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205 } # ac_fn_c_check_header_mongrel
2207 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2208 # --------------------------------------------
2209 # Tries to find the compile-time value of EXPR in a program that includes
2210 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2212 ac_fn_c_compute_int ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 if test "$cross_compiling" = yes; then
2216 # Depending upon the size, compute the lo and hi bounds.
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) >= 0)];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2239 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_hi=$ac_mid; break
2249 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250 if test $ac_lo -le $ac_mid; then
2254 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 static int test_array [1 - 2 * !(($2) < 0)];
2272 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 ac_lo=$ac_mid; break
2291 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2292 if test $ac_mid -le $ac_hi; then
2296 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 # Binary search between lo and hi bounds.
2307 while test "x$ac_lo" != "x$ac_hi"; do
2308 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2315 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 if ac_fn_c_try_compile "$LINENO"; then :
2325 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2337 static long int longval () { return $2; }
2338 static unsigned long int ulongval () { return $2; }
2345 FILE *f = fopen ("conftest.val", "w");
2350 long int i = longval ();
2353 fprintf (f, "%ld", i);
2357 unsigned long int i = ulongval ();
2360 fprintf (f, "%lu", i);
2362 /* Do not output a trailing newline, as this causes \r\n confusion
2363 on some platforms. */
2364 return ferror (f) || fclose (f) != 0;
2370 if ac_fn_c_try_run "$LINENO"; then :
2371 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2376 conftest.$ac_objext conftest.beam conftest.$ac_ext
2380 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383 } # ac_fn_c_compute_int
2384 cat >config.log <<_ACEOF
2385 This file contains any messages produced by compilers while
2386 running configure, to aid debugging if configure makes a mistake.
2388 It was created by xmlsec1 $as_me 1.2.14, which was
2389 generated by GNU Autoconf 2.64. Invocation command line was
2401 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2402 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2403 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2404 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2405 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2407 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2408 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2410 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2411 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2412 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2413 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2414 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2415 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2416 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir=.
2425 $as_echo "PATH: $as_dir"
2441 # Keep a trace of the command line.
2442 # Strip out --no-create and --no-recursion so they do not pile up.
2443 # Strip out --silent because we don't want to record it for future runs.
2444 # Also quote any args containing shell meta-characters.
2445 # Make two passes to allow for proper duplicate-argument suppression.
2449 ac_must_keep_next=false
2455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2457 | -silent | --silent | --silen | --sile | --sil)
2460 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2465 as_fn_append ac_configure_args1 " '$ac_arg'"
2466 if test $ac_must_keep_next = true; then
2467 ac_must_keep_next=false # Got value, back to normal.
2470 *=* | --config-cache | -C | -disable-* | --disable-* \
2471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2473 | -with-* | --with-* | -without-* | --without-* | --x)
2474 case "$ac_configure_args0 " in
2475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2478 -* ) ac_must_keep_next=true ;;
2481 as_fn_append ac_configure_args " '$ac_arg'"
2486 { ac_configure_args0=; unset ac_configure_args0;}
2487 { ac_configure_args1=; unset ac_configure_args1;}
2489 # When interrupted or exit'd, cleanup temporary files, and complete
2490 # config.log. We remove comments because anyway the quotes in there
2491 # would cause problems or look ugly.
2492 # WARNING: Use '\'' to represent an apostrophe within the trap.
2493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2494 trap 'exit_status=$?
2495 # Save into config.log some information that might help in debugging.
2500 ## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##
2505 # The following way of writing the cache mishandles newlines in values,
2507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508 eval ac_val=\$$ac_var
2512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2516 _ | IFS | as_nl) ;; #(
2517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518 *) { eval $ac_var=; unset $ac_var;} ;;
2523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524 *${as_nl}ac_space=\ *)
2526 "s/'\''/'\''\\\\'\'''\''/g;
2527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2538 ## ----------------- ##
2539 ## Output variables. ##
2540 ## ----------------- ##
2543 for ac_var in $ac_subst_vars
2545 eval ac_val=\$$ac_var
2547 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 $as_echo "$ac_var='\''$ac_val'\''"
2553 if test -n "$ac_subst_files"; then
2555 ## ------------------- ##
2556 ## File substitutions. ##
2557 ## ------------------- ##
2560 for ac_var in $ac_subst_files
2562 eval ac_val=\$$ac_var
2564 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566 $as_echo "$ac_var='\''$ac_val'\''"
2571 if test -s confdefs.h; then
2581 test "$ac_signal" != 0 &&
2582 $as_echo "$as_me: caught signal $ac_signal"
2583 $as_echo "$as_me: exit $exit_status"
2585 rm -f core *.core core.conftest.* &&
2586 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2589 for ac_signal in 1 2 13 15; do
2590 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2594 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2595 rm -f -r conftest* confdefs.h
2597 $as_echo "/* confdefs.h */" > confdefs.h
2599 # Predefined preprocessor variables.
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_NAME "$PACKAGE_NAME"
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2613 cat >>confdefs.h <<_ACEOF
2614 #define PACKAGE_STRING "$PACKAGE_STRING"
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_URL "$PACKAGE_URL"
2626 # Let the site file select an alternate cache file if it wants to.
2627 # Prefer an explicitly selected file to automatically selected ones.
2630 if test -n "$CONFIG_SITE"; then
2631 ac_site_file1=$CONFIG_SITE
2632 elif test "x$prefix" != xNONE; then
2633 ac_site_file1=$prefix/share/config.site
2634 ac_site_file2=$prefix/etc/config.site
2636 ac_site_file1=$ac_default_prefix/share/config.site
2637 ac_site_file2=$ac_default_prefix/etc/config.site
2639 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2641 test "x$ac_site_file" = xNONE && continue
2642 if test -r "$ac_site_file"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2645 sed 's/^/| /' "$ac_site_file" >&5
2650 if test -r "$cache_file"; then
2651 # Some versions of bash will fail to source /dev/null (special
2652 # files actually), so we avoid doing that.
2653 if test -f "$cache_file"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2655 $as_echo "$as_me: loading cache $cache_file" >&6;}
2657 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2658 *) . "./$cache_file";;
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2663 $as_echo "$as_me: creating cache $cache_file" >&6;}
2667 # Check that the precious variables saved in the cache have kept the same
2669 ac_cache_corrupted=false
2670 for ac_var in $ac_precious_vars; do
2671 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2672 eval ac_new_set=\$ac_env_${ac_var}_set
2673 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2674 eval ac_new_val=\$ac_env_${ac_var}_value
2675 case $ac_old_set,$ac_new_set in
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2686 if test "x$ac_old_val" != "x$ac_new_val"; then
2687 # differences in whitespace do not lead to failure.
2688 ac_old_val_w=`echo x $ac_old_val`
2689 ac_new_val_w=`echo x $ac_new_val`
2690 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2692 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2693 ac_cache_corrupted=:
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2696 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2697 eval $ac_var=\$ac_old_val
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2700 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2702 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2705 # Pass precious variables to config.status.
2706 if test "$ac_new_set" = set; then
2708 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2709 *) ac_arg=$ac_var=$ac_new_val ;;
2711 case " $ac_configure_args " in
2712 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2713 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2717 if $ac_cache_corrupted; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2721 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2722 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2724 ## -------------------- ##
2725 ## Main body of script. ##
2726 ## -------------------- ##
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 XMLSEC_PACKAGE=xmlsec1
2737 XMLSEC_VERSION_MAJOR=1
2738 XMLSEC_VERSION_MINOR=2
2739 XMLSEC_VERSION_SUBMINOR=14
2740 XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR"
2741 XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
2742 XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'`
2746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2747 for ac_t in install-sh install.sh shtool; do
2748 if test -f "$ac_dir/$ac_t"; then
2750 ac_install_sh="$ac_aux_dir/$ac_t -c"
2755 if test -z "$ac_aux_dir"; then
2756 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2768 # Make sure we can run config.sub.
2769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2773 $as_echo_n "checking build system type... " >&6; }
2774 if test "${ac_cv_build+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2777 ac_build_alias=$build_alias
2778 test "x$ac_build_alias" = x &&
2779 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2780 test "x$ac_build_alias" = x &&
2781 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2783 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2787 $as_echo "$ac_cv_build" >&6; }
2788 case $ac_cv_build in
2790 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2793 ac_save_IFS=$IFS; IFS='-'
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2807 $as_echo_n "checking host system type... " >&6; }
2808 if test "${ac_cv_host+set}" = set; then :
2809 $as_echo_n "(cached) " >&6
2811 if test "x$host_alias" = x; then
2812 ac_cv_host=$ac_cv_build
2814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2815 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2820 $as_echo "$ac_cv_host" >&6; }
2823 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2826 ac_save_IFS=$IFS; IFS='-'
2832 # Remember, the first character of IFS is used to create $*,
2833 # except with old shells:
2836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849 am__api_version='1.11'
2851 # Find a good install program. We prefer a C program (faster),
2852 # so one script is as good as another. But avoid the broken or
2853 # incompatible versions:
2854 # SysV /etc/install, /usr/sbin/install
2855 # SunOS /usr/etc/install
2856 # IRIX /sbin/install
2858 # AmigaOS /C/install, which installs bootblocks on floppy discs
2859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2862 # OS/2's system install, which has a completely different semantic
2863 # ./install, which can be erroneously created by make from ./install.sh.
2864 # Reject install programs that cannot install multiple files.
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2866 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2867 if test -z "$INSTALL"; then
2868 if test "${ac_cv_path_install+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 # Account for people who put trailing slashes in PATH elements.
2877 case $as_dir/ in #((
2878 ./ | .// | /[cC]/* | \
2879 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2880 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2883 # OSF1 and SCO ODT 3.0 have their own names for install.
2884 # Don't use installbsd from OSF since it installs stuff as root
2886 for ac_prog in ginstall scoinst install; do
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2889 if test $ac_prog = install &&
2890 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2891 # AIX install. It has an incompatible calling convention.
2893 elif test $ac_prog = install &&
2894 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # program-specific install script used by HP pwplus--don't use.
2898 rm -rf conftest.one conftest.two conftest.dir
2899 echo one > conftest.one
2900 echo two > conftest.two
2902 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2903 test -s conftest.one && test -s conftest.two &&
2904 test -s conftest.dir/conftest.one &&
2905 test -s conftest.dir/conftest.two
2907 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2920 rm -rf conftest.one conftest.two conftest.dir
2923 if test "${ac_cv_path_install+set}" = set; then
2924 INSTALL=$ac_cv_path_install
2926 # As a last resort, use the slow shell script. Don't cache a
2927 # value for INSTALL within a source directory, because that will
2928 # break other packages using the cache if that directory is
2929 # removed, or if the value is a relative name.
2930 INSTALL=$ac_install_sh
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2934 $as_echo "$INSTALL" >&6; }
2936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2937 # It thinks the first close brace ends the variable substitution.
2938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2945 $as_echo_n "checking whether build environment is sane... " >&6; }
2948 echo timestamp > conftest.file
2949 # Reject unsafe characters in $srcdir or the absolute working directory
2950 # name. Accept space and tab only in the latter.
2954 *[\\\"\#\$\&\'\`$am_lf]*)
2955 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2958 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2959 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2962 # Do `set' in a subshell so we don't clobber the current shell's
2963 # arguments. Must try -L first in case configure is actually a
2964 # symlink; some systems play weird games with the mod time of symlinks
2965 # (eg FreeBSD returns the mod time of the symlink's containing
2968 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2969 if test "$*" = "X"; then
2971 set X `ls -t "$srcdir/configure" conftest.file`
2974 if test "$*" != "X $srcdir/configure conftest.file" \
2975 && test "$*" != "X conftest.file $srcdir/configure"; then
2977 # If neither matched, then we have a broken ls. This can happen
2978 # if, for instance, CONFIG_SHELL is bash and it inherits a
2979 # broken ls alias from the environment. This has actually
2980 # happened. Such a system could not be considered "sane".
2981 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2982 alias in your environment" "$LINENO" 5
2985 test "$2" = conftest.file
2991 as_fn_error "newly created file is older than distributed files!
2992 Check your system clock" "$LINENO" 5
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 $as_echo "yes" >&6; }
2996 test "$program_prefix" != NONE &&
2997 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2998 # Use a double $ so make ignores it.
2999 test "$program_suffix" != NONE &&
3000 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3001 # Double any \ or $.
3002 # By default was `s,x,x', remove it if useless.
3003 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3004 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3006 # expand $ac_aux_dir to an absolute path
3007 am_aux_dir=`cd $ac_aux_dir && pwd`
3009 if test x"${MISSING+set}" != xset; then
3012 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3014 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3017 # Use eval to expand $SHELL
3018 if eval "$MISSING --run true"; then
3019 am_missing_run="$MISSING --run "
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3023 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3026 if test x"${install_sh}" != xset; then
3029 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3031 install_sh="\${SHELL} $am_aux_dir/install-sh"
3035 # Installed binaries are usually stripped using `strip' when the user
3036 # run `make install-strip'. However `strip' might not be the right
3037 # tool to use in cross-compilation environments, therefore Automake
3038 # will honor the `STRIP' environment variable to overrule this program.
3039 if test "$cross_compiling" != no; then
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_STRIP+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$STRIP"; then
3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 STRIP=$ac_cv_prog_STRIP
3069 if test -n "$STRIP"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3071 $as_echo "$STRIP" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$ac_cv_prog_STRIP"; then
3081 # Extract the first word of "strip", so it can be a program name with args.
3082 set dummy strip; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_STRIP"; then
3089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_STRIP="strip"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 $as_echo "$ac_ct_STRIP" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3117 if test "x$ac_ct_STRIP" = x; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3129 STRIP="$ac_cv_prog_STRIP"
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3136 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3137 if test -z "$MKDIR_P"; then
3138 if test "${ac_cv_path_mkdir+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3145 test -z "$as_dir" && as_dir=.
3146 for ac_prog in mkdir gmkdir; do
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3150 'mkdir (GNU coreutils) '* | \
3151 'mkdir (coreutils) '* | \
3152 'mkdir (fileutils) '4.1*)
3153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3163 if test "${ac_cv_path_mkdir+set}" = set; then
3164 MKDIR_P="$ac_cv_path_mkdir -p"
3166 # As a last resort, use the slow shell script. Don't cache a
3167 # value for MKDIR_P within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the value is a relative name.
3170 test -d ./--version && rmdir ./--version
3171 MKDIR_P="$ac_install_sh -d"
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3175 $as_echo "$MKDIR_P" >&6; }
3179 [\\/$]* | ?:[\\/]*) ;;
3180 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3183 for ac_prog in gawk mawk nawk awk
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_AWK+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3192 if test -n "$AWK"; then
3193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_AWK="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 if test -n "$AWK"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3215 $as_echo "$AWK" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3222 test -n "$AWK" && break
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3226 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3229 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3230 $as_echo_n "(cached) " >&6
3232 cat >conftest.make <<\_ACEOF
3235 @echo '@@@%%%=$(MAKE)=@@@%%%'
3237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240 eval ac_cv_prog_make_${ac_make}_set=yes;;
3242 eval ac_cv_prog_make_${ac_make}_set=no;;
3246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 SET_MAKE="MAKE=${MAKE-make}"
3256 rm -rf .tst 2>/dev/null
3257 mkdir .tst 2>/dev/null
3258 if test -d .tst; then
3263 rmdir .tst 2>/dev/null
3265 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3266 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3267 # is not polluted with repeated "-I."
3268 am__isrc=' -I$(srcdir)'
3269 # test to see if srcdir already configured
3270 if test -f $srcdir/config.status; then
3271 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3275 # test whether we have cygpath
3276 if test -z "$CYGPATH_W"; then
3277 if (cygpath --version) >/dev/null 2>/dev/null; then
3278 CYGPATH_W='cygpath -w'
3285 # Define the identity of the package.
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE "$PACKAGE"
3295 cat >>confdefs.h <<_ACEOF
3296 #define VERSION "$VERSION"
3299 # Some tools Automake needs.
3301 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3307 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3313 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3315 # We need awk for the "check" target. The system "awk" is bad on
3317 # Always define AMTAR for backward compatibility.
3319 AMTAR=${AMTAR-"${am_missing_run}tar"}
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3323 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3324 # Loop over all known methods to create a tar archive until one works.
3325 _am_tools='gnutar plaintar pax cpio none'
3326 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3327 # Do not fold the above two line into one, because Tru64 sh and
3328 # Solaris sh will not grok spaces in the rhs of `-'.
3329 for _am_tool in $_am_tools
3333 for _am_tar in tar gnutar gtar;
3335 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3336 ($_am_tar --version) >&5 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && break
3341 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3342 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3343 am__untar="$_am_tar -xf -"
3346 # Must skip GNU tar: if it does not support --format= it doesn't create
3347 # ustar tarball either.
3348 (tar --version) >/dev/null 2>&1 && continue
3349 am__tar='tar chf - "$$tardir"'
3350 am__tar_='tar chf - "$tardir"'
3351 am__untar='tar xf -'
3354 am__tar='pax -L -x ustar -w "$$tardir"'
3355 am__tar_='pax -L -x ustar -w "$tardir"'
3359 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3360 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3361 am__untar='cpio -i -H ustar -d'
3370 # If the value was cached, stop now. We just wanted to have am__tar
3371 # and am__untar set.
3372 test -n "${am_cv_prog_tar_ustar}" && break
3374 # tar/untar a dummy directory, and stop if the command works
3377 echo GrepMe > conftest.dir/file
3378 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3379 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3384 if test -s conftest.tar; then
3385 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3386 ($am__untar <conftest.tar) >&5 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }
3390 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3395 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3398 am_cv_prog_tar_ustar=$_am_tool
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3402 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3408 ac_config_headers="$ac_config_headers config.h"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3417 USE_MAINTAINER_MODE=no
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
3423 MAINTAINER_MODE_TRUE=
3424 MAINTAINER_MODE_FALSE='#'
3426 MAINTAINER_MODE_TRUE='#'
3427 MAINTAINER_MODE_FALSE=
3430 MAINT=$MAINTAINER_MODE_TRUE
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3478 if test -z "$ac_cv_prog_CC"; then
3480 # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3487 if test -n "$ac_ct_CC"; then
3488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_CC="gcc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 $as_echo "$ac_ct_CC" >&6; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3516 if test "x$ac_ct_CC" = x; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC="${ac_tool_prefix}cc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3572 if test -z "$CC"; then
3573 # Extract the first word of "cc", so it can be a program name with args.
3574 set dummy cc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3592 ac_prog_rejected=yes
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test $ac_prog_rejected = yes; then
3604 # We found a bogon in the path, so make sure we never use it.
3605 set dummy $ac_cv_prog_CC
3607 if test $# != 0; then
3608 # We chose a different compiler from the bogus one.
3609 # However, it has the same basename, so the bogon will be chosen
3610 # first if we set CC to just the basename; use the full file name.
3612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog in cl.exe
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3669 test -n "$CC" && break
3672 if test -z "$CC"; then
3674 for ac_prog in cl.exe
3676 # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$ac_ct_CC"; then
3684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_ac_ct_CC="$ac_prog"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704 if test -n "$ac_ct_CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706 $as_echo "$ac_ct_CC" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3713 test -n "$ac_ct_CC" && break
3716 if test "x$ac_ct_CC" = x; then
3719 case $cross_compiling:$ac_tool_warned in
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned=yes ;;
3732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error "no acceptable C compiler found in \$PATH
3735 See \`config.log' for more details." "$LINENO" 5; }
3737 # Provide some information about the compiler.
3738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3741 for ac_option in --version -v -V -qversion; do
3742 { { ac_try="$ac_compiler $ac_option >&5"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3751 if test -s conftest.err; then
3753 ... rest of stderr output deleted ...
3754 10q' conftest.err >conftest.er1
3755 cat conftest.er1 >&5
3756 rm -f conftest.er1 conftest.err
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3768 FILE *f = fopen ("conftest.out", "w");
3769 return ferror (f) || fclose (f) != 0;
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3781 $as_echo_n "checking for C compiler default output file name... " >&6; }
3782 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3788 for ac_file in $ac_files
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3797 if { { ac_try="$ac_link_default"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_link_default") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; then :
3808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3810 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3811 # so that the user can short-circuit this test for compilers unknown to
3813 for ac_file in $ac_files ''
3815 test -f "$ac_file" || continue
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3820 # We found the default executable, but exeext='' is most
3824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 # We set ac_cv_exeext here because the later test for it is not
3829 # safe: cross compilers may not add the suffix if given an `-o'
3830 # argument, so we may need to know it at that point already.
3831 # Even if this section looks crufty: it has the advantage of
3838 test "$ac_cv_exeext" = no && ac_cv_exeext=
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3844 $as_echo "$ac_file" >&6; }
3845 if test -z "$ac_file"; then :
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 { as_fn_set_status 77
3852 as_fn_error "C compiler cannot create executables
3853 See \`config.log' for more details." "$LINENO" 5; }; }
3855 ac_exeext=$ac_cv_exeext
3857 # Check that the compiler produces executables we can run. If not, either
3858 # the compiler is broken, or we cross compile.
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3860 $as_echo_n "checking whether the C compiler works... " >&6; }
3861 # If not cross compiling, check that we can run a simple program.
3862 if test "$cross_compiling" != yes; then
3863 if { ac_try='./$ac_file'
3864 { { case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_try") 2>&5
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; }; then
3876 if test "$cross_compiling" = maybe; then
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error "cannot run C compiled programs.
3882 If you meant to cross compile, use \`--host'.
3883 See \`config.log' for more details." "$LINENO" 5; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3891 ac_clean_files=$ac_clean_files_save
3892 # Check that the compiler produces executables we can run. If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { { ac_try="$ac_link"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3916 for ac_file in conftest.exe conftest conftest.*; do
3917 test -f "$ac_file" || continue
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details." "$LINENO" 5; }
3931 rm -f conftest$ac_cv_exeext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3933 $as_echo "$ac_cv_exeext" >&6; }
3935 rm -f conftest.$ac_ext
3936 EXEEXT=$ac_cv_exeext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 $as_echo_n "checking for suffix of object files... " >&6; }
3940 if test "${ac_cv_objext+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3954 rm -f conftest.o conftest.obj
3955 if { { ac_try="$ac_compile"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_compile") 2>&5
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; then :
3966 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue;
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of object files: cannot compile
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3986 $as_echo "$ac_cv_objext" >&6; }
3987 OBJEXT=$ac_cv_objext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3990 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3991 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4018 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4019 if test $ac_compiler_gnu = yes; then
4024 ac_test_CFLAGS=${CFLAGS+set}
4025 ac_save_CFLAGS=$CFLAGS
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4027 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4028 if test "${ac_cv_prog_cc_g+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4031 ac_save_c_werror_flag=$ac_c_werror_flag
4032 ac_c_werror_flag=yes
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4046 if ac_fn_c_try_compile "$LINENO"; then :
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_c_werror_flag=$ac_save_c_werror_flag
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4088 $as_echo "$ac_cv_prog_cc_g" >&6; }
4089 if test "$ac_test_CFLAGS" = set; then
4090 CFLAGS=$ac_save_CFLAGS
4091 elif test $ac_cv_prog_cc_g = yes; then
4092 if test "$GCC" = yes; then
4098 if test "$GCC" = yes; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4106 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4109 ac_cv_prog_cc_c89=no
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 #include <sys/stat.h>
4117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4118 struct buf { int x; };
4119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4120 static char *e (p, i)
4126 static char *f (char * (*g) (char **, int), char **p, ...)
4131 s = g (p, va_arg (v,int));
4136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4137 function prototypes and stuff, but not '\xHH' hex character constants.
4138 These don't provoke an error unfortunately, instead are silently treated
4139 as 'x'. The following induces an error, until -std is added to get
4140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4141 array size at least. It's necessary to write '\x00'==0 to get something
4142 that's true only with -std. */
4143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4146 inside strings and character constants. */
4148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150 int test (int i, double x);
4151 struct s1 {int (*f) (int a);};
4152 struct s2 {int (*f) (double a);};
4153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167 CC="$ac_save_CC $ac_arg"
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_c89=$ac_arg
4171 rm -f core conftest.err conftest.$ac_objext
4172 test "x$ac_cv_prog_cc_c89" != "xno" && break
4174 rm -f conftest.$ac_ext
4179 case "x$ac_cv_prog_cc_c89" in
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182 $as_echo "none needed" >&6; } ;;
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;;
4187 CC="$CC $ac_cv_prog_cc_c89"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4191 if test "x$ac_cv_prog_cc_c89" != xno; then :
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 DEPDIR="${am__leading_dot}deps"
4202 ac_config_commands="$ac_config_commands depfiles"
4205 am_make=${MAKE-make}
4206 cat > confinc << 'END'
4208 @echo this is the am__doit target
4211 # If we don't find an include directive, just comment out the code.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4217 # First try GNU make style include.
4218 echo "include confinc" > confmf
4219 # Ignore all kinds of additional output from `make'.
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4227 # Now try BSD make style include.
4228 if test "$am__include" = "#"; then
4229 echo '.include "confinc"' > confmf
4230 case `$am_make -s -f confmf 2> /dev/null` in #(
4231 *the\ am__doit\ target*)
4232 am__include=.include
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4241 $as_echo "$_am_result" >&6; }
4242 rm -f confinc confmf
4244 # Check whether --enable-dependency-tracking was given.
4245 if test "${enable_dependency_tracking+set}" = set; then :
4246 enableval=$enable_dependency_tracking;
4249 if test "x$enable_dependency_tracking" != xno; then
4250 am_depcomp="$ac_aux_dir/depcomp"
4253 if test "x$enable_dependency_tracking" != xno; then
4263 depcc="$CC" am_compiler_list=
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266 $as_echo_n "checking dependency style of $depcc... " >&6; }
4267 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4271 # We make a subdir and do the tests there. Otherwise we can end up
4272 # making bogus files that we don't know about and never remove. For
4273 # instance it was reported that on HP-UX the gcc test will end up
4274 # making a dummy file named `D' -- because `-MD' means `put the output
4277 # Copy depcomp to subdir because otherwise we won't find it if we're
4278 # using a relative directory.
4279 cp "$am_depcomp" conftest.dir
4281 # We will build objects and dependencies in a subdirectory because
4282 # it helps to detect inapplicable dependency modes. For instance
4283 # both Tru64's cc and ICC support -MD to output dependencies as a
4284 # side effect of compilation, but ICC will put the dependencies in
4285 # the current directory while Tru64 will put them in the object
4289 am_cv_CC_dependencies_compiler_type=none
4290 if test "$am_compiler_list" = ""; then
4291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4294 case " $depcc " in #(
4295 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4298 for depmode in $am_compiler_list; do
4299 # Setup a source with many dependencies, because some compilers
4300 # like to wrap large dependency lists on column 80 (with \), and
4301 # we should not choose a depcomp mode which is confused by this.
4303 # We need to recreate these files for each test, as the compiler may
4304 # overwrite some of them when testing with obscure command lines.
4305 # This happens at least with the AIX C compiler.
4307 for i in 1 2 3 4 5 6; do
4308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4309 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4310 # Solaris 8's {/usr,}/bin/sh.
4311 touch sub/conftst$i.h
4313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4315 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4316 # mode. It turns out that the SunPro C++ compiler does not properly
4317 # handle `-M -o', and we need to detect this. Also, some Intel
4318 # versions had trouble with output in subdirs
4319 am__obj=sub/conftest.${OBJEXT-o}
4320 am__minus_obj="-o $am__obj"
4323 # This depmode causes a compiler race in universal mode.
4324 test "$am__universal" = false || continue
4327 # after this tag, mechanisms are not by side-effect, so they'll
4328 # only be used when explicitly requested
4329 if test "x$enable_dependency_tracking" = xyes; then
4335 msvisualcpp | msvcmsys)
4336 # This compiler won't grok `-c -o', but also, the minuso test has
4337 # not run yet. These depmodes are late enough in the game, and
4338 # so weak that their functioning should not be impacted.
4339 am__obj=conftest.${OBJEXT-o}
4344 if depmode=$depmode \
4345 source=sub/conftest.c object=$am__obj \
4346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4348 >/dev/null 2>conftest.err &&
4349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4353 # icc doesn't choke on unknown options, it will just issue warnings
4354 # or remarks (even with -Werror). So we grep stderr for any message
4355 # that says an option was ignored or not supported.
4356 # When given -MP, icc 7.0 and 7.1 complain thusly:
4357 # icc: Command line warning: ignoring option '-M'; no argument required
4358 # The diagnosis changed in icc 8.0:
4359 # icc: Command line remark: option '-MP' not supported
4360 if (grep 'ignoring option' conftest.err ||
4361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4362 am_cv_CC_dependencies_compiler_type=$depmode
4371 am_cv_CC_dependencies_compiler_type=none
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4376 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4377 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4380 test "x$enable_dependency_tracking" != xno \
4381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4383 am__fastdepCC_FALSE='#'
4385 am__fastdepCC_TRUE='#'
4386 am__fastdepCC_FALSE=
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4398 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4399 # On Suns, sometimes $CPP names a directory.
4400 if test -n "$CPP" && test -d "$CPP"; then
4403 if test -z "$CPP"; then
4404 if test "${ac_cv_prog_CPP+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 # Double quotes because CPP needs to be expanded
4408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4411 for ac_c_preproc_warn_flag in '' yes
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4422 # include <limits.h>
4424 # include <assert.h>
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4431 # Broken: fails on valid input.
4434 rm -f conftest.err conftest.$ac_ext
4436 # OK, works on sane cases. Now check whether nonexistent headers
4437 # can be detected and how.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #include <ac_nonexistent.h>
4442 if ac_fn_c_try_cpp "$LINENO"; then :
4443 # Broken: success on invalid input.
4446 # Passes both tests.
4450 rm -f conftest.err conftest.$ac_ext
4453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4454 rm -f conftest.err conftest.$ac_ext
4455 if $ac_preproc_ok; then :
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4468 $as_echo "$CPP" >&6; }
4470 for ac_c_preproc_warn_flag in '' yes
4472 # Use a header file that comes with gcc, so configuring glibc
4473 # with a fresh cross-compiler works.
4474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 # <limits.h> exists even on freestanding compilers.
4476 # On the NeXT, cc -E runs the code through the compiler's parser,
4477 # not just through cpp. "Syntax error" is here to catch this case.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4481 # include <limits.h>
4483 # include <assert.h>
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502 # Broken: success on invalid input.
4505 # Passes both tests.
4509 rm -f conftest.err conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." "$LINENO" 5; }
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4531 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4532 if test "${ac_cv_path_GREP+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4535 if test -z "$GREP"; then
4536 ac_path_GREP_found=false
4537 # Loop through the user's path and test for each of PROGNAME-LIST
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 test -z "$as_dir" && as_dir=.
4543 for ac_prog in grep ggrep; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4546 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4547 # Check for GNU ac_path_GREP and select it if it is found.
4548 # Check for GNU $ac_path_GREP
4549 case `"$ac_path_GREP" --version 2>&1` in
4551 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4554 $as_echo_n 0123456789 >"conftest.in"
4557 cat "conftest.in" "conftest.in" >"conftest.tmp"
4558 mv "conftest.tmp" "conftest.in"
4559 cp "conftest.in" "conftest.nl"
4560 $as_echo 'GREP' >> "conftest.nl"
4561 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563 as_fn_arith $ac_count + 1 && ac_count=$as_val
4564 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4565 # Best one so far, save it but keep looking for a better one
4566 ac_cv_path_GREP="$ac_path_GREP"
4567 ac_path_GREP_max=$ac_count
4569 # 10*(2^10) chars as input seems more than enough
4570 test $ac_count -gt 10 && break
4572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4575 $ac_path_GREP_found && break 3
4580 if test -z "$ac_cv_path_GREP"; then
4581 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4584 ac_cv_path_GREP=$GREP
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4589 $as_echo "$ac_cv_path_GREP" >&6; }
4590 GREP="$ac_cv_path_GREP"
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4594 $as_echo_n "checking for egrep... " >&6; }
4595 if test "${ac_cv_path_EGREP+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4598 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4599 then ac_cv_path_EGREP="$GREP -E"
4601 if test -z "$EGREP"; then
4602 ac_path_EGREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in egrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4613 # Check for GNU ac_path_EGREP and select it if it is found.
4614 # Check for GNU $ac_path_EGREP
4615 case `"$ac_path_EGREP" --version 2>&1` in
4617 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4620 $as_echo_n 0123456789 >"conftest.in"
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo 'EGREP' >> "conftest.nl"
4627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_EGREP="$ac_path_EGREP"
4633 ac_path_EGREP_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 $ac_path_EGREP_found && break 3
4646 if test -z "$ac_cv_path_EGREP"; then
4647 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4650 ac_cv_path_EGREP=$EGREP
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4656 $as_echo "$ac_cv_path_EGREP" >&6; }
4657 EGREP="$ac_cv_path_EGREP"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4661 $as_echo_n "checking for ANSI C header files... " >&6; }
4662 if test "${ac_cv_header_stdc+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_cv_header_stdc=yes
4683 ac_cv_header_stdc=no
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 if test $ac_cv_header_stdc = yes; then
4688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4695 $EGREP "memchr" >/dev/null 2>&1; then :
4698 ac_cv_header_stdc=no
4704 if test $ac_cv_header_stdc = yes; then
4705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4712 $EGREP "free" >/dev/null 2>&1; then :
4715 ac_cv_header_stdc=no
4721 if test $ac_cv_header_stdc = yes; then
4722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4723 if test "$cross_compiling" = yes; then :
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 #if ((' ' & 0x0FF) == 0x020)
4731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4734 # define ISLOWER(c) \
4735 (('a' <= (c) && (c) <= 'i') \
4736 || ('j' <= (c) && (c) <= 'r') \
4737 || ('s' <= (c) && (c) <= 'z'))
4738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4746 for (i = 0; i < 256; i++)
4747 if (XOR (islower (i), ISLOWER (i))
4748 || toupper (i) != TOUPPER (i))
4753 if ac_fn_c_try_run "$LINENO"; then :
4756 ac_cv_header_stdc=no
4758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4759 conftest.$ac_objext conftest.beam conftest.$ac_ext
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4765 $as_echo "$ac_cv_header_stdc" >&6; }
4766 if test $ac_cv_header_stdc = yes; then
4768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4781 macro_version='2.2.6'
4782 macro_revision='1.3012'
4796 ltmain="$ac_aux_dir/ltmain.sh"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4799 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4800 if test "${ac_cv_path_SED+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4804 for ac_i in 1 2 3 4 5 6 7; do
4805 ac_script="$ac_script$as_nl$ac_script"
4807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4808 { ac_script=; unset ac_script;}
4809 if test -z "$SED"; then
4810 ac_path_SED_found=false
4811 # Loop through the user's path and test for each of PROGNAME-LIST
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_prog in sed gsed; do
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4820 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4821 # Check for GNU ac_path_SED and select it if it is found.
4822 # Check for GNU $ac_path_SED
4823 case `"$ac_path_SED" --version 2>&1` in
4825 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4828 $as_echo_n 0123456789 >"conftest.in"
4831 cat "conftest.in" "conftest.in" >"conftest.tmp"
4832 mv "conftest.tmp" "conftest.in"
4833 cp "conftest.in" "conftest.nl"
4834 $as_echo '' >> "conftest.nl"
4835 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837 as_fn_arith $ac_count + 1 && ac_count=$as_val
4838 if test $ac_count -gt ${ac_path_SED_max-0}; then
4839 # Best one so far, save it but keep looking for a better one
4840 ac_cv_path_SED="$ac_path_SED"
4841 ac_path_SED_max=$ac_count
4843 # 10*(2^10) chars as input seems more than enough
4844 test $ac_count -gt 10 && break
4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 $ac_path_SED_found && break 3
4854 if test -z "$ac_cv_path_SED"; then
4855 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4863 $as_echo "$ac_cv_path_SED" >&6; }
4864 SED="$ac_cv_path_SED"
4867 test -z "$SED" && SED=sed
4868 Xsed="$SED -e 1s/^X//"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4881 $as_echo_n "checking for fgrep... " >&6; }
4882 if test "${ac_cv_path_FGREP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4886 then ac_cv_path_FGREP="$GREP -F"
4888 if test -z "$FGREP"; then
4889 ac_path_FGREP_found=false
4890 # Loop through the user's path and test for each of PROGNAME-LIST
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 test -z "$as_dir" && as_dir=.
4896 for ac_prog in fgrep; do
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4899 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4900 # Check for GNU ac_path_FGREP and select it if it is found.
4901 # Check for GNU $ac_path_FGREP
4902 case `"$ac_path_FGREP" --version 2>&1` in
4904 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4907 $as_echo_n 0123456789 >"conftest.in"
4910 cat "conftest.in" "conftest.in" >"conftest.tmp"
4911 mv "conftest.tmp" "conftest.in"
4912 cp "conftest.in" "conftest.nl"
4913 $as_echo 'FGREP' >> "conftest.nl"
4914 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916 as_fn_arith $ac_count + 1 && ac_count=$as_val
4917 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4918 # Best one so far, save it but keep looking for a better one
4919 ac_cv_path_FGREP="$ac_path_FGREP"
4920 ac_path_FGREP_max=$ac_count
4922 # 10*(2^10) chars as input seems more than enough
4923 test $ac_count -gt 10 && break
4925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928 $ac_path_FGREP_found && break 3
4933 if test -z "$ac_cv_path_FGREP"; then
4934 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 ac_cv_path_FGREP=$FGREP
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4943 $as_echo "$ac_cv_path_FGREP" >&6; }
4944 FGREP="$ac_cv_path_FGREP"
4947 test -z "$GREP" && GREP=grep
4967 # Check whether --with-gnu-ld was given.
4968 if test "${with_gnu_ld+set}" = set; then :
4969 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4975 if test "$GCC" = yes; then
4976 # Check if gcc -print-prog-name=ld gives a path.
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4978 $as_echo_n "checking for ld used by $CC... " >&6; }
4981 # gcc leaves a trailing carriage return which upsets mingw
4982 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4984 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4987 # Accept absolute paths.
4989 re_direlt='/[^/][^/]*/\.\./'
4990 # Canonicalize the pathname of ld
4991 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4992 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4993 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4995 test -z "$LD" && LD="$ac_prog"
4998 # If it fails, then pretend we aren't using GCC.
5002 # If it is relative, then search for the first ld in PATH.
5006 elif test "$with_gnu_ld" = yes; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5008 $as_echo_n "checking for GNU ld... " >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5011 $as_echo_n "checking for non-GNU ld... " >&6; }
5013 if test "${lt_cv_path_LD+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5016 if test -z "$LD"; then
5017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5018 for ac_dir in $PATH; do
5020 test -z "$ac_dir" && ac_dir=.
5021 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5022 lt_cv_path_LD="$ac_dir/$ac_prog"
5023 # Check to see if the program is GNU ld. I'd rather use --version,
5024 # but apparently some variants of GNU ld only accept -v.
5025 # Break only if it was the GNU/non-GNU ld that we prefer.
5026 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5027 *GNU* | *'with BFD'*)
5028 test "$with_gnu_ld" != no && break
5031 test "$with_gnu_ld" != yes && break
5038 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5043 if test -n "$LD"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5045 $as_echo "$LD" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5050 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5053 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5057 case `$LD -v 2>&1 </dev/null` in
5058 *GNU* | *'with BFD'*)
5059 lt_cv_prog_gnu_ld=yes
5062 lt_cv_prog_gnu_ld=no
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5068 with_gnu_ld=$lt_cv_prog_gnu_ld
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5079 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5080 if test "${lt_cv_path_NM+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -n "$NM"; then
5084 # Let the user override the test.
5087 lt_nm_to_check="${ac_tool_prefix}nm"
5088 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5089 lt_nm_to_check="$lt_nm_to_check nm"
5091 for lt_tmp_nm in $lt_nm_to_check; do
5092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5093 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5095 test -z "$ac_dir" && ac_dir=.
5096 tmp_nm="$ac_dir/$lt_tmp_nm"
5097 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5098 # Check to see if the nm accepts a BSD-compat flag.
5099 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5100 # nm: unknown option "B" ignored
5101 # Tru64's nm complains that /dev/null is an invalid object file
5102 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5103 */dev/null* | *'Invalid file or object type'*)
5104 lt_cv_path_NM="$tmp_nm -B"
5108 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5110 lt_cv_path_NM="$tmp_nm -p"
5114 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5115 continue # so that we can try to find one that supports BSD flags
5124 : ${lt_cv_path_NM=no}
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5128 $as_echo "$lt_cv_path_NM" >&6; }
5129 if test "$lt_cv_path_NM" != "no"; then
5132 # Didn't find any BSD compatible name lister, look for dumpbin.
5133 if test -n "$ac_tool_prefix"; then
5134 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5143 if test -n "$DUMPBIN"; then
5144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 DUMPBIN=$ac_cv_prog_DUMPBIN
5164 if test -n "$DUMPBIN"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5166 $as_echo "$DUMPBIN" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 test -n "$DUMPBIN" && break
5176 if test -z "$DUMPBIN"; then
5177 ac_ct_DUMPBIN=$DUMPBIN
5178 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5180 # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$ac_ct_DUMPBIN"; then
5188 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5208 if test -n "$ac_ct_DUMPBIN"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5210 $as_echo "$ac_ct_DUMPBIN" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 test -n "$ac_ct_DUMPBIN" && break
5220 if test "x$ac_ct_DUMPBIN" = x; then
5223 case $cross_compiling:$ac_tool_warned in
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5229 DUMPBIN=$ac_ct_DUMPBIN
5234 if test "$DUMPBIN" != ":"; then
5238 test -z "$NM" && NM=nm
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5246 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5247 if test "${lt_cv_nm_interface+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 lt_cv_nm_interface="BSD nm"
5251 echo "int some_variable = 0;" > conftest.$ac_ext
5252 (eval echo "\"\$as_me:5252: $ac_compile\"" >&5)
5253 (eval "$ac_compile" 2>conftest.err)
5254 cat conftest.err >&5
5255 (eval echo "\"\$as_me:5255: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5257 cat conftest.err >&5
5258 (eval echo "\"\$as_me:5258: output\"" >&5)
5259 cat conftest.out >&5
5260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5261 lt_cv_nm_interface="MS dumpbin"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5266 $as_echo "$lt_cv_nm_interface" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5269 $as_echo_n "checking whether ln -s works... " >&6; }
5271 if test "$LN_S" = "ln -s"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273 $as_echo "yes" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5276 $as_echo "no, using $LN_S" >&6; }
5279 # find the maximum length of command line arguments
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5281 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5282 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5290 # On DJGPP, this test can blow up pretty badly due to problems in libc
5291 # (any single argument exceeding 2000 bytes causes a buffer overrun
5292 # during glob expansion). Even if it were fixed, the result of this
5293 # check would be larger than it should be.
5294 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5298 # Under GNU Hurd, this test is not required because there is
5299 # no limit to the length of command line arguments.
5300 # Libtool will interpret -1 as no limit whatsoever
5301 lt_cv_sys_max_cmd_len=-1;
5304 cygwin* | mingw* | cegcc*)
5305 # On Win9x/ME, this test blows up -- it succeeds, but takes
5306 # about 5 minutes as the teststring grows exponentially.
5307 # Worse, since 9x/ME are not pre-emptively multitasking,
5308 # you end up with a "frozen" computer, even though with patience
5309 # the test eventually succeeds (with a max line length of 256k).
5310 # Instead, let's just punt: use the minimum linelength reported by
5311 # all of the supported platforms: 8192 (on NT/2K/XP).
5312 lt_cv_sys_max_cmd_len=8192;
5316 # On AmigaOS with pdksh, this test takes hours, literally.
5317 # So we just punt and use a minimum line length of 8192.
5318 lt_cv_sys_max_cmd_len=8192;
5321 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5322 # This has been around since 386BSD, at least. Likely further.
5323 if test -x /sbin/sysctl; then
5324 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5325 elif test -x /usr/sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5328 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5330 # And add a safety zone
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5336 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5337 lt_cv_sys_max_cmd_len=196608
5341 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5342 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5343 # nice to cause kernel panics so lets avoid the loop below.
5344 # First set a reasonable default.
5345 lt_cv_sys_max_cmd_len=16384
5347 if test -x /sbin/sysconfig; then
5348 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5349 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5354 lt_cv_sys_max_cmd_len=102400
5356 sysv5* | sco5v6* | sysv4.2uw2*)
5357 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5358 if test -n "$kargmax"; then
5359 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5361 lt_cv_sys_max_cmd_len=32768
5365 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366 if test -n "$lt_cv_sys_max_cmd_len"; then
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370 # Make teststring a little bigger before we do anything with it.
5371 # a 1K string should be a reasonable start.
5372 for i in 1 2 3 4 5 6 7 8 ; do
5373 teststring=$teststring$teststring
5375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5376 # If test is not a shell built-in, we'll probably end up computing a
5377 # maximum length that is only half of the actual maximum length, but
5379 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5380 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5381 test $i != 17 # 1/2 MB should be enough
5384 teststring=$teststring$teststring
5386 # Only check the string length outside the loop.
5387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5389 # Add a significant safety factor because C++ compilers can tack on
5390 # massive amounts of additional arguments before passing them to the
5391 # linker. It appears as though 1/2 is a usable value.
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5399 if test -n $lt_cv_sys_max_cmd_len ; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5404 $as_echo "none" >&6; }
5406 max_cmd_len=$lt_cv_sys_max_cmd_len
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5418 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5419 # Try some XSI features
5422 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5424 && eval 'test $(( 1 + 1 )) -eq 2 \
5425 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5428 $as_echo "$xsi_shell" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5432 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5434 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436 && lt_shell_append=yes
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5438 $as_echo "$lt_shell_append" >&6; }
5441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5451 # test EBCDIC or ASCII
5452 case `echo X|tr X '\101'` in
5453 A) # ASCII based system
5454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5455 lt_SP2NL='tr \040 \012'
5456 lt_NL2SP='tr \015\012 \040\040'
5458 *) # EBCDIC based system
5459 lt_SP2NL='tr \100 \n'
5460 lt_NL2SP='tr \r\n \100\100'
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5473 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5474 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5477 lt_cv_ld_reload_flag='-r'
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5480 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5481 reload_flag=$lt_cv_ld_reload_flag
5482 case $reload_flag in
5484 *) reload_flag=" $reload_flag" ;;
5486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489 if test "$GCC" = yes; then
5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5513 if test -n "$OBJDUMP"; then
5514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 OBJDUMP=$ac_cv_prog_OBJDUMP
5534 if test -n "$OBJDUMP"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5536 $as_echo "$OBJDUMP" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5544 if test -z "$ac_cv_prog_OBJDUMP"; then
5545 ac_ct_OBJDUMP=$OBJDUMP
5546 # Extract the first word of "objdump", so it can be a program name with args.
5547 set dummy objdump; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5553 if test -n "$ac_ct_OBJDUMP"; then
5554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5576 $as_echo "$ac_ct_OBJDUMP" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5582 if test "x$ac_ct_OBJDUMP" = x; then
5585 case $cross_compiling:$ac_tool_warned in
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5591 OBJDUMP=$ac_ct_OBJDUMP
5594 OBJDUMP="$ac_cv_prog_OBJDUMP"
5597 test -z "$OBJDUMP" && OBJDUMP=objdump
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5608 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5609 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 lt_cv_file_magic_cmd='$MAGIC_CMD'
5613 lt_cv_file_magic_test_file=
5614 lt_cv_deplibs_check_method='unknown'
5615 # Need to set the preceding variable on all platforms that support
5616 # interlibrary dependencies.
5617 # 'none' -- dependencies not supported.
5618 # `unknown' -- same as none, but documents that we really don't know.
5619 # 'pass_all' -- all dependencies passed with no checks.
5620 # 'test_compile' -- check by making test program.
5621 # 'file_magic [[regex]]' -- check by looking for files in library path
5622 # which responds to the $file_magic_cmd with a given extended regex.
5623 # If you have `file' or equivalent on your system and you're not sure
5624 # whether `pass_all' will *always* work, you probably want this one.
5628 lt_cv_deplibs_check_method=pass_all
5632 lt_cv_deplibs_check_method=pass_all
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5637 lt_cv_file_magic_cmd='/usr/bin/file -L'
5638 lt_cv_file_magic_test_file=/shlib/libc.so
5642 # func_win32_libid is a shell function defined in ltmain.sh
5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644 lt_cv_file_magic_cmd='func_win32_libid'
5648 # Base MSYS/MinGW do not provide the 'file' command needed by
5649 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5650 # unless we find 'file', for example because we are cross-compiling.
5651 if ( file / ) >/dev/null 2>&1; then
5652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5653 lt_cv_file_magic_cmd='func_win32_libid'
5655 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5656 lt_cv_file_magic_cmd='$OBJDUMP -f'
5661 # use the weaker test based on 'objdump'. See mingw*.
5662 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5663 lt_cv_file_magic_cmd='$OBJDUMP -f'
5666 darwin* | rhapsody*)
5667 lt_cv_deplibs_check_method=pass_all
5670 freebsd* | dragonfly*)
5671 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5674 # Not sure whether the presence of OpenBSD here was a mistake.
5675 # Let's accept both of them until this is cleared up.
5676 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5677 lt_cv_file_magic_cmd=/usr/bin/file
5678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5682 lt_cv_deplibs_check_method=pass_all
5687 lt_cv_deplibs_check_method=pass_all
5690 hpux10.20* | hpux11*)
5691 lt_cv_file_magic_cmd=/usr/bin/file
5694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5695 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5698 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5699 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5703 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5709 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5713 irix5* | irix6* | nonstopux*)
5715 *-32|*"-32 ") libmagic=32-bit;;
5716 *-n32|*"-n32 ") libmagic=N32;;
5717 *-64|*"-64 ") libmagic=64-bit;;
5718 *) libmagic=never-match;;
5720 lt_cv_deplibs_check_method=pass_all
5723 # This must be Linux ELF.
5724 linux* | k*bsd*-gnu)
5725 lt_cv_deplibs_check_method=pass_all
5728 netbsd* | netbsdelf*-gnu)
5729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5738 lt_cv_file_magic_cmd=/usr/bin/file
5739 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5743 lt_cv_deplibs_check_method=pass_all
5747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 osf3* | osf4* | osf5*)
5755 lt_cv_deplibs_check_method=pass_all
5759 lt_cv_deplibs_check_method=pass_all
5763 lt_cv_deplibs_check_method=pass_all
5766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5767 lt_cv_deplibs_check_method=pass_all
5771 case $host_vendor in
5773 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]'
5774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5777 lt_cv_deplibs_check_method=pass_all
5780 lt_cv_file_magic_cmd='/bin/file'
5781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5784 lt_cv_file_magic_cmd='/bin/file'
5785 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5786 lt_cv_file_magic_test_file=/lib/libc.so
5789 lt_cv_deplibs_check_method=pass_all
5792 lt_cv_deplibs_check_method=pass_all
5798 lt_cv_deplibs_check_method=pass_all
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5804 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5805 file_magic_cmd=$lt_cv_file_magic_cmd
5806 deplibs_check_method=$lt_cv_deplibs_check_method
5807 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5820 if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}ar; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_prog_AR+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5828 if test -n "$AR"; then
5829 ac_cv_prog_AR="$AR" # Let the user override the test.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_prog_AR="${ac_tool_prefix}ar"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 if test -n "$AR"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5851 $as_echo "$AR" >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5859 if test -z "$ac_cv_prog_AR"; then
5861 # Extract the first word of "ar", so it can be a program name with args.
5862 set dummy ar; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5868 if test -n "$ac_ct_AR"; then
5869 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_prog_ac_ct_AR="ar"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5889 if test -n "$ac_ct_AR"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5891 $as_echo "$ac_ct_AR" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5897 if test "x$ac_ct_AR" = x; then
5900 case $cross_compiling:$ac_tool_warned in
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5912 test -z "$AR" && AR=ar
5913 test -z "$AR_FLAGS" && AR_FLAGS=cru
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}strip; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_STRIP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 if test -n "$STRIP"; then
5934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5956 $as_echo "$STRIP" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5964 if test -z "$ac_cv_prog_STRIP"; then
5966 # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5973 if test -n "$ac_ct_STRIP"; then
5974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_ac_ct_STRIP="strip"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5996 $as_echo "$ac_ct_STRIP" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6002 if test "x$ac_ct_STRIP" = x; then
6005 case $cross_compiling:$ac_tool_warned in
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6014 STRIP="$ac_cv_prog_STRIP"
6017 test -z "$STRIP" && STRIP=:
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064 ac_ct_RANLIB=$RANLIB
6065 # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_RANLIB="ranlib"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_RANLIB" = x; then
6104 case $cross_compiling:$ac_tool_warned in
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6110 RANLIB=$ac_ct_RANLIB
6113 RANLIB="$ac_cv_prog_RANLIB"
6116 test -z "$RANLIB" && RANLIB=:
6123 # Determine commands to create old-style static archives.
6124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6125 old_postinstall_cmds='chmod 644 $oldlib'
6126 old_postuninstall_cmds=
6128 if test -n "$RANLIB"; then
6131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6137 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6173 # If no C compiler was specified, use CC.
6176 # If no C compiler flags were specified, use CFLAGS.
6177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6179 # Allow CC to be a program name with arguments.
6183 # Check for command to grab the raw symbol name followed by C symbol from nm.
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6185 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6186 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6190 # These are sane defaults that work on at least a few old systems.
6191 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6193 # Character class describing NM global symbol codes.
6194 symcode='[BCDEGRST]'
6196 # Regexp to match symbols that can be accessed directly from C.
6197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6199 # Define system-specific variables.
6204 cygwin* | mingw* | pw32* | cegcc*)
6205 symcode='[ABCDGISTW]'
6208 if test "$host_cpu" = ia64; then
6209 symcode='[ABCDEGRST]'
6213 symcode='[BCDEGRST]'
6216 symcode='[BCDEGQRST]'
6227 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6235 # If we're using GNU nm, then use its standard symbol codes.
6236 case `$NM -V 2>&1` in
6237 *GNU* | *'with BFD'*)
6238 symcode='[ABCDGIRSTW]' ;;
6241 # Transform an extracted symbol line into a proper C declaration.
6242 # Some systems (esp. on ia64) link data and code symbols differently,
6243 # so use this general approach.
6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6246 # Transform an extracted symbol line into symbol name and symbol address
6247 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6248 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'"
6250 # Handle CRLF in mingw tool chain
6254 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6258 # Try without a prefix underscore, then with it.
6259 for ac_symprfx in "" "_"; do
6261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262 symxfrm="\\1 $ac_symprfx\\2 \\2"
6264 # Write the raw and C identifiers.
6265 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266 # Fake it for dumpbin and say T for any non-static function
6267 # and D for any global variable.
6268 # Also find C++ and __fastcall symbols from MSVC++,
6269 # which start with @ or ?.
6270 lt_cv_sys_global_symbol_pipe="$AWK '"\
6271 " {last_section=section; section=\$ 3};"\
6272 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6273 " \$ 0!~/External *\|/{next};"\
6274 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6275 " {if(hide[section]) next};"\
6276 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6277 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6278 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6279 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6280 " ' prfx=^$ac_symprfx"
6282 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6285 # Check to see that the pipe works correctly.
6289 cat > conftest.$ac_ext <<_LT_EOF
6294 void nm_test_func(void);
6295 void nm_test_func(void){}
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303 (eval $ac_compile) 2>&5
6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }; then
6307 # Now try to grab the symbols.
6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6310 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; } && test -s "$nlist"; then
6314 # Try sorting and uniquifying the output.
6315 if sort "$nlist" | uniq > "$nlist"T; then
6316 mv -f "$nlist"T "$nlist"
6321 # Make sure that we snagged all the symbols we need.
6322 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6323 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6324 cat <<_LT_EOF > conftest.$ac_ext
6330 # Now generate the symbol file.
6331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6333 cat <<_LT_EOF >> conftest.$ac_ext
6335 /* The mapping between symbol names and symbols. */
6340 lt__PROGRAM__LTX_preloaded_symbols[] =
6342 { "@PROGRAM@", (void *) 0 },
6344 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6345 cat <<\_LT_EOF >> conftest.$ac_ext
6349 /* This works around a problem in FreeBSD linker */
6350 #ifdef FREEBSD_WORKAROUND
6351 static const void *lt_preloaded_setup() {
6352 return lt__PROGRAM__LTX_preloaded_symbols;
6360 # Now try linking the two files.
6361 mv conftest.$ac_objext conftstm.$ac_objext
6362 lt_save_LIBS="$LIBS"
6363 lt_save_CFLAGS="$CFLAGS"
6364 LIBS="conftstm.$ac_objext"
6365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6367 (eval $ac_link) 2>&5
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6373 LIBS="$lt_save_LIBS"
6374 CFLAGS="$lt_save_CFLAGS"
6376 echo "cannot find nm_test_func in $nlist" >&5
6379 echo "cannot find nm_test_var in $nlist" >&5
6382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6385 echo "$progname: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 rm -rf conftest* conftst*
6390 # Do not use the global_symbol_pipe unless it works.
6391 if test "$pipe_works" = yes; then
6394 lt_cv_sys_global_symbol_pipe=
6400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401 lt_cv_sys_global_symbol_to_cdecl=
6403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6405 $as_echo "failed" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6408 $as_echo "ok" >&6; }
6432 # Check whether --enable-libtool-lock was given.
6433 if test "${enable_libtool_lock+set}" = set; then :
6434 enableval=$enable_libtool_lock;
6437 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6439 # Some flags need to be propagated to the compiler or linker for good
6443 # Find out which ABI we are using.
6444 echo 'int i;' > conftest.$ac_ext
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446 (eval $ac_compile) 2>&5
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
6450 case `/usr/bin/file conftest.$ac_objext` in
6462 # Find out which ABI we are using.
6463 echo '#line 6463 "configure"' > conftest.$ac_ext
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 if test "$lt_cv_prog_gnu_ld" = yes; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6472 LD="${LD-ld} -melf32bsmip"
6475 LD="${LD-ld} -melf32bmipn32"
6478 LD="${LD-ld} -melf64bmip"
6482 case `/usr/bin/file conftest.$ac_objext` in
6498 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6499 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6500 # Find out which ABI we are using.
6501 echo 'int i;' > conftest.$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 case `/usr/bin/file conftest.o` in
6510 x86_64-*kfreebsd*-gnu)
6511 LD="${LD-ld} -m elf_i386_fbsd"
6514 LD="${LD-ld} -m elf_i386"
6516 ppc64-*linux*|powerpc64-*linux*)
6517 LD="${LD-ld} -m elf32ppclinux"
6520 LD="${LD-ld} -m elf_s390"
6523 LD="${LD-ld} -m elf32_sparc"
6529 x86_64-*kfreebsd*-gnu)
6530 LD="${LD-ld} -m elf_x86_64_fbsd"
6533 LD="${LD-ld} -m elf_x86_64"
6535 ppc*-*linux*|powerpc*-*linux*)
6536 LD="${LD-ld} -m elf64ppc"
6538 s390*-*linux*|s390*-*tpf*)
6539 LD="${LD-ld} -m elf64_s390"
6542 LD="${LD-ld} -m elf64_sparc"
6552 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6553 SAVE_CFLAGS="$CFLAGS"
6554 CFLAGS="$CFLAGS -belf"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6556 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6557 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6577 if ac_fn_c_try_link "$LINENO"; then :
6578 lt_cv_cc_needs_belf=yes
6580 lt_cv_cc_needs_belf=no
6582 rm -f core conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6585 ac_cpp='$CPP $CPPFLAGS'
6586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6592 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6593 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6595 CFLAGS="$SAVE_CFLAGS"
6599 # Find out which ABI we are using.
6600 echo 'int i;' > conftest.$ac_ext
6601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6602 (eval $ac_compile) 2>&5
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }; then
6606 case `/usr/bin/file conftest.o` in
6608 case $lt_cv_prog_gnu_ld in
6609 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6611 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6623 need_locks="$enable_libtool_lock"
6627 rhapsody* | darwin*)
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6636 if test -n "$DSYMUTIL"; then
6637 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6657 if test -n "$DSYMUTIL"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6659 $as_echo "$DSYMUTIL" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6667 if test -z "$ac_cv_prog_DSYMUTIL"; then
6668 ac_ct_DSYMUTIL=$DSYMUTIL
6669 # Extract the first word of "dsymutil", so it can be a program name with args.
6670 set dummy dsymutil; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$ac_ct_DSYMUTIL"; then
6677 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6697 if test -n "$ac_ct_DSYMUTIL"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6699 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 if test "x$ac_ct_DSYMUTIL" = x; then
6708 case $cross_compiling:$ac_tool_warned in
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6714 DSYMUTIL=$ac_ct_DSYMUTIL
6717 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6728 if test -n "$NMEDIT"; then
6729 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 NMEDIT=$ac_cv_prog_NMEDIT
6749 if test -n "$NMEDIT"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6751 $as_echo "$NMEDIT" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test -z "$ac_cv_prog_NMEDIT"; then
6760 ac_ct_NMEDIT=$NMEDIT
6761 # Extract the first word of "nmedit", so it can be a program name with args.
6762 set dummy nmedit; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6768 if test -n "$ac_ct_NMEDIT"; then
6769 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6789 if test -n "$ac_ct_NMEDIT"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6791 $as_echo "$ac_ct_NMEDIT" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6797 if test "x$ac_ct_NMEDIT" = x; then
6800 case $cross_compiling:$ac_tool_warned in
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6806 NMEDIT=$ac_ct_NMEDIT
6809 NMEDIT="$ac_cv_prog_NMEDIT"
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if test "${ac_cv_prog_LIPO+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 if test -n "$LIPO"; then
6821 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 LIPO=$ac_cv_prog_LIPO
6841 if test -n "$LIPO"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6843 $as_echo "$LIPO" >&6; }
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6851 if test -z "$ac_cv_prog_LIPO"; then
6853 # Extract the first word of "lipo", so it can be a program name with args.
6854 set dummy lipo; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6860 if test -n "$ac_ct_LIPO"; then
6861 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_prog_ac_ct_LIPO="lipo"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6881 if test -n "$ac_ct_LIPO"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6883 $as_echo "$ac_ct_LIPO" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6889 if test "x$ac_ct_LIPO" = x; then
6892 case $cross_compiling:$ac_tool_warned in
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6901 LIPO="$ac_cv_prog_LIPO"
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}otool; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6912 if test -n "$OTOOL"; then
6913 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 OTOOL=$ac_cv_prog_OTOOL
6933 if test -n "$OTOOL"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6935 $as_echo "$OTOOL" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6943 if test -z "$ac_cv_prog_OTOOL"; then
6945 # Extract the first word of "otool", so it can be a program name with args.
6946 set dummy otool; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6952 if test -n "$ac_ct_OTOOL"; then
6953 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_ac_ct_OTOOL="otool"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6973 if test -n "$ac_ct_OTOOL"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6975 $as_echo "$ac_ct_OTOOL" >&6; }
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6981 if test "x$ac_ct_OTOOL" = x; then
6984 case $cross_compiling:$ac_tool_warned in
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6988 ac_tool_warned=yes ;;
6993 OTOOL="$ac_cv_prog_OTOOL"
6996 if test -n "$ac_tool_prefix"; then
6997 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6998 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7004 if test -n "$OTOOL64"; then
7005 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 OTOOL64=$ac_cv_prog_OTOOL64
7025 if test -n "$OTOOL64"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7027 $as_echo "$OTOOL64" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7035 if test -z "$ac_cv_prog_OTOOL64"; then
7036 ac_ct_OTOOL64=$OTOOL64
7037 # Extract the first word of "otool64", so it can be a program name with args.
7038 set dummy otool64; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7044 if test -n "$ac_ct_OTOOL64"; then
7045 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_prog_ac_ct_OTOOL64="otool64"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7065 if test -n "$ac_ct_OTOOL64"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7067 $as_echo "$ac_ct_OTOOL64" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7073 if test "x$ac_ct_OTOOL64" = x; then
7076 case $cross_compiling:$ac_tool_warned in
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7082 OTOOL64=$ac_ct_OTOOL64
7085 OTOOL64="$ac_cv_prog_OTOOL64"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7115 $as_echo_n "checking for -single_module linker flag... " >&6; }
7116 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7119 lt_cv_apple_cc_single_mod=no
7120 if test -z "${LT_MULTI_MODULE}"; then
7121 # By default we will add the -single_module flag. You can override
7122 # by either setting the environment variable LT_MULTI_MODULE
7123 # non-empty at configure time, or by adding -multi_module to the
7125 rm -rf libconftest.dylib*
7126 echo "int foo(void){return 1;}" > conftest.c
7127 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7128 -dynamiclib -Wl,-single_module conftest.c" >&5
7129 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7130 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7132 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7133 lt_cv_apple_cc_single_mod=yes
7135 cat conftest.err >&5
7137 rm -rf libconftest.dylib*
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7142 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7144 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7145 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7148 lt_cv_ld_exported_symbols_list=no
7149 save_LDFLAGS=$LDFLAGS
7150 echo "_main" > conftest.sym
7151 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7163 if ac_fn_c_try_link "$LINENO"; then :
7164 lt_cv_ld_exported_symbols_list=yes
7166 lt_cv_ld_exported_symbols_list=no
7168 rm -f core conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7170 LDFLAGS="$save_LDFLAGS"
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7174 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7176 rhapsody* | darwin1.[012])
7177 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7180 darwin*) # darwin 5.x on
7181 # if running on 10.5 or later, the deployment target defaults
7182 # to the OS version, if on x86, and 10.4, the deployment
7183 # target defaults to 10.4. Don't you love it?
7184 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7185 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7186 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7188 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7190 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7194 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7195 _lt_dar_single_mod='$single_module'
7197 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7198 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7200 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7202 if test "$DSYMUTIL" != ":"; then
7203 _lt_dsymutil='~$DSYMUTIL $lib || :'
7210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7212 inttypes.h stdint.h unistd.h
7214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7215 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7217 eval as_val=\$$as_ac_Header
7218 if test "x$as_val" = x""yes; then :
7219 cat >>confdefs.h <<_ACEOF
7220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228 for ac_header in dlfcn.h
7230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7232 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7233 cat >>confdefs.h <<_ACEOF
7234 #define HAVE_DLFCN_H 1
7253 # Check whether --enable-shared was given.
7254 if test "${enable_shared+set}" = set; then :
7255 enableval=$enable_shared; p=${PACKAGE-default}
7257 yes) enable_shared=yes ;;
7258 no) enable_shared=no ;;
7261 # Look at the argument we got. We use all the common list separators.
7262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7263 for pkg in $enableval; do
7265 if test "X$pkg" = "X$p"; then
7284 # Check whether --enable-static was given.
7285 if test "${enable_static+set}" = set; then :
7286 enableval=$enable_static; p=${PACKAGE-default}
7288 yes) enable_static=yes ;;
7289 no) enable_static=no ;;
7292 # Look at the argument we got. We use all the common list separators.
7293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7294 for pkg in $enableval; do
7296 if test "X$pkg" = "X$p"; then
7316 # Check whether --with-pic was given.
7317 if test "${with_pic+set}" = set; then :
7318 withval=$with_pic; pic_mode="$withval"
7324 test -z "$pic_mode" && pic_mode=default
7332 # Check whether --enable-fast-install was given.
7333 if test "${enable_fast_install+set}" = set; then :
7334 enableval=$enable_fast_install; p=${PACKAGE-default}
7336 yes) enable_fast_install=yes ;;
7337 no) enable_fast_install=no ;;
7339 enable_fast_install=no
7340 # Look at the argument we got. We use all the common list separators.
7341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7342 for pkg in $enableval; do
7344 if test "X$pkg" = "X$p"; then
7345 enable_fast_install=yes
7352 enable_fast_install=yes
7365 # This can be used to rebuild libtool when needed
7366 LIBTOOL_DEPS="$ltmain"
7368 # Always use our own libtool.
7369 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7395 test -z "$LN_S" && LN_S="ln -s"
7410 if test -n "${ZSH_VERSION+set}" ; then
7411 setopt NO_GLOB_SUBST
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7415 $as_echo_n "checking for objdir... " >&6; }
7416 if test "${lt_cv_objdir+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 rm -f .libs 2>/dev/null
7420 mkdir .libs 2>/dev/null
7421 if test -d .libs; then
7424 # MS-DOS does not allow filenames that begin with a dot.
7427 rmdir .libs 2>/dev/null
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7430 $as_echo "$lt_cv_objdir" >&6; }
7431 objdir=$lt_cv_objdir
7437 cat >>confdefs.h <<_ACEOF
7438 #define LT_OBJDIR "$lt_cv_objdir/"
7459 # AIX sometimes has problems with the GCC collect2 program. For some
7460 # reason, if we set the COLLECT_NAMES environment variable, the problems
7461 # vanish in a puff of smoke.
7462 if test "X${COLLECT_NAMES+set}" != Xset; then
7464 export COLLECT_NAMES
7469 # Sed substitution that helps us do robust quoting. It backslashifies
7470 # metacharacters that are still active within double-quoted strings.
7471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7473 # Same as above, but do not quote variable references.
7474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7476 # Sed substitution to delay expansion of an escaped shell variable in a
7477 # double_quote_subst'ed string.
7478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7480 # Sed substitution to delay expansion of an escaped single quote.
7481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7483 # Sed substitution to avoid accidental globbing in evaled expressions
7484 no_glob_subst='s/\*/\\\*/g'
7488 can_build_shared=yes
7490 # All known linkers require a `.a' archive for static linking (except MSVC,
7491 # which needs '.lib').
7494 with_gnu_ld="$lt_cv_prog_gnu_ld"
7497 old_CFLAGS="$CFLAGS"
7499 # Set sane defaults for various variables
7500 test -z "$CC" && CC=cc
7501 test -z "$LTCC" && LTCC=$CC
7502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7503 test -z "$LD" && LD=ld
7504 test -z "$ac_objext" && ac_objext=o
7506 for cc_temp in $compiler""; do
7508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7514 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7517 # Only perform the check for file, if the check method requires it
7518 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7519 case $deplibs_check_method in
7521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7523 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7524 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7532 lt_save_MAGIC_CMD="$MAGIC_CMD"
7533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7534 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7535 for ac_dir in $ac_dummy; do
7537 test -z "$ac_dir" && ac_dir=.
7538 if test -f $ac_dir/${ac_tool_prefix}file; then
7539 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7540 if test -n "$file_magic_test_file"; then
7541 case $deplibs_check_method in
7543 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7546 $EGREP "$file_magic_regex" > /dev/null; then
7551 *** Warning: the command libtool uses to detect shared libraries,
7552 *** $file_magic_cmd, produces output that libtool cannot recognize.
7553 *** The result is that libtool may fail to recognize shared libraries
7554 *** as such. This will affect the creation of libtool libraries that
7555 *** depend on shared libraries, but programs linked with such libtool
7556 *** libraries will work regardless of this problem. Nevertheless, you
7557 *** may want to report the problem to your system manager and/or to
7558 *** bug-libtool@gnu.org
7568 MAGIC_CMD="$lt_save_MAGIC_CMD"
7573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7574 if test -n "$MAGIC_CMD"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7576 $as_echo "$MAGIC_CMD" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7586 if test -z "$lt_cv_path_MAGIC_CMD"; then
7587 if test -n "$ac_tool_prefix"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7589 $as_echo_n "checking for file... " >&6; }
7590 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7598 lt_save_MAGIC_CMD="$MAGIC_CMD"
7599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601 for ac_dir in $ac_dummy; do
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/file; then
7605 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7606 if test -n "$file_magic_test_file"; then
7607 case $deplibs_check_method in
7609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612 $EGREP "$file_magic_regex" > /dev/null; then
7617 *** Warning: the command libtool uses to detect shared libraries,
7618 *** $file_magic_cmd, produces output that libtool cannot recognize.
7619 *** The result is that libtool may fail to recognize shared libraries
7620 *** as such. This will affect the creation of libtool libraries that
7621 *** depend on shared libraries, but programs linked with such libtool
7622 *** libraries will work regardless of this problem. Nevertheless, you
7623 *** may want to report the problem to your system manager and/or to
7624 *** bug-libtool@gnu.org
7634 MAGIC_CMD="$lt_save_MAGIC_CMD"
7639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640 if test -n "$MAGIC_CMD"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7642 $as_echo "$MAGIC_CMD" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7658 # Use C for the default configuration in the libtool script
7662 ac_cpp='$CPP $CPPFLAGS'
7663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668 # Source file extension for C test sources.
7671 # Object file extension for compiled C test sources.
7675 # Code to be used in simple compile tests
7676 lt_simple_compile_test_code="int some_variable = 0;"
7678 # Code to be used in simple link tests
7679 lt_simple_link_test_code='int main(){return(0);}'
7687 # If no C compiler was specified, use CC.
7690 # If no C compiler flags were specified, use CFLAGS.
7691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7693 # Allow CC to be a program name with arguments.
7696 # Save the default compiler, since it gets overwritten when the other
7697 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7698 compiler_DEFAULT=$CC
7700 # save warnings/boilerplate of simple test code
7701 ac_outfile=conftest.$ac_objext
7702 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7703 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704 _lt_compiler_boilerplate=`cat conftest.err`
7707 ac_outfile=conftest.$ac_objext
7708 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7709 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7710 _lt_linker_boilerplate=`cat conftest.err`
7714 if test -n "$compiler"; then
7716 lt_prog_compiler_no_builtin_flag=
7718 if test "$GCC" = yes; then
7719 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7722 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7723 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7726 lt_cv_prog_compiler_rtti_exceptions=no
7727 ac_outfile=conftest.$ac_objext
7728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7729 lt_compiler_flag="-fno-rtti -fno-exceptions"
7730 # Insert the option either (1) after the last *FLAGS variable, or
7731 # (2) before a word containing "conftest.", or (3) at the end.
7732 # Note that $ac_compile itself does not contain backslashes and begins
7733 # with a dollar sign (not a hyphen), so the echo should work correctly.
7734 # The option is referenced via a variable to avoid confusing sed.
7735 lt_compile=`echo "$ac_compile" | $SED \
7736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738 -e 's:$: $lt_compiler_flag:'`
7739 (eval echo "\"\$as_me:7739: $lt_compile\"" >&5)
7740 (eval "$lt_compile" 2>conftest.err)
7742 cat conftest.err >&5
7743 echo "$as_me:7743: \$? = $ac_status" >&5
7744 if (exit $ac_status) && test -s "$ac_outfile"; then
7745 # The compiler can only warn and ignore the option if not recognized
7746 # So say no if there are warnings other than the usual output.
7747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7750 lt_cv_prog_compiler_rtti_exceptions=yes
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7757 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7759 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7760 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7772 lt_prog_compiler_wl=
7773 lt_prog_compiler_pic=
7774 lt_prog_compiler_static=
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7777 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7779 if test "$GCC" = yes; then
7780 lt_prog_compiler_wl='-Wl,'
7781 lt_prog_compiler_static='-static'
7785 # All AIX code is PIC.
7786 if test "$host_cpu" = ia64; then
7787 # AIX 5 now supports IA64 processor
7788 lt_prog_compiler_static='-Bstatic'
7795 # see comment about AmigaOS4 .so support
7796 lt_prog_compiler_pic='-fPIC'
7799 # FIXME: we need at least 68020 code to build shared libraries, but
7800 # adding the `-m68020' flag to GCC prevents building anything better,
7802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7808 # PIC is the default for these OSes.
7811 mingw* | cygwin* | pw32* | os2* | cegcc*)
7812 # This hack is so that the source file can tell whether it is being
7813 # built for inclusion in a dll (and should export symbols for example).
7814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7815 # (--disable-auto-import) libraries
7816 lt_prog_compiler_pic='-DDLL_EXPORT'
7819 darwin* | rhapsody*)
7820 # PIC is the default on this platform
7821 # Common symbols not allowed in MH_DYLIB files
7822 lt_prog_compiler_pic='-fno-common'
7826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7828 # sets the default TLS model and affects inlining.
7834 lt_prog_compiler_pic='-fPIC'
7840 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7841 # Instead, we relocate shared libraries at runtime.
7845 # Just because we use GCC doesn't mean we suddenly get shared libraries
7846 # on systems that don't support them.
7847 lt_prog_compiler_can_build_shared=no
7852 # QNX uses GNU C++, but need to define -shared option too, otherwise
7854 lt_prog_compiler_pic='-fPIC -shared'
7858 if test -d /usr/nec; then
7859 lt_prog_compiler_pic=-Kconform_pic
7864 lt_prog_compiler_pic='-fPIC'
7868 # PORTME Check for flag to pass linker flags through the system compiler.
7871 lt_prog_compiler_wl='-Wl,'
7872 if test "$host_cpu" = ia64; then
7873 # AIX 5 now supports IA64 processor
7874 lt_prog_compiler_static='-Bstatic'
7876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7880 mingw* | cygwin* | pw32* | os2* | cegcc*)
7881 # This hack is so that the source file can tell whether it is being
7882 # built for inclusion in a dll (and should export symbols for example).
7883 lt_prog_compiler_pic='-DDLL_EXPORT'
7886 hpux9* | hpux10* | hpux11*)
7887 lt_prog_compiler_wl='-Wl,'
7888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7895 lt_prog_compiler_pic='+Z'
7898 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7899 lt_prog_compiler_static='${wl}-a ${wl}archive'
7902 irix5* | irix6* | nonstopux*)
7903 lt_prog_compiler_wl='-Wl,'
7904 # PIC (with -KPIC) is the default.
7905 lt_prog_compiler_static='-non_shared'
7908 linux* | k*bsd*-gnu)
7909 case $cc_basename in
7910 # old Intel for x86_64 which still supported -KPIC.
7912 lt_prog_compiler_wl='-Wl,'
7913 lt_prog_compiler_pic='-KPIC'
7914 lt_prog_compiler_static='-static'
7916 # icc used to be incompatible with GCC.
7917 # ICC 10 doesn't accept -KPIC any more.
7919 lt_prog_compiler_wl='-Wl,'
7920 lt_prog_compiler_pic='-fPIC'
7921 lt_prog_compiler_static='-static'
7923 # Lahey Fortran 8.1.
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_pic='--shared'
7927 lt_prog_compiler_static='--static'
7929 pgcc* | pgf77* | pgf90* | pgf95*)
7930 # Portland Group compilers (*not* the Pentium gcc compiler,
7931 # which looks to be a dead project)
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='-fpic'
7934 lt_prog_compiler_static='-Bstatic'
7937 lt_prog_compiler_wl='-Wl,'
7938 # All Alpha code is PIC.
7939 lt_prog_compiler_static='-non_shared'
7942 # IBM XL C 8.0/Fortran 10.1 on PPC
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_pic='-qpic'
7945 lt_prog_compiler_static='-qstaticlink'
7948 case `$CC -V 2>&1 | sed 5q` in
7951 lt_prog_compiler_pic='-KPIC'
7952 lt_prog_compiler_static='-Bstatic'
7953 lt_prog_compiler_wl='-Wl,'
7956 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7957 lt_prog_compiler_pic='-KPIC'
7958 lt_prog_compiler_static='-Bstatic'
7959 lt_prog_compiler_wl=''
7967 lt_prog_compiler_pic='-KPIC'
7968 lt_prog_compiler_static='-Bstatic'
7972 # QNX uses GNU C++, but need to define -shared option too, otherwise
7974 lt_prog_compiler_pic='-fPIC -shared'
7977 osf3* | osf4* | osf5*)
7978 lt_prog_compiler_wl='-Wl,'
7979 # All OSF/1 code is PIC.
7980 lt_prog_compiler_static='-non_shared'
7984 lt_prog_compiler_static='-non_shared'
7988 lt_prog_compiler_pic='-KPIC'
7989 lt_prog_compiler_static='-Bstatic'
7990 case $cc_basename in
7992 lt_prog_compiler_wl='-Qoption ld ';;
7994 lt_prog_compiler_wl='-Wl,';;
7999 lt_prog_compiler_wl='-Qoption ld '
8000 lt_prog_compiler_pic='-PIC'
8001 lt_prog_compiler_static='-Bstatic'
8004 sysv4 | sysv4.2uw2* | sysv4.3*)
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8011 if test -d /usr/nec ;then
8012 lt_prog_compiler_pic='-Kconform_pic'
8013 lt_prog_compiler_static='-Bstatic'
8017 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_can_build_shared=no
8029 lt_prog_compiler_pic='-pic'
8030 lt_prog_compiler_static='-Bstatic'
8034 lt_prog_compiler_can_build_shared=no
8040 # For platforms which do not support PIC, -DPIC is meaningless:
8042 lt_prog_compiler_pic=
8045 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8049 $as_echo "$lt_prog_compiler_pic" >&6; }
8057 # Check to make sure the PIC flag actually works.
8059 if test -n "$lt_prog_compiler_pic"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8061 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8062 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8065 lt_cv_prog_compiler_pic_works=no
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8068 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8069 # Insert the option either (1) after the last *FLAGS variable, or
8070 # (2) before a word containing "conftest.", or (3) at the end.
8071 # Note that $ac_compile itself does not contain backslashes and begins
8072 # with a dollar sign (not a hyphen), so the echo should work correctly.
8073 # The option is referenced via a variable to avoid confusing sed.
8074 lt_compile=`echo "$ac_compile" | $SED \
8075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8077 -e 's:$: $lt_compiler_flag:'`
8078 (eval echo "\"\$as_me:8078: $lt_compile\"" >&5)
8079 (eval "$lt_compile" 2>conftest.err)
8081 cat conftest.err >&5
8082 echo "$as_me:8082: \$? = $ac_status" >&5
8083 if (exit $ac_status) && test -s "$ac_outfile"; then
8084 # The compiler can only warn and ignore the option if not recognized
8085 # So say no if there are warnings other than the usual output.
8086 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8089 lt_cv_prog_compiler_pic_works=yes
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8096 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8098 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8099 case $lt_prog_compiler_pic in
8101 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8104 lt_prog_compiler_pic=
8105 lt_prog_compiler_can_build_shared=no
8116 # Check to make sure the static flag actually works.
8118 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8121 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8124 lt_cv_prog_compiler_static_works=no
8125 save_LDFLAGS="$LDFLAGS"
8126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8129 # The linker can only warn and ignore the option if not recognized
8130 # So say no if there are warnings
8131 if test -s conftest.err; then
8132 # Append any errors to the config.log.
8133 cat conftest.err 1>&5
8134 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8136 if diff conftest.exp conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_static_works=yes
8140 lt_cv_prog_compiler_static_works=yes
8144 LDFLAGS="$save_LDFLAGS"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8148 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8150 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8153 lt_prog_compiler_static=
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 lt_cv_prog_compiler_c_o=no
8168 $RM -r conftest 2>/dev/null
8172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 lt_compiler_flag="-o out/conftest2.$ac_objext"
8175 # Insert the option either (1) after the last *FLAGS variable, or
8176 # (2) before a word containing "conftest.", or (3) at the end.
8177 # Note that $ac_compile itself does not contain backslashes and begins
8178 # with a dollar sign (not a hyphen), so the echo should work correctly.
8179 lt_compile=`echo "$ac_compile" | $SED \
8180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182 -e 's:$: $lt_compiler_flag:'`
8183 (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
8184 (eval "$lt_compile" 2>out/conftest.err)
8186 cat out/conftest.err >&5
8187 echo "$as_me:8187: \$? = $ac_status" >&5
8188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8190 # The compiler can only warn and ignore the option if not recognized
8191 # So say no if there are warnings
8192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_c_o=yes
8200 # SGI C++ compiler will create directory out/ii_files/ for
8201 # template instantiation
8202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8203 $RM out/* && rmdir out
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8222 lt_cv_prog_compiler_c_o=no
8223 $RM -r conftest 2>/dev/null
8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8229 lt_compiler_flag="-o out/conftest2.$ac_objext"
8230 # Insert the option either (1) after the last *FLAGS variable, or
8231 # (2) before a word containing "conftest.", or (3) at the end.
8232 # Note that $ac_compile itself does not contain backslashes and begins
8233 # with a dollar sign (not a hyphen), so the echo should work correctly.
8234 lt_compile=`echo "$ac_compile" | $SED \
8235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8237 -e 's:$: $lt_compiler_flag:'`
8238 (eval echo "\"\$as_me:8238: $lt_compile\"" >&5)
8239 (eval "$lt_compile" 2>out/conftest.err)
8241 cat out/conftest.err >&5
8242 echo "$as_me:8242: \$? = $ac_status" >&5
8243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8245 # The compiler can only warn and ignore the option if not recognized
8246 # So say no if there are warnings
8247 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8250 lt_cv_prog_compiler_c_o=yes
8255 # SGI C++ compiler will create directory out/ii_files/ for
8256 # template instantiation
8257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8258 $RM out/* && rmdir out
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8270 hard_links="nottested"
8271 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8272 # do not overwrite the value of need_locks provided by the user
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8274 $as_echo_n "checking if we can lock with hard links... " >&6; }
8277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8279 ln conftest.a conftest.b 2>&5 || hard_links=no
8280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8282 $as_echo "$hard_links" >&6; }
8283 if test "$hard_links" = no; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8285 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8298 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8301 allow_undefined_flag=
8302 always_export_symbols=no
8304 archive_expsym_cmds=
8305 compiler_needs_object=no
8306 enable_shared_with_static_runtimes=no
8307 export_dynamic_flag_spec=
8308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8309 hardcode_automatic=no
8311 hardcode_direct_absolute=no
8312 hardcode_libdir_flag_spec=
8313 hardcode_libdir_flag_spec_ld=
8314 hardcode_libdir_separator=
8316 hardcode_shlibpath_var=unsupported
8318 link_all_deplibs=unknown
8321 old_archive_from_new_cmds=
8322 old_archive_from_expsyms_cmds=
8323 thread_safe_flag_spec=
8324 whole_archive_flag_spec=
8325 # include_expsyms should be a list of space-separated symbols to be *always*
8326 # included in the symbol list
8328 # exclude_expsyms can be an extended regexp of symbols to exclude
8329 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8330 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8331 # as well as any symbol that contains `d'.
8332 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8334 # platforms (ab)use it in PIC code, but their linkers get confused if
8335 # the symbol is explicitly referenced. Since portable code cannot
8336 # rely on this symbol name, it's probably fine to never include it in
8337 # preloaded symbol tables.
8338 # Exclude shared library initialization/finalization symbols.
8339 extract_expsyms_cmds=
8342 cygwin* | mingw* | pw32* | cegcc*)
8343 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8344 # When not using gcc, we currently assume that we are using
8345 # Microsoft Visual C++.
8346 if test "$GCC" != yes; then
8351 # we just hope/assume this is gcc and not c89 (= MSVC++)
8357 linux* | k*bsd*-gnu)
8363 if test "$with_gnu_ld" = yes; then
8364 # If archive_cmds runs LD, not CC, wlarc should be empty
8367 # Set some defaults for GNU ld with shared library support. These
8368 # are reset later if shared libraries are not supported. Putting them
8369 # here allows them to be overridden if necessary.
8370 runpath_var=LD_RUN_PATH
8371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8372 export_dynamic_flag_spec='${wl}--export-dynamic'
8373 # ancient GNU ld didn't support --whole-archive et. al.
8374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8375 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8377 whole_archive_flag_spec=
8379 supports_anon_versioning=no
8380 case `$LD -v 2>&1` in
8381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8384 *\ 2.11.*) ;; # other 2.11 versions
8385 *) supports_anon_versioning=yes ;;
8388 # See if GNU ld supports shared libraries.
8391 # On AIX/PPC, the GNU linker is very broken
8392 if test "$host_cpu" != ia64; then
8396 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8397 *** to be unable to reliably create shared libraries on AIX.
8398 *** Therefore, libtool is disabling shared libraries support. If you
8399 *** really care for shared libraries, you may want to modify your PATH
8400 *** so that a non-GNU linker is found, and then restart.
8409 # see comment about AmigaOS4 .so support
8410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411 archive_expsym_cmds=''
8414 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)'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_minus_L=yes
8422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423 allow_undefined_flag=unsupported
8424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8425 # support --undefined. This deserves some investigation. FIXME
8426 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432 cygwin* | mingw* | pw32* | cegcc*)
8433 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8434 # as there is no search path for DLLs.
8435 hardcode_libdir_flag_spec='-L$libdir'
8436 allow_undefined_flag=unsupported
8437 always_export_symbols=no
8438 enable_shared_with_static_runtimes=yes
8439 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8443 # If the export-symbols file already is a .def file (1st line
8444 # is EXPORTS), use it as is; otherwise, prepend...
8445 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8446 cp $export_symbols $output_objdir/$soname.def;
8448 echo EXPORTS > $output_objdir/$soname.def;
8449 cat $export_symbols >> $output_objdir/$soname.def;
8451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8459 hardcode_shlibpath_var=no
8460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461 export_dynamic_flag_spec='${wl}-E'
8462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8463 # Instead, shared libraries are loaded at an image base (0x10000000 by
8464 # default) and relocated if they conflict, which is a slow very memory
8465 # consuming and fragmenting process. To avoid this, we pick a random,
8466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8469 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'
8472 gnu* | linux* | tpf* | k*bsd*-gnu)
8474 if test "$host_os" = linux-dietlibc; then
8475 case $cc_basename in
8476 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8479 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8480 && test "$tmp_diet" = no
8483 tmp_sharedflag='-shared'
8484 case $cc_basename,$host_cpu in
8485 pgcc*) # Portland Group C compiler
8486 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8487 tmp_addflag=' $pic_flag'
8489 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8490 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8491 tmp_addflag=' $pic_flag -Mnomain' ;;
8492 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8493 tmp_addflag=' -i_dynamic' ;;
8494 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8495 tmp_addflag=' -i_dynamic -nofor_main' ;;
8496 ifc* | ifort*) # Intel Fortran compiler
8497 tmp_addflag=' -nofor_main' ;;
8498 lf95*) # Lahey Fortran 8.1
8499 whole_archive_flag_spec=
8500 tmp_sharedflag='--shared' ;;
8501 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8502 tmp_sharedflag='-qmkshrobj'
8505 case `$CC -V 2>&1 | sed 5q` in
8506 *Sun\ C*) # Sun C 5.9
8507 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8508 compiler_needs_object=yes
8509 tmp_sharedflag='-G' ;;
8510 *Sun\ F*) # Sun Fortran 8.3
8511 tmp_sharedflag='-G' ;;
8513 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8515 if test "x$supports_anon_versioning" = xyes; then
8516 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8517 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8518 echo "local: *; };" >> $output_objdir/$libname.ver~
8519 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8522 case $cc_basename in
8524 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8525 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8526 hardcode_libdir_flag_spec=
8527 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8528 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8529 if test "x$supports_anon_versioning" = xyes; then
8530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8532 echo "local: *; };" >> $output_objdir/$libname.ver~
8533 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8542 netbsd* | netbsdelf*-gnu)
8543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8544 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8553 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8558 *** create shared libraries on Solaris systems. Therefore, libtool
8559 *** is disabling shared libraries support. We urge you to upgrade GNU
8560 *** binutils to release 2.9.1 or newer. Another option is to modify
8561 *** your PATH or compiler configuration so that the native linker is
8562 *** used, and then restart.
8565 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8574 case `$LD -v 2>&1` in
8575 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8579 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8580 *** reliably create shared libraries on SCO systems. Therefore, libtool
8581 *** is disabling shared libraries support. We urge you to upgrade GNU
8582 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8583 *** your PATH or compiler configuration so that the native linker is
8584 *** used, and then restart.
8589 # For security reasons, it is highly recommended that you always
8590 # use absolute paths for naming shared libraries, and exclude the
8591 # DT_RUNPATH tag from executables and libraries. But doing so
8592 # requires that you compile everything twice, which is a pain.
8593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8608 hardcode_shlibpath_var=no
8612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8621 if test "$ld_shlibs" = no; then
8623 hardcode_libdir_flag_spec=
8624 export_dynamic_flag_spec=
8625 whole_archive_flag_spec=
8628 # PORTME fill in a description of your system's linker (not GNU ld)
8631 allow_undefined_flag=unsupported
8632 always_export_symbols=yes
8633 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'
8634 # Note: this linker hardcodes the directories in LIBPATH if there
8635 # are no directories specified by -L.
8636 hardcode_minus_L=yes
8637 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8638 # Neither direct hardcoding nor static linking is supported with a
8640 hardcode_direct=unsupported
8645 if test "$host_cpu" = ia64; then
8646 # On IA64, the linker does run time linking by default, so we don't
8647 # have to do anything special.
8648 aix_use_runtimelinking=no
8649 exp_sym_flag='-Bexport'
8652 # If we're using GNU nm, then we don't want the "-C" option.
8653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8654 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8655 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8657 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'
8659 aix_use_runtimelinking=no
8661 # Test if we are trying to use run time linking or normal
8662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8663 # need to do runtime linking.
8664 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8665 for ld_flag in $LDFLAGS; do
8666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8667 aix_use_runtimelinking=yes
8674 exp_sym_flag='-bexport'
8675 no_entry_flag='-bnoentry'
8678 # When large executables or shared objects are built, AIX ld can
8679 # have problems creating the table of contents. If linking a library
8680 # or program results in "error TOC overflow" add -mminimal-toc to
8681 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8682 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8686 hardcode_direct_absolute=yes
8687 hardcode_libdir_separator=':'
8688 link_all_deplibs=yes
8689 file_list_spec='${wl}-f,'
8691 if test "$GCC" = yes; then
8692 case $host_os in aix4.[012]|aix4.[012].*)
8693 # We only want to do this on AIX 4.2 and lower, the check
8694 # below for broken collect2 doesn't work under 4.3+
8695 collect2name=`${CC} -print-prog-name=collect2`
8696 if test -f "$collect2name" &&
8697 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8699 # We have reworked collect2
8702 # We have old collect2
8703 hardcode_direct=unsupported
8704 # It fails to find uninstalled libraries when the uninstalled
8705 # path is not listed in the libpath. Setting hardcode_minus_L
8706 # to unsupported forces relinking
8707 hardcode_minus_L=yes
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_libdir_separator=
8713 shared_flag='-shared'
8714 if test "$aix_use_runtimelinking" = yes; then
8715 shared_flag="$shared_flag "'${wl}-G'
8720 if test "$host_cpu" = ia64; then
8721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722 # chokes on -Wl,-G. The following line is correct:
8725 if test "$aix_use_runtimelinking" = yes; then
8726 shared_flag='${wl}-G'
8728 shared_flag='${wl}-bM:SRE'
8733 export_dynamic_flag_spec='${wl}-bexpall'
8734 # It seems that -bexpall does not export symbols beginning with
8735 # underscore (_), so it is better to generate a list of symbols to export.
8736 always_export_symbols=yes
8737 if test "$aix_use_runtimelinking" = yes; then
8738 # Warning - without using the other runtime loading flags (-brtl),
8739 # -berok will link without error, but may produce a broken library.
8740 allow_undefined_flag='-berok'
8741 # Determine the default libpath from the value encoded in an
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8754 if ac_fn_c_try_link "$LINENO"; then :
8756 lt_aix_libpath_sed='
8757 /Import File Strings/,/^$/ {
8763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8764 # Check for a 64-bit object if we didn't find anything.
8765 if test -z "$aix_libpath"; then
8766 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8769 rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8773 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8774 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8776 if test "$host_cpu" = ia64; then
8777 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8778 allow_undefined_flag="-z nodefs"
8779 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"
8781 # Determine the default libpath from the value encoded in an
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8794 if ac_fn_c_try_link "$LINENO"; then :
8796 lt_aix_libpath_sed='
8797 /Import File Strings/,/^$/ {
8803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8804 # Check for a 64-bit object if we didn't find anything.
8805 if test -z "$aix_libpath"; then
8806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8814 # Warning - without using the other run time loading flags,
8815 # -berok will link without error, but may produce a broken library.
8816 no_undefined_flag=' ${wl}-bernotok'
8817 allow_undefined_flag=' ${wl}-berok'
8818 # Exported symbols can be pulled into shared objects from archives
8819 whole_archive_flag_spec='$convenience'
8820 archive_cmds_need_lc=yes
8821 # This is similar to how AIX traditionally builds its shared libraries.
8822 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'
8830 # see comment about AmigaOS4 .so support
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds=''
8835 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)'
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_minus_L=yes
8843 export_dynamic_flag_spec=-rdynamic
8846 cygwin* | mingw* | pw32* | cegcc*)
8847 # When not using gcc, we currently assume that we are using
8848 # Microsoft Visual C++.
8849 # hardcode_libdir_flag_spec is actually meaningless, as there is
8850 # no search path for DLLs.
8851 hardcode_libdir_flag_spec=' '
8852 allow_undefined_flag=unsupported
8853 # Tell ltmain to make .lib files, not .a files.
8855 # Tell ltmain to make .dll files, not .so files.
8857 # FIXME: Setting linknames here is a bad hack.
8858 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8859 # The linker will automatically build a .lib file if we build a DLL.
8860 old_archive_from_new_cmds='true'
8861 # FIXME: Should let the user specify the lib program.
8862 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8863 fix_srcfile_path='`cygpath -w "$srcfile"`'
8864 enable_shared_with_static_runtimes=yes
8867 darwin* | rhapsody*)
8870 archive_cmds_need_lc=no
8872 hardcode_automatic=yes
8873 hardcode_shlibpath_var=unsupported
8874 whole_archive_flag_spec=''
8875 link_all_deplibs=yes
8876 allow_undefined_flag="$_lt_dar_allow_undefined"
8877 case $cc_basename in
8878 ifort*) _lt_dar_can_shared=yes ;;
8879 *) _lt_dar_can_shared=$GCC ;;
8881 if test "$_lt_dar_can_shared" = "yes"; then
8882 output_verbose_link_cmd=echo
8883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8885 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}"
8886 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}"
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_libdir_flag_spec='-L$libdir'
8897 hardcode_shlibpath_var=no
8904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8905 # support. Future versions do this automatically, but an explicit c++rt0.o
8906 # does not break anything, and helps significantly (at the cost of a little
8909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8910 hardcode_libdir_flag_spec='-R$libdir'
8912 hardcode_shlibpath_var=no
8915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8919 hardcode_minus_L=yes
8920 hardcode_shlibpath_var=no
8923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8924 freebsd* | dragonfly*)
8925 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8926 hardcode_libdir_flag_spec='-R$libdir'
8928 hardcode_shlibpath_var=no
8932 if test "$GCC" = yes; then
8933 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8935 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'
8937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8938 hardcode_libdir_separator=:
8941 # hardcode_minus_L: Not really in the search PATH,
8942 # but as the default location of the library.
8943 hardcode_minus_L=yes
8944 export_dynamic_flag_spec='${wl}-E'
8948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8953 if test "$with_gnu_ld" = no; then
8954 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8955 hardcode_libdir_flag_spec_ld='+b $libdir'
8956 hardcode_libdir_separator=:
8958 hardcode_direct_absolute=yes
8959 export_dynamic_flag_spec='${wl}-E'
8960 # hardcode_minus_L: Not really in the search PATH,
8961 # but as the default location of the library.
8962 hardcode_minus_L=yes
8967 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8970 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992 if test "$with_gnu_ld" = no; then
8993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8994 hardcode_libdir_separator=:
8999 hardcode_shlibpath_var=no
9003 hardcode_direct_absolute=yes
9004 export_dynamic_flag_spec='${wl}-E'
9006 # hardcode_minus_L: Not really in the search PATH,
9007 # but as the default location of the library.
9008 hardcode_minus_L=yes
9014 irix5* | irix6* | nonstopux*)
9015 if test "$GCC" = yes; then
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9017 # Try to use the -exported_symbol ld option, if it does not
9018 # work, assume that -exports_file does not work either and
9019 # implicitly export all symbols.
9020 save_LDFLAGS="$LDFLAGS"
9021 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LDFLAGS="$save_LDFLAGS"
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9037 archive_cmds_need_lc='no'
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 hardcode_libdir_separator=:
9041 link_all_deplibs=yes
9044 netbsd* | netbsdelf*-gnu)
9045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9048 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9050 hardcode_libdir_flag_spec='-R$libdir'
9052 hardcode_shlibpath_var=no
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059 hardcode_libdir_separator=:
9060 hardcode_shlibpath_var=no
9067 if test -f /usr/libexec/ld.so; then
9069 hardcode_shlibpath_var=no
9070 hardcode_direct_absolute=yes
9071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9075 export_dynamic_flag_spec='${wl}-E'
9078 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-R$libdir'
9083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_minus_L=yes
9096 allow_undefined_flag=unsupported
9097 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'
9098 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9102 if test "$GCC" = yes; then
9103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9104 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9106 allow_undefined_flag=' -expect_unresolved \*'
9107 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9109 archive_cmds_need_lc='no'
9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111 hardcode_libdir_separator=:
9114 osf4* | osf5*) # as osf3* with the addition of -msym flag
9115 if test "$GCC" = yes; then
9116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9117 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120 allow_undefined_flag=' -expect_unresolved \*'
9121 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9122 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~
9123 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9125 # Both c and cxx compiler support -rpath directly
9126 hardcode_libdir_flag_spec='-rpath $libdir'
9128 archive_cmds_need_lc='no'
9129 hardcode_libdir_separator=:
9133 no_undefined_flag=' -z defs'
9134 if test "$GCC" = yes; then
9136 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9138 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9140 case `$CC -V 2>&1` in
9143 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9149 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9151 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9155 hardcode_libdir_flag_spec='-R$libdir'
9156 hardcode_shlibpath_var=no
9158 solaris2.[0-5] | solaris2.[0-5].*) ;;
9160 # The compiler driver will combine and reorder linker options,
9161 # but understands `-z linker_flag'. GCC discards it without `$wl',
9162 # but is careful enough not to reorder.
9163 # Supported since Solaris 2.6 (maybe 2.5.1?)
9164 if test "$GCC" = yes; then
9165 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9167 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9171 link_all_deplibs=yes
9175 if test "x$host_vendor" = xsequent; then
9176 # Use $CC to link under sequent, because it throws in some extra .o
9177 # files that make .init and .fini sections work.
9178 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9182 hardcode_libdir_flag_spec='-L$libdir'
9184 hardcode_minus_L=yes
9185 hardcode_shlibpath_var=no
9189 case $host_vendor in
9191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_direct=yes # is this really true???
9195 ## LD is ld it makes a PLAMLIB
9196 ## CC just makes a GrossModule.
9197 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9198 reload_cmds='$CC -r -o $output$reload_objs'
9202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9206 runpath_var='LD_RUN_PATH'
9207 hardcode_shlibpath_var=no
9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_shlibpath_var=no
9213 export_dynamic_flag_spec='-Bexport'
9217 if test -d /usr/nec; then
9218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_shlibpath_var=no
9220 runpath_var=LD_RUN_PATH
9221 hardcode_runpath_var=yes
9226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9227 no_undefined_flag='${wl}-z,text'
9228 archive_cmds_need_lc=no
9229 hardcode_shlibpath_var=no
9230 runpath_var='LD_RUN_PATH'
9232 if test "$GCC" = yes; then
9233 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9236 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 sysv5* | sco3.2v5* | sco5v6*)
9242 # Note: We can NOT use -z defs as we might desire, because we do not
9243 # link with -lc, and that would cause any symbols used from libc to
9244 # always be unresolved, which means just about no library would
9245 # ever link correctly. If we're not using GNU ld we use -z text
9246 # though, which does catch some bad symbols but isn't as heavy-handed
9248 no_undefined_flag='${wl}-z,text'
9249 allow_undefined_flag='${wl}-z,nodefs'
9250 archive_cmds_need_lc=no
9251 hardcode_shlibpath_var=no
9252 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9253 hardcode_libdir_separator=':'
9254 link_all_deplibs=yes
9255 export_dynamic_flag_spec='${wl}-Bexport'
9256 runpath_var='LD_RUN_PATH'
9258 if test "$GCC" = yes; then
9259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 hardcode_shlibpath_var=no
9278 if test x$host_vendor = xsni; then
9280 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9281 export_dynamic_flag_spec='${wl}-Blargedynsym'
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9288 $as_echo "$ld_shlibs" >&6; }
9289 test "$ld_shlibs" = no && can_build_shared=no
9291 with_gnu_ld=$with_gnu_ld
9308 # Do we need to explicitly link libc?
9310 case "x$archive_cmds_need_lc" in
9312 # Assume -lc should be added
9313 archive_cmds_need_lc=yes
9315 if test "$enable_shared" = yes && test "$GCC" = yes; then
9316 case $archive_cmds in
9318 # FIXME: we may have to deal with multi-command sequences.
9321 # Test whether the compiler implicitly links with -lc since on some
9322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9323 # to ld, don't add -lc before -lgcc.
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9330 (eval $ac_compile) 2>&5
9332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333 test $ac_status = 0; } 2>conftest.err; then
9336 libobjs=conftest.$ac_objext
9338 wl=$lt_prog_compiler_wl
9339 pic_flag=$lt_prog_compiler_pic
9345 lt_save_allow_undefined_flag=$allow_undefined_flag
9346 allow_undefined_flag=
9347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9348 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351 test $ac_status = 0; }
9353 archive_cmds_need_lc=no
9355 archive_cmds_need_lc=yes
9357 allow_undefined_flag=$lt_save_allow_undefined_flag
9359 cat conftest.err 1>&5
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9363 $as_echo "$archive_cmds_need_lc" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9527 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9529 if test "$GCC" = yes; then
9531 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9532 *) lt_awk_arg="/^libraries:/" ;;
9534 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9535 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9536 # if the path contains ";" then we assume it to be the separator
9537 # otherwise default to the standard path separator (i.e. ":") - it is
9538 # assumed that no part of a normal pathname contains ";" but that should
9539 # okay in the real world where ";" in dirpaths is itself problematic.
9540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9542 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9544 # Ok, now we have the path, separated by spaces, we can step through it
9545 # and add multilib dir if necessary.
9546 lt_tmp_lt_search_path_spec=
9547 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9548 for lt_sys_path in $lt_search_path_spec; do
9549 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9552 test -d "$lt_sys_path" && \
9553 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9556 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9557 BEGIN {RS=" "; FS="/|\n";} {
9560 for (lt_i = NF; lt_i > 0; lt_i--) {
9561 if ($lt_i != "" && $lt_i != ".") {
9562 if ($lt_i == "..") {
9565 if (lt_count == 0) {
9566 lt_foo="/" $lt_i lt_foo;
9573 if (lt_foo != "") { lt_freq[lt_foo]++; }
9574 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9576 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9581 libname_spec='lib$name'
9589 shlibpath_overrides_runpath=unknown
9591 dynamic_linker="$host_os ld.so"
9592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9593 need_lib_prefix=unknown
9594 hardcode_into_libs=no
9596 # when you set need_version to no, make sure it does not cause -set_version
9597 # flags to be left without arguments
9598 need_version=unknown
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9604 shlibpath_var=LIBPATH
9606 # AIX 3 has no versioning support, so we append a major version to the name.
9607 soname_spec='${libname}${release}${shared_ext}$major'
9614 hardcode_into_libs=yes
9615 if test "$host_cpu" = ia64; then
9616 # AIX 5 supports IA64
9617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9618 shlibpath_var=LD_LIBRARY_PATH
9620 # With GCC up to 2.95.x, collect2 would create an import file
9621 # for dependence libraries. The import file would start with
9622 # the line `#! .'. This would cause the generated library to
9623 # depend on `.', always an invalid library. This was fixed in
9624 # development snapshots of GCC prior to 3.0.
9626 aix4 | aix4.[01] | aix4.[01].*)
9627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9629 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9637 # soname into executable. Probably we can add versioning support to
9638 # collect2, so additional links can be useful in future.
9639 if test "$aix_use_runtimelinking" = yes; then
9640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9641 # instead of lib<name>.a to let people know that these are not
9642 # typical AIX shared libraries.
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 # We preserve .a as extension for shared libraries through AIX4.2
9646 # and later when we are not doing run time linking.
9647 library_names_spec='${libname}${release}.a $libname.a'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LIBPATH
9657 # Since July 2007 AmigaOS4 officially supports .so libraries.
9658 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 library_names_spec='$libname.ixlibrary $libname.a'
9663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9664 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9670 library_names_spec='${libname}${shared_ext}'
9671 dynamic_linker="$host_os ld.so"
9672 shlibpath_var=LIBRARY_PATH
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9681 shlibpath_var=LD_LIBRARY_PATH
9682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9684 # the default ld.so.conf also contains /usr/contrib/lib and
9685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9686 # libtool to hard-code these into programs
9689 cygwin* | mingw* | pw32* | cegcc*)
9690 version_type=windows
9695 case $GCC,$host_os in
9696 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9697 library_names_spec='$libname.dll.a'
9698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9699 postinstall_cmds='base_file=`basename \${file}`~
9700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9701 dldir=$destdir/`dirname \$dlpath`~
9702 test -d \$dldir || mkdir -p \$dldir~
9703 $install_prog $dir/$dlname \$dldir/$dlname~
9704 chmod a+x \$dldir/$dlname~
9705 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9706 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9709 dlpath=$dir/\$dldll~
9711 shlibpath_overrides_runpath=yes
9715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9720 # MinGW DLLs use traditional 'lib' prefix
9721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9724 # It is most probably a Windows format PATH printed by
9725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9726 # path with ; separators, and with drive letters. We can handle the
9727 # drive letters (cygwin fileutils understands them), so leave them,
9728 # especially as we might pass files found there to a mingw objdump,
9729 # which wouldn't understand a cygwinified path. Ahh.
9730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9736 # pw32 DLLs use 'pw' prefix rather than 'lib'
9737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9746 dynamic_linker='Win32 ld.exe'
9747 # FIXME: first we should search . and the directory the executable is in
9751 darwin* | rhapsody*)
9752 dynamic_linker="$host_os dyld"
9756 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9757 soname_spec='${libname}${release}${major}$shared_ext'
9758 shlibpath_overrides_runpath=yes
9759 shlibpath_var=DYLD_LIBRARY_PATH
9760 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9779 freebsd* | dragonfly*)
9780 # DragonFly does not have aout. When/if they implement a new
9781 # versioning mechanism, adjust this.
9782 if test -x /usr/bin/objformat; then
9783 objformat=`/usr/bin/objformat`
9786 freebsd[123]*) objformat=aout ;;
9790 version_type=freebsd-$objformat
9791 case $version_type in
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9802 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9807 freebsd3.[01]* | freebsdelf3.[01]*)
9808 shlibpath_overrides_runpath=yes
9809 hardcode_into_libs=yes
9811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9813 shlibpath_overrides_runpath=no
9814 hardcode_into_libs=yes
9816 *) # from 4.6 on, and DragonFly
9817 shlibpath_overrides_runpath=yes
9818 hardcode_into_libs=yes
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 hardcode_into_libs=yes
9833 hpux9* | hpux10* | hpux11*)
9834 # Give a soname corresponding to the major version so that dld.sl refuses to
9835 # link against other versions.
9842 hardcode_into_libs=yes
9843 dynamic_linker="$host_os dld.so"
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 if test "X$HPUX_IA64_MODE" = X32; then
9849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9857 hardcode_into_libs=yes
9858 dynamic_linker="$host_os dld.sl"
9859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9868 dynamic_linker="$host_os dld.sl"
9869 shlibpath_var=SHLIB_PATH
9870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9876 postinstall_cmds='chmod 555 $lib'
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9886 shlibpath_var=LD_LIBRARY_PATH
9887 shlibpath_overrides_runpath=no
9888 hardcode_into_libs=yes
9891 irix5* | irix6* | nonstopux*)
9893 nonstopux*) version_type=nonstopux ;;
9895 if test "$lt_cv_prog_gnu_ld" = yes; then
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9906 irix5* | nonstopux*)
9910 case $LD in # libtool.m4 will add one of these switches to LD
9911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9912 libsuff= shlibsuff= libmagic=32-bit;;
9913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9914 libsuff=32 shlibsuff=N32 libmagic=N32;;
9915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9917 *) libsuff= shlibsuff= libmagic=never-match;;
9921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9922 shlibpath_overrides_runpath=no
9923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9925 hardcode_into_libs=yes
9928 # No shared lib support for Linux oldld, aout, or coff.
9929 linux*oldld* | linux*aout* | linux*coff*)
9933 # This must be Linux ELF.
9934 linux* | k*bsd*-gnu)
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 shlibpath_overrides_runpath=no
9943 # Some binutils ld are patched to set DT_RUNPATH
9944 save_LDFLAGS=$LDFLAGS
9946 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9947 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9961 shlibpath_overrides_runpath=yes
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LDFLAGS=$save_LDFLAGS
9969 # This implies no fast_install, which is unacceptable.
9970 # Some rework will be needed to allow for fast_install
9971 # before this can be enabled.
9972 hardcode_into_libs=yes
9974 # Append ld.so.conf contents to the search path
9975 if test -f /etc/ld.so.conf; then
9976 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;/^$/d' | tr '\n' ' '`
9977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9980 # We used to test for /lib/ld.so.1 and disable shared libraries on
9981 # powerpc, because MkLinux only supported shared libraries with the
9982 # GNU dynamic linker. Since this was broken with cross compilers,
9983 # most powerpc-linux boxes support dynamic linking these days and
9984 # people can always --disable-shared, the test was removed, and we
9985 # assume the GNU/Linux dynamic linker is in use.
9986 dynamic_linker='GNU/Linux ld.so'
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 shlibpath_var=LD_LIBRARY_PATH
9996 shlibpath_overrides_runpath=no
9997 hardcode_into_libs=yes
9998 dynamic_linker='NetBSD ld.elf_so'
10005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10008 dynamic_linker='NetBSD (a.out) ld.so'
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 dynamic_linker='NetBSD ld.elf_so'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=yes
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 dynamic_linker='ldqnx.so'
10040 sys_lib_dlsearch_path_spec="/usr/lib"
10042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10045 *) need_version=no ;;
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10049 shlibpath_var=LD_LIBRARY_PATH
10050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10052 openbsd2.[89] | openbsd2.[89].*)
10053 shlibpath_overrides_runpath=no
10056 shlibpath_overrides_runpath=yes
10060 shlibpath_overrides_runpath=yes
10065 libname_spec='$name'
10068 library_names_spec='$libname${shared_ext} $libname.a'
10069 dynamic_linker='OS/2 ld.exe'
10070 shlibpath_var=LIBPATH
10073 osf3* | osf4* | osf5*)
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10097 # ldd complains unless libraries are executable
10098 postinstall_cmds='chmod +x $lib'
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=yes
10107 if test "$with_gnu_ld" = yes; then
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 case $host_vendor in
10120 shlibpath_overrides_runpath=no
10122 runpath_var=LD_RUN_PATH
10130 shlibpath_overrides_runpath=no
10131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10137 if test -d /usr/nec ;then
10139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10140 soname_spec='$libname${shared_ext}.$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10146 version_type=freebsd-elf
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 shlibpath_var=LD_LIBRARY_PATH
10152 shlibpath_overrides_runpath=yes
10153 hardcode_into_libs=yes
10154 if test "$with_gnu_ld" = yes; then
10155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10164 sys_lib_dlsearch_path_spec='/usr/lib'
10168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=no
10175 hardcode_into_libs=yes
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10190 $as_echo "$dynamic_linker" >&6; }
10191 test "$dynamic_linker" = no && can_build_shared=no
10193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10194 if test "$GCC" = yes; then
10195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10199 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10202 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10292 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10294 if test -n "$hardcode_libdir_flag_spec" ||
10295 test -n "$runpath_var" ||
10296 test "X$hardcode_automatic" = "Xyes" ; then
10298 # We can hardcode non-existent directories.
10299 if test "$hardcode_direct" != no &&
10300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10301 # have to relink, otherwise we might link with an installed library
10302 # when we should be linking with a yet-to-be-installed one
10303 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10304 test "$hardcode_minus_L" != no; then
10305 # Linking always hardcodes the temporary library directory.
10306 hardcode_action=relink
10308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10309 hardcode_action=immediate
10312 # We cannot hardcode anything, or else we can only hardcode existing
10314 hardcode_action=unsupported
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10317 $as_echo "$hardcode_action" >&6; }
10319 if test "$hardcode_action" = relink ||
10320 test "$inherit_rpath" = yes; then
10321 # Fast installation is not supported
10322 enable_fast_install=no
10323 elif test "$shlibpath_overrides_runpath" = yes ||
10324 test "$enable_shared" = no; then
10325 # Fast installation is not necessary
10326 enable_fast_install=needless
10334 if test "x$enable_dlopen" != xyes; then
10335 enable_dlopen=unknown
10336 enable_dlopen_self=unknown
10337 enable_dlopen_self_static=unknown
10344 lt_cv_dlopen="load_add_on"
10346 lt_cv_dlopen_self=yes
10349 mingw* | pw32* | cegcc*)
10350 lt_cv_dlopen="LoadLibrary"
10355 lt_cv_dlopen="dlopen"
10360 # if libdl is installed we need to link against it
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10362 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10363 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10366 ac_check_lib_save_LIBS=$LIBS
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 ac_cv_lib_dl_dlopen=yes
10389 ac_cv_lib_dl_dlopen=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10396 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10397 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10401 lt_cv_dlopen="dyld"
10403 lt_cv_dlopen_self=yes
10410 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10411 if test "x$ac_cv_func_shl_load" = x""yes; then :
10412 lt_cv_dlopen="shl_load"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10415 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10416 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10419 ac_check_lib_save_LIBS=$LIBS
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10434 return shl_load ();
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_lib_dld_shl_load=yes
10442 ac_cv_lib_dld_shl_load=no
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10449 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10450 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10451 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10453 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10454 if test "x$ac_cv_func_dlopen" = x""yes; then :
10455 lt_cv_dlopen="dlopen"
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10462 ac_check_lib_save_LIBS=$LIBS
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10467 /* Override any GCC internal prototype to avoid an error.
10468 Use char because int might match the return type of a GCC
10469 builtin and then its argument prototype would still apply. */
10482 if ac_fn_c_try_link "$LINENO"; then :
10483 ac_cv_lib_dl_dlopen=yes
10485 ac_cv_lib_dl_dlopen=no
10487 rm -f core conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10493 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10497 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10498 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10501 ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lsvld $LIBS"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10521 if ac_fn_c_try_link "$LINENO"; then :
10522 ac_cv_lib_svld_dlopen=yes
10524 ac_cv_lib_svld_dlopen=no
10526 rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10531 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10532 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10536 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10537 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10540 ac_check_lib_save_LIBS=$LIBS
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10545 /* Override any GCC internal prototype to avoid an error.
10546 Use char because int might match the return type of a GCC
10547 builtin and then its argument prototype would still apply. */
10555 return dld_link ();
10560 if ac_fn_c_try_link "$LINENO"; then :
10561 ac_cv_lib_dld_dld_link=yes
10563 ac_cv_lib_dld_dld_link=no
10565 rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10570 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10571 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10572 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10593 if test "x$lt_cv_dlopen" != xno; then
10599 case $lt_cv_dlopen in
10601 save_CPPFLAGS="$CPPFLAGS"
10602 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10604 save_LDFLAGS="$LDFLAGS"
10605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10608 LIBS="$lt_cv_dlopen_libs $LIBS"
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10611 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10612 if test "${lt_cv_dlopen_self+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
10615 if test "$cross_compiling" = yes; then :
10616 lt_cv_dlopen_self=cross
10618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10619 lt_status=$lt_dlunknown
10620 cat > conftest.$ac_ext <<_LT_EOF
10621 #line 10621 "configure"
10622 #include "confdefs.h"
10631 # define LT_DLGLOBAL RTLD_GLOBAL
10634 # define LT_DLGLOBAL DL_GLOBAL
10636 # define LT_DLGLOBAL 0
10640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10641 find out it does not work in some platform. */
10642 #ifndef LT_DLLAZY_OR_NOW
10644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10647 # define LT_DLLAZY_OR_NOW DL_LAZY
10650 # define LT_DLLAZY_OR_NOW RTLD_NOW
10653 # define LT_DLLAZY_OR_NOW DL_NOW
10655 # define LT_DLLAZY_OR_NOW 0
10662 void fnord() { int i=42;}
10665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10666 int status = $lt_dlunknown;
10670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10672 /* dlclose (self); */
10680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10681 (eval $ac_link) 2>&5
10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10685 (./conftest; exit; ) >&5 2>/dev/null
10687 case x$lt_status in
10688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10690 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10693 # compilation failed
10694 lt_cv_dlopen_self=no
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10702 $as_echo "$lt_cv_dlopen_self" >&6; }
10704 if test "x$lt_cv_dlopen_self" = xyes; then
10705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10707 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10708 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10711 if test "$cross_compiling" = yes; then :
10712 lt_cv_dlopen_self_static=cross
10714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10715 lt_status=$lt_dlunknown
10716 cat > conftest.$ac_ext <<_LT_EOF
10717 #line 10717 "configure"
10718 #include "confdefs.h"
10727 # define LT_DLGLOBAL RTLD_GLOBAL
10730 # define LT_DLGLOBAL DL_GLOBAL
10732 # define LT_DLGLOBAL 0
10736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10737 find out it does not work in some platform. */
10738 #ifndef LT_DLLAZY_OR_NOW
10740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10743 # define LT_DLLAZY_OR_NOW DL_LAZY
10746 # define LT_DLLAZY_OR_NOW RTLD_NOW
10749 # define LT_DLLAZY_OR_NOW DL_NOW
10751 # define LT_DLLAZY_OR_NOW 0
10758 void fnord() { int i=42;}
10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762 int status = $lt_dlunknown;
10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768 /* dlclose (self); */
10776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10777 (eval $ac_link) 2>&5
10779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10780 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10781 (./conftest; exit; ) >&5 2>/dev/null
10783 case x$lt_status in
10784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10789 # compilation failed
10790 lt_cv_dlopen_self_static=no
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10798 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10801 CPPFLAGS="$save_CPPFLAGS"
10802 LDFLAGS="$save_LDFLAGS"
10807 case $lt_cv_dlopen_self in
10808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10809 *) enable_dlopen_self=unknown ;;
10812 case $lt_cv_dlopen_self_static in
10813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10814 *) enable_dlopen_self_static=unknown ;;
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10837 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10838 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10840 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; }
10844 # FIXME - insert some real tests, host_os isn't really good enough
10847 if test -n "$STRIP" ; then
10848 striplib="$STRIP -x"
10849 old_striplib="$STRIP -S"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851 $as_echo "yes" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10875 # Report which library types will actually be built
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10879 $as_echo "$can_build_shared" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10882 $as_echo_n "checking whether to build shared libraries... " >&6; }
10883 test "$can_build_shared" = "no" && enable_shared=no
10885 # On AIX, shared libraries and static libraries use the same namespace, and
10886 # are all built from PIC.
10889 test "$enable_shared" = yes && enable_static=no
10890 if test -n "$RANLIB"; then
10891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10892 postinstall_cmds='$RANLIB $lib'
10897 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10898 test "$enable_shared" = yes && enable_static=no
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10903 $as_echo "$enable_shared" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10906 $as_echo_n "checking whether to build static libraries... " >&6; }
10907 # Make sure either enable_shared or enable_static is yes.
10908 test "$enable_shared" = yes || enable_static=yes
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10910 $as_echo "$enable_static" >&6; }
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10936 ac_config_commands="$ac_config_commands libtool"
10941 # Only expand once:
10945 if test "z$RM" == "z" ; then
10946 # Extract the first word of "rm", so it can be a program name with args.
10947 set dummy rm; ac_word=$2
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949 $as_echo_n "checking for $ac_word... " >&6; }
10950 if test "${ac_cv_path_RM+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10955 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
10978 if test -n "$RM"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10980 $as_echo "$RM" >&6; }
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10988 # Extract the first word of "cp", so it can be a program name with args.
10989 set dummy cp; ac_word=$2
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991 $as_echo_n "checking for $ac_word... " >&6; }
10992 if test "${ac_cv_path_CP+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
11020 if test -n "$CP"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11022 $as_echo "$CP" >&6; }
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11029 # Extract the first word of "mv", so it can be a program name with args.
11030 set dummy mv; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_path_MV+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11038 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
11061 if test -n "$MV"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11063 $as_echo "$MV" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11070 # Extract the first word of "tar", so it can be a program name with args.
11071 set dummy tar; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if test "${ac_cv_path_TAR+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11079 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
11101 TAR=$ac_cv_path_TAR
11102 if test -n "$TAR"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11104 $as_echo "$TAR" >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11111 # Extract the first word of "help2man", so it can be a program name with args.
11112 set dummy help2man; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if test "${ac_cv_path_HELP2MAN+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
11120 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 HELP2MAN=$ac_cv_path_HELP2MAN
11142 if test -n "$HELP2MAN"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
11144 $as_echo "$HELP2MAN" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11151 # Extract the first word of "man2html", so it can be a program name with args.
11152 set dummy man2html; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if test "${ac_cv_path_MAN2HTML+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
11160 ac_cv_path_MAN2HTML="$MAN2HTML" # Let the user override the test with a path.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_path_MAN2HTML="$as_dir/$ac_word$ac_exec_ext"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 MAN2HTML=$ac_cv_path_MAN2HTML
11182 if test -n "$MAN2HTML"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
11184 $as_echo "$MAN2HTML" >&6; }
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
11193 $as_echo_n "checking for function prototypes... " >&6; }
11194 if test "$ac_cv_prog_cc_c89" != no; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196 $as_echo "yes" >&6; }
11198 $as_echo "#define PROTOTYPES 1" >>confdefs.h
11201 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11209 if test "$ac_cv_prog_cc_stdc" != no; then
11212 U=_ ANSI2KNR=./ansi2knr
11214 # Ensure some checks needed by ansi2knr itself.
11216 for ac_header in string.h
11218 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11219 if test "x$ac_cv_header_string_h" = x""yes; then :
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_STRING_H 1
11229 test "z$U" != "z" && as_fn_error "Compiler not ANSI compliant" "$LINENO" 5
11231 ac_header_dirent=no
11232 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11233 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11235 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11237 $as_echo_n "(cached) " >&6
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 #include <sys/types.h>
11253 if ac_fn_c_try_compile "$LINENO"; then :
11254 eval "$as_ac_Header=yes"
11256 eval "$as_ac_Header=no"
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 eval ac_res=\$$as_ac_Header
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11262 $as_echo "$ac_res" >&6; }
11263 eval as_val=\$$as_ac_Header
11264 if test "x$as_val" = x""yes; then :
11265 cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11269 ac_header_dirent=$ac_hdr; break
11273 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11274 if test $ac_header_dirent = dirent.h; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11276 $as_echo_n "checking for library containing opendir... " >&6; }
11277 if test "${ac_cv_search_opendir+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 ac_func_search_save_LIBS=$LIBS
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11299 for ac_lib in '' dir; do
11300 if test -z "$ac_lib"; then
11301 ac_res="none required"
11304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11306 if ac_fn_c_try_link "$LINENO"; then :
11307 ac_cv_search_opendir=$ac_res
11309 rm -f core conftest.err conftest.$ac_objext \
11311 if test "${ac_cv_search_opendir+set}" = set; then :
11315 if test "${ac_cv_search_opendir+set}" = set; then :
11318 ac_cv_search_opendir=no
11320 rm conftest.$ac_ext
11321 LIBS=$ac_func_search_save_LIBS
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11324 $as_echo "$ac_cv_search_opendir" >&6; }
11325 ac_res=$ac_cv_search_opendir
11326 if test "$ac_res" != no; then :
11327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11333 $as_echo_n "checking for library containing opendir... " >&6; }
11334 if test "${ac_cv_search_opendir+set}" = set; then :
11335 $as_echo_n "(cached) " >&6
11337 ac_func_search_save_LIBS=$LIBS
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11356 for ac_lib in '' x; do
11357 if test -z "$ac_lib"; then
11358 ac_res="none required"
11361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11363 if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_search_opendir=$ac_res
11366 rm -f core conftest.err conftest.$ac_objext \
11368 if test "${ac_cv_search_opendir+set}" = set; then :
11372 if test "${ac_cv_search_opendir+set}" = set; then :
11375 ac_cv_search_opendir=no
11377 rm conftest.$ac_ext
11378 LIBS=$ac_func_search_save_LIBS
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11381 $as_echo "$ac_cv_search_opendir" >&6; }
11382 ac_res=$ac_cv_search_opendir
11383 if test "$ac_res" != no; then :
11384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11391 $as_echo_n "checking for ANSI C header files... " >&6; }
11392 if test "${ac_cv_header_stdc+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <stdlib.h>
11398 #include <stdarg.h>
11399 #include <string.h>
11410 if ac_fn_c_try_compile "$LINENO"; then :
11411 ac_cv_header_stdc=yes
11413 ac_cv_header_stdc=no
11415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 if test $ac_cv_header_stdc = yes; then
11418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421 #include <string.h>
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "memchr" >/dev/null 2>&1; then :
11428 ac_cv_header_stdc=no
11434 if test $ac_cv_header_stdc = yes; then
11435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438 #include <stdlib.h>
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 $EGREP "free" >/dev/null 2>&1; then :
11445 ac_cv_header_stdc=no
11451 if test $ac_cv_header_stdc = yes; then
11452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11453 if test "$cross_compiling" = yes; then :
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 #include <stdlib.h>
11460 #if ((' ' & 0x0FF) == 0x020)
11461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11464 # define ISLOWER(c) \
11465 (('a' <= (c) && (c) <= 'i') \
11466 || ('j' <= (c) && (c) <= 'r') \
11467 || ('s' <= (c) && (c) <= 'z'))
11468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11476 for (i = 0; i < 256; i++)
11477 if (XOR (islower (i), ISLOWER (i))
11478 || toupper (i) != TOUPPER (i))
11483 if ac_fn_c_try_run "$LINENO"; then :
11486 ac_cv_header_stdc=no
11488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11489 conftest.$ac_objext conftest.beam conftest.$ac_ext
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11495 $as_echo "$ac_cv_header_stdc" >&6; }
11496 if test $ac_cv_header_stdc = yes; then
11498 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11502 for ac_header in stdio.h
11504 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11505 if test "x$ac_cv_header_stdio_h" = x""yes; then :
11506 cat >>confdefs.h <<_ACEOF
11507 #define HAVE_STDIO_H 1
11514 for ac_header in stdlib.h
11516 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11517 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11518 cat >>confdefs.h <<_ACEOF
11519 #define HAVE_STDLIB_H 1
11526 for ac_header in string.h
11528 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11529 if test "x$ac_cv_header_string_h" = x""yes; then :
11530 cat >>confdefs.h <<_ACEOF
11531 #define HAVE_STRING_H 1
11538 for ac_header in ctype.h
11540 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
11541 if test "x$ac_cv_header_ctype_h" = x""yes; then :
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_CTYPE_H 1
11550 for ac_header in errno.h
11552 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11553 if test "x$ac_cv_header_errno_h" = x""yes; then :
11554 cat >>confdefs.h <<_ACEOF
11555 #define HAVE_ERRNO_H 1
11562 for ac_header in ansidecl.h
11564 ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
11565 if test "x$ac_cv_header_ansidecl_h" = x""yes; then :
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_ANSIDECL_H 1
11574 for ac_header in time.h
11576 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
11577 if test "x$ac_cv_header_time_h" = x""yes; then :
11578 cat >>confdefs.h <<_ACEOF
11579 #define HAVE_TIME_H 1
11586 for ac_func in strchr strrchr printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf timegm
11588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11590 eval as_val=\$$as_ac_var
11591 if test "x$as_val" = x""yes; then :
11592 cat >>confdefs.h <<_ACEOF
11593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for development environment" >&5
11603 $as_echo_n "checking for development environment... " >&6; }
11604 # Check whether --enable-development was given.
11605 if test "${enable_development+set}" = set; then :
11606 enableval=$enable_development;
11609 if test "z$enable_development" = "zyes" ; then
11610 enable_debuging="yes"
11611 enable_pedantic="yes"
11612 enable_static_linking="yes"
11613 enable_crypto_dl="no"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11615 $as_echo "yes" >&6; }
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11622 XMLSEC_EXTRA_LDFLAGS=
11623 XMLSEC_CRYPTO_EXTRA_LDFLAGS=
11625 xmlsec_sharedlib_hack="no"
11626 if test -n "$shrext"; then
11627 XMLSEC_SHLIBSFX="$shrext"
11629 XMLSEC_SHLIBSFX="$shrext_cmds"
11633 CFLAGS="${CFLAGS} -D_ALL_SOURCE"
11636 XMLSEC_EXTRA_LDFLAGS="-no-undefined -avoid-version"
11637 XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined -avoid-version"
11638 XMLSEC_SHLIBSFX=".dll.a"
11639 xmlsec_sharedlib_hack="yes"
11642 XMLSEC_EXTRA_LDFLAGS="-no-undefined"
11643 XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined"
11647 # To avoid problem with loading of a shared library (dlopen or equivalent)
11648 # at run time on some platforms we need to link crypto modules with extra
11649 # source. It's work without hack on 9x and under emulation.
11650 # On nt 5.x (w2k,xp) the error is 998("Invalid access to memory location").
11651 if test "z$xmlsec_sharedlib_hack" = "zyes"; then
11652 SHAREDLIB_HACK_TRUE=
11653 SHAREDLIB_HACK_FALSE='#'
11655 SHAREDLIB_HACK_TRUE='#'
11656 SHAREDLIB_HACK_FALSE=
11660 if test "z$shrext" == "z" ; then
11661 shrext=$shrext_cmds
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__ or __func__" >&5
11665 $as_echo_n "checking for __FUNCTION__ or __func__... " >&6; }
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11672 char *foo = __FUNCTION__;
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678 ac_function_exists=yes
11680 ac_function_exists=no
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11689 char *foo = __func__;
11694 if ac_fn_c_try_compile "$LINENO"; then :
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 if test "z$ac_function_exists" = "zyes" ; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __FUNCTION__" >&5
11702 $as_echo "__FUNCTION__" >&6; }
11703 XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__FUNCTION__"
11704 elif test "z$ac_func_exists" = "zyes" ; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __func__" >&5
11706 $as_echo "__func__" >&6; }
11707 XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__func__"
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
11710 $as_echo "\"no\"" >&6; }
11713 # The cast to long int works around a bug in the HP C Compiler
11714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11716 # This bug is HP SR number 8606223364.
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
11718 $as_echo_n "checking size of size_t... " >&6; }
11719 if test "${ac_cv_sizeof_size_t+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
11725 if test "$ac_cv_type_size_t" = yes; then
11726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11728 { as_fn_set_status 77
11729 as_fn_error "cannot compute sizeof (size_t)
11730 See \`config.log' for more details." "$LINENO" 5; }; }
11732 ac_cv_sizeof_size_t=0
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
11738 $as_echo "$ac_cv_sizeof_size_t" >&6; }
11742 cat >>confdefs.h <<_ACEOF
11743 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11747 if test "$ac_cv_sizeof_size_t" -ne "4" ; then
11748 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SIZE_T"
11754 # Check whether --enable-pkgconfig was given.
11755 if test "${enable_pkgconfig+set}" = set; then :
11756 enableval=$enable_pkgconfig;
11759 if test "z$enable_pkgconfig" = "zno" ; then
11760 PKG_CONFIG_ENABLED=no
11762 # Extract the first word of "pkg-config", so it can be a program name with args.
11763 set dummy pkg-config; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_prog_PKG_CONFIG_ENABLED+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11769 if test -n "$PKG_CONFIG_ENABLED"; then
11770 ac_cv_prog_PKG_CONFIG_ENABLED="$PKG_CONFIG_ENABLED" # Let the user override the test.
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11776 test -z "$as_dir" && as_dir=.
11777 for ac_exec_ext in '' $ac_executable_extensions; do
11778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11779 ac_cv_prog_PKG_CONFIG_ENABLED="yes"
11780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 test -z "$ac_cv_prog_PKG_CONFIG_ENABLED" && ac_cv_prog_PKG_CONFIG_ENABLED="no"
11790 PKG_CONFIG_ENABLED=$ac_cv_prog_PKG_CONFIG_ENABLED
11791 if test -n "$PKG_CONFIG_ENABLED"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG_ENABLED" >&5
11793 $as_echo "$PKG_CONFIG_ENABLED" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11800 if test "z$PKG_CONFIG_ENABLED" = "zyes" ; then
11801 if ! pkg-config --atleast-pkgconfig-version 0.9 ; then
11802 PKG_CONFIG_ENABLED=no
11807 LIBXML_MIN_VERSION="2.7.4"
11808 LIBXML_CONFIG="xml2-config"
11813 # Check whether --with-libxml was given.
11814 if test "${with_libxml+set}" = set; then :
11815 withval=$with_libxml;
11819 # Check whether --with-libxml-src was given.
11820 if test "${with_libxml_src+set}" = set; then :
11821 withval=$with_libxml_src;
11825 if test "z$with_libxml" = "zno" -o "z$with_libxml_src" = "zno"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
11827 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
11828 as_fn_error "libxml2 >= $LIBXML_MIN_VERSION is required for $XMLSEC_PACKAGE" "$LINENO" 5
11829 elif test "z$with_libxml_src" != "z" ; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
11831 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
11833 if cd "$with_libxml_src" ; then
11835 LIBXML_CONFIG=${SRC_DIR}/xml2-config
11836 LIBXML_LIBS="-L${SRC_DIR}/.libs -lxml2"
11837 LIBXML_CFLAGS="-I${SRC_DIR}/include"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
11841 $as_echo "yes (source)" >&6; }
11843 as_fn_error "libxml source dir not found (${with_libxml_src}), typo?" "$LINENO" 5
11845 elif test "z$with_libxml" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
11848 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11849 if test -n "$ac_tool_prefix"; then
11850 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11851 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11855 $as_echo_n "(cached) " >&6
11857 case $PKG_CONFIG in
11859 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11881 if test -n "$PKG_CONFIG"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11883 $as_echo "$PKG_CONFIG" >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11891 if test -z "$ac_cv_path_PKG_CONFIG"; then
11892 ac_pt_PKG_CONFIG=$PKG_CONFIG
11893 # Extract the first word of "pkg-config", so it can be a program name with args.
11894 set dummy pkg-config; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11900 case $ac_pt_PKG_CONFIG in
11902 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11924 if test -n "$ac_pt_PKG_CONFIG"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11926 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11932 if test "x$ac_pt_PKG_CONFIG" = x; then
11935 case $cross_compiling:$ac_tool_warned in
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11939 ac_tool_warned=yes ;;
11941 PKG_CONFIG=$ac_pt_PKG_CONFIG
11944 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11948 if test -n "$PKG_CONFIG"; then
11949 _pkg_min_version=0.9.0
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11951 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11952 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954 $as_echo "yes" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
11965 $as_echo_n "checking for LIBXML... " >&6; }
11967 if test -n "$PKG_CONFIG"; then
11968 if test -n "$LIBXML_CFLAGS"; then
11969 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
11971 if test -n "$PKG_CONFIG" && \
11972 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
11973 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
11975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11976 test $ac_status = 0; }; then
11977 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
11985 if test -n "$PKG_CONFIG"; then
11986 if test -n "$LIBXML_LIBS"; then
11987 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
11989 if test -n "$PKG_CONFIG" && \
11990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
11991 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
11993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994 test $ac_status = 0; }; then
11995 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
12006 if test $pkg_failed = yes; then
12008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12009 _pkg_short_errors_supported=yes
12011 _pkg_short_errors_supported=no
12013 if test $_pkg_short_errors_supported = yes; then
12014 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION"`
12016 LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION"`
12018 # Put the nasty error message in config.log where it belongs
12019 echo "$LIBXML_PKG_ERRORS" >&5
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12024 elif test $pkg_failed = untried; then
12027 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
12028 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12034 if test "z$LIBXML_FOUND" = "zno" ; then
12035 if test "z$with_libxml" != "zyes" ; then
12036 # Extract the first word of "$LIBXML_CONFIG", so it can be a program name with args.
12037 set dummy $LIBXML_CONFIG; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if test "${ac_cv_path_LIBXML_CONFIG+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12043 case $LIBXML_CONFIG in
12045 ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 as_dummy="$with_libxml/bin:$PATH"
12050 for as_dir in $as_dummy
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056 ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
12068 if test -n "$LIBXML_CONFIG"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
12070 $as_echo "$LIBXML_CONFIG" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 $LIBXML_CONFIG " >&5
12079 $as_echo_n "checking libxml2 $LIBXML_CONFIG ... " >&6; }
12080 if ! LIBXML_VERSION=`$LIBXML_CONFIG --version 2>/dev/null`; then
12081 as_fn_error "Could not find libxml2 anywhere." "$LINENO" 5
12083 vers=`echo $LIBXML_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12084 minvers=`echo $LIBXML_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12085 if test "$vers" -ge "$minvers" ; then
12086 LIBXML_LIBS="`$LIBXML_CONFIG --libs`"
12087 LIBXML_CFLAGS="`$LIBXML_CONFIG --cflags`"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXML_VERSION')" >&5
12090 $as_echo "yes ('$LIBXML_VERSION')" >&6; }
12092 as_fn_error "You need at least libxml2 $LIBXML_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
12101 XMLSEC_NO_LIBXSLT="1"
12102 LIBXSLT_MIN_VERSION=1.0.20
12103 LIBXSLT_CONFIG="xslt-config"
12108 # Check whether --with-libxslt was given.
12109 if test "${with_libxslt+set}" = set; then :
12110 withval=$with_libxslt;
12114 # Check whether --with-libxslt-src was given.
12115 if test "${with_libxslt_src+set}" = set; then :
12116 withval=$with_libxslt_src;
12119 if test "z$with_libxslt" = "zno" -o "z$with_libxslt_src" = "zno" ; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
12121 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 LIBXSLT_FOUND="without"
12125 elif test "z$with_libxslt_src" != "z" ; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
12127 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
12129 if cd "$with_libxslt_src" ; then
12131 LIBXSLT_CONFIG=${SRC_DIR}/xslt-config
12132 LIBXSLT_LIBS="-L${SRC_DIR}/libxslt/.libs -lxslt"
12133 LIBXSLT_CFLAGS="-I${SRC_DIR}"
12134 LIBXSLT_FOUND="yes"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
12137 $as_echo "yes (source)" >&6; }
12139 as_fn_error "libxslt source dir not found (${with_libxslt_src}), typo?" "$LINENO" 5
12141 elif test "z$with_libxslt" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXSLT" >&5
12145 $as_echo_n "checking for LIBXSLT... " >&6; }
12147 if test -n "$PKG_CONFIG"; then
12148 if test -n "$LIBXSLT_CFLAGS"; then
12149 pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
12151 if test -n "$PKG_CONFIG" && \
12152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
12153 ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }; then
12157 pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
12165 if test -n "$PKG_CONFIG"; then
12166 if test -n "$LIBXSLT_LIBS"; then
12167 pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
12169 if test -n "$PKG_CONFIG" && \
12170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
12171 ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
12173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174 test $ac_status = 0; }; then
12175 pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
12186 if test $pkg_failed = yes; then
12188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12189 _pkg_short_errors_supported=yes
12191 _pkg_short_errors_supported=no
12193 if test $_pkg_short_errors_supported = yes; then
12194 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxslt >= $LIBXSLT_MIN_VERSION"`
12196 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= $LIBXSLT_MIN_VERSION"`
12198 # Put the nasty error message in config.log where it belongs
12199 echo "$LIBXSLT_PKG_ERRORS" >&5
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12204 elif test $pkg_failed = untried; then
12207 LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
12208 LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210 $as_echo "yes" >&6; }
12215 if test "z$LIBXSLT_FOUND" = "zno" ; then
12216 if test "z$with_libxslt" != "zyes" ; then
12217 # Extract the first word of "$LIBXSLT_CONFIG", so it can be a program name with args.
12218 set dummy $LIBXSLT_CONFIG; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if test "${ac_cv_path_LIBXSLT_CONFIG+set}" = set; then :
12222 $as_echo_n "(cached) " >&6
12224 case $LIBXSLT_CONFIG in
12226 ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 as_dummy="$with_libxslt/bin:$PATH"
12231 for as_dir in $as_dummy
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
12249 if test -n "$LIBXSLT_CONFIG"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
12251 $as_echo "$LIBXSLT_CONFIG" >&6; }
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
12260 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
12261 if ! LIBXSLT_VERSION=`$LIBXSLT_CONFIG --version 2>/dev/null`; then
12262 if test "z$with_libxslt" != "zyes" ; then
12263 as_fn_error "Unable to find libxslt at '$with_libxslt'" "$LINENO" 5
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12269 vers=`echo $LIBXSLT_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12270 minvers=`echo $LIBXSLT_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
12271 if test "$vers" -ge "$minvers" ; then
12272 LIBXSLT_LIBS="`$LIBXSLT_CONFIG --libs`"
12273 LIBXSLT_CFLAGS="`$LIBXSLT_CONFIG --cflags`"
12274 LIBXSLT_FOUND="yes"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXSLT_VERSION')" >&5
12276 $as_echo "yes ('$LIBXSLT_VERSION')" >&6; }
12278 as_fn_error "You need at least libxslt $LIBXSLT_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
12283 if test "z$LIBXSLT_FOUND" = "zyes" ; then
12284 XMLSEC_NO_LIBXSLT="0"
12286 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XSLT=1"
12296 XMLSEC_CRYPTO_LIST=""
12297 XMLSEC_CRYPTO_DISABLED_LIST=""
12298 XMLSEC_CRYPTO_LIB=""
12299 XMLSEC_CRYPTO_CFLAGS=""
12300 XMLSEC_CRYPTO_CFLAGS_APP=""
12301 XMLSEC_CRYPTO_LIBS=""
12303 ac_openssl_lib_dir="/usr/local/lib /usr/lib /usr/lib64 /usr/local /usr/local/ssl /usr/local/ssl/lib /usr/pkg"
12304 ac_openssl_inc_dir="/usr/local/include /usr/include /usr/local /usr/local/ssl /usr/pkg /usr/local/ssl/include"
12306 XMLSEC_NO_OPENSSL="1"
12307 OPENSSL_MIN_VERSION="0.9.6"
12311 OPENSSL_CRYPTO_LIB="$XMLSEC_PACKAGE-openssl"
12314 # Check whether --with-openssl was given.
12315 if test "${with_openssl+set}" = set; then :
12316 withval=$with_openssl;
12319 if test "z$with_openssl" = "zno" ; then
12320 OPENSSL_FOUND=without
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
12322 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 elif test "z$with_openssl" != "z" ; then
12327 *-*-mingw*) openssl_exlibs=;;
12328 *-*-osf5*) openssl_exlibs=;;
12329 *-*-openbsd*) openssl_exlibs=;;
12330 *-*-netbsd*) openssl_exlibs=;;
12331 #FIXME: check if lib "dl" is required
12332 *) openssl_exlibs=-ldl;;
12334 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$with_openssl/include"
12335 if test -f "$with_openssl/lib/libcrypto${XMLSEC_SHLIBSFX}" ; then
12336 OPENSSL_LIBS="-L$with_openssl/lib -lcrypto $openssl_exlibs"
12338 OPENSSL_LIBS="$with_openssl/lib/libcrypto.a $openssl_exlibs"
12340 OPENSSL_FOUND="yes"
12341 elif test "z$PKG_CONFIG_ENABLED" = "zyes" ; then
12342 if test "z$OPENSSL_VERSION" = "z" ; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12346 $as_echo_n "checking for OPENSSL... " >&6; }
12348 if test -n "$PKG_CONFIG"; then
12349 if test -n "$OPENSSL_CFLAGS"; then
12350 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
12352 if test -n "$PKG_CONFIG" && \
12353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
12354 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; }; then
12358 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
12366 if test -n "$PKG_CONFIG"; then
12367 if test -n "$OPENSSL_LIBS"; then
12368 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
12370 if test -n "$PKG_CONFIG" && \
12371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
12372 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
12374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12375 test $ac_status = 0; }; then
12376 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
12387 if test $pkg_failed = yes; then
12389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12390 _pkg_short_errors_supported=yes
12392 _pkg_short_errors_supported=no
12394 if test $_pkg_short_errors_supported = yes; then
12395 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.8"`
12397 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.8"`
12399 # Put the nasty error message in config.log where it belongs
12400 echo "$OPENSSL_PKG_ERRORS" >&5
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12405 elif test $pkg_failed = untried; then
12408 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
12409 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12411 $as_echo "yes" >&6; }
12412 OPENSSL_VERSION="0.9.8"
12416 if test "z$OPENSSL_VERSION" = "z" ; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12420 $as_echo_n "checking for OPENSSL... " >&6; }
12422 if test -n "$PKG_CONFIG"; then
12423 if test -n "$OPENSSL_CFLAGS"; then
12424 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
12426 if test -n "$PKG_CONFIG" && \
12427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
12428 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
12430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431 test $ac_status = 0; }; then
12432 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
12440 if test -n "$PKG_CONFIG"; then
12441 if test -n "$OPENSSL_LIBS"; then
12442 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
12444 if test -n "$PKG_CONFIG" && \
12445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
12446 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
12448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449 test $ac_status = 0; }; then
12450 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
12461 if test $pkg_failed = yes; then
12463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12464 _pkg_short_errors_supported=yes
12466 _pkg_short_errors_supported=no
12468 if test $_pkg_short_errors_supported = yes; then
12469 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= 0.9.7"`
12471 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= 0.9.7"`
12473 # Put the nasty error message in config.log where it belongs
12474 echo "$OPENSSL_PKG_ERRORS" >&5
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12479 elif test $pkg_failed = untried; then
12482 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
12483 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485 $as_echo "yes" >&6; }
12486 OPENSSL_VERSION="0.9.7"
12490 if test "z$OPENSSL_VERSION" = "z" ; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12494 $as_echo_n "checking for OPENSSL... " >&6; }
12496 if test -n "$PKG_CONFIG"; then
12497 if test -n "$OPENSSL_CFLAGS"; then
12498 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
12500 if test -n "$PKG_CONFIG" && \
12501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
12502 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
12504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12505 test $ac_status = 0; }; then
12506 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
12514 if test -n "$PKG_CONFIG"; then
12515 if test -n "$OPENSSL_LIBS"; then
12516 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
12518 if test -n "$PKG_CONFIG" && \
12519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
12520 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
12522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523 test $ac_status = 0; }; then
12524 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
12535 if test $pkg_failed = yes; then
12537 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12538 _pkg_short_errors_supported=yes
12540 _pkg_short_errors_supported=no
12542 if test $_pkg_short_errors_supported = yes; then
12543 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MIN_VERSION"`
12545 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MIN_VERSION"`
12547 # Put the nasty error message in config.log where it belongs
12548 echo "$OPENSSL_PKG_ERRORS" >&5
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12553 elif test $pkg_failed = untried; then
12556 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
12557 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559 $as_echo "yes" >&6; }
12560 OPENSSL_VERSION="$OPENSSL_MIN_VERSION"
12564 if test "z$OPENSSL_VERSION" != "z" ; then
12565 OPENSSL_FOUND="yes"
12569 if test "z$OPENSSL_FOUND" = "zno" ; then
12570 OPENSSL_INCLUDES_FOUND="no"
12571 OPENSSL_LIBS_FOUND="no"
12573 for dir in $ac_openssl_inc_dir ; do
12574 if test -f $dir/openssl/ssl.h ; then
12575 if test "z$dir" = "z/usr/include" ; then
12576 OPENSSL_CFLAGS="$OPENSSL_CFLAGS "
12578 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$dir"
12580 OPENSSL_INCLUDES_FOUND="yes"
12585 for dir in $ac_openssl_lib_dir ; do
12586 if test -f $dir/libcrypto.a ; then
12587 if test "z$dir" = "z/usr/lib" ; then
12588 OPENSSL_LIBS="-lcrypto -ldl"
12590 OPENSSL_LIBS="-L$dir -lcrypto -ldl"
12592 OPENSSL_LIBS_FOUND="yes"
12593 ac_found_openssl_lib_dir=$dir
12598 if test "z$OPENSSL_INCLUDES_FOUND" = "zyes" -a "z$OPENSSL_LIBS_FOUND" = "zyes" ; then
12599 OPENSSL_FOUND="yes"
12603 if test "z$OPENSSL_FOUND" = "zyes" -a "z$OPENSSL_VERSION" = "z" ; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
12605 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
12607 OLD_CPPFLAGS=$CPPFLAGS
12608 CPPFLAGS="$OPENSSL_CFLAGS"
12610 if test "z$OPENSSL_VERSION" = "z" ; then
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12614 #include <openssl/opensslv.h>
12615 #if OPENSSL_VERSION_NUMBER >= 0x10000000L
12620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12621 $EGREP "yes" >/dev/null 2>&1; then :
12623 OPENSSL_VERSION="1.0.0"
12634 if test "z$OPENSSL_VERSION" = "z" ; then
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 #include <openssl/opensslv.h>
12639 #if OPENSSL_VERSION_NUMBER >= 0x00908000L
12644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12645 $EGREP "yes" >/dev/null 2>&1; then :
12647 OPENSSL_VERSION="0.9.8"
12658 if test "z$OPENSSL_VERSION" = "z" ; then
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12662 #include <openssl/opensslv.h>
12663 #if OPENSSL_VERSION_NUMBER >= 0x00907000L
12668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12669 $EGREP "yes" >/dev/null 2>&1; then :
12671 OPENSSL_VERSION="0.9.7"
12682 if test "z$OPENSSL_VERSION" = "z" ; then
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12686 #include <openssl/opensslv.h>
12687 #if OPENSSL_VERSION_NUMBER >= 0x00906000L
12692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12693 $EGREP "yes" >/dev/null 2>&1; then :
12695 OPENSSL_VERSION="0.9.6"
12705 if test "z$OPENSSL_VERSION" = "z" ; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$OPENSSL_VERSION')" >&5
12710 $as_echo "yes ('$OPENSSL_VERSION')" >&6; }
12713 CPPFLAGS=$OLD_CPPFLAGS
12716 if test "z$OPENSSL_FOUND" = "zyes" ; then
12717 XMLSEC_NO_OPENSSL="0"
12718 if test "z$OPENSSL_VERSION" = "z0.9.6" ; then
12719 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_096=1"
12721 if test "z$OPENSSL_VERSION" = "z0.9.7" ; then
12722 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_097=1"
12724 if test "z$OPENSSL_VERSION" = "z0.9.8" ; then
12725 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_098=1"
12727 if test "z$OPENSSL_VERSION" = "z1.0.0" ; then
12728 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_100=1"
12730 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_CRYPTO_OPENSSL=1"
12732 if test "z$XMLSEC_CRYPTO" = "z" ; then
12733 XMLSEC_CRYPTO="openssl"
12734 XMLSEC_CRYPTO_LIB="$OPENSSL_CRYPTO_LIB"
12735 XMLSEC_CRYPTO_CFLAGS="$OPENSSL_CFLAGS"
12736 XMLSEC_CRYPTO_LIBS="$OPENSSL_LIBS"
12738 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"
12740 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST openssl"
12743 if test "z$XMLSEC_NO_OPENSSL" == "z1"; then
12744 XMLSEC_NO_OPENSSL_TRUE=
12745 XMLSEC_NO_OPENSSL_FALSE='#'
12747 XMLSEC_NO_OPENSSL_TRUE='#'
12748 XMLSEC_NO_OPENSSL_FALSE=
12759 MOZILLA_MIN_VERSION="1.4"
12760 NSS_MIN_VERSION="3.2"
12761 NSPR_MIN_VERSION="4.0"
12764 NSS_LIBS_LIST="-lnss3 -lsmime3"
12765 NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4"
12766 NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss"
12768 NSPR_PACKAGE=mozilla-nspr
12769 NSS_PACKAGE=mozilla-nss
12773 # Check whether --with-nss was given.
12774 if test "${with_nss+set}" = set; then :
12779 # Check whether --with-nspr was given.
12780 if test "${with_nspr+set}" = set; then :
12781 withval=$with_nspr;
12785 # Check whether --with-seamonkey_ver was given.
12786 if test "${with_seamonkey_ver+set}" = set; then :
12787 withval=$with_seamonkey_ver;
12791 # Check whether --with-mozilla_ver was given.
12792 if test "${with_mozilla_ver+set}" = set; then :
12793 withval=$with_mozilla_ver;
12796 if test "z$with_nss" = "zno" -o "z$with_nspr" = "zno" ; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS libraries" >&5
12798 $as_echo_n "checking for NSS libraries... " >&6; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12801 NSS_FOUND="without"
12802 elif test "z$with_nss" = "z" -a "z$with_nspr" = "z" -a "z$with_mozilla_ver" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
12803 if test "z$NSS_FOUND" = "zno" ; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
12807 $as_echo_n "checking for NSS... " >&6; }
12809 if test -n "$PKG_CONFIG"; then
12810 if test -n "$NSS_CFLAGS"; then
12811 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
12813 if test -n "$PKG_CONFIG" && \
12814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12815 ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; }; then
12819 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12827 if test -n "$PKG_CONFIG"; then
12828 if test -n "$NSS_LIBS"; then
12829 pkg_cv_NSS_LIBS="$NSS_LIBS"
12831 if test -n "$PKG_CONFIG" && \
12832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12833 ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
12835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836 test $ac_status = 0; }; then
12837 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12848 if test $pkg_failed = yes; then
12850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12851 _pkg_short_errors_supported=yes
12853 _pkg_short_errors_supported=no
12855 if test $_pkg_short_errors_supported = yes; then
12856 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION"`
12858 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION"`
12860 # Put the nasty error message in config.log where it belongs
12861 echo "$NSS_PKG_ERRORS" >&5
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12866 elif test $pkg_failed = untried; then
12869 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
12870 NSS_LIBS=$pkg_cv_NSS_LIBS
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873 NSS_FOUND=yes NSPR_PACKAGE=mozilla-nspr NSS_PACKAGE=mozilla-nss
12876 if test "z$NSS_FOUND" = "zno" ; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
12880 $as_echo_n "checking for NSS... " >&6; }
12882 if test -n "$PKG_CONFIG"; then
12883 if test -n "$NSS_CFLAGS"; then
12884 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
12886 if test -n "$PKG_CONFIG" && \
12887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$MOZILLA_MIN_VERSION xulrunner-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12888 ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION") 2>&5
12890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891 test $ac_status = 0; }; then
12892 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12900 if test -n "$PKG_CONFIG"; then
12901 if test -n "$NSS_LIBS"; then
12902 pkg_cv_NSS_LIBS="$NSS_LIBS"
12904 if test -n "$PKG_CONFIG" && \
12905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$MOZILLA_MIN_VERSION xulrunner-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12906 ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION") 2>&5
12908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12909 test $ac_status = 0; }; then
12910 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12921 if test $pkg_failed = yes; then
12923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12924 _pkg_short_errors_supported=yes
12926 _pkg_short_errors_supported=no
12928 if test $_pkg_short_errors_supported = yes; then
12929 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION"`
12931 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-nspr >= $MOZILLA_MIN_VERSION xulrunner-nss >= $MOZILLA_MIN_VERSION"`
12933 # Put the nasty error message in config.log where it belongs
12934 echo "$NSS_PKG_ERRORS" >&5
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12939 elif test $pkg_failed = untried; then
12942 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
12943 NSS_LIBS=$pkg_cv_NSS_LIBS
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12946 NSS_FOUND=yes NSPR_PACKAGE=xulrunner-nspr NSS_PACKAGE=xulrunner-nss
12949 if test "z$NSS_FOUND" = "zno" ; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
12953 $as_echo_n "checking for NSS... " >&6; }
12955 if test -n "$PKG_CONFIG"; then
12956 if test -n "$NSS_CFLAGS"; then
12957 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
12959 if test -n "$PKG_CONFIG" && \
12960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$MOZILLA_MIN_VERSION nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12961 ($PKG_CONFIG --exists --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION") 2>&5
12963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964 test $ac_status = 0; }; then
12965 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12973 if test -n "$PKG_CONFIG"; then
12974 if test -n "$NSS_LIBS"; then
12975 pkg_cv_NSS_LIBS="$NSS_LIBS"
12977 if test -n "$PKG_CONFIG" && \
12978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$MOZILLA_MIN_VERSION nss >= \$MOZILLA_MIN_VERSION\""; } >&5
12979 ($PKG_CONFIG --exists --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION") 2>&5
12981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982 test $ac_status = 0; }; then
12983 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
12994 if test $pkg_failed = yes; then
12996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12997 _pkg_short_errors_supported=yes
12999 _pkg_short_errors_supported=no
13001 if test $_pkg_short_errors_supported = yes; then
13002 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION"`
13004 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nspr >= $MOZILLA_MIN_VERSION nss >= $MOZILLA_MIN_VERSION"`
13006 # Put the nasty error message in config.log where it belongs
13007 echo "$NSS_PKG_ERRORS" >&5
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13012 elif test $pkg_failed = untried; then
13015 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
13016 NSS_LIBS=$pkg_cv_NSS_LIBS
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018 $as_echo "yes" >&6; }
13019 NSS_FOUND=yes NSPR_PACKAGE=nspr NSS_PACKAGE=nss
13024 if test "z$NSS_FOUND" = "zno" ; then
13025 if test "z$with_seamonkey_ver" != "z" ; then
13026 ac_mozilla_name=seamonkey-$with_seamonkey_ver
13027 elif test "z$with_mozilla_ver" != "z" ; then
13028 ac_mozilla_name=mozilla-$with_mozilla_ver
13030 ac_mozilla_name=mozilla-$MOZILLA_MIN_VERSION
13033 ac_nss_lib_dir="/usr/lib /usr/lib64 /usr/local/lib /usr/lib/$ac_mozilla_name /usr/local/lib/$ac_mozilla_name"
13034 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"
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr libraries >= $NSPR_MIN_VERSION" >&5
13037 $as_echo_n "checking for nspr libraries >= $NSPR_MIN_VERSION... " >&6; }
13038 NSPR_INCLUDES_FOUND="no"
13039 NSPR_LIBS_FOUND="no"
13043 if test "z$with_nspr" != "z" ; then
13044 NSPR_PREFIX="$with_nspr"
13045 NSPR_CFLAGS="-I$with_nspr/include -I$with_nspr/include/nspr"
13046 if test "z$with_gnu_ld" = "zyes" ; then
13047 NSPR_LIBS="-Wl,-rpath-link -Wl,$with_nspr/lib -L$with_nspr/lib $NSPR_LIBS_LIST"
13049 NSPR_LIBS="-L$with_nspr/lib $NSPR_LIBS_LIST"
13051 NSPR_INCLUDES_FOUND="yes"
13052 NSPR_LIBS_FOUND="yes"
13053 NSPR_PRINIT_H="$with_nspr/include/prinit.h"
13055 for dir in $ac_nss_inc_dir ; do
13056 if test -f $dir/nspr/prinit.h ; then
13057 if test "z$dir" = "z/usr/include" ; then
13060 NSPR_CFLAGS="-I$dir/nspr"
13062 NSPR_INCLUDES_FOUND="yes"
13063 NSPR_PRINIT_H="$dir/nspr/prinit.h"
13068 for dir in $ac_nss_lib_dir ; do
13069 if test -f $dir/libnspr4$shrext ; then
13070 if test "z$dir" = "z/usr/lib" ; then
13071 NSPR_LIBS="$NSPR_LIBS_LIST"
13073 if test "z$with_gnu_ld" = "zyes" ; then
13074 NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST"
13076 NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
13079 NSPR_LIBS_FOUND="yes"
13085 if test "z$NSPR_INCLUDES_FOUND" = "zyes" -a "z$NSPR_LIBS_FOUND" = "zyes" ; then
13086 OLD_CPPFLAGS=$CPPFLAGS
13087 CPPFLAGS="$NSPR_CFLAGS"
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13091 #include <prinit.h>
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098 $EGREP "yes" >/dev/null 2>&1; then :
13109 CPPFLAGS="$OLD_CPPFLAGS"
13112 if test "z$NSPR_FOUND" = "zyes" ; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13114 $as_echo "yes" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss libraries >= $NSS_MIN_VERSION" >&5
13121 $as_echo_n "checking for nss libraries >= $NSS_MIN_VERSION... " >&6; }
13122 NSS_INCLUDES_FOUND="no"
13123 NSS_LIBS_FOUND="no"
13126 if test "z$with_nss" != "z" ; then
13127 NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss"
13128 if test "z$with_gnu_ld" = "zyes" ; then
13129 NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST"
13131 NSS_LIBS="$NSS_LIBS -L$with_nss/lib $NSS_LIBS_LIST"
13133 NSS_INCLUDES_FOUND="yes"
13134 NSS_LIBS_FOUND="yes"
13135 NSS_NSS_H="$with_nss/include/nss.h"
13137 for dir in $ac_nss_inc_dir ; do
13138 if test -f $dir/nss/nss.h ; then
13139 if test "z$dir" = "z/usr/include" ; then
13140 NSS_CFLAGS="$NSS_CFLAGS"
13142 NSS_CFLAGS="$NSS_CFLAGS -I$dir/nss"
13144 NSS_INCLUDES_FOUND="yes"
13145 NSS_NSS_H="$dir/nss/nss.h"
13150 for dir in $ac_nss_lib_dir ; do
13151 if test -f $dir/libnss3$shrext ; then
13152 if test "z$dir" = "z/usr/lib" ; then
13153 NSS_LIBS="$NSS_LIBS_LIST"
13155 if test "z$with_gnu_ld" = "zyes" ; then
13156 NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST"
13158 NSS_LIBS="-L$dir $NSS_LIBS_LIST"
13161 NSS_LIBS_FOUND="yes"
13167 if test "z$NSS_INCLUDES_FOUND" = "zyes" -a "z$NSS_LIBS_FOUND" = "zyes" ; then
13168 OLD_CPPFLAGS=$CPPFLAGS
13169 CPPFLAGS="$NSS_CFLAGS"
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13174 #if NSS_VMAJOR >= 3 && NSS_VMINOR >= 2
13179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13180 $EGREP "yes" >/dev/null 2>&1; then :
13191 CPPFLAGS="$OLD_CPPFLAGS"
13194 if test "z$NSS_FOUND" = "zyes" ; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13196 $as_echo "yes" >&6; }
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13202 if test "z$NSPR_FOUND" = "zyes" -a "z$NSS_FOUND" = "zyes" ; then
13203 NSS_CFLAGS="$NSS_CFLAGS $NSPR_CFLAGS"
13204 NSS_LIBS="$NSS_LIBS $NSPR_LIBS"
13205 elif test "z$NSPR_FOUND" != "zyes" -a "z$NSS_FOUND" = "zyes" ; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NSPR library is required for NSS" >&5
13208 $as_echo "NSPR library is required for NSS" >&6; }
13212 if test "z$NSS_FOUND" = "zyes" ; then
13214 NSS_CFLAGS="$NSS_CFLAGS -DXMLSEC_CRYPTO_NSS=1"
13216 if test "z$XMLSEC_CRYPTO" = "z" ; then
13217 XMLSEC_CRYPTO="nss"
13218 XMLSEC_CRYPTO_LIB="$NSS_CRYPTO_LIB"
13219 XMLSEC_CRYPTO_CFLAGS="$NSS_CFLAGS"
13220 XMLSEC_CRYPTO_LIBS="$NSS_LIBS"
13222 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST nss"
13224 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST nss"
13227 if test "z$XMLSEC_NO_NSS" = "z1"; then
13228 XMLSEC_NO_NSS_TRUE=
13229 XMLSEC_NO_NSS_FALSE='#'
13231 XMLSEC_NO_NSS_TRUE='#'
13232 XMLSEC_NO_NSS_FALSE=
13245 GNUTLS_CONFIG="libgnutls-config"
13246 XMLSEC_NO_GNUTLS="1"
13247 GNUTLS_MIN_VERSION="0.8.1"
13248 GNUTLS_NEW_MIN_VERSION="1.0.0"
13252 GNUTLS_CRYPTO_LIB="$XMLSEC_PACKAGE-gnutls"
13255 # Check whether --with-gnutls was given.
13256 if test "${with_gnutls+set}" = set; then :
13257 withval=$with_gnutls;
13260 if test "z$with_gnutls" = "zno" ; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
13262 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265 GNUTLS_FOUND="without"
13266 elif test "z$with_gnutls" = "z" -a "z$PKG_CONFIG_ENABLED" = "zyes" ; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13270 $as_echo_n "checking for GNUTLS... " >&6; }
13272 if test -n "$PKG_CONFIG"; then
13273 if test -n "$GNUTLS_CFLAGS"; then
13274 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13276 if test -n "$PKG_CONFIG" && \
13277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13278 ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13281 test $ac_status = 0; }; then
13282 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13290 if test -n "$PKG_CONFIG"; then
13291 if test -n "$GNUTLS_LIBS"; then
13292 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13294 if test -n "$PKG_CONFIG" && \
13295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13296 ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13299 test $ac_status = 0; }; then
13300 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13311 if test $pkg_failed = yes; then
13313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13314 _pkg_short_errors_supported=yes
13316 _pkg_short_errors_supported=no
13318 if test $_pkg_short_errors_supported = yes; then
13319 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION"`
13321 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= $GNUTLS_NEW_MIN_VERSION"`
13323 # Put the nasty error message in config.log where it belongs
13324 echo "$GNUTLS_PKG_ERRORS" >&5
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13329 elif test $pkg_failed = untried; then
13332 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13333 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13338 if test "z$GNUTLS_FOUND" = "zno" ; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13342 $as_echo_n "checking for GNUTLS... " >&6; }
13344 if test -n "$PKG_CONFIG"; then
13345 if test -n "$GNUTLS_CFLAGS"; then
13346 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13348 if test -n "$PKG_CONFIG" && \
13349 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13350 ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353 test $ac_status = 0; }; then
13354 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "libgnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13362 if test -n "$PKG_CONFIG"; then
13363 if test -n "$GNUTLS_LIBS"; then
13364 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13366 if test -n "$PKG_CONFIG" && \
13367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_NEW_MIN_VERSION\""; } >&5
13368 ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION") 2>&5
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; }; then
13372 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "libgnutls >= $GNUTLS_NEW_MIN_VERSION" 2>/dev/null`
13383 if test $pkg_failed = yes; then
13385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13386 _pkg_short_errors_supported=yes
13388 _pkg_short_errors_supported=no
13390 if test $_pkg_short_errors_supported = yes; then
13391 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION"`
13393 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_NEW_MIN_VERSION"`
13395 # Put the nasty error message in config.log where it belongs
13396 echo "$GNUTLS_PKG_ERRORS" >&5
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13401 elif test $pkg_failed = untried; then
13404 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13405 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13412 if test "z$GNUTLS_FOUND" = "zno" ; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13416 $as_echo_n "checking for GNUTLS... " >&6; }
13418 if test -n "$PKG_CONFIG"; then
13419 if test -n "$GNUTLS_CFLAGS"; then
13420 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13422 if test -n "$PKG_CONFIG" && \
13423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
13424 ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
13426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427 test $ac_status = 0; }; then
13428 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
13436 if test -n "$PKG_CONFIG"; then
13437 if test -n "$GNUTLS_LIBS"; then
13438 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13440 if test -n "$PKG_CONFIG" && \
13441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
13442 ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
13444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13445 test $ac_status = 0; }; then
13446 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
13457 if test $pkg_failed = yes; then
13459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13460 _pkg_short_errors_supported=yes
13462 _pkg_short_errors_supported=no
13464 if test $_pkg_short_errors_supported = yes; then
13465 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_MIN_VERSION"`
13467 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnutls >= $GNUTLS_MIN_VERSION"`
13469 # Put the nasty error message in config.log where it belongs
13470 echo "$GNUTLS_PKG_ERRORS" >&5
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13475 elif test $pkg_failed = untried; then
13478 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13479 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13484 if test "z$GNUTLS_FOUND" = "zyes" ; then
13485 GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_GNUTLS_OLD=1"
13490 if test "z$GNUTLS_FOUND" = "zno" ; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
13492 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
13493 if test "z$with_gnutls" != "z" ; then
13494 GNUTLS_CONFIG=$with_gnutls/bin/$GNUTLS_CONFIG
13496 if ! $GNUTLS_CONFIG --version > /dev/null 2>&1 ; then
13497 if test "z$with_gnutls" != "z" ; then
13498 as_fn_error "Unable to find gnutls at '$with_gnutls'" "$LINENO" 5
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13504 vers=`$GNUTLS_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13505 minvers=`echo $GNUTLS_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13506 if test "$vers" -ge "$minvers" ; then
13507 GNUTLS_CFLAGS="$GNUTLS_CFLAGS `$GNUTLS_CONFIG --cflags`"
13508 GNUTLS_LIBS="$GNUTLS_LIBS `$GNUTLS_CONFIG --libs`"
13511 new_minvers=`echo $GNUTLS_NEW_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13512 if test "$vers" -lt "$new_minvers" ; then
13513 GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_GNUTLS_OLD=1"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13516 $as_echo "yes" >&6; }
13518 as_fn_error "You need at least gnutls $GNUTLS_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
13523 if test "z$GNUTLS_FOUND" = "zyes" ; then
13524 XMLSEC_NO_GNUTLS="0"
13525 GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_CRYPTO_GNUTLS=1"
13527 if test "z$XMLSEC_CRYPTO" = "z" ; then
13528 XMLSEC_CRYPTO="gnutls"
13529 XMLSEC_CRYPTO_LIB="$GNUTLS_CRYPTO_LIB"
13530 XMLSEC_CRYPTO_CFLAGS="$GNUTLS_CFLAGS"
13531 XMLSEC_CRYPTO_LIBS="$GNUTLS_LIBS"
13533 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST gnutls"
13535 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST gnutls"
13538 if test "z$XMLSEC_NO_GNUTLS" = "z1"; then
13539 XMLSEC_NO_GNUTLS_TRUE=
13540 XMLSEC_NO_GNUTLS_FALSE='#'
13542 XMLSEC_NO_GNUTLS_TRUE='#'
13543 XMLSEC_NO_GNUTLS_FALSE=
13552 XMLSEC_NO_MSCRYPTO="1"
13555 MSCRYPTO_CRYPTO_LIB="$XMLSEC_PACKAGE-mscrypto"
13556 MSCRYPTO_ENABLE='none'
13557 # Check whether --enable-mscrypto was given.
13558 if test "${enable_mscrypto+set}" = set; then :
13559 enableval=$enable_mscrypto; MSCRYPTO_ENABLE=$enableval
13562 if test "z$MSCRYPTO_ENABLE" != "zyes" ; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
13564 $as_echo_n "checking for mscrypto libraries... " >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
13566 $as_echo "$MSCRYPTO_ENABLE" >&6; }
13569 LIBS="$LIBS -lcrypt32"
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
13571 $as_echo_n "checking for mscrypto libraries... " >&6; }
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13575 #include <windows.h>
13576 #include <wincrypt.h>
13577 int main () { CertOpenStore(0,0,0,0,0);; return(0); }
13580 if ac_fn_c_try_link "$LINENO"; then :
13583 MSCRYPTO_ENABLE="no"
13585 rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
13588 $as_echo "$MSCRYPTO_ENABLE" >&6; }
13592 if test "z$MSCRYPTO_ENABLE" = "zyes" ; then
13593 XMLSEC_NO_MSCRYPTO="0"
13595 MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1"
13598 MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';;
13600 MSCRYPTO_LIBS="-lcrypt32";;
13603 if test "z$XMLSEC_CRYPTO" = "z" ; then
13604 XMLSEC_CRYPTO="mscrypto"
13605 XMLSEC_CRYPTO_LIB="$MSCRYPTO_CRYPTO_LIB"
13606 XMLSEC_CRYPTO_CFLAGS="$MSCRYPTO_CFLAGS"
13607 XMLSEC_CRYPTO_LIBS="$MSCRYPTO_LIBS"
13609 XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST mscrypto"
13611 XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST mscrypto"
13614 if test "z$XMLSEC_NO_MSCRYPTO" = "z1"; then
13615 XMLSEC_NO_MSCRYPTO_TRUE=
13616 XMLSEC_NO_MSCRYPTO_FALSE='#'
13618 XMLSEC_NO_MSCRYPTO_TRUE='#'
13619 XMLSEC_NO_MSCRYPTO_FALSE=
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library" >&5
13628 $as_echo_n "checking for crypto library... " >&6; }
13629 if test "z$XMLSEC_CRYPTO" = "z" ; then
13630 as_fn_error "At least one crypto library should exist for $XMLSEC_PACKAGE" "$LINENO" 5
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$XMLSEC_CRYPTO')" >&5
13633 $as_echo "yes ('$XMLSEC_CRYPTO')" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 support" >&5
13637 $as_echo_n "checking for MD5 support... " >&6; }
13638 # Check whether --enable-md5 was given.
13639 if test "${enable_md5+set}" = set; then :
13640 enableval=$enable_md5;
13643 if test "z$enable_md5" = "zno" ; then
13644 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_MD5=1"
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13651 $as_echo "yes" >&6; }
13653 if test "z$XMLSEC_NO_MD5" = "z1"; then
13654 XMLSEC_NO_MD5_TRUE=
13655 XMLSEC_NO_MD5_FALSE='#'
13657 XMLSEC_NO_MD5_TRUE='#'
13658 XMLSEC_NO_MD5_FALSE=
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RIPEMD-160 support" >&5
13664 $as_echo_n "checking for RIPEMD-160 support... " >&6; }
13665 # Check whether --enable-ripemd160 was given.
13666 if test "${enable_ripemd160+set}" = set; then :
13667 enableval=$enable_ripemd160;
13670 if test "z$enable_ripemd160" = "zno" ; then
13671 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RIPEMD160=1"
13672 XMLSEC_NO_RIPEMD160="1"
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13676 XMLSEC_NO_RIPEMD160="0"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13678 $as_echo "yes" >&6; }
13680 if test "z$XMLSEC_NO_RIPEMD160" = "z1"; then
13681 XMLSEC_NO_RIPEMD160_TRUE=
13682 XMLSEC_NO_RIPEMD160_FALSE='#'
13684 XMLSEC_NO_RIPEMD160_TRUE='#'
13685 XMLSEC_NO_RIPEMD160_FALSE=
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 support" >&5
13691 $as_echo_n "checking for SHA1 support... " >&6; }
13692 # Check whether --enable-sha1 was given.
13693 if test "${enable_sha1+set}" = set; then :
13694 enableval=$enable_sha1;
13697 if test "z$enable_sha1" = "zno" ; then
13698 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA1=1"
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13707 if test "z$XMLSEC_NO_SHA1" = "z1"; then
13708 XMLSEC_NO_SHA1_TRUE=
13709 XMLSEC_NO_SHA1_FALSE='#'
13711 XMLSEC_NO_SHA1_TRUE='#'
13712 XMLSEC_NO_SHA1_FALSE=
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224 support" >&5
13718 $as_echo_n "checking for SHA224 support... " >&6; }
13719 # Check whether --enable-sha224 was given.
13720 if test "${enable_sha224+set}" = set; then :
13721 enableval=$enable_sha224;
13724 if test "z$enable_sha224" = "zno" ; then
13725 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA224=1"
13726 XMLSEC_NO_SHA224="1"
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13730 XMLSEC_NO_SHA224="0"
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732 $as_echo "yes" >&6; }
13734 if test "z$XMLSEC_NO_SHA224" = "z1"; then
13735 XMLSEC_NO_SHA224_TRUE=
13736 XMLSEC_NO_SHA224_FALSE='#'
13738 XMLSEC_NO_SHA224_TRUE='#'
13739 XMLSEC_NO_SHA224_FALSE=
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 support" >&5
13745 $as_echo_n "checking for SHA256 support... " >&6; }
13746 # Check whether --enable-sha256 was given.
13747 if test "${enable_sha256+set}" = set; then :
13748 enableval=$enable_sha256;
13751 if test "z$enable_sha256" = "zno" ; then
13752 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA256=1"
13753 XMLSEC_NO_SHA256="1"
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13757 XMLSEC_NO_SHA256="0"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13759 $as_echo "yes" >&6; }
13761 if test "z$XMLSEC_NO_SHA256" = "z1"; then
13762 XMLSEC_NO_SHA256_TRUE=
13763 XMLSEC_NO_SHA256_FALSE='#'
13765 XMLSEC_NO_SHA256_TRUE='#'
13766 XMLSEC_NO_SHA256_FALSE=
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA384 support" >&5
13772 $as_echo_n "checking for SHA384 support... " >&6; }
13773 # Check whether --enable-sha384 was given.
13774 if test "${enable_sha384+set}" = set; then :
13775 enableval=$enable_sha384;
13778 if test "z$enable_sha384" = "zno" ; then
13779 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA384=1"
13780 XMLSEC_NO_SHA384="1"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13784 XMLSEC_NO_SHA384="0"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13786 $as_echo "yes" >&6; }
13788 if test "z$XMLSEC_NO_SHA384" = "z1"; then
13789 XMLSEC_NO_SHA384_TRUE=
13790 XMLSEC_NO_SHA384_FALSE='#'
13792 XMLSEC_NO_SHA384_TRUE='#'
13793 XMLSEC_NO_SHA384_FALSE=
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 support" >&5
13799 $as_echo_n "checking for SHA512 support... " >&6; }
13800 # Check whether --enable-sha512 was given.
13801 if test "${enable_sha512+set}" = set; then :
13802 enableval=$enable_sha512;
13805 if test "z$enable_sha512" = "zno" ; then
13806 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA512=1"
13807 XMLSEC_NO_SHA512="1"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13811 XMLSEC_NO_SHA512="0"
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13813 $as_echo "yes" >&6; }
13815 if test "z$XMLSEC_NO_SHA512" = "z1"; then
13816 XMLSEC_NO_SHA512_TRUE=
13817 XMLSEC_NO_SHA512_FALSE='#'
13819 XMLSEC_NO_SHA512_TRUE='#'
13820 XMLSEC_NO_SHA512_FALSE=
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC support" >&5
13827 $as_echo_n "checking for HMAC support... " >&6; }
13828 # Check whether --enable-hmac was given.
13829 if test "${enable_hmac+set}" = set; then :
13830 enableval=$enable_hmac;
13833 if test "z$enable_hmac" = "zno" ; then
13834 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_HMAC=1"
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13841 $as_echo "yes" >&6; }
13843 if test "z$XMLSEC_NO_HMAC" = "z1"; then
13844 XMLSEC_NO_HMAC_TRUE=
13845 XMLSEC_NO_HMAC_FALSE='#'
13847 XMLSEC_NO_HMAC_TRUE='#'
13848 XMLSEC_NO_HMAC_FALSE=
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA support" >&5
13854 $as_echo_n "checking for DSA support... " >&6; }
13855 # Check whether --enable-dsa was given.
13856 if test "${enable_dsa+set}" = set; then :
13857 enableval=$enable_dsa;
13860 if test "z$enable_dsa" = "zno" ; then
13861 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DSA=1"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13868 $as_echo "yes" >&6; }
13870 if test "z$XMLSEC_NO_DSA" = "z1"; then
13871 XMLSEC_NO_DSA_TRUE=
13872 XMLSEC_NO_DSA_FALSE='#'
13874 XMLSEC_NO_DSA_TRUE='#'
13875 XMLSEC_NO_DSA_FALSE=
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA support" >&5
13881 $as_echo_n "checking for RSA support... " >&6; }
13882 # Check whether --enable-rsa was given.
13883 if test "${enable_rsa+set}" = set; then :
13884 enableval=$enable_rsa;
13887 if test "z$enable_rsa" = "zno" ; then
13888 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RSA=1"
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13895 $as_echo "yes" >&6; }
13897 if test "z$XMLSEC_NO_RSA" = "z1"; then
13898 XMLSEC_NO_RSA_TRUE=
13899 XMLSEC_NO_RSA_FALSE='#'
13901 XMLSEC_NO_RSA_TRUE='#'
13902 XMLSEC_NO_RSA_FALSE=
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x509 support" >&5
13908 $as_echo_n "checking for x509 support... " >&6; }
13909 # Check whether --enable-x509 was given.
13910 if test "${enable_x509+set}" = set; then :
13911 enableval=$enable_x509;
13914 if test "z$enable_x509" = "zno" ; then
13915 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_X509=1"
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13922 $as_echo "yes" >&6; }
13924 if test "z$XMLSEC_NO_X509" = "z1"; then
13925 XMLSEC_NO_X509_TRUE=
13926 XMLSEC_NO_X509_FALSE='#'
13928 XMLSEC_NO_X509_TRUE='#'
13929 XMLSEC_NO_X509_FALSE=
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES support" >&5
13935 $as_echo_n "checking for DES support... " >&6; }
13936 # Check whether --enable-des was given.
13937 if test "${enable_des+set}" = set; then :
13938 enableval=$enable_des;
13941 if test "z$enable_des" = "zno" ; then
13942 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DES=1"
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13949 $as_echo "yes" >&6; }
13951 if test "z$XMLSEC_NO_DES" = "z1"; then
13952 XMLSEC_NO_DES_TRUE=
13953 XMLSEC_NO_DES_FALSE='#'
13955 XMLSEC_NO_DES_TRUE='#'
13956 XMLSEC_NO_DES_FALSE=
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES support" >&5
13962 $as_echo_n "checking for AES support... " >&6; }
13963 # Check whether --enable-aes was given.
13964 if test "${enable_aes+set}" = set; then :
13965 enableval=$enable_aes;
13968 if test "z$enable_aes" = "zno" ; then
13969 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_AES=1"
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13976 $as_echo "yes" >&6; }
13978 if test "z$XMLSEC_NO_AES" = "z1"; then
13979 XMLSEC_NO_AES_TRUE=
13980 XMLSEC_NO_AES_FALSE='#'
13982 XMLSEC_NO_AES_TRUE='#'
13983 XMLSEC_NO_AES_FALSE=
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST support" >&5
13989 $as_echo_n "checking for GOST support... " >&6; }
13990 # Check whether --enable-gost was given.
13991 if test "${enable_gost+set}" = set; then :
13992 enableval=$enable_gost;
13995 if test "z$enable_gost" != "zyes" ; then
13996 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_GOST=1"
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14003 $as_echo "yes" >&6; }
14005 if test "z$XMLSEC_NO_GOST" = "z1"; then
14006 XMLSEC_NO_GOST_TRUE=
14007 XMLSEC_NO_GOST_FALSE='#'
14009 XMLSEC_NO_GOST_TRUE='#'
14010 XMLSEC_NO_GOST_FALSE=
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLDSig support" >&5
14016 $as_echo_n "checking for XMLDSig support... " >&6; }
14017 # Check whether --enable-xmldsig was given.
14018 if test "${enable_xmldsig+set}" = set; then :
14019 enableval=$enable_xmldsig;
14022 if test "z$enable_xmldsig" = "zno" ; then
14023 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLDSIG=1"
14024 XMLSEC_NO_XMLDSIG="1"
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14028 XMLSEC_NO_XMLDSIG="0"
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030 $as_echo "yes" >&6; }
14032 if test "z$XMLSEC_NO_XMLDSIG" = "z1"; then
14033 XMLSEC_NO_XMLDSIG_TRUE=
14034 XMLSEC_NO_XMLDSIG_FALSE='#'
14036 XMLSEC_NO_XMLDSIG_TRUE='#'
14037 XMLSEC_NO_XMLDSIG_FALSE=
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLEnc support" >&5
14043 $as_echo_n "checking for XMLEnc support... " >&6; }
14044 # Check whether --enable-xmlenc was given.
14045 if test "${enable_xmlenc+set}" = set; then :
14046 enableval=$enable_xmlenc;
14049 if test "z$enable_xmlenc" = "zno" ; then
14050 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLENC=1"
14051 XMLSEC_NO_XMLENC="1"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14055 XMLSEC_NO_XMLENC="0"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14057 $as_echo "yes" >&6; }
14059 if test "z$XMLSEC_NO_XMLENC" = "z1"; then
14060 XMLSEC_NO_XMLENC_TRUE=
14061 XMLSEC_NO_XMLENC_FALSE='#'
14063 XMLSEC_NO_XMLENC_TRUE='#'
14064 XMLSEC_NO_XMLENC_FALSE=
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMKMS support - under development" >&5
14070 $as_echo_n "checking for XMKMS support - under development... " >&6; }
14071 # Check whether --enable-xkms was given.
14072 if test "${enable_xkms+set}" = set; then :
14073 enableval=$enable_xkms;
14076 if test "z$enable_xkms" = "zyes" ; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14079 $as_echo "yes" >&6; }
14081 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XKMS=1"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14086 if test "z$XMLSEC_NO_XKMS" = "z1"; then
14087 XMLSEC_NO_XKMS_TRUE=
14088 XMLSEC_NO_XKMS_FALSE='#'
14090 XMLSEC_NO_XKMS_TRUE='#'
14091 XMLSEC_NO_XKMS_FALSE=
14096 XMLSEC_DL_INCLUDES=""
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support" >&5
14099 $as_echo_n "checking for xmlsec-crypto dynamic loading support... " >&6; }
14100 # Check whether --enable-crypto_dl was given.
14101 if test "${enable_crypto_dl+set}" = set; then :
14102 enableval=$enable_crypto_dl;
14105 if test "z$enable_crypto_dl" = "zno" ; then
14106 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1"
14107 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="1"
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14111 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
14112 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
14114 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_DL_LIBLTDL=1",
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
14116 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; }
14117 if test "${ac_cv_lib_ltdl_lt_dlopenext+set}" = set; then :
14118 $as_echo_n "(cached) " >&6
14120 ac_check_lib_save_LIBS=$LIBS
14121 LIBS="-lltdl $LIBS"
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14131 char lt_dlopenext ();
14135 return lt_dlopenext ();
14140 if ac_fn_c_try_link "$LINENO"; then :
14141 ac_cv_lib_ltdl_lt_dlopenext=yes
14143 ac_cv_lib_ltdl_lt_dlopenext=no
14145 rm -f core conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14147 LIBS=$ac_check_lib_save_LIBS
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
14150 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
14151 if test "x$ac_cv_lib_ltdl_lt_dlopenext" = x""yes; then :
14165 if test "z$LIBLTDL" != "z" ; then
14166 XMLSEC_DL_INCLUDES="$INCLTDL"
14167 XMLSEC_DL_LIBS="$LIBLTDL"
14168 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="0"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170 $as_echo "yes" >&6; }
14172 as_fn_error "libltdl is required for xmlsec-crypto dynamic loading" "$LINENO" 5
14175 if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1"; then
14176 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE=
14177 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE='#'
14179 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE='#'
14180 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE=
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support in command line tool" >&5
14188 $as_echo_n "checking for xmlsec-crypto dynamic loading support in command line tool... " >&6; }
14189 # Check whether --enable-apps_crypto_dl was given.
14190 if test "${enable_apps_crypto_dl+set}" = set; then :
14191 enableval=$enable_apps_crypto_dl;
14194 if test "z$enable_apps_crypto_dl" = "z" ; then
14195 enable_apps_crypto_dl="$enable_crypto_dl"
14197 if test "z$enable_apps_crypto_dl" = "zno" ; then
14198 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="1"
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14201 elif test "z$enable_crypto_dl" = "zno" ; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14204 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
14206 XMLSEC_APP_DEFINES="$XMLSEC_APP_DEFINES -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1"
14207 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="0"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14209 $as_echo "yes" >&6; }
14211 if test "z$XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING" = "z1"; then
14212 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE=
14213 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE='#'
14215 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE='#'
14216 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE=
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docs folder" >&5
14222 $as_echo_n "checking for docs folder... " >&6; }
14224 # Check whether --with-html-dir was given.
14225 if test "${with_html_dir+set}" = set; then :
14226 withval=$with_html_dir;
14229 if test "z$with_html_dir" != "z" ; then
14230 XMLSEC_DOCDIR=$with_html_dir
14232 XMLSEC_DOCDIR='$(datadir)/doc/xmlsec1'
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSEC_DOCDIR" >&5
14236 $as_echo "$XMLSEC_DOCDIR" >&6; }
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Simple Keys Manager testing" >&5
14240 $as_echo_n "checking for Simple Keys Manager testing... " >&6; }
14241 # Check whether --enable-skm was given.
14242 if test "${enable_skm+set}" = set; then :
14243 enableval=$enable_skm;
14246 if test "z$enable_skm" = "zno" ; then
14247 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SKM_TEST=1"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14252 $as_echo "yes" >&6; }
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for templates testing" >&5
14256 $as_echo_n "checking for templates testing... " >&6; }
14257 # Check whether --enable-tmpl_tests was given.
14258 if test "${enable_tmpl_tests+set}" = set; then :
14259 enableval=$enable_tmpl_tests;
14262 if test "z$enable_tmpl_tests" = "zyes" ; then
14263 XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_TMPL_TEST=1"
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14268 $as_echo "yes" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuging" >&5
14272 $as_echo_n "checking for debuging... " >&6; }
14273 # Check whether --enable-debuging was given.
14274 if test "${enable_debuging+set}" = set; then :
14275 enableval=$enable_debuging;
14278 if test "z$enable_debuging" = "zyes" ; then
14279 CFLAGS="$CFLAGS -g"
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14281 $as_echo "yes" >&6; }
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14284 $as_echo "no" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
14288 $as_echo_n "checking for profiling... " >&6; }
14289 # Check whether --enable-profiling was given.
14290 if test "${enable_profiling+set}" = set; then :
14291 enableval=$enable_profiling;
14294 if test "z$enable_profiling" = "zyes" ; then
14295 CFLAGS="$CFLAGS -pg"
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14297 $as_echo "yes" >&6; }
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pedantic" >&5
14304 $as_echo_n "checking for pedantic... " >&6; }
14305 # Check whether --enable-pedantic was given.
14306 if test "${enable_pedantic+set}" = set; then :
14307 enableval=$enable_pedantic;
14310 if test "z$enable_pedantic" = "zyes" ; then
14311 CFLAGS="$CFLAGS -O -pedantic -Wall -ansi -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 -Winline -Wredundant-decls"
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14313 $as_echo "yes" >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14319 XMLSEC_STATIC_BINARIES=""
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static linking" >&5
14321 $as_echo_n "checking for static linking... " >&6; }
14322 # Check whether --enable-static_linking was given.
14323 if test "${enable_static_linking+set}" = set; then :
14324 enableval=$enable_static_linking;
14327 if test "z$enable_static_linking" = "zyes" ; then
14328 XMLSEC_STATIC_BINARIES="-static"
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14330 $as_echo "yes" >&6; }
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; }
14337 XMLSEC_CORE_CFLAGS="$XMLSEC_DEFINES -I${includedir}/xmlsec1 $XMLSEC_DL_INCLUDES"
14338 XMLSEC_CORE_LIBS="-lxmlsec1 $XMLSEC_DL_LIBS "
14342 XMLSEC_LIBDIR="${libdir}"
14345 XMLSEC_OPENSSL_CFLAGS="$XMLSEC_CORE_CFLAGS $OPENSSL_CFLAGS"
14346 XMLSEC_OPENSSL_LIBS="-L${libdir} -l$OPENSSL_CRYPTO_LIB $XMLSEC_CORE_LIBS $OPENSSL_LIBS"
14350 XMLSEC_GNUTLS_CFLAGS="$XMLSEC_CORE_CFLAGS $GNUTLS_CFLAGS"
14351 XMLSEC_GNUTLS_LIBS="-L${libdir} -l$GNUTLS_CRYPTO_LIB $XMLSEC_CORE_LIBS $GNUTLS_LIBS"
14355 XMLSEC_NSS_CFLAGS="$XMLSEC_CORE_CFLAGS $NSS_CFLAGS"
14356 XMLSEC_NSS_LIBS="-L${libdir} -l$NSS_CRYPTO_LIB $XMLSEC_CORE_LIBS $NSS_LIBS"
14361 XMLSEC_CFLAGS="$XMLSEC_CORE_CFLAGS $LIBXML_CFLAGS $LIBXSLT_CFLAGS $XMLSEC_CRYPTO_CFLAGS"
14362 XMLSEC_LIBS="-L${libdir} -l$XMLSEC_CRYPTO_LIB $XMLSEC_CORE_LIBS $LIBXML_LIBS $LIBXSLT_LIBS $XMLSEC_CRYPTO_LIBS"
14381 XMLSEC_CRYPTO_PC_FILES_LIST=""
14382 for i in $XMLSEC_CRYPTO_LIST ; do
14383 test x$i = xmscrypto && continue
14384 XMLSEC_CRYPTO_PC_FILES_LIST="$XMLSEC_CRYPTO_PC_FILES_LIST $XMLSEC_PACKAGE-$i.pc"
14388 if test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
14389 ac_config_files="$ac_config_files include/xmlsec/openssl/Makefile src/openssl/Makefile"
14393 if test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
14394 ac_config_files="$ac_config_files include/xmlsec/gnutls/Makefile src/gnutls/Makefile"
14398 if test "z$XMLSEC_NO_NSS" != "z1" ; then
14399 ac_config_files="$ac_config_files include/xmlsec/nss/Makefile src/nss/Makefile"
14403 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
14404 ac_config_files="$ac_config_files include/xmlsec/mscrypto/Makefile src/mscrypto/Makefile"
14408 if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1" ; then
14409 (rm -f xmlsec1.pc && $LN_S xmlsec1-$XMLSEC_CRYPTO.pc xmlsec1.pc)
14411 ac_config_files="$ac_config_files xmlsec1.pc:xmlsec.pc.in"
14415 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 xmlsec1Conf.sh:xmlsecConf.sh.in xmlsec1-config:xmlsec-config.in xmlsec1-openssl.pc:xmlsec-openssl.pc.in xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in xmlsec1-nss.pc:xmlsec-nss.pc.in xmlsec1.spec:xmlsec.spec.in"
14417 cat >confcache <<\_ACEOF
14418 # This file is a shell script that caches the results of configure
14419 # tests run on this system so they can be shared between configure
14420 # scripts and configure runs, see configure's option --config-cache.
14421 # It is not useful on other systems. If it contains results you don't
14422 # want to keep, you may remove or edit it.
14424 # config.status only pays attention to the cache file if you give it
14425 # the --recheck option to rerun configure.
14427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14429 # following values.
14433 # The following way of writing the cache mishandles newlines in values,
14434 # but we know of no workaround that is simple, portable, and efficient.
14435 # So, we kill variables containing newlines.
14436 # Ultrix sh set writes to stderr and can't be redirected directly,
14437 # and sets the high bit in the cache file unless we assign to the vars.
14439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14440 eval ac_val=\$$ac_var
14444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14448 _ | IFS | as_nl) ;; #(
14449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14450 *) { eval $ac_var=; unset $ac_var;} ;;
14456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14457 *${as_nl}ac_space=\ *)
14458 # `set' does not quote correctly, so add quotes: double-quote
14459 # substitution turns \\\\ into \\, and sed turns \\ into \.
14462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14465 # `set' quotes correctly as required by POSIX, so do not add quotes.
14466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14480 if test -w "$cache_file"; then
14481 test "x$cache_file" != "x/dev/null" &&
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14483 $as_echo "$as_me: updating cache $cache_file" >&6;}
14484 cat confcache >$cache_file
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14487 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14493 # Let make expand exec_prefix.
14494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14496 DEFS=-DHAVE_CONFIG_H
14500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14501 # 1. Remove the extension, and $U if already installed.
14502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14505 # will be set to the directory where LIBOBJS objects are built.
14506 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14507 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14509 LIBOBJS=$ac_libobjs
14511 LTLIBOBJS=$ac_ltlibobjs
14514 if test -n "$EXEEXT"; then
14516 am__EXEEXT_FALSE='#'
14518 am__EXEEXT_TRUE='#'
14522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14523 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14527 as_fn_error "conditional \"AMDEP\" was never defined.
14528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14531 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14534 if test -z "${SHAREDLIB_HACK_TRUE}" && test -z "${SHAREDLIB_HACK_FALSE}"; then
14535 as_fn_error "conditional \"SHAREDLIB_HACK\" was never defined.
14536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14538 if test -z "${XMLSEC_NO_OPENSSL_TRUE}" && test -z "${XMLSEC_NO_OPENSSL_FALSE}"; then
14539 as_fn_error "conditional \"XMLSEC_NO_OPENSSL\" was never defined.
14540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14542 if test -z "${XMLSEC_NO_NSS_TRUE}" && test -z "${XMLSEC_NO_NSS_FALSE}"; then
14543 as_fn_error "conditional \"XMLSEC_NO_NSS\" was never defined.
14544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14546 if test -z "${XMLSEC_NO_GNUTLS_TRUE}" && test -z "${XMLSEC_NO_GNUTLS_FALSE}"; then
14547 as_fn_error "conditional \"XMLSEC_NO_GNUTLS\" was never defined.
14548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14550 if test -z "${XMLSEC_NO_MSCRYPTO_TRUE}" && test -z "${XMLSEC_NO_MSCRYPTO_FALSE}"; then
14551 as_fn_error "conditional \"XMLSEC_NO_MSCRYPTO\" was never defined.
14552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14554 if test -z "${XMLSEC_NO_MD5_TRUE}" && test -z "${XMLSEC_NO_MD5_FALSE}"; then
14555 as_fn_error "conditional \"XMLSEC_NO_MD5\" was never defined.
14556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14558 if test -z "${XMLSEC_NO_RIPEMD160_TRUE}" && test -z "${XMLSEC_NO_RIPEMD160_FALSE}"; then
14559 as_fn_error "conditional \"XMLSEC_NO_RIPEMD160\" was never defined.
14560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14562 if test -z "${XMLSEC_NO_SHA1_TRUE}" && test -z "${XMLSEC_NO_SHA1_FALSE}"; then
14563 as_fn_error "conditional \"XMLSEC_NO_SHA1\" was never defined.
14564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14566 if test -z "${XMLSEC_NO_SHA224_TRUE}" && test -z "${XMLSEC_NO_SHA224_FALSE}"; then
14567 as_fn_error "conditional \"XMLSEC_NO_SHA224\" was never defined.
14568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14570 if test -z "${XMLSEC_NO_SHA256_TRUE}" && test -z "${XMLSEC_NO_SHA256_FALSE}"; then
14571 as_fn_error "conditional \"XMLSEC_NO_SHA256\" was never defined.
14572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14574 if test -z "${XMLSEC_NO_SHA384_TRUE}" && test -z "${XMLSEC_NO_SHA384_FALSE}"; then
14575 as_fn_error "conditional \"XMLSEC_NO_SHA384\" was never defined.
14576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14578 if test -z "${XMLSEC_NO_SHA512_TRUE}" && test -z "${XMLSEC_NO_SHA512_FALSE}"; then
14579 as_fn_error "conditional \"XMLSEC_NO_SHA512\" was never defined.
14580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14582 if test -z "${XMLSEC_NO_HMAC_TRUE}" && test -z "${XMLSEC_NO_HMAC_FALSE}"; then
14583 as_fn_error "conditional \"XMLSEC_NO_HMAC\" was never defined.
14584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14586 if test -z "${XMLSEC_NO_DSA_TRUE}" && test -z "${XMLSEC_NO_DSA_FALSE}"; then
14587 as_fn_error "conditional \"XMLSEC_NO_DSA\" was never defined.
14588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14590 if test -z "${XMLSEC_NO_RSA_TRUE}" && test -z "${XMLSEC_NO_RSA_FALSE}"; then
14591 as_fn_error "conditional \"XMLSEC_NO_RSA\" was never defined.
14592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14594 if test -z "${XMLSEC_NO_X509_TRUE}" && test -z "${XMLSEC_NO_X509_FALSE}"; then
14595 as_fn_error "conditional \"XMLSEC_NO_X509\" was never defined.
14596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14598 if test -z "${XMLSEC_NO_DES_TRUE}" && test -z "${XMLSEC_NO_DES_FALSE}"; then
14599 as_fn_error "conditional \"XMLSEC_NO_DES\" was never defined.
14600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14602 if test -z "${XMLSEC_NO_AES_TRUE}" && test -z "${XMLSEC_NO_AES_FALSE}"; then
14603 as_fn_error "conditional \"XMLSEC_NO_AES\" was never defined.
14604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606 if test -z "${XMLSEC_NO_GOST_TRUE}" && test -z "${XMLSEC_NO_GOST_FALSE}"; then
14607 as_fn_error "conditional \"XMLSEC_NO_GOST\" was never defined.
14608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14610 if test -z "${XMLSEC_NO_XMLDSIG_TRUE}" && test -z "${XMLSEC_NO_XMLDSIG_FALSE}"; then
14611 as_fn_error "conditional \"XMLSEC_NO_XMLDSIG\" was never defined.
14612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14614 if test -z "${XMLSEC_NO_XMLENC_TRUE}" && test -z "${XMLSEC_NO_XMLENC_FALSE}"; then
14615 as_fn_error "conditional \"XMLSEC_NO_XMLENC\" was never defined.
14616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14618 if test -z "${XMLSEC_NO_XKMS_TRUE}" && test -z "${XMLSEC_NO_XKMS_FALSE}"; then
14619 as_fn_error "conditional \"XMLSEC_NO_XKMS\" was never defined.
14620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14622 if test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
14623 as_fn_error "conditional \"XMLSEC_NO_CRYPTO_DYNAMIC_LOADING\" was never defined.
14624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14626 if test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
14627 as_fn_error "conditional \"XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING\" was never defined.
14628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14631 : ${CONFIG_STATUS=./config.status}
14633 ac_clean_files_save=$ac_clean_files
14634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14640 # Generated by $as_me.
14641 # Run this file to recreate the current configuration.
14642 # Compiler output produced by configure, useful for debugging
14643 # configure, is in config.log if it exists.
14646 ac_cs_recheck=false
14649 SHELL=\${CONFIG_SHELL-$SHELL}
14652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14653 ## -------------------- ##
14654 ## M4sh Initialization. ##
14655 ## -------------------- ##
14657 # Be more Bourne compatible
14658 DUALCASE=1; export DUALCASE # for MKS sh
14659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14663 # is contrary to our usage. Disable this feature.
14664 alias -g '${1+"$@"}'='"$@"'
14665 setopt NO_GLOB_SUBST
14667 case `(set -o) 2>/dev/null` in #(
14679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14683 # Prefer a ksh shell builtin over an external printf program on Solaris,
14684 # but without wasting forks for bash or zsh.
14685 if test -z "$BASH_VERSION$ZSH_VERSION" \
14686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14687 as_echo='print -r --'
14688 as_echo_n='print -rn --'
14689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14690 as_echo='printf %s\n'
14691 as_echo_n='printf %s'
14693 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14694 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14695 as_echo_n='/usr/ucb/echo -n'
14697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14698 as_echo_n_body='eval
14702 expr "X$arg" : "X\\(.*\\)$as_nl";
14703 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14705 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14707 export as_echo_n_body
14708 as_echo_n='sh -c $as_echo_n_body as_echo'
14710 export as_echo_body
14711 as_echo='sh -c $as_echo_body as_echo'
14714 # The user is always right.
14715 if test "${PATH_SEPARATOR+set}" != set; then
14717 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14718 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14725 # We need space, tab and new line, in precisely that order. Quoting is
14726 # there to prevent editors from complaining about space-tab.
14727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14728 # splitting by setting IFS to empty value.)
14731 # Find who we are. Look in the path if we contain no directory separator.
14733 *[\\/]* ) as_myself=$0 ;;
14734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14738 test -z "$as_dir" && as_dir=.
14739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14745 # We did not find ourselves, most probably we were run as `sh COMMAND'
14746 # in which case we are not to be found in the path.
14747 if test "x$as_myself" = x; then
14750 if test ! -f "$as_myself"; then
14751 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14755 # Unset variables that we do not need and which cause bugs (e.g. in
14756 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14757 # suppresses any "Segmentation fault" message there. '((' could
14758 # trigger a bug in pdksh 5.2.14.
14759 for as_var in BASH_ENV ENV MAIL MAILPATH
14760 do eval test x\${$as_var+set} = xset \
14761 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14777 # as_fn_error ERROR [LINENO LOG_FD]
14778 # ---------------------------------
14779 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14780 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14781 # script with status $?, using 1 if that was 0.
14784 as_status=$?; test $as_status -eq 0 && as_status=1
14786 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14787 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14789 $as_echo "$as_me: error: $1" >&2
14790 as_fn_exit $as_status
14794 # as_fn_set_status STATUS
14795 # -----------------------
14796 # Set $? to STATUS, without forking.
14797 as_fn_set_status ()
14800 } # as_fn_set_status
14802 # as_fn_exit STATUS
14803 # -----------------
14804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14808 as_fn_set_status $1
14814 # Portably unset VAR.
14817 { eval $1=; unset $1;}
14819 as_unset=as_fn_unset
14820 # as_fn_append VAR VALUE
14821 # ----------------------
14822 # Append the text in VALUE to the end of the definition contained in VAR. Take
14823 # advantage of any shell optimizations that allow amortized linear growth over
14824 # repeated appends, instead of the typical quadratic growth present in naive
14826 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14827 eval 'as_fn_append ()
14838 # as_fn_arith ARG...
14839 # ------------------
14840 # Perform arithmetic evaluation on the ARGs, and store the result in the
14841 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14842 # must be portable across $(()) and expr.
14843 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14844 eval 'as_fn_arith ()
14851 as_val=`expr "$@" || test $? -eq 1`
14856 if expr a : '\(a\)' >/dev/null 2>&1 &&
14857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14864 as_basename=basename
14869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14875 as_me=`$as_basename -- "$0" ||
14876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14877 X"$0" : 'X\(//\)$' \| \
14878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14880 sed '/^.*\/\([^/][^/]*\)\/*$/{
14894 # Avoid depending upon Character Ranges.
14895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14898 as_cr_digits='0123456789'
14899 as_cr_alnum=$as_cr_Letters$as_cr_digits
14901 ECHO_C= ECHO_N= ECHO_T=
14902 case `echo -n x` in #(((((
14904 case `echo 'xy\c'` in
14905 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14907 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14914 rm -f conf$$ conf$$.exe conf$$.file
14915 if test -d conf$$.dir; then
14916 rm -f conf$$.dir/conf$$.file
14919 mkdir conf$$.dir 2>/dev/null
14921 if (echo >conf$$.file) 2>/dev/null; then
14922 if ln -s conf$$.file conf$$ 2>/dev/null; then
14924 # ... but there are two gotchas:
14925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14927 # In both cases, we have to default to `cp -p'.
14928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14930 elif ln conf$$.file conf$$ 2>/dev/null; then
14938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14939 rmdir conf$$.dir 2>/dev/null
14944 # Create "$as_dir" as a directory, including parents if necessary.
14949 -*) as_dir=./$as_dir;;
14951 test -d "$as_dir" || eval $as_mkdir_p || {
14955 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14956 *) as_qdir=$as_dir;;
14958 as_dirs="'$as_qdir' $as_dirs"
14959 as_dir=`$as_dirname -- "$as_dir" ||
14960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14961 X"$as_dir" : 'X\(//\)[^/]' \| \
14962 X"$as_dir" : 'X\(//\)$' \| \
14963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14964 $as_echo X"$as_dir" |
14965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14969 /^X\(\/\/\)[^/].*/{
14982 test -d "$as_dir" && break
14984 test -z "$as_dirs" || eval "mkdir $as_dirs"
14985 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14989 if mkdir -p . 2>/dev/null; then
14990 as_mkdir_p='mkdir -p "$as_dir"'
14992 test -d ./-p && rmdir ./-p
14996 if test -x / >/dev/null 2>&1; then
14997 as_test_x='test -x'
14999 if ls -dL / >/dev/null 2>&1; then
15006 if test -d "$1"; then
15012 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15013 ???[sx]*):;;*)false;;esac;fi
15017 as_executable_p=$as_test_x
15019 # Sed expression to map a string onto a valid CPP name.
15020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15022 # Sed expression to map a string onto a valid variable name.
15023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15027 ## ----------------------------------- ##
15028 ## Main body of $CONFIG_STATUS script. ##
15029 ## ----------------------------------- ##
15031 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034 # Save the log message, to keep $0 and so on meaningful, and to
15035 # report actual input values of CONFIG_FILES etc. instead of their
15036 # values after options handling.
15038 This file was extended by xmlsec1 $as_me 1.2.14, which was
15039 generated by GNU Autoconf 2.64. Invocation command line was
15041 CONFIG_FILES = $CONFIG_FILES
15042 CONFIG_HEADERS = $CONFIG_HEADERS
15043 CONFIG_LINKS = $CONFIG_LINKS
15044 CONFIG_COMMANDS = $CONFIG_COMMANDS
15047 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15052 case $ac_config_files in *"
15053 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15056 case $ac_config_headers in *"
15057 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15062 # Files that config.status was made for.
15063 config_files="$ac_config_files"
15064 config_headers="$ac_config_headers"
15065 config_commands="$ac_config_commands"
15069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15071 \`$as_me' instantiates files and other configuration actions
15072 from templates according to the current configuration. Unless the files
15073 and actions are specified as TAGs, all are instantiated by default.
15075 Usage: $0 [OPTION]... [TAG]...
15077 -h, --help print this help, then exit
15078 -V, --version print version number and configuration settings, then exit
15079 -q, --quiet, --silent
15080 do not print progress messages
15081 -d, --debug don't remove temporary files
15082 --recheck update $as_me by reconfiguring in the same conditions
15083 --file=FILE[:TEMPLATE]
15084 instantiate the configuration file FILE
15085 --header=FILE[:TEMPLATE]
15086 instantiate the configuration header FILE
15088 Configuration files:
15091 Configuration headers:
15094 Configuration commands:
15097 Report bugs to <http://www.aleksey.com/xmlsec>."
15100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102 xmlsec1 config.status 1.2.14
15103 configured by $0, generated by GNU Autoconf 2.64,
15104 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15106 Copyright (C) 2009 Free Software Foundation, Inc.
15107 This config.status script is free software; the Free Software Foundation
15108 gives unlimited permission to copy, distribute and modify it."
15115 test -n "\$AWK" || AWK=awk
15118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15119 # The default lists apply if the user does not specify any file.
15125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15137 # Handling of the options.
15138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15141 $as_echo "$ac_cs_version"; exit ;;
15142 --debug | --debu | --deb | --de | --d | -d )
15144 --file | --fil | --fi | --f )
15147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15149 as_fn_append CONFIG_FILES " '$ac_optarg'"
15150 ac_need_defaults=false;;
15151 --header | --heade | --head | --hea )
15154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15156 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15157 ac_need_defaults=false;;
15159 # Conflict between --help and --header
15160 as_fn_error "ambiguous option: \`$1'
15161 Try \`$0 --help' for more information.";;
15162 --help | --hel | -h )
15163 $as_echo "$ac_cs_usage"; exit ;;
15164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15168 # This is an error.
15169 -*) as_fn_error "unrecognized option: \`$1'
15170 Try \`$0 --help' for more information." ;;
15172 *) as_fn_append ac_config_targets " $1"
15173 ac_need_defaults=false ;;
15179 ac_configure_extra_args=
15181 if $ac_cs_silent; then
15183 ac_configure_extra_args="$ac_configure_extra_args --silent"
15187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15188 if \$ac_cs_recheck; then
15189 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15192 CONFIG_SHELL='$SHELL'
15193 export CONFIG_SHELL
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15203 ## Running $as_me. ##
15209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15216 # The HP-UX ksh and POSIX shell print the target directory to stdout
15217 # if CDPATH is set.
15218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15220 sed_quote_subst='$sed_quote_subst'
15221 double_quote_subst='$double_quote_subst'
15222 delay_variable_subst='$delay_variable_subst'
15223 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15224 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15225 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15226 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15227 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15228 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15229 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15230 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15231 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15232 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15233 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15234 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15235 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15236 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15237 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15238 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15239 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15240 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15241 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15242 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15243 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15244 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15245 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15246 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15247 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15248 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15249 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15250 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15251 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15252 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15253 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15254 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15255 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15256 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15257 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15258 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15259 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15260 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15261 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15262 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15263 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15264 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15265 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15267 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15269 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15270 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15271 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15272 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15273 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15274 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15275 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15276 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15277 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15278 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15279 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15280 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15281 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15282 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15283 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15284 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15285 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15286 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15287 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15288 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15289 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15290 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15291 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15292 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15293 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15294 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15295 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15296 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15297 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15298 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15299 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15300 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15301 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15302 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15303 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15304 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15305 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15306 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15307 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15308 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15309 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15310 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15311 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15312 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15313 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15314 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15315 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15316 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15318 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15319 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15320 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15321 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15322 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15323 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15324 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15325 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15326 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15327 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15328 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15329 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15330 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15331 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15332 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15333 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15334 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15335 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15336 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15337 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15338 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15339 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15340 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15343 LTCFLAGS='$LTCFLAGS'
15344 compiler='$compiler_DEFAULT'
15346 # Quote evaled strings.
15358 deplibs_check_method \
15367 lt_cv_sys_global_symbol_pipe \
15368 lt_cv_sys_global_symbol_to_cdecl \
15369 lt_cv_sys_global_symbol_to_c_name_address \
15370 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15373 lt_prog_compiler_no_builtin_flag \
15374 lt_prog_compiler_wl \
15375 lt_prog_compiler_pic \
15376 lt_prog_compiler_static \
15377 lt_cv_prog_compiler_c_o \
15385 export_dynamic_flag_spec \
15386 whole_archive_flag_spec \
15387 compiler_needs_object \
15389 allow_undefined_flag \
15390 no_undefined_flag \
15391 hardcode_libdir_flag_spec \
15392 hardcode_libdir_flag_spec_ld \
15393 hardcode_libdir_separator \
15398 variables_saved_for_relink \
15400 library_names_spec \
15405 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15406 *[\\\\\\\`\\"\\\$]*)
15407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15415 # Double-quote double-evaled strings.
15416 for var in reload_cmds \
15417 old_postinstall_cmds \
15418 old_postuninstall_cmds \
15420 extract_expsyms_cmds \
15421 old_archive_from_new_cmds \
15422 old_archive_from_expsyms_cmds \
15424 archive_expsym_cmds \
15426 module_expsym_cmds \
15427 export_symbols_cmds \
15430 postuninstall_cmds \
15432 sys_lib_search_path_spec \
15433 sys_lib_dlsearch_path_spec; do
15434 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15435 *[\\\\\\\`\\"\\\$]*)
15436 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15439 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15444 # Fix-up fallback echo if it was mangled by the above quoting rules.
15446 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15450 ac_aux_dir='$ac_aux_dir'
15451 xsi_shell='$xsi_shell'
15452 lt_shell_append='$lt_shell_append'
15454 # See if we are running on zsh, and set the options which allow our
15455 # commands through without removal of \ escapes INIT.
15456 if test -n "\${ZSH_VERSION+set}" ; then
15457 setopt NO_GLOB_SUBST
15463 TIMESTAMP='$TIMESTAMP'
15472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474 # Handling of arguments.
15475 for ac_config_target in $ac_config_targets
15477 case $ac_config_target in
15478 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15479 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15480 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15481 "include/xmlsec/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/openssl/Makefile" ;;
15482 "src/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES src/openssl/Makefile" ;;
15483 "include/xmlsec/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/gnutls/Makefile" ;;
15484 "src/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnutls/Makefile" ;;
15485 "include/xmlsec/nss/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/nss/Makefile" ;;
15486 "src/nss/Makefile") CONFIG_FILES="$CONFIG_FILES src/nss/Makefile" ;;
15487 "include/xmlsec/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/mscrypto/Makefile" ;;
15488 "src/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/mscrypto/Makefile" ;;
15489 "xmlsec1.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1.pc:xmlsec.pc.in" ;;
15490 "include/xmlsec/version.h") CONFIG_FILES="$CONFIG_FILES include/xmlsec/version.h" ;;
15491 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15492 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15493 "include/xmlsec/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/Makefile" ;;
15494 "include/xmlsec/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/private/Makefile" ;;
15495 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15496 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
15497 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15498 "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
15499 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15500 "xmlsec1Conf.sh") CONFIG_FILES="$CONFIG_FILES xmlsec1Conf.sh:xmlsecConf.sh.in" ;;
15501 "xmlsec1-config") CONFIG_FILES="$CONFIG_FILES xmlsec1-config:xmlsec-config.in" ;;
15502 "xmlsec1-openssl.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-openssl.pc:xmlsec-openssl.pc.in" ;;
15503 "xmlsec1-gnutls.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in" ;;
15504 "xmlsec1-nss.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-nss.pc:xmlsec-nss.pc.in" ;;
15505 "xmlsec1.spec") CONFIG_FILES="$CONFIG_FILES xmlsec1.spec:xmlsec.spec.in" ;;
15507 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15512 # If the user did not use the arguments to specify the items to instantiate,
15513 # then the envvar interface is used. Set only those that are not.
15514 # We use the long form for the default assignment because of an extremely
15515 # bizarre bug on SunOS 4.1.3.
15516 if $ac_need_defaults; then
15517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15522 # Have a temporary directory for convenience. Make it in the build tree
15523 # simply because there is no reason against having it here, and in addition,
15524 # creating and moving files from /tmp can sometimes cause problems.
15525 # Hook for its removal unless debugging.
15526 # Note that there is a small window in which the directory will not be cleaned:
15527 # after its creation but before its name has been assigned to `$tmp'.
15531 trap 'exit_status=$?
15532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15534 trap 'as_fn_exit 1' 1 2 13 15
15536 # Create a (secure) tmp directory for tmp files.
15539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15540 test -n "$tmp" && test -d "$tmp"
15543 tmp=./conf$$-$RANDOM
15544 (umask 077 && mkdir "$tmp")
15545 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15547 # Set up the scripts for CONFIG_FILES section.
15548 # No need to generate them if there are no CONFIG_FILES.
15549 # This happens for instance with `./config.status config.h'.
15550 if test -n "$CONFIG_FILES"; then
15553 ac_cr=`echo X | tr X '\015'`
15554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15555 # But we know of no other shell where ac_cr would be empty at this
15556 # point, so we can use a bashism as a fallback.
15557 if test "x$ac_cr" = x; then
15558 eval ac_cr=\$\'\\r\'
15560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15564 ac_cs_awk_cr=$ac_cr
15567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15572 echo "cat >conf$$subs.awk <<_ACEOF" &&
15573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15575 } >conf$$subs.sh ||
15576 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15579 for ac_last_try in false false false false false :; do
15580 . ./conf$$subs.sh ||
15581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15584 if test $ac_delim_n = $ac_delim_num; then
15586 elif $ac_last_try; then
15587 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15592 rm -f conf$$subs.sh
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15599 s/^/S["/; s/!.*/"]=/
15609 s/\(.\{148\}\).*/\1/
15611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15623 s/\(.\{148\}\).*/\1/
15625 s/["\\]/\\&/g; s/^/"/; s/$/"/
15629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15634 ' <conf$$subs.awk | sed '
15639 ' >>$CONFIG_STATUS || ac_write_fail=1
15640 rm -f conf$$subs.awk
15641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15643 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15644 for (key in S) S_is_set[key] = 1
15650 nfields = split(line, field, "@")
15652 len = length(field[1])
15653 for (i = 2; i < nfields; i++) {
15655 keylen = length(key)
15656 if (S_is_set[key]) {
15658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15659 len += length(value) + length(field[++i])
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15676 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15681 # trailing colons and then remove the whole line if VPATH becomes empty
15682 # (actually we leave an empty line to preserve line numbers).
15683 if test "x$srcdir" = x.; then
15684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15685 s/:*\$(srcdir):*/:/
15686 s/:*\${srcdir}:*/:/
15688 s/^\([^=]*=[ ]*\):*/\1/
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695 fi # test -n "$CONFIG_FILES"
15697 # Set up the scripts for CONFIG_HEADERS section.
15698 # No need to generate them if there are no CONFIG_HEADERS.
15699 # This happens for instance with `./config.status Makefile'.
15700 if test -n "$CONFIG_HEADERS"; then
15701 cat >"$tmp/defines.awk" <<\_ACAWK ||
15705 # Transform confdefs.h into an awk script `defines.awk', embedded as
15706 # here-document in config.status, that substitutes the proper values into
15707 # config.h.in to produce config.h.
15709 # Create a delimiter string that does not exist in confdefs.h, to ease
15710 # handling of long lines.
15712 for ac_last_try in false false :; do
15713 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15714 if test -z "$ac_t"; then
15716 elif $ac_last_try; then
15717 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15723 # For the awk script, D is an array of macro values keyed by name,
15724 # likewise P contains macro parameters if any. Preserve backslash
15725 # newline sequences.
15727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15729 s/.\{148\}/&'"$ac_delim"'/g
15732 s/^[ ]*#[ ]*define[ ][ ]*/ /
15739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15741 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15746 D["\1"]=" \3\\\\\\n"\\/p
15748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15753 s/.\{148\}/&'"$ac_delim"'/g
15758 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15761 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15763 ' <confdefs.h | sed '
15764 s/'"$ac_delim"'/"\\\
15765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 for (key in D) D_is_set[key] = 1
15771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15773 split(line, arg, " ")
15774 if (arg[1] == "#") {
15778 defundef = substr(arg[1], 2)
15781 split(mac1, mac2, "(") #)
15783 prefix = substr(line, 1, index(line, defundef) - 1)
15784 if (D_is_set[macro]) {
15785 # Preserve the white space surrounding the "#".
15786 print prefix "define", macro P[macro] D[macro]
15789 # Replace #undef with comments. This is necessary, for example,
15790 # in the case of _POSIX_SOURCE, which is predefined and required
15791 # on some systems where configure will not decide to define it.
15792 if (defundef == "undef") {
15793 print "/*", prefix defundef, macro, "*/"
15801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15802 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15803 fi # test -n "$CONFIG_HEADERS"
15806 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15811 :[FHLC]) ac_mode=$ac_tag; continue;;
15813 case $ac_mode$ac_tag in
15815 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15816 :[FH]-) ac_tag=-:-;;
15817 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15834 -) ac_f="$tmp/stdin";;
15835 *) # Look for the file first in the build tree, then in the source tree
15836 # (if the path is not absolute). The absolute path cannot be DOS-style,
15837 # because $ac_f cannot contain `:'.
15841 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15843 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15845 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15846 as_fn_append ac_file_inputs " '$ac_f'"
15849 # Let's still pretend it is `configure' which instantiates (i.e., don't
15850 # use $as_me), people would be surprised to read:
15851 # /* config.h. Generated by config.status. */
15852 configure_input='Generated from '`
15853 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15855 if test x"$ac_file" != x-; then
15856 configure_input="$ac_file. $configure_input"
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15858 $as_echo "$as_me: creating $ac_file" >&6;}
15860 # Neutralize special characters interpreted by sed in replacement strings.
15861 case $configure_input in #(
15862 *\&* | *\|* | *\\* )
15863 ac_sed_conf_input=`$as_echo "$configure_input" |
15864 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15865 *) ac_sed_conf_input=$configure_input;;
15869 *:-:* | *:-) cat >"$tmp/stdin" \
15870 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15875 ac_dir=`$as_dirname -- "$ac_file" ||
15876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15877 X"$ac_file" : 'X\(//\)[^/]' \| \
15878 X"$ac_file" : 'X\(//\)$' \| \
15879 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15880 $as_echo X"$ac_file" |
15881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15885 /^X\(\/\/\)[^/].*/{
15898 as_dir="$ac_dir"; as_fn_mkdir_p
15902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15905 # A ".." for each directory in $ac_dir_suffix.
15906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15907 case $ac_top_builddir_sub in
15908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15912 ac_abs_top_builddir=$ac_pwd
15913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15914 # for backward compatibility:
15915 ac_top_builddir=$ac_top_build_prefix
15918 .) # We are building in place.
15920 ac_top_srcdir=$ac_top_builddir_sub
15921 ac_abs_top_srcdir=$ac_pwd ;;
15922 [\\/]* | ?:[\\/]* ) # Absolute name.
15923 ac_srcdir=$srcdir$ac_dir_suffix;
15924 ac_top_srcdir=$srcdir
15925 ac_abs_top_srcdir=$srcdir ;;
15926 *) # Relative name.
15927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15928 ac_top_srcdir=$ac_top_build_prefix$srcdir
15929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15941 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15942 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15944 ac_MKDIR_P=$MKDIR_P
15946 [\\/$]* | ?:[\\/]* ) ;;
15947 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15952 # If the template does not know about datarootdir, expand it.
15953 # FIXME: This hack should be removed a few years after 2.60.
15954 ac_datarootdir_hack=; ac_datarootdir_seen=
15965 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15966 *datarootdir*) ac_datarootdir_seen=yes;;
15967 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15969 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972 ac_datarootdir_hack='
15973 s&@datadir@&$datadir&g
15974 s&@docdir@&$docdir&g
15975 s&@infodir@&$infodir&g
15976 s&@localedir@&$localedir&g
15977 s&@mandir@&$mandir&g
15978 s&\\\${datarootdir}&$datarootdir&g' ;;
15982 # Neutralize VPATH when `$srcdir' = `.'.
15983 # Shell code in configure.ac might set extrasub.
15984 # FIXME: do we really want to maintain this feature?
15985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15986 ac_sed_extra="$ac_vpsub
15989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15992 s|@configure_input@|$ac_sed_conf_input|;t t
15993 s&@top_builddir@&$ac_top_builddir_sub&;t t
15994 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15995 s&@srcdir@&$ac_srcdir&;t t
15996 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15997 s&@top_srcdir@&$ac_top_srcdir&;t t
15998 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15999 s&@builddir@&$ac_builddir&;t t
16000 s&@abs_builddir@&$ac_abs_builddir&;t t
16001 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16002 s&@INSTALL@&$ac_INSTALL&;t t
16003 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16004 $ac_datarootdir_hack
16006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16007 || as_fn_error "could not create $ac_file" "$LINENO" 5
16009 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16010 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16011 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16013 which seems to be undefined. Please make sure it is defined." >&5
16014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16015 which seems to be undefined. Please make sure it is defined." >&2;}
16019 -) cat "$tmp/out" && rm -f "$tmp/out";;
16020 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16022 || as_fn_error "could not create $ac_file" "$LINENO" 5
16028 if test x"$ac_file" != x-; then
16030 $as_echo "/* $configure_input */" \
16031 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16032 } >"$tmp/config.h" \
16033 || as_fn_error "could not create $ac_file" "$LINENO" 5
16034 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16036 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16039 mv "$tmp/config.h" "$ac_file" \
16040 || as_fn_error "could not create $ac_file" "$LINENO" 5
16043 $as_echo "/* $configure_input */" \
16044 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16045 || as_fn_error "could not create -" "$LINENO" 5
16047 # Compute "$ac_file"'s index in $config_headers.
16050 for _am_header in $config_headers :; do
16051 case $_am_header in
16052 $_am_arg | $_am_arg:* )
16055 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16058 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16059 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16060 X"$_am_arg" : 'X\(//\)[^/]' \| \
16061 X"$_am_arg" : 'X\(//\)$' \| \
16062 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16063 $as_echo X"$_am_arg" |
16064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16068 /^X\(\/\/\)[^/].*/{
16080 s/.*/./; q'`/stamp-h$_am_stamp_count
16083 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16084 $as_echo "$as_me: executing $ac_file commands" >&6;}
16089 case $ac_file$ac_mode in
16090 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16091 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16092 # are listed without --file. Let's play safe and only enable the eval
16093 # if we detect the quoting.
16094 case $CONFIG_FILES in
16095 *\'*) eval set x "$CONFIG_FILES" ;;
16096 *) set x $CONFIG_FILES ;;
16101 # Strip MF so we end up with the name of the file.
16102 mf=`echo "$mf" | sed -e 's/:.*$//'`
16103 # Check whether this is an Automake generated Makefile or not.
16104 # We used to match only the files named `Makefile.in', but
16105 # some people rename them; so instead we look at the file content.
16106 # Grep'ing the first line is not enough: some people post-process
16107 # each Makefile.in and add a new line on top of each file to say so.
16108 # Grep'ing the whole file is not good either: AIX grep has a line
16109 # limit of 2048, but all sed's we know have understand at least 4000.
16110 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16111 dirpart=`$as_dirname -- "$mf" ||
16112 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16113 X"$mf" : 'X\(//\)[^/]' \| \
16114 X"$mf" : 'X\(//\)$' \| \
16115 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16121 /^X\(\/\/\)[^/].*/{
16137 # Extract the definition of DEPDIR, am__include, and am__quote
16138 # from the Makefile without running `make'.
16139 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16140 test -z "$DEPDIR" && continue
16141 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16142 test -z "am__include" && continue
16143 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16144 # When using ansi2knr, U may be empty or an underscore; expand it
16145 U=`sed -n 's/^U = //p' < "$mf"`
16146 # Find all dependency output files, they are included files with
16147 # $(DEPDIR) in their names. We invoke sed twice because it is the
16148 # simplest approach to changing $(DEPDIR) to its actual value in the
16150 for file in `sed -n "
16151 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16152 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16153 # Make sure the directory exists.
16154 test -f "$dirpart/$file" && continue
16155 fdir=`$as_dirname -- "$file" ||
16156 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16157 X"$file" : 'X\(//\)[^/]' \| \
16158 X"$file" : 'X\(//\)$' \| \
16159 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16160 $as_echo X"$file" |
16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16165 /^X\(\/\/\)[^/].*/{
16178 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16179 # echo "creating $dirpart/$file"
16180 echo '# dummy' > "$dirpart/$file"
16187 # See if we are running on zsh, and set the options which allow our
16188 # commands through without removal of \ escapes.
16189 if test -n "${ZSH_VERSION+set}" ; then
16190 setopt NO_GLOB_SUBST
16193 cfgfile="${ofile}T"
16194 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16197 cat <<_LT_EOF >> "$cfgfile"
16200 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16201 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16203 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16205 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16206 # 2006, 2007, 2008 Free Software Foundation, Inc.
16207 # Written by Gordon Matzigkeit, 1996
16209 # This file is part of GNU Libtool.
16211 # GNU Libtool is free software; you can redistribute it and/or
16212 # modify it under the terms of the GNU General Public License as
16213 # published by the Free Software Foundation; either version 2 of
16214 # the License, or (at your option) any later version.
16216 # As a special exception to the GNU General Public License,
16217 # if you distribute this file as part of a program or library that
16218 # is built using GNU Libtool, you may include this file under the
16219 # same distribution terms that you use for the rest of that program.
16221 # GNU Libtool is distributed in the hope that it will be useful,
16222 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16223 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16224 # GNU General Public License for more details.
16226 # You should have received a copy of the GNU General Public License
16227 # along with GNU Libtool; see the file COPYING. If not, a copy
16228 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16229 # obtained by writing to the Free Software Foundation, Inc.,
16230 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16233 # The names of the tagged configurations supported by this script.
16236 # ### BEGIN LIBTOOL CONFIG
16238 # Which release of libtool.m4 was used?
16239 macro_version=$macro_version
16240 macro_revision=$macro_revision
16242 # Whether or not to build shared libraries.
16243 build_libtool_libs=$enable_shared
16245 # Whether or not to build static libraries.
16246 build_old_libs=$enable_static
16248 # What type of objects to build.
16251 # Whether or not to optimize for fast installation.
16252 fast_install=$enable_fast_install
16255 host_alias=$host_alias
16259 # The build system.
16260 build_alias=$build_alias
16264 # A sed program that does not truncate output.
16267 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16268 Xsed="\$SED -e 1s/^X//"
16270 # A grep program that handles long lines.
16276 # A literal string matcher.
16279 # A BSD- or MS-compatible name lister.
16282 # Whether we need soft or hard links.
16285 # What is the maximum length of a command?
16286 max_cmd_len=$max_cmd_len
16288 # Object file suffix (normally "o").
16291 # Executable file suffix (normally "").
16294 # whether the shell understands "unset".
16297 # turn spaces into newlines.
16300 # turn newlines into spaces.
16303 # How to create reloadable object files.
16304 reload_flag=$lt_reload_flag
16305 reload_cmds=$lt_reload_cmds
16307 # An object symbol dumper.
16308 OBJDUMP=$lt_OBJDUMP
16310 # Method to check whether dependent libraries are shared objects.
16311 deplibs_check_method=$lt_deplibs_check_method
16313 # Command to use when deplibs_check_method == "file_magic".
16314 file_magic_cmd=$lt_file_magic_cmd
16318 AR_FLAGS=$lt_AR_FLAGS
16320 # A symbol stripping program.
16323 # Commands used to install an old-style archive.
16325 old_postinstall_cmds=$lt_old_postinstall_cmds
16326 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16331 # LTCC compiler flags.
16332 LTCFLAGS=$lt_CFLAGS
16334 # Take the output of nm and produce a listing of raw symbols and C names.
16335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16337 # Transform the output of nm in a proper C declaration.
16338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16340 # Transform the output of nm in a C name address pair.
16341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16343 # Transform the output of nm in a C name address pair when lib prefix is needed.
16344 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16346 # The name of the directory that contains temporary libtool files.
16349 # Shell to use when invoking shell scripts.
16352 # An echo program that does not interpret backslashes.
16355 # Used to examine libraries when file_magic_cmd begins with "file".
16356 MAGIC_CMD=$MAGIC_CMD
16358 # Must we lock files when doing compilation?
16359 need_locks=$lt_need_locks
16361 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16362 DSYMUTIL=$lt_DSYMUTIL
16364 # Tool to change global to local symbols on Mac OS X.
16367 # Tool to manipulate fat objects and archives on Mac OS X.
16370 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16373 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16374 OTOOL64=$lt_OTOOL64
16376 # Old archive suffix (normally "a").
16379 # Shared library suffix (normally ".so").
16380 shrext_cmds=$lt_shrext_cmds
16382 # The commands to extract the exported symbol list from a shared archive.
16383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16385 # Variables whose values should be saved in libtool wrapper scripts and
16386 # restored at link time.
16387 variables_saved_for_relink=$lt_variables_saved_for_relink
16389 # Do we need the "lib" prefix for modules?
16390 need_lib_prefix=$need_lib_prefix
16392 # Do we need a version for libraries?
16393 need_version=$need_version
16395 # Library versioning type.
16396 version_type=$version_type
16398 # Shared library runtime path variable.
16399 runpath_var=$runpath_var
16401 # Shared library path variable.
16402 shlibpath_var=$shlibpath_var
16404 # Is shlibpath searched before the hard-coded library search path?
16405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16407 # Format of library name prefix.
16408 libname_spec=$lt_libname_spec
16410 # List of archive names. First name is the real one, the rest are links.
16411 # The last name is the one that the linker finds with -lNAME
16412 library_names_spec=$lt_library_names_spec
16414 # The coded name of the library, if different from the real name.
16415 soname_spec=$lt_soname_spec
16417 # Command to use after installation of a shared archive.
16418 postinstall_cmds=$lt_postinstall_cmds
16420 # Command to use after uninstallation of a shared archive.
16421 postuninstall_cmds=$lt_postuninstall_cmds
16423 # Commands used to finish a libtool library installation in a directory.
16424 finish_cmds=$lt_finish_cmds
16426 # As "finish_cmds", except a single script fragment to be evaled but
16428 finish_eval=$lt_finish_eval
16430 # Whether we should hardcode library paths into libraries.
16431 hardcode_into_libs=$hardcode_into_libs
16433 # Compile-time system search path for libraries.
16434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16436 # Run-time system search path for libraries.
16437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16439 # Whether dlopen is supported.
16440 dlopen_support=$enable_dlopen
16442 # Whether dlopen of programs is supported.
16443 dlopen_self=$enable_dlopen_self
16445 # Whether dlopen of statically linked programs is supported.
16446 dlopen_self_static=$enable_dlopen_self_static
16448 # Commands to strip libraries.
16449 old_striplib=$lt_old_striplib
16450 striplib=$lt_striplib
16453 # The linker used to build libraries.
16456 # Commands used to build an old-style archive.
16457 old_archive_cmds=$lt_old_archive_cmds
16459 # A language specific compiler.
16462 # Is the compiler the GNU compiler?
16465 # Compiler flag to turn off builtin functions.
16466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16468 # How to pass a linker flag through the compiler.
16469 wl=$lt_lt_prog_compiler_wl
16471 # Additional compiler flags for building library objects.
16472 pic_flag=$lt_lt_prog_compiler_pic
16474 # Compiler flag to prevent dynamic linking.
16475 link_static_flag=$lt_lt_prog_compiler_static
16477 # Does compiler simultaneously support -c and -o options?
16478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16480 # Whether or not to add -lc for building shared libraries.
16481 build_libtool_need_lc=$archive_cmds_need_lc
16483 # Whether or not to disallow shared libs when runtime libs are static.
16484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16486 # Compiler flag to allow reflexive dlopens.
16487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16489 # Compiler flag to generate shared objects directly from archives.
16490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16492 # Whether the compiler copes with passing no objects directly.
16493 compiler_needs_object=$lt_compiler_needs_object
16495 # Create an old-style archive from a shared archive.
16496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16498 # Create a temporary old-style archive to link instead of a shared archive.
16499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16501 # Commands used to build a shared archive.
16502 archive_cmds=$lt_archive_cmds
16503 archive_expsym_cmds=$lt_archive_expsym_cmds
16505 # Commands used to build a loadable module if different from building
16506 # a shared archive.
16507 module_cmds=$lt_module_cmds
16508 module_expsym_cmds=$lt_module_expsym_cmds
16510 # Whether we are building with GNU ld or not.
16511 with_gnu_ld=$lt_with_gnu_ld
16513 # Flag that allows shared libraries with undefined symbols to be built.
16514 allow_undefined_flag=$lt_allow_undefined_flag
16516 # Flag that enforces no undefined symbols.
16517 no_undefined_flag=$lt_no_undefined_flag
16519 # Flag to hardcode \$libdir into a binary during linking.
16520 # This must work even if \$libdir does not exist
16521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16523 # If ld is used when linking, flag to hardcode \$libdir into a binary
16524 # during linking. This must work even if \$libdir does not exist.
16525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16527 # Whether we need a single "-rpath" flag with a separated argument.
16528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16531 # DIR into the resulting binary.
16532 hardcode_direct=$hardcode_direct
16534 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16535 # DIR into the resulting binary and the resulting library dependency is
16536 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16537 # library is relocated.
16538 hardcode_direct_absolute=$hardcode_direct_absolute
16540 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16541 # into the resulting binary.
16542 hardcode_minus_L=$hardcode_minus_L
16544 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16545 # into the resulting binary.
16546 hardcode_shlibpath_var=$hardcode_shlibpath_var
16548 # Set to "yes" if building a shared library automatically hardcodes DIR
16549 # into the library and all subsequent libraries and executables linked
16551 hardcode_automatic=$hardcode_automatic
16553 # Set to yes if linker adds runtime paths of dependent libraries
16554 # to runtime path list.
16555 inherit_rpath=$inherit_rpath
16557 # Whether libtool must link a program against all its dependency libraries.
16558 link_all_deplibs=$link_all_deplibs
16560 # Fix the shell variable \$srcfile for the compiler.
16561 fix_srcfile_path=$lt_fix_srcfile_path
16563 # Set to "yes" if exported symbols are required.
16564 always_export_symbols=$always_export_symbols
16566 # The commands to list exported symbols.
16567 export_symbols_cmds=$lt_export_symbols_cmds
16569 # Symbols that should not be listed in the preloaded symbols.
16570 exclude_expsyms=$lt_exclude_expsyms
16572 # Symbols that must always be exported.
16573 include_expsyms=$lt_include_expsyms
16575 # Commands necessary for linking programs (against libraries) with templates.
16576 prelink_cmds=$lt_prelink_cmds
16578 # Specify filename containing input files.
16579 file_list_spec=$lt_file_list_spec
16581 # How to hardcode a shared library path into an executable.
16582 hardcode_action=$hardcode_action
16584 # ### END LIBTOOL CONFIG
16590 cat <<\_LT_EOF >> "$cfgfile"
16591 # AIX sometimes has problems with the GCC collect2 program. For some
16592 # reason, if we set the COLLECT_NAMES environment variable, the problems
16593 # vanish in a puff of smoke.
16594 if test "X${COLLECT_NAMES+set}" != Xset; then
16596 export COLLECT_NAMES
16603 ltmain="$ac_aux_dir/ltmain.sh"
16606 # We use sed instead of cat because bash on DJGPP gets confused if
16607 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16608 # text mode, it properly converts lines to CR/LF. This bash problem
16609 # is reportedly fixed, but why not run on old versions too?
16610 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16611 || (rm -f "$cfgfile"; exit 1)
16615 cat << \_LT_EOF >> "$cfgfile"
16617 # func_dirname file append nondir_replacement
16618 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16619 # otherwise set result to NONDIR_REPLACEMENT.
16623 */*) func_dirname_result="${1%/*}${2}" ;;
16624 * ) func_dirname_result="${3}" ;;
16628 # func_basename file
16631 func_basename_result="${1##*/}"
16634 # func_dirname_and_basename file append nondir_replacement
16635 # perform func_basename and func_dirname in a single function
16637 # dirname: Compute the dirname of FILE. If nonempty,
16638 # add APPEND to the result, otherwise set result
16639 # to NONDIR_REPLACEMENT.
16640 # value returned in "$func_dirname_result"
16641 # basename: Compute filename of FILE.
16642 # value retuned in "$func_basename_result"
16643 # Implementation must be kept synchronized with func_dirname
16644 # and func_basename. For efficiency, we do not delegate to
16645 # those functions but instead duplicate the functionality here.
16646 func_dirname_and_basename ()
16649 */*) func_dirname_result="${1%/*}${2}" ;;
16650 * ) func_dirname_result="${3}" ;;
16652 func_basename_result="${1##*/}"
16655 # func_stripname prefix suffix name
16656 # strip PREFIX and SUFFIX off of NAME.
16657 # PREFIX and SUFFIX must not contain globbing or regex special
16658 # characters, hashes, percent signs, but SUFFIX may contain a leading
16659 # dot (in which case that matches only a dot).
16662 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16663 # positional parameters, so assign one to ordinary parameter first.
16664 func_stripname_result=${3}
16665 func_stripname_result=${func_stripname_result#"${1}"}
16666 func_stripname_result=${func_stripname_result%"${2}"}
16672 func_opt_split_opt=${1%%=*}
16673 func_opt_split_arg=${1#*=}
16680 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16681 *) func_lo2o_result=${1} ;;
16685 # func_xform libobj-or-source
16688 func_xform_result=${1%.*}.lo
16691 # func_arith arithmetic-term...
16694 func_arith_result=$(( $* ))
16698 # STRING may not start with a hyphen.
16701 func_len_result=${#1}
16706 *) # Bourne compatible functions.
16707 cat << \_LT_EOF >> "$cfgfile"
16709 # func_dirname file append nondir_replacement
16710 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16711 # otherwise set result to NONDIR_REPLACEMENT.
16714 # Extract subdirectory from the argument.
16715 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16716 if test "X$func_dirname_result" = "X${1}"; then
16717 func_dirname_result="${3}"
16719 func_dirname_result="$func_dirname_result${2}"
16723 # func_basename file
16726 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16730 # func_stripname prefix suffix name
16731 # strip PREFIX and SUFFIX off of NAME.
16732 # PREFIX and SUFFIX must not contain globbing or regex special
16733 # characters, hashes, percent signs, but SUFFIX may contain a leading
16734 # dot (in which case that matches only a dot).
16735 # func_strip_suffix prefix name
16739 .*) func_stripname_result=`$ECHO "X${3}" \
16740 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16741 *) func_stripname_result=`$ECHO "X${3}" \
16742 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16747 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16748 my_sed_long_arg='1s/^-[^=]*=//'
16753 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16754 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16760 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16763 # func_xform libobj-or-source
16766 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16769 # func_arith arithmetic-term...
16772 func_arith_result=`expr "$@"`
16776 # STRING may not start with a hyphen.
16779 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16785 case $lt_shell_append in
16787 cat << \_LT_EOF >> "$cfgfile"
16789 # func_append var value
16790 # Append VALUE to the end of shell variable VAR.
16798 cat << \_LT_EOF >> "$cfgfile"
16800 # func_append var value
16801 # Append VALUE to the end of shell variable VAR.
16812 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16813 || (rm -f "$cfgfile"; exit 1)
16815 mv -f "$cfgfile" "$ofile" ||
16816 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16827 ac_clean_files=$ac_clean_files_save
16829 test $ac_write_fail = 0 ||
16830 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16833 # configure is writing to config.log, and then calls config.status.
16834 # config.status does its own redirection, appending to config.log.
16835 # Unfortunately, on DOS this fails, as config.log is still kept open
16836 # by configure, so config.status won't be able to write to it; its
16837 # output is simply discarded. So we exec the FD to /dev/null,
16838 # effectively closing config.log, so it can be properly (re)opened and
16839 # appended to by config.status. When coming back to configure, we
16840 # need to make the FD available again.
16841 if test "$no_create" != yes; then
16843 ac_config_status_args=
16844 test "$silent" = yes &&
16845 ac_config_status_args="$ac_config_status_args --quiet"
16847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16850 # would make configure fail if this is the last instruction.
16851 $ac_cs_success || as_fn_exit $?
16853 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16855 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16860 (cd $srcdir && rm -f COPYING.LIB COPYING && $LN_S Copyright COPYING)