2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libksba 1.6.3.
5 # Report bugs to <https://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libksba'
592 PACKAGE_TARNAME='libksba'
593 PACKAGE_VERSION='1.6.3'
594 PACKAGE_STRING='libksba 1.6.3'
595 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
598 ac_unique_file="src/ksba.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
644 CROSS_COMPILING_FALSE
647 KSBA_CONFIG_API_VERSION
654 USE_GPGRT_CONFIG_FALSE
655 USE_GPGRT_CONFIG_TRUE
662 HAVE_LD_VERSION_SCRIPT_FALSE
663 HAVE_LD_VERSION_SCRIPT_TRUE
664 HAVE_W32CE_SYSTEM_FALSE
665 HAVE_W32CE_SYSTEM_TRUE
666 HAVE_W32_SYSTEM_FALSE
685 MAINTAINER_MODE_FALSE
708 LDADD_FOR_TESTS_KLUDGE
748 INSTALL_STRIP_PROGRAM
791 program_transform_name
805 enable_option_checking
807 enable_dependency_tracking
815 enable_maintainer_mode
818 enable_ld_version_script
819 with_libgpg_error_prefix
820 with_gpg_error_prefix
821 enable_valgrind_tests
822 enable_build_timestamp
825 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1156 -site=* | --site=* | --sit=*)
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1387 \`configure' configures libksba 1.6.3 to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libksba]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of libksba 1.6.3:";;
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472 --enable-static[=PKGS] build static libraries [default=no]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
1480 --enable-gcov enable coverage testing with gcov
1481 --disable-optimization disable compiler optimization
1482 --enable-ld-version-script
1483 enable/disable use of linker version script.
1484 (default is system dependent)
1485 --enable-valgrind-tests run self tests under valgrind
1486 --enable-build-timestamp
1487 set an explicit build timestamp for reproducibility.
1488 (default is the current time in ISO-8601 format)
1489 --disable-doc do not build the documentation
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-sysroot=DIR Search for dependent libraries within DIR
1498 (or the compiler's sysroot if not specified).
1499 --with-libgpg-error-prefix=PFX
1500 prefix where GPG Error is installed (optional)
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1512 YACC The `Yet Another Compiler Compiler' implementation to use.
1513 Defaults to the first program found out of: `bison -y', `byacc',
1515 YFLAGS The list of arguments that will be passed by default to $YACC.
1516 This script will default YFLAGS to the empty string to avoid a
1517 default value of `-d' given by some make applications.
1519 build system C compiler
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1524 Report bugs to <https://bugs.gnupg.org>.
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1554 .) # We are building in place.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1587 libksba configure 1.6.3
1588 generated by GNU Autoconf 2.69
1590 Copyright (C) 2012 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext
1608 if { { ac_try="$ac_compile"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_compile") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext; then :
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_compile
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1681 ac_fn_c_check_header_mongrel ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if eval \${$3+:} false; then :
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1694 # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703 ac_header_compiler=yes
1705 ac_header_compiler=no
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719 ac_header_preproc=yes
1721 ac_header_preproc=no
1723 rm -f conftest.err conftest.i conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1727 # So? What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ( $as_echo "## ------------------------------------- ##
1747 ## Report this to https://bugs.gnupg.org ##
1748 ## ------------------------------------- ##"
1749 ) | sed "s/^/$as_me: WARNING: /" >&2
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1757 eval "$3=\$ac_header_compiler"
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 } # ac_fn_c_check_header_mongrel
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }; then :
1797 $as_echo "$as_me: program exited with status $ac_status" >&5
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=$ac_status
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_header_compile
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 test -x conftest$ac_exeext
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_link
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901 #define $2 innocuous_$2
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1909 # include <limits.h>
1911 # include <assert.h>
1916 /* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined __stub_$2 || defined __stub___$2
1938 if ac_fn_c_try_link "$LINENO"; then :
1943 rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_func
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1958 ac_fn_c_compute_int ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if test "$cross_compiling" = yes; then
1962 # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1971 return test_array [0];
1977 if ac_fn_c_try_compile "$LINENO"; then :
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 return test_array [0];
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 ac_hi=$ac_mid; break
1997 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998 if test $ac_lo -le $ac_mid; then
2002 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2013 static int test_array [1 - 2 * !(($2) < 0)];
2015 return test_array [0];
2021 if ac_fn_c_try_compile "$LINENO"; then :
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2032 return test_array [0];
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 ac_lo=$ac_mid; break
2041 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2042 if test $ac_mid -le $ac_hi; then
2046 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 # Binary search between lo and hi bounds.
2057 while test "x$ac_lo" != "x$ac_hi"; do
2058 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 return test_array [0];
2073 if ac_fn_c_try_compile "$LINENO"; then :
2076 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2096 FILE *f = fopen ("conftest.val", "w");
2101 long int i = longval ();
2104 fprintf (f, "%ld", i);
2108 unsigned long int i = ulongval ();
2111 fprintf (f, "%lu", i);
2113 /* Do not output a trailing newline, as this causes \r\n confusion
2114 on some platforms. */
2115 return ferror (f) || fclose (f) != 0;
2121 if ac_fn_c_try_run "$LINENO"; then :
2122 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127 conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_c_compute_int
2136 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2137 # -------------------------------------------
2138 # Tests whether TYPE exists after having included INCLUDES, setting cache
2139 # variable VAR accordingly.
2140 ac_fn_c_check_type ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2174 if ac_fn_c_try_compile "$LINENO"; then :
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_type
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by libksba $as_me 1.6.3, which was
2194 generated by GNU Autoconf 2.69. Invocation command line was
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_must_keep_next=false
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 -* ) ac_must_keep_next=true ;;
2286 as_fn_append ac_configure_args " '$ac_arg'"
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2304 $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2308 # The following way of writing the cache mishandles newlines in values,
2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311 eval ac_val=\$$ac_var
2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340 $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -n "$ac_subst_files"; then
2355 $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2359 for ac_var in $ac_subst_files
2361 eval ac_val=\$$ac_var
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 $as_echo "$ac_var='\''$ac_val'\''"
2370 if test -s confdefs.h; then
2371 $as_echo "## ----------- ##
2378 test "$ac_signal" != 0 &&
2379 $as_echo "$as_me: caught signal $ac_signal"
2380 $as_echo "$as_me: exit $exit_status"
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2386 for ac_signal in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2394 $as_echo "/* confdefs.h */" > confdefs.h
2396 # Predefined preprocessor variables.
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2427 if test -n "$CONFIG_SITE"; then
2428 # We do not want a PATH search for config.site.
2429 case $CONFIG_SITE in #((
2430 -*) ac_site_file1=./$CONFIG_SITE;;
2431 */*) ac_site_file1=$CONFIG_SITE;;
2432 *) ac_site_file1=./$CONFIG_SITE;;
2434 elif test "x$prefix" != xNONE; then
2435 ac_site_file1=$prefix/share/config.site
2436 ac_site_file2=$prefix/etc/config.site
2438 ac_site_file1=$ac_default_prefix/share/config.site
2439 ac_site_file2=$ac_default_prefix/etc/config.site
2441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2443 test "x$ac_site_file" = xNONE && continue
2444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447 sed 's/^/| /' "$ac_site_file" >&5
2449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "failed to load site script $ac_site_file
2452 See \`config.log' for more details" "$LINENO" 5; }
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 # Check that the precious variables saved in the cache have kept the same
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 # LT Version numbers: Remember to change them just *before* a release.
2543 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
2544 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
2545 # (No interfaces changed: REVISION++)
2546 # Please remember to document interface changes in the NEWS file.
2547 LIBKSBA_LT_CURRENT=22
2549 LIBKSBA_LT_REVISION=3
2550 #-------------------
2551 # If the API is changed in an incompatible way: increment the next counter.
2552 KSBA_CONFIG_API_VERSION=1
2555 NEED_GPG_ERROR_VERSION=1.8
2559 for ac_dir in build-aux "$srcdir"/build-aux; do
2560 if test -f "$ac_dir/install-sh"; then
2562 ac_install_sh="$ac_aux_dir/install-sh -c"
2564 elif test -f "$ac_dir/install.sh"; then
2566 ac_install_sh="$ac_aux_dir/install.sh -c"
2568 elif test -f "$ac_dir/shtool"; then
2570 ac_install_sh="$ac_aux_dir/shtool install -c"
2574 if test -z "$ac_aux_dir"; then
2575 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2583 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2584 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2588 am__api_version='1.16'
2590 # Find a good install program. We prefer a C program (faster),
2591 # so one script is as good as another. But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659 rm -rf conftest.one conftest.two conftest.dir
2662 if test "${ac_cv_path_install+set}" = set; then
2663 INSTALL=$ac_cv_path_install
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 INSTALL=$ac_install_sh
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name. Accept space and tab only in the latter.
2690 *[\\\"\#\$\&\'\`$am_lf]*)
2691 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2694 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2695 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments. Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2705 for am_try in 1 2; do
2706 echo "timestamp, slept: $am_has_slept" > conftest.file
2707 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708 if test "$*" = "X"; then
2710 set X `ls -t "$srcdir/configure" conftest.file`
2712 if test "$*" != "X $srcdir/configure conftest.file" \
2713 && test "$*" != "X conftest.file $srcdir/configure"; then
2715 # If neither matched, then we have a broken ls. This can happen
2716 # if, for instance, CONFIG_SHELL is bash and it inherits a
2717 # broken ls alias from the environment. This has actually
2718 # happened. Such a system could not be considered "sane".
2719 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2720 alias in your environment" "$LINENO" 5
2722 if test "$2" = conftest.file || test $am_try -eq 2; then
2729 test "$2" = conftest.file
2735 as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2750 test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2760 # Expand $ac_aux_dir to an absolute path.
2761 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2763 if test x"${MISSING+set}" != xset; then
2764 MISSING="\${SHELL} '$am_aux_dir/missing'"
2766 # Use eval to expand $SHELL
2767 if eval "$MISSING --is-lightweight"; then
2768 am_missing_run="$MISSING "
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2772 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2775 if test x"${install_sh+set}" != xset; then
2778 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2780 install_sh="\${SHELL} $am_aux_dir/install-sh"
2784 # Installed binaries are usually stripped using 'strip' when the user
2785 # run "make install-strip". However 'strip' might not be the right
2786 # tool to use in cross-compilation environments, therefore Automake
2787 # will honor the 'STRIP' environment variable to overrule this program.
2788 if test "$cross_compiling" != no; then
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}strip; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_STRIP+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$STRIP"; then
2798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 STRIP=$ac_cv_prog_STRIP
2818 if test -n "$STRIP"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2820 $as_echo "$STRIP" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2828 if test -z "$ac_cv_prog_STRIP"; then
2830 # Extract the first word of "strip", so it can be a program name with args.
2831 set dummy strip; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$ac_ct_STRIP"; then
2838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_ac_ct_STRIP="strip"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2858 if test -n "$ac_ct_STRIP"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2860 $as_echo "$ac_ct_STRIP" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2866 if test "x$ac_ct_STRIP" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2878 STRIP="$ac_cv_prog_STRIP"
2882 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2885 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2886 if test -z "$MKDIR_P"; then
2887 if ${ac_cv_path_mkdir+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2894 test -z "$as_dir" && as_dir=.
2895 for ac_prog in mkdir gmkdir; do
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2898 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2899 'mkdir (GNU coreutils) '* | \
2900 'mkdir (coreutils) '* | \
2901 'mkdir (fileutils) '4.1*)
2902 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2912 test -d ./--version && rmdir ./--version
2913 if test "${ac_cv_path_mkdir+set}" = set; then
2914 MKDIR_P="$ac_cv_path_mkdir -p"
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for MKDIR_P within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the value is a relative name.
2920 MKDIR_P="$ac_install_sh -d"
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2924 $as_echo "$MKDIR_P" >&6; }
2926 for ac_prog in gawk mawk nawk awk
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_AWK+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$AWK"; then
2936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_AWK="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$AWK"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2958 $as_echo "$AWK" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$AWK" && break
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 cat >conftest.make <<\_ACEOF
2978 @echo '@@@%%%=$(MAKE)=@@@%%%'
2980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2983 eval ac_cv_prog_make_${ac_make}_set=yes;;
2985 eval ac_cv_prog_make_${ac_make}_set=no;;
2989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991 $as_echo "yes" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 SET_MAKE="MAKE=${MAKE-make}"
2999 rm -rf .tst 2>/dev/null
3000 mkdir .tst 2>/dev/null
3001 if test -d .tst; then
3006 rmdir .tst 2>/dev/null
3008 # Check whether --enable-silent-rules was given.
3009 if test "${enable_silent_rules+set}" = set; then :
3010 enableval=$enable_silent_rules;
3013 case $enable_silent_rules in # (((
3014 yes) AM_DEFAULT_VERBOSITY=0;;
3015 no) AM_DEFAULT_VERBOSITY=1;;
3016 *) AM_DEFAULT_VERBOSITY=1;;
3018 am_make=${MAKE-make}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3020 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3021 if ${am_cv_make_support_nested_variables+:} false; then :
3022 $as_echo_n "(cached) " >&6
3024 if $as_echo 'TRUE=$(BAR$(V))
3030 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3031 am_cv_make_support_nested_variables=yes
3033 am_cv_make_support_nested_variables=no
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3037 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3038 if test $am_cv_make_support_nested_variables = yes; then
3040 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3042 AM_V=$AM_DEFAULT_VERBOSITY
3043 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3047 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3049 # is not polluted with repeated "-I."
3050 am__isrc=' -I$(srcdir)'
3051 # test to see if srcdir already configured
3052 if test -f $srcdir/config.status; then
3053 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3057 # test whether we have cygpath
3058 if test -z "$CYGPATH_W"; then
3059 if (cygpath --version) >/dev/null 2>/dev/null; then
3060 CYGPATH_W='cygpath -w'
3067 # Define the identity of the package.
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE "$PACKAGE"
3077 cat >>confdefs.h <<_ACEOF
3078 #define VERSION "$VERSION"
3081 # Some tools Automake needs.
3083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3097 # For better backward compatibility. To be removed once Automake 1.9.x
3098 # dies out for good. For more background, see:
3099 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3100 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3101 mkdir_p='$(MKDIR_P)'
3103 # We need awk for the "check" target (and possibly the TAP driver). The
3104 # system "awk" is bad on some platforms.
3105 # Always define AMTAR for backward compatibility. Yes, it's still used
3106 # in the wild :-( We should find a proper way to deprecate it ...
3110 # We'll loop over all known methods to create a tar archive until one works.
3111 _am_tools='gnutar pax cpio none'
3113 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3120 # POSIX will say in a future version that running "rm -f" with no argument
3121 # is OK; and we want to be able to make that assumption in our Makefile
3122 # recipes. So use an aggressive probe to check that the usage we want is
3123 # actually supported "in the wild" to an acceptable degree.
3124 # See automake bug#10828.
3125 # To make any issue more visible, cause the running configure to be aborted
3126 # by default if the 'rm' program in use doesn't match our expectations; the
3127 # user can still override this though.
3128 if rm -f && rm -fr && rm -rf; then : OK; else
3132 Your 'rm' program seems unable to run without file operands specified
3133 on the command line, even when the '-f' option is present. This is contrary
3134 to the behaviour of most rm programs out there, and not conforming with
3135 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3137 Please tell bug-automake@gnu.org about your system, including the value
3138 of your $PATH and any error possibly output before this message. This
3139 can help us improve future automake versions.
3142 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3143 echo 'Configuration will proceed anyway, since you have set the' >&2
3144 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3148 Aborting the configuration process, to ensure you take notice of the issue.
3150 You can download and install GNU coreutils to get an 'rm' implementation
3151 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3153 If you want to complete the configuration process using your problematic
3154 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3155 to "yes", and re-run configure.
3158 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3162 ac_config_headers="$ac_config_headers config.h"
3165 # Make sure we can run config.sub.
3166 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3167 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3170 $as_echo_n "checking build system type... " >&6; }
3171 if ${ac_cv_build+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 ac_build_alias=$build_alias
3175 test "x$ac_build_alias" = x &&
3176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3177 test "x$ac_build_alias" = x &&
3178 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3184 $as_echo "$ac_cv_build" >&6; }
3185 case $ac_cv_build in
3187 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3190 ac_save_IFS=$IFS; IFS='-'
3196 # Remember, the first character of IFS is used to create $*,
3197 # except with old shells:
3200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3204 $as_echo_n "checking host system type... " >&6; }
3205 if ${ac_cv_host+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test "x$host_alias" = x; then
3209 ac_cv_host=$ac_cv_build
3211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3212 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3217 $as_echo "$ac_cv_host" >&6; }
3220 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3223 ac_save_IFS=$IFS; IFS='-'
3229 # Remember, the first character of IFS is used to create $*,
3230 # except with old shells:
3233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3241 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3243 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3245 if test "$hostname"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3247 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3250 date=`date +%Y%m%d-%H%M%S`
3251 if test "$?" != 0; then
3254 if test "$date"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3256 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3260 DEPDIR="${am__leading_dot}deps"
3262 ac_config_commands="$ac_config_commands depfiles"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3265 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3266 cat > confinc.mk << 'END'
3268 @echo this is the am__doit target >confinc.out
3273 # BSD make does it like this.
3274 echo '.include "confinc.mk" # ignored' > confmf.BSD
3275 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3276 echo 'include confinc.mk # ignored' > confmf.GNU
3278 for s in GNU BSD; do
3279 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3280 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }
3284 case $?:`cat confinc.out 2>/dev/null` in #(
3285 '0:this is the am__doit target') :
3288 am__include='.include' am__quote='"' ;; #(
3290 am__include='include' am__quote='' ;;
3295 if test "$am__include" != "#"; then
3296 _am_result="yes ($s style)"
3300 rm -f confinc.* confmf.*
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3302 $as_echo "${_am_result}" >&6; }
3304 # Check whether --enable-dependency-tracking was given.
3305 if test "${enable_dependency_tracking+set}" = set; then :
3306 enableval=$enable_dependency_tracking;
3309 if test "x$enable_dependency_tracking" != xno; then
3310 am_depcomp="$ac_aux_dir/depcomp"
3314 if test "x$enable_dependency_tracking" != xno; then
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3367 if test -z "$ac_cv_prog_CC"; then
3369 # Extract the first word of "gcc", so it can be a program name with args.
3370 set dummy gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$ac_ct_CC"; then
3377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_CC="gcc"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3405 if test "x$ac_ct_CC" = x; then
3408 case $cross_compiling:$ac_tool_warned in
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3420 if test -z "$CC"; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}cc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if ${ac_cv_prog_CC+:} false; then :
3427 $as_echo_n "(cached) " >&6
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_CC="${ac_tool_prefix}cc"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3461 if test -z "$CC"; then
3462 # Extract the first word of "cc", so it can be a program name with args.
3463 set dummy cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481 ac_prog_rejected=yes
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 if test $ac_prog_rejected = yes; then
3493 # We found a bogon in the path, so make sure we never use it.
3494 set dummy $ac_cv_prog_CC
3496 if test $# != 0; then
3497 # We chose a different compiler from the bogus one.
3498 # However, it has the same basename, so the bogon will be chosen
3499 # first if we set CC to just the basename; use the full file name.
3501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3507 if test -n "$CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 for ac_prog in cl.exe
3521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_CC+:} false; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 if test -n "$CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 $as_echo "$CC" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3558 test -n "$CC" && break
3561 if test -z "$CC"; then
3563 for ac_prog in cl.exe
3565 # Extract the first word of "$ac_prog", so it can be a program name with args.
3566 set dummy $ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$ac_ct_CC"; then
3573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_ac_ct_CC="$ac_prog"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595 $as_echo "$ac_ct_CC" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3602 test -n "$ac_ct_CC" && break
3605 if test "x$ac_ct_CC" = x; then
3608 case $cross_compiling:$ac_tool_warned in
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3621 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error $? "no acceptable C compiler found in \$PATH
3624 See \`config.log' for more details" "$LINENO" 5; }
3626 # Provide some information about the compiler.
3627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3630 for ac_option in --version -v -V -qversion; do
3631 { { ac_try="$ac_compiler $ac_option >&5"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3640 if test -s conftest.err; then
3642 ... rest of stderr output deleted ...
3643 10q' conftest.err >conftest.er1
3644 cat conftest.er1 >&5
3646 rm -f conftest.er1 conftest.err
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 ac_clean_files_save=$ac_clean_files
3663 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3664 # Try to create an executable without -o first, disregard a.out.
3665 # It will help us diagnose broken compilers, and finding out an intuition
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3668 $as_echo_n "checking whether the C compiler works... " >&6; }
3669 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3671 # The possible output files:
3672 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3675 for ac_file in $ac_files
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3684 if { { ac_try="$ac_link_default"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_link_default") 2>&5
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3698 # so that the user can short-circuit this test for compilers unknown to
3700 for ac_file in $ac_files ''
3702 test -f "$ac_file" || continue
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3707 # We found the default executable, but exeext='' is most
3711 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3713 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 # We set ac_cv_exeext here because the later test for it is not
3716 # safe: cross compilers may not add the suffix if given an `-o'
3717 # argument, so we may need to know it at that point already.
3718 # Even if this section looks crufty: it has the advantage of
3725 test "$ac_cv_exeext" = no && ac_cv_exeext=
3730 if test -z "$ac_file"; then :
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error 77 "C compiler cannot create executables
3739 See \`config.log' for more details" "$LINENO" 5; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3745 $as_echo_n "checking for C compiler default output file name... " >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3747 $as_echo "$ac_file" >&6; }
3748 ac_exeext=$ac_cv_exeext
3750 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3751 ac_clean_files=$ac_clean_files_save
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3753 $as_echo_n "checking for suffix of executables... " >&6; }
3754 if { { ac_try="$ac_link"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_link") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; then :
3765 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3766 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3767 # work properly (i.e., refer to `conftest.exe'), while it won't with
3769 for ac_file in conftest.exe conftest conftest.*; do
3770 test -f "$ac_file" || continue
3772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3782 See \`config.log' for more details" "$LINENO" 5; }
3784 rm -f conftest conftest$ac_cv_exeext
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3786 $as_echo "$ac_cv_exeext" >&6; }
3788 rm -f conftest.$ac_ext
3789 EXEEXT=$ac_cv_exeext
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3797 FILE *f = fopen ("conftest.out", "w");
3798 return ferror (f) || fclose (f) != 0;
3804 ac_clean_files="$ac_clean_files conftest.out"
3805 # Check that the compiler produces executables we can run. If not, either
3806 # the compiler is broken, or we cross compile.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3808 $as_echo_n "checking whether we are cross compiling... " >&6; }
3809 if test "$cross_compiling" != yes; then
3810 { { ac_try="$ac_link"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_link") 2>&5
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3821 if { ac_try='./conftest$ac_cv_exeext'
3822 { { case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_try") 2>&5
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; }; then
3834 if test "$cross_compiling" = maybe; then
3837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 as_fn_error $? "cannot run C compiled programs.
3840 If you meant to cross compile, use \`--host'.
3841 See \`config.log' for more details" "$LINENO" 5; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3846 $as_echo "$cross_compiling" >&6; }
3848 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3849 ac_clean_files=$ac_clean_files_save
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3851 $as_echo_n "checking for suffix of object files... " >&6; }
3852 if ${ac_cv_objext+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3866 rm -f conftest.o conftest.obj
3867 if { { ac_try="$ac_compile"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_compile") 2>&5
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
3878 for ac_file in conftest.o conftest.obj conftest.*; do
3879 test -f "$ac_file" || continue;
3881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3887 $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error $? "cannot compute suffix of object files: cannot compile
3893 See \`config.log' for more details" "$LINENO" 5; }
3895 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3898 $as_echo "$ac_cv_objext" >&6; }
3899 OBJEXT=$ac_cv_objext
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3902 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3903 if ${ac_cv_c_compiler_gnu+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3920 if ac_fn_c_try_compile "$LINENO"; then :
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3930 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3931 if test $ac_compiler_gnu = yes; then
3936 ac_test_CFLAGS=${CFLAGS+set}
3937 ac_save_CFLAGS=$CFLAGS
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3940 if ${ac_cv_prog_cc_g+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 ac_save_c_werror_flag=$ac_c_werror_flag
3944 ac_c_werror_flag=yes
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3958 if ac_fn_c_try_compile "$LINENO"; then :
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3973 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_c_werror_flag=$ac_save_c_werror_flag
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3989 if ac_fn_c_try_compile "$LINENO"; then :
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4000 $as_echo "$ac_cv_prog_cc_g" >&6; }
4001 if test "$ac_test_CFLAGS" = set; then
4002 CFLAGS=$ac_save_CFLAGS
4003 elif test $ac_cv_prog_cc_g = yes; then
4004 if test "$GCC" = yes; then
4010 if test "$GCC" = yes; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4018 if ${ac_cv_prog_cc_c89+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 ac_cv_prog_cc_c89=no
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4042 s = g (p, va_arg (v,int));
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4048 function prototypes and stuff, but not '\xHH' hex character constants.
4049 These don't provoke an error unfortunately, instead are silently treated
4050 as 'x'. The following induces an error, until -std is added to get
4051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4052 array size at least. It's necessary to write '\x00'==0 to get something
4053 that's true only with -std. */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057 inside strings and character constants. */
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4078 CC="$ac_save_CC $ac_arg"
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_cv_prog_cc_c89=$ac_arg
4082 rm -f core conftest.err conftest.$ac_objext
4083 test "x$ac_cv_prog_cc_c89" != "xno" && break
4085 rm -f conftest.$ac_ext
4090 case "x$ac_cv_prog_cc_c89" in
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093 $as_echo "none needed" >&6; } ;;
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4096 $as_echo "unsupported" >&6; } ;;
4098 CC="$CC $ac_cv_prog_cc_c89"
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4100 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4102 if test "x$ac_cv_prog_cc_c89" != xno; then :
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4118 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4119 if ${am_cv_prog_cc_c_o+:} false; then :
4120 $as_echo_n "(cached) " >&6
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 # Make sure it works both with $CC and with simple cc.
4134 # Following AC_PROG_CC_C_O, we do the test twice because some
4135 # compilers refuse to overwrite an existing .o file with -o,
4136 # though they will create one.
4137 am_cv_prog_cc_c_o=yes
4139 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4140 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } \
4144 && test -f conftest2.$ac_objext; then
4147 am_cv_prog_cc_c_o=no
4151 rm -f core conftest*
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4155 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4156 if test "$am_cv_prog_cc_c_o" != yes; then
4157 # Losing compiler, so override with the script.
4158 # FIXME: It is wrong to rewrite CC.
4159 # But if we don't then we get into trouble of one sort or another.
4160 # A longer-term fix would be to have automake use am__CC in this case,
4161 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4162 CC="$am_aux_dir/compile $CC"
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 depcc="$CC" am_compiler_list=
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4174 $as_echo_n "checking dependency style of $depcc... " >&6; }
4175 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4176 $as_echo_n "(cached) " >&6
4178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4179 # We make a subdir and do the tests there. Otherwise we can end up
4180 # making bogus files that we don't know about and never remove. For
4181 # instance it was reported that on HP-UX the gcc test will end up
4182 # making a dummy file named 'D' -- because '-MD' means "put the output
4186 # Copy depcomp to subdir because otherwise we won't find it if we're
4187 # using a relative directory.
4188 cp "$am_depcomp" conftest.dir
4190 # We will build objects and dependencies in a subdirectory because
4191 # it helps to detect inapplicable dependency modes. For instance
4192 # both Tru64's cc and ICC support -MD to output dependencies as a
4193 # side effect of compilation, but ICC will put the dependencies in
4194 # the current directory while Tru64 will put them in the object
4198 am_cv_CC_dependencies_compiler_type=none
4199 if test "$am_compiler_list" = ""; then
4200 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4203 case " $depcc " in #(
4204 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4207 for depmode in $am_compiler_list; do
4208 # Setup a source with many dependencies, because some compilers
4209 # like to wrap large dependency lists on column 80 (with \), and
4210 # we should not choose a depcomp mode which is confused by this.
4212 # We need to recreate these files for each test, as the compiler may
4213 # overwrite some of them when testing with obscure command lines.
4214 # This happens at least with the AIX C compiler.
4216 for i in 1 2 3 4 5 6; do
4217 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4218 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4219 # Solaris 10 /bin/sh.
4220 echo '/* dummy */' > sub/conftst$i.h
4222 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4224 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4225 # mode. It turns out that the SunPro C++ compiler does not properly
4226 # handle '-M -o', and we need to detect this. Also, some Intel
4227 # versions had trouble with output in subdirs.
4228 am__obj=sub/conftest.${OBJEXT-o}
4229 am__minus_obj="-o $am__obj"
4232 # This depmode causes a compiler race in universal mode.
4233 test "$am__universal" = false || continue
4236 # After this tag, mechanisms are not by side-effect, so they'll
4237 # only be used when explicitly requested.
4238 if test "x$enable_dependency_tracking" = xyes; then
4244 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4245 # This compiler won't grok '-c -o', but also, the minuso test has
4246 # not run yet. These depmodes are late enough in the game, and
4247 # so weak that their functioning should not be impacted.
4248 am__obj=conftest.${OBJEXT-o}
4253 if depmode=$depmode \
4254 source=sub/conftest.c object=$am__obj \
4255 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4256 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4257 >/dev/null 2>conftest.err &&
4258 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4260 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4262 # icc doesn't choke on unknown options, it will just issue warnings
4263 # or remarks (even with -Werror). So we grep stderr for any message
4264 # that says an option was ignored or not supported.
4265 # When given -MP, icc 7.0 and 7.1 complain thusly:
4266 # icc: Command line warning: ignoring option '-M'; no argument required
4267 # The diagnosis changed in icc 8.0:
4268 # icc: Command line remark: option '-MP' not supported
4269 if (grep 'ignoring option' conftest.err ||
4270 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4271 am_cv_CC_dependencies_compiler_type=$depmode
4280 am_cv_CC_dependencies_compiler_type=none
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4285 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4286 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4289 test "x$enable_dependency_tracking" != xno \
4290 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4292 am__fastdepCC_FALSE='#'
4294 am__fastdepCC_TRUE='#'
4295 am__fastdepCC_FALSE=
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4307 # On Suns, sometimes $CPP names a directory.
4308 if test -n "$CPP" && test -d "$CPP"; then
4311 if test -z "$CPP"; then
4312 if ${ac_cv_prog_CPP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 # Double quotes because CPP needs to be expanded
4316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4319 for ac_c_preproc_warn_flag in '' yes
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4330 # include <limits.h>
4332 # include <assert.h>
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4339 # Broken: fails on valid input.
4342 rm -f conftest.err conftest.i conftest.$ac_ext
4344 # OK, works on sane cases. Now check whether nonexistent headers
4345 # can be detected and how.
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <ac_nonexistent.h>
4350 if ac_fn_c_try_cpp "$LINENO"; then :
4351 # Broken: success on invalid input.
4354 # Passes both tests.
4358 rm -f conftest.err conftest.i conftest.$ac_ext
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.i conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then :
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4376 $as_echo "$CPP" >&6; }
4378 for ac_c_preproc_warn_flag in '' yes
4380 # Use a header file that comes with gcc, so configuring glibc
4381 # with a fresh cross-compiler works.
4382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4383 # <limits.h> exists even on freestanding compilers.
4384 # On the NeXT, cc -E runs the code through the compiler's parser,
4385 # not just through cpp. "Syntax error" is here to catch this case.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4389 # include <limits.h>
4391 # include <assert.h>
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4398 # Broken: fails on valid input.
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4403 # OK, works on sane cases. Now check whether nonexistent headers
4404 # can be detected and how.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <ac_nonexistent.h>
4409 if ac_fn_c_try_cpp "$LINENO"; then :
4410 # Broken: success on invalid input.
4413 # Passes both tests.
4417 rm -f conftest.err conftest.i conftest.$ac_ext
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.i conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then :
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details" "$LINENO" 5; }
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440 if ${ac_cv_path_GREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 as_fn_executable_p "$ac_path_GREP" || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462 $as_echo_n 0123456789 >"conftest.in"
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 $ac_path_GREP_found && break 3
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 ac_cv_path_GREP=$GREP
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497 $as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if ${ac_cv_path_EGREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 as_fn_executable_p "$ac_path_EGREP" || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4528 $as_echo_n 0123456789 >"conftest.in"
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 $ac_path_EGREP_found && break 3
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558 ac_cv_path_EGREP=$EGREP
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4569 $as_echo_n "checking for ANSI C header files... " >&6; }
4570 if ${ac_cv_header_stdc+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_header_stdc=yes
4591 ac_cv_header_stdc=no
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 if test $ac_cv_header_stdc = yes; then
4596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "memchr" >/dev/null 2>&1; then :
4606 ac_cv_header_stdc=no
4612 if test $ac_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "free" >/dev/null 2>&1; then :
4623 ac_cv_header_stdc=no
4629 if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then :
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4638 #if ((' ' & 0x0FF) == 0x020)
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4642 # define ISLOWER(c) \
4643 (('a' <= (c) && (c) <= 'i') \
4644 || ('j' <= (c) && (c) <= 'r') \
4645 || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4654 for (i = 0; i < 256; i++)
4655 if (XOR (islower (i), ISLOWER (i))
4656 || toupper (i) != TOUPPER (i))
4661 if ac_fn_c_try_run "$LINENO"; then :
4664 ac_cv_header_stdc=no
4666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4667 conftest.$ac_objext conftest.beam conftest.$ac_ext
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4673 $as_echo "$ac_cv_header_stdc" >&6; }
4674 if test $ac_cv_header_stdc = yes; then
4676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4682 inttypes.h stdint.h unistd.h
4684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4688 cat >>confdefs.h <<_ACEOF
4689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4699 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4706 if test "$MINIX" = yes; then
4708 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4711 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4714 $as_echo "#define _MINIX 1" >>confdefs.h
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4720 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4721 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4722 $as_echo_n "(cached) " >&6
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4727 # define __EXTENSIONS__ 1
4728 $ac_includes_default
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_safe_to_define___extensions__=yes
4740 ac_cv_safe_to_define___extensions__=no
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4745 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4746 test $ac_cv_safe_to_define___extensions__ = yes &&
4747 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4749 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4751 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4753 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4755 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4759 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
4762 if test -n "$LD_LIBRARY_PATH"; then
4763 saved_LDFLAGS="$LDFLAGS"
4764 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
4765 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
4767 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4771 int main (void) { return 0; }
4774 if ac_fn_c_try_link "$LINENO"; then :
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
4776 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 LDADD_FOR_TESTS_KLUDGE=""
4783 rm -f core conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 LDFLAGS="$saved_LDFLAGS"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4795 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4800 macro_version='2.4.2'
4801 macro_revision='1.3337'
4815 ltmain="$ac_aux_dir/ltmain.sh"
4817 # Backslashify metacharacters that are still active within
4818 # double-quoted strings.
4819 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4821 # Same as above, but do not quote variable references.
4822 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4824 # Sed substitution to delay expansion of an escaped shell variable in a
4825 # double_quote_subst'ed string.
4826 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4828 # Sed substitution to delay expansion of an escaped single quote.
4829 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4831 # Sed substitution to avoid accidental globbing in evaled expressions
4832 no_glob_subst='s/\*/\\\*/g'
4834 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4839 $as_echo_n "checking how to print strings... " >&6; }
4840 # Test print first, because it will be a builtin if present.
4841 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4842 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4844 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4847 # Use this function as a fallback that always works.
4848 func_fallback_echo ()
4850 eval 'cat <<_LTECHO_EOF
4854 ECHO='func_fallback_echo'
4857 # func_echo_all arg...
4858 # Invoke $ECHO with all args, space-separated.
4865 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4866 $as_echo "printf" >&6; } ;;
4867 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4868 $as_echo "print -r" >&6; } ;;
4869 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4870 $as_echo "cat" >&6; } ;;
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4887 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4888 if ${ac_cv_path_SED+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4892 for ac_i in 1 2 3 4 5 6 7; do
4893 ac_script="$ac_script$as_nl$ac_script"
4895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4896 { ac_script=; unset ac_script;}
4897 if test -z "$SED"; then
4898 ac_path_SED_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in sed gsed; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_SED" || continue
4909 # Check for GNU ac_path_SED and select it if it is found.
4910 # Check for GNU $ac_path_SED
4911 case `"$ac_path_SED" --version 2>&1` in
4913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4916 $as_echo_n 0123456789 >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo '' >> "conftest.nl"
4923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_SED_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_SED="$ac_path_SED"
4929 ac_path_SED_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 $ac_path_SED_found && break 3
4942 if test -z "$ac_cv_path_SED"; then
4943 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4951 $as_echo "$ac_cv_path_SED" >&6; }
4952 SED="$ac_cv_path_SED"
4955 test -z "$SED" && SED=sed
4956 Xsed="$SED -e 1s/^X//"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4969 $as_echo_n "checking for fgrep... " >&6; }
4970 if ${ac_cv_path_FGREP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4974 then ac_cv_path_FGREP="$GREP -F"
4976 if test -z "$FGREP"; then
4977 ac_path_FGREP_found=false
4978 # Loop through the user's path and test for each of PROGNAME-LIST
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4983 test -z "$as_dir" && as_dir=.
4984 for ac_prog in fgrep; do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4987 as_fn_executable_p "$ac_path_FGREP" || continue
4988 # Check for GNU ac_path_FGREP and select it if it is found.
4989 # Check for GNU $ac_path_FGREP
4990 case `"$ac_path_FGREP" --version 2>&1` in
4992 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4995 $as_echo_n 0123456789 >"conftest.in"
4998 cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 mv "conftest.tmp" "conftest.in"
5000 cp "conftest.in" "conftest.nl"
5001 $as_echo 'FGREP' >> "conftest.nl"
5002 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 as_fn_arith $ac_count + 1 && ac_count=$as_val
5005 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5006 # Best one so far, save it but keep looking for a better one
5007 ac_cv_path_FGREP="$ac_path_FGREP"
5008 ac_path_FGREP_max=$ac_count
5010 # 10*(2^10) chars as input seems more than enough
5011 test $ac_count -gt 10 && break
5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5016 $ac_path_FGREP_found && break 3
5021 if test -z "$ac_cv_path_FGREP"; then
5022 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5025 ac_cv_path_FGREP=$FGREP
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5031 $as_echo "$ac_cv_path_FGREP" >&6; }
5032 FGREP="$ac_cv_path_FGREP"
5035 test -z "$GREP" && GREP=grep
5055 # Check whether --with-gnu-ld was given.
5056 if test "${with_gnu_ld+set}" = set; then :
5057 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5063 if test "$GCC" = yes; then
5064 # Check if gcc -print-prog-name=ld gives a path.
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5066 $as_echo_n "checking for ld used by $CC... " >&6; }
5069 # gcc leaves a trailing carriage return which upsets mingw
5070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5075 # Accept absolute paths.
5077 re_direlt='/[^/][^/]*/\.\./'
5078 # Canonicalize the pathname of ld
5079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5083 test -z "$LD" && LD="$ac_prog"
5086 # If it fails, then pretend we aren't using GCC.
5090 # If it is relative, then search for the first ld in PATH.
5094 elif test "$with_gnu_ld" = yes; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5096 $as_echo_n "checking for GNU ld... " >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5099 $as_echo_n "checking for non-GNU ld... " >&6; }
5101 if ${lt_cv_path_LD+:} false; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -z "$LD"; then
5105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5106 for ac_dir in $PATH; do
5108 test -z "$ac_dir" && ac_dir=.
5109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5110 lt_cv_path_LD="$ac_dir/$ac_prog"
5111 # Check to see if the program is GNU ld. I'd rather use --version,
5112 # but apparently some variants of GNU ld only accept -v.
5113 # Break only if it was the GNU/non-GNU ld that we prefer.
5114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5115 *GNU* | *'with BFD'*)
5116 test "$with_gnu_ld" != no && break
5119 test "$with_gnu_ld" != yes && break
5126 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5131 if test -n "$LD"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5133 $as_echo "$LD" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5138 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5140 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5141 if ${lt_cv_prog_gnu_ld+:} false; then :
5142 $as_echo_n "(cached) " >&6
5144 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5145 case `$LD -v 2>&1 </dev/null` in
5146 *GNU* | *'with BFD'*)
5147 lt_cv_prog_gnu_ld=yes
5150 lt_cv_prog_gnu_ld=no
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5155 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5156 with_gnu_ld=$lt_cv_prog_gnu_ld
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5167 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5168 if ${lt_cv_path_NM+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$NM"; then
5172 # Let the user override the test.
5175 lt_nm_to_check="${ac_tool_prefix}nm"
5176 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5177 lt_nm_to_check="$lt_nm_to_check nm"
5179 for lt_tmp_nm in $lt_nm_to_check; do
5180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5181 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5183 test -z "$ac_dir" && ac_dir=.
5184 tmp_nm="$ac_dir/$lt_tmp_nm"
5185 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5186 # Check to see if the nm accepts a BSD-compat flag.
5187 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5188 # nm: unknown option "B" ignored
5189 # Tru64's nm complains that /dev/null is an invalid object file
5190 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5191 */dev/null* | *'Invalid file or object type'*)
5192 lt_cv_path_NM="$tmp_nm -B"
5196 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5198 lt_cv_path_NM="$tmp_nm -p"
5202 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5203 continue # so that we can try to find one that supports BSD flags
5212 : ${lt_cv_path_NM=no}
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5216 $as_echo "$lt_cv_path_NM" >&6; }
5217 if test "$lt_cv_path_NM" != "no"; then
5220 # Didn't find any BSD compatible name lister, look for dumpbin.
5221 if test -n "$DUMPBIN"; then :
5222 # Let the user override the test.
5224 if test -n "$ac_tool_prefix"; then
5225 for ac_prog in dumpbin "link -dump"
5227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_DUMPBIN+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$DUMPBIN"; then
5235 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 DUMPBIN=$ac_cv_prog_DUMPBIN
5255 if test -n "$DUMPBIN"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5257 $as_echo "$DUMPBIN" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 test -n "$DUMPBIN" && break
5267 if test -z "$DUMPBIN"; then
5268 ac_ct_DUMPBIN=$DUMPBIN
5269 for ac_prog in dumpbin "link -dump"
5271 # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5276 $as_echo_n "(cached) " >&6
5278 if test -n "$ac_ct_DUMPBIN"; then
5279 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5299 if test -n "$ac_ct_DUMPBIN"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5301 $as_echo "$ac_ct_DUMPBIN" >&6; }
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5308 test -n "$ac_ct_DUMPBIN" && break
5311 if test "x$ac_ct_DUMPBIN" = x; then
5314 case $cross_compiling:$ac_tool_warned in
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned=yes ;;
5320 DUMPBIN=$ac_ct_DUMPBIN
5324 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5326 DUMPBIN="$DUMPBIN -symbols"
5334 if test "$DUMPBIN" != ":"; then
5338 test -z "$NM" && NM=nm
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5346 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5347 if ${lt_cv_nm_interface+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 lt_cv_nm_interface="BSD nm"
5351 echo "int some_variable = 0;" > conftest.$ac_ext
5352 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5353 (eval "$ac_compile" 2>conftest.err)
5354 cat conftest.err >&5
5355 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5356 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5357 cat conftest.err >&5
5358 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5359 cat conftest.out >&5
5360 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5361 lt_cv_nm_interface="MS dumpbin"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5366 $as_echo "$lt_cv_nm_interface" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5369 $as_echo_n "checking whether ln -s works... " >&6; }
5371 if test "$LN_S" = "ln -s"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5376 $as_echo "no, using $LN_S" >&6; }
5379 # find the maximum length of command line arguments
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5381 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5382 if ${lt_cv_sys_max_cmd_len+:} false; then :
5383 $as_echo_n "(cached) " >&6
5390 # On DJGPP, this test can blow up pretty badly due to problems in libc
5391 # (any single argument exceeding 2000 bytes causes a buffer overrun
5392 # during glob expansion). Even if it were fixed, the result of this
5393 # check would be larger than it should be.
5394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5398 # Under GNU Hurd, this test is not required because there is
5399 # no limit to the length of command line arguments.
5400 # Libtool will interpret -1 as no limit whatsoever
5401 lt_cv_sys_max_cmd_len=-1;
5404 cygwin* | mingw* | cegcc*)
5405 # On Win9x/ME, this test blows up -- it succeeds, but takes
5406 # about 5 minutes as the teststring grows exponentially.
5407 # Worse, since 9x/ME are not pre-emptively multitasking,
5408 # you end up with a "frozen" computer, even though with patience
5409 # the test eventually succeeds (with a max line length of 256k).
5410 # Instead, let's just punt: use the minimum linelength reported by
5411 # all of the supported platforms: 8192 (on NT/2K/XP).
5412 lt_cv_sys_max_cmd_len=8192;
5416 # On MiNT this can take a long time and run out of memory.
5417 lt_cv_sys_max_cmd_len=8192;
5421 # On AmigaOS with pdksh, this test takes hours, literally.
5422 # So we just punt and use a minimum line length of 8192.
5423 lt_cv_sys_max_cmd_len=8192;
5426 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5427 # This has been around since 386BSD, at least. Likely further.
5428 if test -x /sbin/sysctl; then
5429 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5430 elif test -x /usr/sbin/sysctl; then
5431 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5433 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5435 # And add a safety zone
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5442 lt_cv_sys_max_cmd_len=196608
5446 # The test takes a long time on OS/2.
5447 lt_cv_sys_max_cmd_len=8192
5451 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5452 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5453 # nice to cause kernel panics so lets avoid the loop below.
5454 # First set a reasonable default.
5455 lt_cv_sys_max_cmd_len=16384
5457 if test -x /sbin/sysconfig; then
5458 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5459 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5464 lt_cv_sys_max_cmd_len=102400
5466 sysv5* | sco5v6* | sysv4.2uw2*)
5467 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5468 if test -n "$kargmax"; then
5469 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5471 lt_cv_sys_max_cmd_len=32768
5475 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5476 if test -n "$lt_cv_sys_max_cmd_len"; then
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5480 # Make teststring a little bigger before we do anything with it.
5481 # a 1K string should be a reasonable start.
5482 for i in 1 2 3 4 5 6 7 8 ; do
5483 teststring=$teststring$teststring
5485 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5486 # If test is not a shell built-in, we'll probably end up computing a
5487 # maximum length that is only half of the actual maximum length, but
5489 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5490 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5491 test $i != 17 # 1/2 MB should be enough
5494 teststring=$teststring$teststring
5496 # Only check the string length outside the loop.
5497 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5499 # Add a significant safety factor because C++ compilers can tack on
5500 # massive amounts of additional arguments before passing them to the
5501 # linker. It appears as though 1/2 is a usable value.
5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5509 if test -n $lt_cv_sys_max_cmd_len ; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5511 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514 $as_echo "none" >&6; }
5516 max_cmd_len=$lt_cv_sys_max_cmd_len
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5528 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5529 # Try some XSI features
5532 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5534 && eval 'test $(( 1 + 1 )) -eq 2 \
5535 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5538 $as_echo "$xsi_shell" >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5542 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5544 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5546 && lt_shell_append=yes
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5548 $as_echo "$lt_shell_append" >&6; }
5551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5561 # test EBCDIC or ASCII
5562 case `echo X|tr X '\101'` in
5563 A) # ASCII based system
5564 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5565 lt_SP2NL='tr \040 \012'
5566 lt_NL2SP='tr \015\012 \040\040'
5568 *) # EBCDIC based system
5569 lt_SP2NL='tr \100 \n'
5570 lt_NL2SP='tr \r\n \100\100'
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5583 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5584 if ${lt_cv_to_host_file_cmd+:} false; then :
5585 $as_echo_n "(cached) " >&6
5590 *-*-mingw* ) # actually msys
5591 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5594 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5596 * ) # otherwise, assume *nix
5597 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5603 *-*-mingw* ) # actually msys
5604 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5607 lt_cv_to_host_file_cmd=func_convert_file_noop
5609 * ) # otherwise, assume *nix
5610 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5614 * ) # unhandled hosts (and "normal" native builds)
5615 lt_cv_to_host_file_cmd=func_convert_file_noop
5621 to_host_file_cmd=$lt_cv_to_host_file_cmd
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5623 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5630 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5631 if ${lt_cv_to_tool_file_cmd+:} false; then :
5632 $as_echo_n "(cached) " >&6
5634 #assume ordinary cross tools, or native build.
5635 lt_cv_to_tool_file_cmd=func_convert_file_noop
5639 *-*-mingw* ) # actually msys
5640 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5648 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5650 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5657 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5658 if ${lt_cv_ld_reload_flag+:} false; then :
5659 $as_echo_n "(cached) " >&6
5661 lt_cv_ld_reload_flag='-r'
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5664 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5665 reload_flag=$lt_cv_ld_reload_flag
5666 case $reload_flag in
5668 *) reload_flag=" $reload_flag" ;;
5670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5672 cygwin* | mingw* | pw32* | cegcc*)
5673 if test "$GCC" != yes; then
5678 if test "$GCC" = yes; then
5679 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5681 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_OBJDUMP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$OBJDUMP"; then
5703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 OBJDUMP=$ac_cv_prog_OBJDUMP
5723 if test -n "$OBJDUMP"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5725 $as_echo "$OBJDUMP" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5733 if test -z "$ac_cv_prog_OBJDUMP"; then
5734 ac_ct_OBJDUMP=$OBJDUMP
5735 # Extract the first word of "objdump", so it can be a program name with args.
5736 set dummy objdump; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5740 $as_echo_n "(cached) " >&6
5742 if test -n "$ac_ct_OBJDUMP"; then
5743 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5763 if test -n "$ac_ct_OBJDUMP"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5765 $as_echo "$ac_ct_OBJDUMP" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5771 if test "x$ac_ct_OBJDUMP" = x; then
5774 case $cross_compiling:$ac_tool_warned in
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778 ac_tool_warned=yes ;;
5780 OBJDUMP=$ac_ct_OBJDUMP
5783 OBJDUMP="$ac_cv_prog_OBJDUMP"
5786 test -z "$OBJDUMP" && OBJDUMP=objdump
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795 if ${lt_cv_deplibs_check_method+:} false; then :
5796 $as_echo_n "(cached) " >&6
5798 lt_cv_file_magic_cmd='$MAGIC_CMD'
5799 lt_cv_file_magic_test_file=
5800 lt_cv_deplibs_check_method='unknown'
5801 # Need to set the preceding variable on all platforms that support
5802 # interlibrary dependencies.
5803 # 'none' -- dependencies not supported.
5804 # `unknown' -- same as none, but documents that we really don't know.
5805 # 'pass_all' -- all dependencies passed with no checks.
5806 # 'test_compile' -- check by making test program.
5807 # 'file_magic [[regex]]' -- check by looking for files in library path
5808 # which responds to the $file_magic_cmd with a given extended regex.
5809 # If you have `file' or equivalent on your system and you're not sure
5810 # whether `pass_all' will *always* work, you probably want this one.
5814 lt_cv_deplibs_check_method=pass_all
5818 lt_cv_deplibs_check_method=pass_all
5822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823 lt_cv_file_magic_cmd='/usr/bin/file -L'
5824 lt_cv_file_magic_test_file=/shlib/libc.so
5828 # func_win32_libid is a shell function defined in ltmain.sh
5829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830 lt_cv_file_magic_cmd='func_win32_libid'
5834 # Base MSYS/MinGW do not provide the 'file' command needed by
5835 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836 # unless we find 'file', for example because we are cross-compiling.
5837 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5838 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5840 lt_cv_file_magic_cmd='func_win32_libid'
5842 # Keep this pattern in sync with the one in func_win32_libid.
5843 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5844 lt_cv_file_magic_cmd='$OBJDUMP -f'
5849 # use the weaker test based on 'objdump'. See mingw*.
5850 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5851 lt_cv_file_magic_cmd='$OBJDUMP -f'
5854 darwin* | rhapsody*)
5855 lt_cv_deplibs_check_method=pass_all
5858 freebsd* | dragonfly*)
5859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5862 # Not sure whether the presence of OpenBSD here was a mistake.
5863 # Let's accept both of them until this is cleared up.
5864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5865 lt_cv_file_magic_cmd=/usr/bin/file
5866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5870 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method=pass_all
5882 hpux10.20* | hpux11*)
5883 lt_cv_file_magic_cmd=/usr/bin/file
5886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5891 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5901 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5905 irix5* | irix6* | nonstopux*)
5907 *-32|*"-32 ") libmagic=32-bit;;
5908 *-n32|*"-n32 ") libmagic=N32;;
5909 *-64|*"-64 ") libmagic=64-bit;;
5910 *) libmagic=never-match;;
5912 lt_cv_deplibs_check_method=pass_all
5915 # This must be glibc/ELF.
5916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5917 lt_cv_deplibs_check_method=pass_all
5920 netbsd* | netbsdelf*-gnu)
5921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930 lt_cv_file_magic_cmd=/usr/bin/file
5931 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5935 lt_cv_deplibs_check_method=pass_all
5939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5946 osf3* | osf4* | osf5*)
5947 lt_cv_deplibs_check_method=pass_all
5951 lt_cv_deplibs_check_method=pass_all
5955 lt_cv_deplibs_check_method=pass_all
5958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959 lt_cv_deplibs_check_method=pass_all
5963 case $host_vendor in
5965 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]'
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5969 lt_cv_deplibs_check_method=pass_all
5972 lt_cv_file_magic_cmd='/bin/file'
5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5976 lt_cv_file_magic_cmd='/bin/file'
5977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978 lt_cv_file_magic_test_file=/lib/libc.so
5981 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5990 lt_cv_deplibs_check_method=pass_all
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5996 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6000 if test "$build" = "$host"; then
6003 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6006 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6012 file_magic_cmd=$lt_cv_file_magic_cmd
6013 deplibs_check_method=$lt_cv_deplibs_check_method
6014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_DLLTOOL+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$DLLTOOL"; then
6046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 DLLTOOL=$ac_cv_prog_DLLTOOL
6066 if test -n "$DLLTOOL"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068 $as_echo "$DLLTOOL" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6076 if test -z "$ac_cv_prog_DLLTOOL"; then
6077 ac_ct_DLLTOOL=$DLLTOOL
6078 # Extract the first word of "dlltool", so it can be a program name with args.
6079 set dummy dlltool; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$ac_ct_DLLTOOL"; then
6086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106 if test -n "$ac_ct_DLLTOOL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6108 $as_echo "$ac_ct_DLLTOOL" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6114 if test "x$ac_ct_DLLTOOL" = x; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6123 DLLTOOL=$ac_ct_DLLTOOL
6126 DLLTOOL="$ac_cv_prog_DLLTOOL"
6129 test -z "$DLLTOOL" && DLLTOOL=dlltool
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6138 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6139 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6140 $as_echo_n "(cached) " >&6
6142 lt_cv_sharedlib_from_linklib_cmd='unknown'
6145 cygwin* | mingw* | pw32* | cegcc*)
6146 # two different shell functions defined in ltmain.sh
6147 # decide which to use based on capabilities of $DLLTOOL
6148 case `$DLLTOOL --help 2>&1` in
6149 *--identify-strict*)
6150 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6158 # fallback: assume linklib IS sharedlib
6159 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6165 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6166 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6167 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6175 if test -n "$ac_tool_prefix"; then
6178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_AR+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$AR"; then
6186 ac_cv_prog_AR="$AR" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 if test -n "$AR"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6208 $as_echo "$AR" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6215 test -n "$AR" && break
6218 if test -z "$AR"; then
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy $ac_prog; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -n "$ac_ct_AR"; then
6230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_ac_ct_AR="$ac_prog"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250 if test -n "$ac_ct_AR"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252 $as_echo "$ac_ct_AR" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6259 test -n "$ac_ct_AR" && break
6262 if test "x$ac_ct_AR" = x; then
6265 case $cross_compiling:$ac_tool_warned in
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6289 $as_echo_n "checking for archiver @FILE support... " >&6; }
6290 if ${lt_cv_ar_at_file+:} false; then :
6291 $as_echo_n "(cached) " >&6
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6305 if ac_fn_c_try_compile "$LINENO"; then :
6306 echo conftest.$ac_objext > conftest.lst
6307 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6309 (eval $lt_ar_try) 2>&5
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; }
6313 if test "$ac_status" -eq 0; then
6314 # Ensure the archiver fails upon bogus file names.
6315 rm -f conftest.$ac_objext libconftest.a
6316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6317 (eval $lt_ar_try) 2>&5
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; }
6321 if test "$ac_status" -ne 0; then
6325 rm -f conftest.* libconftest.a
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6332 $as_echo "$lt_cv_ar_at_file" >&6; }
6334 if test "x$lt_cv_ar_at_file" = xno; then
6337 archiver_list_spec=$lt_cv_ar_at_file
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}strip; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_STRIP+:} false; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$STRIP"; then
6355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 STRIP=$ac_cv_prog_STRIP
6375 if test -n "$STRIP"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377 $as_echo "$STRIP" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_STRIP"; then
6387 # Extract the first word of "strip", so it can be a program name with args.
6388 set dummy strip; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$ac_ct_STRIP"; then
6395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_ac_ct_STRIP="strip"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415 if test -n "$ac_ct_STRIP"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417 $as_echo "$ac_ct_STRIP" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_STRIP" = x; then
6426 case $cross_compiling:$ac_tool_warned in
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6435 STRIP="$ac_cv_prog_STRIP"
6438 test -z "$STRIP" && STRIP=:
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_RANLIB+:} false; then :
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$RANLIB"; then
6454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 RANLIB=$ac_cv_prog_RANLIB
6474 if test -n "$RANLIB"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476 $as_echo "$RANLIB" >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6484 if test -z "$ac_cv_prog_RANLIB"; then
6485 ac_ct_RANLIB=$RANLIB
6486 # Extract the first word of "ranlib", so it can be a program name with args.
6487 set dummy ranlib; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$ac_ct_RANLIB"; then
6494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_RANLIB="ranlib"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514 if test -n "$ac_ct_RANLIB"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516 $as_echo "$ac_ct_RANLIB" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6522 if test "x$ac_ct_RANLIB" = x; then
6525 case $cross_compiling:$ac_tool_warned in
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6531 RANLIB=$ac_ct_RANLIB
6534 RANLIB="$ac_cv_prog_RANLIB"
6537 test -z "$RANLIB" && RANLIB=:
6544 # Determine commands to create old-style static archives.
6545 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6546 old_postinstall_cmds='chmod 644 $oldlib'
6547 old_postuninstall_cmds=
6549 if test -n "$RANLIB"; then
6552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6563 lock_old_archive_extraction=yes ;;
6565 lock_old_archive_extraction=no ;;
6606 # If no C compiler was specified, use CC.
6609 # If no C compiler flags were specified, use CFLAGS.
6610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6612 # Allow CC to be a program name with arguments.
6616 # Check for command to grab the raw symbol name followed by C symbol from nm.
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6618 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6619 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6620 $as_echo_n "(cached) " >&6
6623 # These are sane defaults that work on at least a few old systems.
6624 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6626 # Character class describing NM global symbol codes.
6627 symcode='[BCDEGRST]'
6629 # Regexp to match symbols that can be accessed directly from C.
6630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6632 # Define system-specific variables.
6637 cygwin* | mingw* | pw32* | cegcc*)
6638 symcode='[ABCDGISTW]'
6641 if test "$host_cpu" = ia64; then
6642 symcode='[ABCDEGRST]'
6646 symcode='[BCDEGRST]'
6649 symcode='[BCDEGQRST]'
6660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6668 # If we're using GNU nm, then use its standard symbol codes.
6669 case `$NM -V 2>&1` in
6670 *GNU* | *'with BFD'*)
6671 symcode='[ABCDGIRSTW]' ;;
6674 # Transform an extracted symbol line into a proper C declaration.
6675 # Some systems (esp. on ia64) link data and code symbols differently,
6676 # so use this general approach.
6677 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6679 # Transform an extracted symbol line into symbol name and symbol address
6680 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6681 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'"
6683 # Handle CRLF in mingw tool chain
6687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6691 # Try without a prefix underscore, then with it.
6692 for ac_symprfx in "" "_"; do
6694 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6695 symxfrm="\\1 $ac_symprfx\\2 \\2"
6697 # Write the raw and C identifiers.
6698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6699 # Fake it for dumpbin and say T for any non-static function
6700 # and D for any global variable.
6701 # Also find C++ and __fastcall symbols from MSVC++,
6702 # which start with @ or ?.
6703 lt_cv_sys_global_symbol_pipe="$AWK '"\
6704 " {last_section=section; section=\$ 3};"\
6705 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6706 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6707 " \$ 0!~/External *\|/{next};"\
6708 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6709 " {if(hide[section]) next};"\
6710 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6711 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6712 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6713 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6714 " ' prfx=^$ac_symprfx"
6716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6718 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6720 # Check to see that the pipe works correctly.
6724 cat > conftest.$ac_ext <<_LT_EOF
6729 void nm_test_func(void);
6730 void nm_test_func(void){}
6734 int main(){nm_test_var='a';nm_test_func();return(0);}
6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738 (eval $ac_compile) 2>&5
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; then
6742 # Now try to grab the symbols.
6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6745 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; } && test -s "$nlist"; then
6749 # Try sorting and uniquifying the output.
6750 if sort "$nlist" | uniq > "$nlist"T; then
6751 mv -f "$nlist"T "$nlist"
6756 # Make sure that we snagged all the symbols we need.
6757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6759 cat <<_LT_EOF > conftest.$ac_ext
6760 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6761 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6762 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6763 relocations are performed -- see ld's documentation on pseudo-relocs. */
6764 # define LT_DLSYM_CONST
6765 #elif defined(__osf__)
6766 /* This system does not cope well with relocations in const data. */
6767 # define LT_DLSYM_CONST
6769 # define LT_DLSYM_CONST const
6777 # Now generate the symbol file.
6778 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6780 cat <<_LT_EOF >> conftest.$ac_ext
6782 /* The mapping between symbol names and symbols. */
6783 LT_DLSYM_CONST struct {
6787 lt__PROGRAM__LTX_preloaded_symbols[] =
6789 { "@PROGRAM@", (void *) 0 },
6791 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6792 cat <<\_LT_EOF >> conftest.$ac_ext
6796 /* This works around a problem in FreeBSD linker */
6797 #ifdef FREEBSD_WORKAROUND
6798 static const void *lt_preloaded_setup() {
6799 return lt__PROGRAM__LTX_preloaded_symbols;
6807 # Now try linking the two files.
6808 mv conftest.$ac_objext conftstm.$ac_objext
6809 lt_globsym_save_LIBS=$LIBS
6810 lt_globsym_save_CFLAGS=$CFLAGS
6811 LIBS="conftstm.$ac_objext"
6812 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6814 (eval $ac_link) 2>&5
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6820 LIBS=$lt_globsym_save_LIBS
6821 CFLAGS=$lt_globsym_save_CFLAGS
6823 echo "cannot find nm_test_func in $nlist" >&5
6826 echo "cannot find nm_test_var in $nlist" >&5
6829 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6832 echo "$progname: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 rm -rf conftest* conftst*
6837 # Do not use the global_symbol_pipe unless it works.
6838 if test "$pipe_works" = yes; then
6841 lt_cv_sys_global_symbol_pipe=
6847 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6848 lt_cv_sys_global_symbol_to_cdecl=
6850 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6852 $as_echo "failed" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6855 $as_echo "ok" >&6; }
6858 # Response file support.
6859 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860 nm_file_list_spec='@'
6861 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6862 nm_file_list_spec='@'
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6892 $as_echo_n "checking for sysroot... " >&6; }
6894 # Check whether --with-sysroot was given.
6895 if test "${with_sysroot+set}" = set; then :
6896 withval=$with_sysroot;
6903 case ${with_sysroot} in #(
6905 if test "$GCC" = yes; then
6906 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6910 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6916 $as_echo "${with_sysroot}" >&6; }
6917 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6922 $as_echo "${lt_sysroot:-no}" >&6; }
6928 # Check whether --enable-libtool-lock was given.
6929 if test "${enable_libtool_lock+set}" = set; then :
6930 enableval=$enable_libtool_lock;
6933 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6935 # Some flags need to be propagated to the compiler or linker for good
6939 # Find out which ABI we are using.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 case `/usr/bin/file conftest.$ac_objext` in
6958 # Find out which ABI we are using.
6959 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 if test "$lt_cv_prog_gnu_ld" = yes; then
6966 case `/usr/bin/file conftest.$ac_objext` in
6968 LD="${LD-ld} -melf32bsmip"
6971 LD="${LD-ld} -melf32bmipn32"
6974 LD="${LD-ld} -melf64bmip"
6978 case `/usr/bin/file conftest.$ac_objext` in
6994 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 case `/usr/bin/file conftest.o` in
7006 x86_64-*kfreebsd*-gnu)
7007 LD="${LD-ld} -m elf_i386_fbsd"
7010 LD="${LD-ld} -m elf_i386"
7013 LD="${LD-ld} -m elf32lppclinux"
7016 LD="${LD-ld} -m elf32ppclinux"
7019 LD="${LD-ld} -m elf_s390"
7022 LD="${LD-ld} -m elf32_sparc"
7028 x86_64-*kfreebsd*-gnu)
7029 LD="${LD-ld} -m elf_x86_64_fbsd"
7032 LD="${LD-ld} -m elf_x86_64"
7035 LD="${LD-ld} -m elf64lppc"
7038 LD="${LD-ld} -m elf64ppc"
7040 s390*-*linux*|s390*-*tpf*)
7041 LD="${LD-ld} -m elf64_s390"
7044 LD="${LD-ld} -m elf64_sparc"
7054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7055 SAVE_CFLAGS="$CFLAGS"
7056 CFLAGS="$CFLAGS -belf"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7059 if ${lt_cv_cc_needs_belf+:} false; then :
7060 $as_echo_n "(cached) " >&6
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 lt_cv_cc_needs_belf=yes
7082 lt_cv_cc_needs_belf=no
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7097 CFLAGS="$SAVE_CFLAGS"
7101 # Find out which ABI we are using.
7102 echo 'int i;' > conftest.$ac_ext
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104 (eval $ac_compile) 2>&5
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 case `/usr/bin/file conftest.o` in
7110 case $lt_cv_prog_gnu_ld in
7114 LD="${LD-ld} -m elf_x86_64"
7117 LD="${LD-ld} -m elf64_sparc"
7120 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7121 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7138 need_locks="$enable_libtool_lock"
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}mt; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7146 $as_echo_n "(cached) " >&6
7148 if test -n "$MANIFEST_TOOL"; then
7149 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7169 if test -n "$MANIFEST_TOOL"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7171 $as_echo "$MANIFEST_TOOL" >&6; }
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7180 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7181 # Extract the first word of "mt", so it can be a program name with args.
7182 set dummy mt; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 if test -n "$ac_ct_MANIFEST_TOOL"; then
7189 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7209 if test -n "$ac_ct_MANIFEST_TOOL"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7217 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7226 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7229 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7235 if ${lt_cv_path_mainfest_tool+:} false; then :
7236 $as_echo_n "(cached) " >&6
7238 lt_cv_path_mainfest_tool=no
7239 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7240 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7241 cat conftest.err >&5
7242 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7243 lt_cv_path_mainfest_tool=yes
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7249 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7259 rhapsody* | darwin*)
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 if test -n "$DSYMUTIL"; then
7269 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289 if test -n "$DSYMUTIL"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7291 $as_echo "$DSYMUTIL" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7299 if test -z "$ac_cv_prog_DSYMUTIL"; then
7300 ac_ct_DSYMUTIL=$DSYMUTIL
7301 # Extract the first word of "dsymutil", so it can be a program name with args.
7302 set dummy dsymutil; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 if test -n "$ac_ct_DSYMUTIL"; then
7309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329 if test -n "$ac_ct_DSYMUTIL"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 if test "x$ac_ct_DSYMUTIL" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7346 DSYMUTIL=$ac_ct_DSYMUTIL
7349 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_NMEDIT+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$NMEDIT"; then
7361 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 NMEDIT=$ac_cv_prog_NMEDIT
7381 if test -n "$NMEDIT"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7383 $as_echo "$NMEDIT" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7391 if test -z "$ac_cv_prog_NMEDIT"; then
7392 ac_ct_NMEDIT=$NMEDIT
7393 # Extract the first word of "nmedit", so it can be a program name with args.
7394 set dummy nmedit; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7398 $as_echo_n "(cached) " >&6
7400 if test -n "$ac_ct_NMEDIT"; then
7401 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7421 if test -n "$ac_ct_NMEDIT"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7423 $as_echo "$ac_ct_NMEDIT" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7429 if test "x$ac_ct_NMEDIT" = x; then
7432 case $cross_compiling:$ac_tool_warned in
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7438 NMEDIT=$ac_ct_NMEDIT
7441 NMEDIT="$ac_cv_prog_NMEDIT"
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_LIPO+:} false; then :
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$LIPO"; then
7453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 LIPO=$ac_cv_prog_LIPO
7473 if test -n "$LIPO"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7475 $as_echo "$LIPO" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7483 if test -z "$ac_cv_prog_LIPO"; then
7485 # Extract the first word of "lipo", so it can be a program name with args.
7486 set dummy lipo; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 if test -n "$ac_ct_LIPO"; then
7493 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_LIPO="lipo"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7513 if test -n "$ac_ct_LIPO"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7515 $as_echo "$ac_ct_LIPO" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7521 if test "x$ac_ct_LIPO" = x; then
7524 case $cross_compiling:$ac_tool_warned in
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7533 LIPO="$ac_cv_prog_LIPO"
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}otool; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_OTOOL+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$OTOOL"; then
7545 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 OTOOL=$ac_cv_prog_OTOOL
7565 if test -n "$OTOOL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7567 $as_echo "$OTOOL" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_OTOOL"; then
7577 # Extract the first word of "otool", so it can be a program name with args.
7578 set dummy otool; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$ac_ct_OTOOL"; then
7585 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_OTOOL="otool"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7605 if test -n "$ac_ct_OTOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7607 $as_echo "$ac_ct_OTOOL" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_OTOOL" = x; then
7616 case $cross_compiling:$ac_tool_warned in
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7625 OTOOL="$ac_cv_prog_OTOOL"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_OTOOL64+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$OTOOL64"; then
7637 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 OTOOL64=$ac_cv_prog_OTOOL64
7657 if test -n "$OTOOL64"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7659 $as_echo "$OTOOL64" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7667 if test -z "$ac_cv_prog_OTOOL64"; then
7668 ac_ct_OTOOL64=$OTOOL64
7669 # Extract the first word of "otool64", so it can be a program name with args.
7670 set dummy otool64; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$ac_ct_OTOOL64"; then
7677 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_OTOOL64="otool64"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7697 if test -n "$ac_ct_OTOOL64"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7699 $as_echo "$ac_ct_OTOOL64" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7705 if test "x$ac_ct_OTOOL64" = x; then
7708 case $cross_compiling:$ac_tool_warned in
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7714 OTOOL64=$ac_ct_OTOOL64
7717 OTOOL64="$ac_cv_prog_OTOOL64"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7747 $as_echo_n "checking for -single_module linker flag... " >&6; }
7748 if ${lt_cv_apple_cc_single_mod+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 lt_cv_apple_cc_single_mod=no
7752 if test -z "${LT_MULTI_MODULE}"; then
7753 # By default we will add the -single_module flag. You can override
7754 # by either setting the environment variable LT_MULTI_MODULE
7755 # non-empty at configure time, or by adding -multi_module to the
7757 rm -rf libconftest.dylib*
7758 echo "int foo(void){return 1;}" > conftest.c
7759 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7760 -dynamiclib -Wl,-single_module conftest.c" >&5
7761 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7762 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7764 # If there is a non-empty error log, and "single_module"
7765 # appears in it, assume the flag caused a linker warning
7766 if test -s conftest.err && $GREP single_module conftest.err; then
7767 cat conftest.err >&5
7768 # Otherwise, if the output was created with a 0 exit code from
7769 # the compiler, it worked.
7770 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7771 lt_cv_apple_cc_single_mod=yes
7773 cat conftest.err >&5
7775 rm -rf libconftest.dylib*
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7785 $as_echo_n "(cached) " >&6
7787 lt_cv_ld_exported_symbols_list=no
7788 save_LDFLAGS=$LDFLAGS
7789 echo "_main" > conftest.sym
7790 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7802 if ac_fn_c_try_link "$LINENO"; then :
7803 lt_cv_ld_exported_symbols_list=yes
7805 lt_cv_ld_exported_symbols_list=no
7807 rm -f core conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 LDFLAGS="$save_LDFLAGS"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7816 $as_echo_n "checking for -force_load linker flag... " >&6; }
7817 if ${lt_cv_ld_force_load+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 lt_cv_ld_force_load=no
7821 cat > conftest.c << _LT_EOF
7822 int forced_loaded() { return 2;}
7824 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7825 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7826 echo "$AR cru libconftest.a conftest.o" >&5
7827 $AR cru libconftest.a conftest.o 2>&5
7828 echo "$RANLIB libconftest.a" >&5
7829 $RANLIB libconftest.a 2>&5
7830 cat > conftest.c << _LT_EOF
7831 int main() { return 0;}
7833 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7834 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7836 if test -s conftest.err && $GREP force_load conftest.err; then
7837 cat conftest.err >&5
7838 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7839 lt_cv_ld_force_load=yes
7841 cat conftest.err >&5
7843 rm -f conftest.err libconftest.a conftest conftest.c
7844 rm -rf conftest.dSYM
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7848 $as_echo "$lt_cv_ld_force_load" >&6; }
7850 rhapsody* | darwin1.[012])
7851 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7853 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7855 case ${MACOSX_DEPLOYMENT_TARGET},$host in
7856 10.[012]*,*|,*powerpc*)
7857 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7859 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7863 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7864 _lt_dar_single_mod='$single_module'
7866 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7867 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7869 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7871 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7872 _lt_dsymutil='~$DSYMUTIL $lib || :'
7879 for ac_header in dlfcn.h
7881 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7883 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_DLFCN_H 1
7897 enable_win32_dll=yes
7900 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}as; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_prog_AS+:} false; then :
7907 $as_echo_n "(cached) " >&6
7909 if test -n "$AS"; then
7910 ac_cv_prog_AS="$AS" # Let the user override the test.
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_AS="${ac_tool_prefix}as"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 if test -n "$AS"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7932 $as_echo "$AS" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7940 if test -z "$ac_cv_prog_AS"; then
7942 # Extract the first word of "as", so it can be a program name with args.
7943 set dummy as; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$ac_ct_AS"; then
7950 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_AS="as"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7970 if test -n "$ac_ct_AS"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7972 $as_echo "$ac_ct_AS" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7978 if test "x$ac_ct_AS" = x; then
7981 case $cross_compiling:$ac_tool_warned in
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985 ac_tool_warned=yes ;;
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_DLLTOOL+:} false; then :
7999 $as_echo_n "(cached) " >&6
8001 if test -n "$DLLTOOL"; then
8002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 DLLTOOL=$ac_cv_prog_DLLTOOL
8022 if test -n "$DLLTOOL"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8024 $as_echo "$DLLTOOL" >&6; }
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8032 if test -z "$ac_cv_prog_DLLTOOL"; then
8033 ac_ct_DLLTOOL=$DLLTOOL
8034 # Extract the first word of "dlltool", so it can be a program name with args.
8035 set dummy dlltool; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8039 $as_echo_n "(cached) " >&6
8041 if test -n "$ac_ct_DLLTOOL"; then
8042 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8062 if test -n "$ac_ct_DLLTOOL"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8064 $as_echo "$ac_ct_DLLTOOL" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8070 if test "x$ac_ct_DLLTOOL" = x; then
8073 case $cross_compiling:$ac_tool_warned in
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8079 DLLTOOL=$ac_ct_DLLTOOL
8082 DLLTOOL="$ac_cv_prog_DLLTOOL"
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_OBJDUMP+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 if test -n "$OBJDUMP"; then
8094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 OBJDUMP=$ac_cv_prog_OBJDUMP
8114 if test -n "$OBJDUMP"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8116 $as_echo "$OBJDUMP" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8124 if test -z "$ac_cv_prog_OBJDUMP"; then
8125 ac_ct_OBJDUMP=$OBJDUMP
8126 # Extract the first word of "objdump", so it can be a program name with args.
8127 set dummy objdump; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8131 $as_echo_n "(cached) " >&6
8133 if test -n "$ac_ct_OBJDUMP"; then
8134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8154 if test -n "$ac_ct_OBJDUMP"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8156 $as_echo "$ac_ct_OBJDUMP" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8162 if test "x$ac_ct_OBJDUMP" = x; then
8165 case $cross_compiling:$ac_tool_warned in
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8171 OBJDUMP=$ac_ct_OBJDUMP
8174 OBJDUMP="$ac_cv_prog_OBJDUMP"
8180 test -z "$AS" && AS=as
8186 test -z "$DLLTOOL" && DLLTOOL=dlltool
8192 test -z "$OBJDUMP" && OBJDUMP=objdump
8197 # Check whether --enable-static was given.
8198 if test "${enable_static+set}" = set; then :
8199 enableval=$enable_static; p=${PACKAGE-default}
8201 yes) enable_static=yes ;;
8202 no) enable_static=no ;;
8205 # Look at the argument we got. We use all the common list separators.
8206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8207 for pkg in $enableval; do
8209 if test "X$pkg" = "X$p"; then
8233 # Check whether --enable-shared was given.
8234 if test "${enable_shared+set}" = set; then :
8235 enableval=$enable_shared; p=${PACKAGE-default}
8237 yes) enable_shared=yes ;;
8238 no) enable_shared=no ;;
8241 # Look at the argument we got. We use all the common list separators.
8242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243 for pkg in $enableval; do
8245 if test "X$pkg" = "X$p"; then
8266 # Check whether --with-pic was given.
8267 if test "${with_pic+set}" = set; then :
8268 withval=$with_pic; lt_p=${PACKAGE-default}
8270 yes|no) pic_mode=$withval ;;
8273 # Look at the argument we got. We use all the common list separators.
8274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275 for lt_pkg in $withval; do
8277 if test "X$lt_pkg" = "X$lt_p"; then
8289 test -z "$pic_mode" && pic_mode=default
8297 # Check whether --enable-fast-install was given.
8298 if test "${enable_fast_install+set}" = set; then :
8299 enableval=$enable_fast_install; p=${PACKAGE-default}
8301 yes) enable_fast_install=yes ;;
8302 no) enable_fast_install=no ;;
8304 enable_fast_install=no
8305 # Look at the argument we got. We use all the common list separators.
8306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307 for pkg in $enableval; do
8309 if test "X$pkg" = "X$p"; then
8310 enable_fast_install=yes
8317 enable_fast_install=yes
8330 # This can be used to rebuild libtool when needed
8331 LIBTOOL_DEPS="$ltmain"
8333 # Always use our own libtool.
8334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8365 test -z "$LN_S" && LN_S="ln -s"
8380 if test -n "${ZSH_VERSION+set}" ; then
8381 setopt NO_GLOB_SUBST
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8385 $as_echo_n "checking for objdir... " >&6; }
8386 if ${lt_cv_objdir+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 rm -f .libs 2>/dev/null
8390 mkdir .libs 2>/dev/null
8391 if test -d .libs; then
8394 # MS-DOS does not allow filenames that begin with a dot.
8397 rmdir .libs 2>/dev/null
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8400 $as_echo "$lt_cv_objdir" >&6; }
8401 objdir=$lt_cv_objdir
8407 cat >>confdefs.h <<_ACEOF
8408 #define LT_OBJDIR "$lt_cv_objdir/"
8416 # AIX sometimes has problems with the GCC collect2 program. For some
8417 # reason, if we set the COLLECT_NAMES environment variable, the problems
8418 # vanish in a puff of smoke.
8419 if test "X${COLLECT_NAMES+set}" != Xset; then
8421 export COLLECT_NAMES
8428 can_build_shared=yes
8430 # All known linkers require a `.a' archive for static linking (except MSVC,
8431 # which needs '.lib').
8434 with_gnu_ld="$lt_cv_prog_gnu_ld"
8437 old_CFLAGS="$CFLAGS"
8439 # Set sane defaults for various variables
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$LD" && LD=ld
8444 test -z "$ac_objext" && ac_objext=o
8446 for cc_temp in $compiler""; do
8448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8454 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8457 # Only perform the check for file, if the check method requires it
8458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8459 case $deplibs_check_method in
8461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8463 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465 $as_echo_n "(cached) " >&6
8469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 lt_save_MAGIC_CMD="$MAGIC_CMD"
8473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir in $ac_dummy; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f $ac_dir/${ac_tool_prefix}file; then
8479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486 $EGREP "$file_magic_regex" > /dev/null; then
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such. This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem. Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8508 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8526 if test -z "$lt_cv_path_MAGIC_CMD"; then
8527 if test -n "$ac_tool_prefix"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8529 $as_echo_n "checking for file... " >&6; }
8530 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8531 $as_echo_n "(cached) " >&6
8535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8538 lt_save_MAGIC_CMD="$MAGIC_CMD"
8539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541 for ac_dir in $ac_dummy; do
8543 test -z "$ac_dir" && ac_dir=.
8544 if test -f $ac_dir/file; then
8545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8546 if test -n "$file_magic_test_file"; then
8547 case $deplibs_check_method in
8549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552 $EGREP "$file_magic_regex" > /dev/null; then
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such. This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem. Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8574 MAGIC_CMD="$lt_save_MAGIC_CMD"
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if test -n "$MAGIC_CMD"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 $as_echo "$MAGIC_CMD" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8598 # Use C for the default configuration in the libtool script
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608 # Source file extension for C test sources.
8611 # Object file extension for compiled C test sources.
8615 # Code to be used in simple compile tests
8616 lt_simple_compile_test_code="int some_variable = 0;"
8618 # Code to be used in simple link tests
8619 lt_simple_link_test_code='int main(){return(0);}'
8627 # If no C compiler was specified, use CC.
8630 # If no C compiler flags were specified, use CFLAGS.
8631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8633 # Allow CC to be a program name with arguments.
8636 # Save the default compiler, since it gets overwritten when the other
8637 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8638 compiler_DEFAULT=$CC
8640 # save warnings/boilerplate of simple test code
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8644 _lt_compiler_boilerplate=`cat conftest.err`
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8650 _lt_linker_boilerplate=`cat conftest.err`
8655 ## There is no encapsulation within the following macros, do not change
8656 ## the running order or otherwise move them around unless you know exactly
8657 ## what you are doing...
8658 if test -n "$compiler"; then
8660 lt_prog_compiler_no_builtin_flag=
8662 if test "$GCC" = yes; then
8663 case $cc_basename in
8665 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8667 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8673 $as_echo_n "(cached) " >&6
8675 lt_cv_prog_compiler_rtti_exceptions=no
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678 lt_compiler_flag="-fno-rtti -fno-exceptions"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 # The option is referenced via a variable to avoid confusing sed.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
8688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689 (eval "$lt_compile" 2>conftest.err)
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 if (exit $ac_status) && test -s "$ac_outfile"; then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings other than the usual output.
8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_rtti_exceptions=yes
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8708 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8721 lt_prog_compiler_wl=
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_static=
8726 if test "$GCC" = yes; then
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_static='-static'
8732 # All AIX code is PIC.
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8742 # see comment about AmigaOS4 .so support
8743 lt_prog_compiler_pic='-fPIC'
8746 # FIXME: we need at least 68020 code to build shared libraries, but
8747 # adding the `-m68020' flag to GCC prevents building anything better,
8749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755 # PIC is the default for these OSes.
8758 mingw* | cygwin* | pw32* | os2* | cegcc*)
8759 # This hack is so that the source file can tell whether it is being
8760 # built for inclusion in a dll (and should export symbols for example).
8761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762 # (--disable-auto-import) libraries
8763 lt_prog_compiler_pic='-DDLL_EXPORT'
8766 darwin* | rhapsody*)
8767 # PIC is the default on this platform
8768 # Common symbols not allowed in MH_DYLIB files
8769 lt_prog_compiler_pic='-fno-common'
8773 # PIC is the default for Haiku.
8774 # The "-static" flag exists, but is broken.
8775 lt_prog_compiler_static=
8779 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8781 # sets the default TLS model and affects inlining.
8787 lt_prog_compiler_pic='-fPIC'
8793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794 # Instead, we relocate shared libraries at runtime.
8798 # Just because we use GCC doesn't mean we suddenly get shared libraries
8799 # on systems that don't support them.
8800 lt_prog_compiler_can_build_shared=no
8805 # QNX uses GNU C++, but need to define -shared option too, otherwise
8807 lt_prog_compiler_pic='-fPIC -shared'
8811 if test -d /usr/nec; then
8812 lt_prog_compiler_pic=-Kconform_pic
8817 lt_prog_compiler_pic='-fPIC'
8821 case $cc_basename in
8822 nvcc*) # Cuda Compiler Driver 2.2
8823 lt_prog_compiler_wl='-Xlinker '
8824 if test -n "$lt_prog_compiler_pic"; then
8825 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8830 # PORTME Check for flag to pass linker flags through the system compiler.
8833 lt_prog_compiler_wl='-Wl,'
8834 if test "$host_cpu" = ia64; then
8835 # AIX 5 now supports IA64 processor
8836 lt_prog_compiler_static='-Bstatic'
8838 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8842 mingw* | cygwin* | pw32* | os2* | cegcc*)
8843 # This hack is so that the source file can tell whether it is being
8844 # built for inclusion in a dll (and should export symbols for example).
8845 lt_prog_compiler_pic='-DDLL_EXPORT'
8848 hpux9* | hpux10* | hpux11*)
8849 lt_prog_compiler_wl='-Wl,'
8850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8857 lt_prog_compiler_pic='+Z'
8860 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8861 lt_prog_compiler_static='${wl}-a ${wl}archive'
8864 irix5* | irix6* | nonstopux*)
8865 lt_prog_compiler_wl='-Wl,'
8866 # PIC (with -KPIC) is the default.
8867 lt_prog_compiler_static='-non_shared'
8870 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8871 case $cc_basename in
8872 # old Intel for x86_64 which still supported -KPIC.
8874 lt_prog_compiler_wl='-Wl,'
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-static'
8878 # icc used to be incompatible with GCC.
8879 # ICC 10 doesn't accept -KPIC any more.
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-fPIC'
8883 lt_prog_compiler_static='-static'
8885 # Lahey Fortran 8.1.
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='--shared'
8889 lt_prog_compiler_static='--static'
8892 # NAG Fortran compiler
8893 lt_prog_compiler_wl='-Wl,-Wl,,'
8894 lt_prog_compiler_pic='-PIC'
8895 lt_prog_compiler_static='-Bstatic'
8897 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8898 # Portland Group compilers (*not* the Pentium gcc compiler,
8899 # which looks to be a dead project)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-fpic'
8902 lt_prog_compiler_static='-Bstatic'
8905 lt_prog_compiler_wl='-Wl,'
8906 # All Alpha code is PIC.
8907 lt_prog_compiler_static='-non_shared'
8909 xl* | bgxl* | bgf* | mpixl*)
8910 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-qpic'
8913 lt_prog_compiler_static='-qstaticlink'
8916 case `$CC -V 2>&1 | sed 5q` in
8917 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8918 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8921 lt_prog_compiler_wl=''
8923 *Sun\ F* | *Sun*Fortran*)
8924 lt_prog_compiler_pic='-KPIC'
8925 lt_prog_compiler_static='-Bstatic'
8926 lt_prog_compiler_wl='-Qoption ld '
8930 lt_prog_compiler_pic='-KPIC'
8931 lt_prog_compiler_static='-Bstatic'
8932 lt_prog_compiler_wl='-Wl,'
8934 *Intel*\ [CF]*Compiler*)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-fPIC'
8937 lt_prog_compiler_static='-static'
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-fpic'
8942 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_pic='-KPIC'
8951 lt_prog_compiler_static='-Bstatic'
8955 # QNX uses GNU C++, but need to define -shared option too, otherwise
8957 lt_prog_compiler_pic='-fPIC -shared'
8960 osf3* | osf4* | osf5*)
8961 lt_prog_compiler_wl='-Wl,'
8962 # All OSF/1 code is PIC.
8963 lt_prog_compiler_static='-non_shared'
8967 lt_prog_compiler_static='-non_shared'
8971 lt_prog_compiler_pic='-KPIC'
8972 lt_prog_compiler_static='-Bstatic'
8973 case $cc_basename in
8974 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8975 lt_prog_compiler_wl='-Qoption ld ';;
8977 lt_prog_compiler_wl='-Wl,';;
8982 lt_prog_compiler_wl='-Qoption ld '
8983 lt_prog_compiler_pic='-PIC'
8984 lt_prog_compiler_static='-Bstatic'
8987 sysv4 | sysv4.2uw2* | sysv4.3*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8994 if test -d /usr/nec ;then
8995 lt_prog_compiler_pic='-Kconform_pic'
8996 lt_prog_compiler_static='-Bstatic'
9000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_can_build_shared=no
9012 lt_prog_compiler_pic='-pic'
9013 lt_prog_compiler_static='-Bstatic'
9017 lt_prog_compiler_can_build_shared=no
9023 # For platforms which do not support PIC, -DPIC is meaningless:
9025 lt_prog_compiler_pic=
9028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034 if ${lt_cv_prog_compiler_pic+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9040 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9041 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9044 # Check to make sure the PIC flag actually works.
9046 if test -n "$lt_prog_compiler_pic"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9049 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 lt_cv_prog_compiler_pic_works=no
9053 ac_outfile=conftest.$ac_objext
9054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9056 # Insert the option either (1) after the last *FLAGS variable, or
9057 # (2) before a word containing "conftest.", or (3) at the end.
9058 # Note that $ac_compile itself does not contain backslashes and begins
9059 # with a dollar sign (not a hyphen), so the echo should work correctly.
9060 # The option is referenced via a variable to avoid confusing sed.
9061 lt_compile=`echo "$ac_compile" | $SED \
9062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064 -e 's:$: $lt_compiler_flag:'`
9065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066 (eval "$lt_compile" 2>conftest.err)
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 if (exit $ac_status) && test -s "$ac_outfile"; then
9071 # The compiler can only warn and ignore the option if not recognized
9072 # So say no if there are warnings other than the usual output.
9073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076 lt_cv_prog_compiler_pic_works=yes
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9085 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9086 case $lt_prog_compiler_pic in
9088 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9091 lt_prog_compiler_pic=
9092 lt_prog_compiler_can_build_shared=no
9108 # Check to make sure the static flag actually works.
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if ${lt_cv_prog_compiler_static_works+:} false; then :
9114 $as_echo_n "(cached) " >&6
9116 lt_cv_prog_compiler_static_works=no
9117 save_LDFLAGS="$LDFLAGS"
9118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121 # The linker can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 if test -s conftest.err; then
9124 # Append any errors to the config.log.
9125 cat conftest.err 1>&5
9126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if diff conftest.exp conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_static_works=yes
9132 lt_cv_prog_compiler_static_works=yes
9136 LDFLAGS="$save_LDFLAGS"
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9145 lt_prog_compiler_static=
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if ${lt_cv_prog_compiler_c_o+:} false; then :
9157 $as_echo_n "(cached) " >&6
9159 lt_cv_prog_compiler_c_o=no
9160 $RM -r conftest 2>/dev/null
9164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9166 lt_compiler_flag="-o out/conftest2.$ac_objext"
9167 # Insert the option either (1) after the last *FLAGS variable, or
9168 # (2) before a word containing "conftest.", or (3) at the end.
9169 # Note that $ac_compile itself does not contain backslashes and begins
9170 # with a dollar sign (not a hyphen), so the echo should work correctly.
9171 lt_compile=`echo "$ac_compile" | $SED \
9172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174 -e 's:$: $lt_compiler_flag:'`
9175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176 (eval "$lt_compile" 2>out/conftest.err)
9178 cat out/conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9182 # The compiler can only warn and ignore the option if not recognized
9183 # So say no if there are warnings
9184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187 lt_cv_prog_compiler_c_o=yes
9192 # SGI C++ compiler will create directory out/ii_files/ for
9193 # template instantiation
9194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195 $RM out/* && rmdir out
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if ${lt_cv_prog_compiler_c_o+:} false; then :
9212 $as_echo_n "(cached) " >&6
9214 lt_cv_prog_compiler_c_o=no
9215 $RM -r conftest 2>/dev/null
9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9221 lt_compiler_flag="-o out/conftest2.$ac_objext"
9222 # Insert the option either (1) after the last *FLAGS variable, or
9223 # (2) before a word containing "conftest.", or (3) at the end.
9224 # Note that $ac_compile itself does not contain backslashes and begins
9225 # with a dollar sign (not a hyphen), so the echo should work correctly.
9226 lt_compile=`echo "$ac_compile" | $SED \
9227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229 -e 's:$: $lt_compiler_flag:'`
9230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231 (eval "$lt_compile" 2>out/conftest.err)
9233 cat out/conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9237 # The compiler can only warn and ignore the option if not recognized
9238 # So say no if there are warnings
9239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242 lt_cv_prog_compiler_c_o=yes
9247 # SGI C++ compiler will create directory out/ii_files/ for
9248 # template instantiation
9249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250 $RM out/* && rmdir out
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264 # do not overwrite the value of need_locks provided by the user
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9271 ln conftest.a conftest.b 2>&5 || hard_links=no
9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275 if test "$hard_links" = no; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9293 allow_undefined_flag=
9294 always_export_symbols=no
9296 archive_expsym_cmds=
9297 compiler_needs_object=no
9298 enable_shared_with_static_runtimes=no
9299 export_dynamic_flag_spec=
9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301 hardcode_automatic=no
9303 hardcode_direct_absolute=no
9304 hardcode_libdir_flag_spec=
9305 hardcode_libdir_separator=
9307 hardcode_shlibpath_var=unsupported
9309 link_all_deplibs=unknown
9312 old_archive_from_new_cmds=
9313 old_archive_from_expsyms_cmds=
9314 thread_safe_flag_spec=
9315 whole_archive_flag_spec=
9316 # include_expsyms should be a list of space-separated symbols to be *always*
9317 # included in the symbol list
9319 # exclude_expsyms can be an extended regexp of symbols to exclude
9320 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9321 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9322 # as well as any symbol that contains `d'.
9323 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9324 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9325 # platforms (ab)use it in PIC code, but their linkers get confused if
9326 # the symbol is explicitly referenced. Since portable code cannot
9327 # rely on this symbol name, it's probably fine to never include it in
9328 # preloaded symbol tables.
9329 # Exclude shared library initialization/finalization symbols.
9330 extract_expsyms_cmds=
9333 cygwin* | mingw* | pw32* | cegcc*)
9334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9335 # When not using gcc, we currently assume that we are using
9336 # Microsoft Visual C++.
9337 if test "$GCC" != yes; then
9342 # we just hope/assume this is gcc and not c89 (= MSVC++)
9348 linux* | k*bsd*-gnu | gnu*)
9355 # On some targets, GNU ld is compatible enough with the native linker
9356 # that we're better off using the native interface for both.
9357 lt_use_gnu_ld_interface=no
9358 if test "$with_gnu_ld" = yes; then
9361 # The AIX port of GNU ld has always aspired to compatibility
9362 # with the native linker. However, as the warning in the GNU ld
9363 # block says, versions before 2.19.5* couldn't really create working
9364 # shared libraries, regardless of the interface used.
9365 case `$LD -v 2>&1` in
9366 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9370 lt_use_gnu_ld_interface=yes
9375 lt_use_gnu_ld_interface=yes
9380 if test "$lt_use_gnu_ld_interface" = yes; then
9381 # If archive_cmds runs LD, not CC, wlarc should be empty
9384 # Set some defaults for GNU ld with shared library support. These
9385 # are reset later if shared libraries are not supported. Putting them
9386 # here allows them to be overridden if necessary.
9387 runpath_var=LD_RUN_PATH
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389 export_dynamic_flag_spec='${wl}--export-dynamic'
9390 # ancient GNU ld didn't support --whole-archive et. al.
9391 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394 whole_archive_flag_spec=
9396 supports_anon_versioning=no
9397 case `$LD -v 2>&1` in
9398 *GNU\ gold*) supports_anon_versioning=yes ;;
9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402 *\ 2.11.*) ;; # other 2.11 versions
9403 *) supports_anon_versioning=yes ;;
9406 # See if GNU ld supports shared libraries.
9409 # On AIX/PPC, the GNU linker is very broken
9410 if test "$host_cpu" != ia64; then
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support. If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9428 # see comment about AmigaOS4 .so support
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 archive_expsym_cmds=''
9433 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)'
9434 hardcode_libdir_flag_spec='-L$libdir'
9435 hardcode_minus_L=yes
9441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442 allow_undefined_flag=unsupported
9443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444 # support --undefined. This deserves some investigation. FIXME
9445 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 cygwin* | mingw* | pw32* | cegcc*)
9452 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453 # as there is no search path for DLLs.
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 export_dynamic_flag_spec='${wl}--export-all-symbols'
9456 allow_undefined_flag=unsupported
9457 always_export_symbols=no
9458 enable_shared_with_static_runtimes=yes
9459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9460 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464 # If the export-symbols file already is a .def file (1st line
9465 # is EXPORTS), use it as is; otherwise, prepend...
9466 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9467 cp $export_symbols $output_objdir/$soname.def;
9469 echo EXPORTS > $output_objdir/$soname.def;
9470 cat $export_symbols >> $output_objdir/$soname.def;
9472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 link_all_deplibs=yes
9485 hardcode_shlibpath_var=no
9486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487 export_dynamic_flag_spec='${wl}-E'
9488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489 # Instead, shared libraries are loaded at an image base (0x10000000 by
9490 # default) and relocated if they conflict, which is a slow very memory
9491 # consuming and fragmenting process. To avoid this, we pick a random,
9492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495 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'
9498 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9500 if test "$host_os" = linux-dietlibc; then
9501 case $cc_basename in
9502 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9505 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506 && test "$tmp_diet" = no
9508 tmp_addflag=' $pic_flag'
9509 tmp_sharedflag='-shared'
9510 case $cc_basename,$host_cpu in
9511 pgcc*) # Portland Group C compiler
9512 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9513 tmp_addflag=' $pic_flag'
9515 pgf77* | pgf90* | pgf95* | pgfortran*)
9516 # Portland Group f77 and f90 compilers
9517 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9518 tmp_addflag=' $pic_flag -Mnomain' ;;
9519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9520 tmp_addflag=' -i_dynamic' ;;
9521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9522 tmp_addflag=' -i_dynamic -nofor_main' ;;
9523 ifc* | ifort*) # Intel Fortran compiler
9524 tmp_addflag=' -nofor_main' ;;
9525 lf95*) # Lahey Fortran 8.1
9526 whole_archive_flag_spec=
9527 tmp_sharedflag='--shared' ;;
9528 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529 tmp_sharedflag='-qmkshrobj'
9531 nvcc*) # Cuda Compiler Driver 2.2
9532 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9533 compiler_needs_object=yes
9536 case `$CC -V 2>&1 | sed 5q` in
9537 *Sun\ C*) # Sun C 5.9
9538 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9539 compiler_needs_object=yes
9540 tmp_sharedflag='-G' ;;
9541 *Sun\ F*) # Sun Fortran 8.3
9542 tmp_sharedflag='-G' ;;
9544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 if test "x$supports_anon_versioning" = xyes; then
9547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549 echo "local: *; };" >> $output_objdir/$libname.ver~
9550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9553 case $cc_basename in
9554 xlf* | bgf* | bgxlf* | mpixlf*)
9555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559 if test "x$supports_anon_versioning" = xyes; then
9560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562 echo "local: *; };" >> $output_objdir/$libname.ver~
9563 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9572 netbsd* | netbsdelf*-gnu)
9573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems. Therefore, libtool
9589 *** is disabling shared libraries support. We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer. Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9595 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604 case `$LD -v 2>&1` in
9605 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems. Therefore, libtool
9611 *** is disabling shared libraries support. We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9619 # For security reasons, it is highly recommended that you always
9620 # use absolute paths for naming shared libraries, and exclude the
9621 # DT_RUNPATH tag from executables and libraries. But doing so
9622 # requires that you compile everything twice, which is a pain.
9623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_shlibpath_var=no
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 if test "$ld_shlibs" = no; then
9653 hardcode_libdir_flag_spec=
9654 export_dynamic_flag_spec=
9655 whole_archive_flag_spec=
9658 # PORTME fill in a description of your system's linker (not GNU ld)
9661 allow_undefined_flag=unsupported
9662 always_export_symbols=yes
9663 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'
9664 # Note: this linker hardcodes the directories in LIBPATH if there
9665 # are no directories specified by -L.
9666 hardcode_minus_L=yes
9667 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668 # Neither direct hardcoding nor static linking is supported with a
9670 hardcode_direct=unsupported
9675 if test "$host_cpu" = ia64; then
9676 # On IA64, the linker does run time linking by default, so we don't
9677 # have to do anything special.
9678 aix_use_runtimelinking=no
9679 exp_sym_flag='-Bexport'
9682 # If we're using GNU nm, then we don't want the "-C" option.
9683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684 # Also, AIX nm treats weak defined symbols like other global
9685 # defined symbols, whereas GNU nm marks them as "W".
9686 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9689 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'
9691 aix_use_runtimelinking=no
9693 # Test if we are trying to use run time linking or normal
9694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695 # need to do runtime linking.
9696 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697 for ld_flag in $LDFLAGS; do
9698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699 aix_use_runtimelinking=yes
9706 exp_sym_flag='-bexport'
9707 no_entry_flag='-bnoentry'
9710 # When large executables or shared objects are built, AIX ld can
9711 # have problems creating the table of contents. If linking a library
9712 # or program results in "error TOC overflow" add -mminimal-toc to
9713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718 hardcode_direct_absolute=yes
9719 hardcode_libdir_separator=':'
9720 link_all_deplibs=yes
9721 file_list_spec='${wl}-f,'
9723 if test "$GCC" = yes; then
9724 case $host_os in aix4.[012]|aix4.[012].*)
9725 # We only want to do this on AIX 4.2 and lower, the check
9726 # below for broken collect2 doesn't work under 4.3+
9727 collect2name=`${CC} -print-prog-name=collect2`
9728 if test -f "$collect2name" &&
9729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9731 # We have reworked collect2
9734 # We have old collect2
9735 hardcode_direct=unsupported
9736 # It fails to find uninstalled libraries when the uninstalled
9737 # path is not listed in the libpath. Setting hardcode_minus_L
9738 # to unsupported forces relinking
9739 hardcode_minus_L=yes
9740 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_libdir_separator=
9745 shared_flag='-shared'
9746 if test "$aix_use_runtimelinking" = yes; then
9747 shared_flag="$shared_flag "'${wl}-G'
9752 if test "$host_cpu" = ia64; then
9753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754 # chokes on -Wl,-G. The following line is correct:
9757 if test "$aix_use_runtimelinking" = yes; then
9758 shared_flag='${wl}-G'
9760 shared_flag='${wl}-bM:SRE'
9765 export_dynamic_flag_spec='${wl}-bexpall'
9766 # It seems that -bexpall does not export symbols beginning with
9767 # underscore (_), so it is better to generate a list of symbols to export.
9768 always_export_symbols=yes
9769 if test "$aix_use_runtimelinking" = yes; then
9770 # Warning - without using the other runtime loading flags (-brtl),
9771 # -berok will link without error, but may produce a broken library.
9772 allow_undefined_flag='-berok'
9773 # Determine the default libpath from the value encoded in an
9775 if test "${lt_cv_aix_libpath+set}" = set; then
9776 aix_libpath=$lt_cv_aix_libpath
9778 if ${lt_cv_aix_libpath_+:} false; then :
9779 $as_echo_n "(cached) " >&6
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9792 if ac_fn_c_try_link "$LINENO"; then :
9794 lt_aix_libpath_sed='
9795 /Import File Strings/,/^$/ {
9797 s/^0 *\([^ ]*\) *$/\1/
9801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 # Check for a 64-bit object if we didn't find anything.
9803 if test -z "$lt_cv_aix_libpath_"; then
9804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$lt_cv_aix_libpath_"; then
9810 lt_cv_aix_libpath_="/usr/lib:/lib"
9815 aix_libpath=$lt_cv_aix_libpath_
9818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9819 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9821 if test "$host_cpu" = ia64; then
9822 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9823 allow_undefined_flag="-z nodefs"
9824 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"
9826 # Determine the default libpath from the value encoded in an
9828 if test "${lt_cv_aix_libpath+set}" = set; then
9829 aix_libpath=$lt_cv_aix_libpath
9831 if ${lt_cv_aix_libpath_+:} false; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9845 if ac_fn_c_try_link "$LINENO"; then :
9847 lt_aix_libpath_sed='
9848 /Import File Strings/,/^$/ {
9850 s/^0 *\([^ ]*\) *$/\1/
9854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 # Check for a 64-bit object if we didn't find anything.
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test -z "$lt_cv_aix_libpath_"; then
9863 lt_cv_aix_libpath_="/usr/lib:/lib"
9868 aix_libpath=$lt_cv_aix_libpath_
9871 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872 # Warning - without using the other run time loading flags,
9873 # -berok will link without error, but may produce a broken library.
9874 no_undefined_flag=' ${wl}-bernotok'
9875 allow_undefined_flag=' ${wl}-berok'
9876 if test "$with_gnu_ld" = yes; then
9877 # We only use this code for GNU lds that support --whole-archive.
9878 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9880 # Exported symbols can be pulled into shared objects from archives
9881 whole_archive_flag_spec='$convenience'
9883 archive_cmds_need_lc=yes
9884 # This is similar to how AIX traditionally builds its shared libraries.
9885 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'
9893 # see comment about AmigaOS4 .so support
9894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895 archive_expsym_cmds=''
9898 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)'
9899 hardcode_libdir_flag_spec='-L$libdir'
9900 hardcode_minus_L=yes
9906 export_dynamic_flag_spec=-rdynamic
9909 cygwin* | mingw* | pw32* | cegcc*)
9910 # When not using gcc, we currently assume that we are using
9911 # Microsoft Visual C++.
9912 # hardcode_libdir_flag_spec is actually meaningless, as there is
9913 # no search path for DLLs.
9914 case $cc_basename in
9917 hardcode_libdir_flag_spec=' '
9918 allow_undefined_flag=unsupported
9919 always_export_symbols=yes
9921 # Tell ltmain to make .lib files, not .a files.
9923 # Tell ltmain to make .dll files, not .so files.
9925 # FIXME: Setting linknames here is a bad hack.
9926 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9927 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9928 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9930 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9932 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9934 # The linker will not automatically build a static lib if we build a DLL.
9935 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9936 enable_shared_with_static_runtimes=yes
9937 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9940 old_postinstall_cmds='chmod 644 $oldlib'
9941 postlink_cmds='lt_outputfile="@OUTPUT@"~
9942 lt_tool_outputfile="@TOOL_OUTPUT@"~
9943 case $lt_outputfile in
9946 lt_outputfile="$lt_outputfile.exe"
9947 lt_tool_outputfile="$lt_tool_outputfile.exe"
9950 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9951 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9952 $RM "$lt_outputfile.manifest";
9956 # Assume MSVC wrapper
9957 hardcode_libdir_flag_spec=' '
9958 allow_undefined_flag=unsupported
9959 # Tell ltmain to make .lib files, not .a files.
9961 # Tell ltmain to make .dll files, not .so files.
9963 # FIXME: Setting linknames here is a bad hack.
9964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9965 # The linker will automatically build a .lib file if we build a DLL.
9966 old_archive_from_new_cmds='true'
9967 # FIXME: Should let the user specify the lib program.
9968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9969 enable_shared_with_static_runtimes=yes
9974 darwin* | rhapsody*)
9977 archive_cmds_need_lc=no
9979 hardcode_automatic=yes
9980 hardcode_shlibpath_var=unsupported
9981 if test "$lt_cv_ld_force_load" = "yes"; then
9982 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9985 whole_archive_flag_spec=''
9987 link_all_deplibs=yes
9988 allow_undefined_flag="$_lt_dar_allow_undefined"
9989 case $cc_basename in
9990 ifort*) _lt_dar_can_shared=yes ;;
9991 *) _lt_dar_can_shared=$GCC ;;
9993 if test "$_lt_dar_can_shared" = "yes"; then
9994 output_verbose_link_cmd=func_echo_all
9995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9997 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}"
9998 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}"
10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_libdir_flag_spec='-L$libdir'
10009 hardcode_shlibpath_var=no
10012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10013 # support. Future versions do this automatically, but an explicit c++rt0.o
10014 # does not break anything, and helps significantly (at the cost of a little
10017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10018 hardcode_libdir_flag_spec='-R$libdir'
10019 hardcode_direct=yes
10020 hardcode_shlibpath_var=no
10023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_direct=yes
10027 hardcode_minus_L=yes
10028 hardcode_shlibpath_var=no
10031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10032 freebsd* | dragonfly*)
10033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10040 if test "$GCC" = yes; then
10041 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10043 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'
10045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046 hardcode_libdir_separator=:
10047 hardcode_direct=yes
10049 # hardcode_minus_L: Not really in the search PATH,
10050 # but as the default location of the library.
10051 hardcode_minus_L=yes
10052 export_dynamic_flag_spec='${wl}-E'
10056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10057 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10061 if test "$with_gnu_ld" = no; then
10062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063 hardcode_libdir_separator=:
10064 hardcode_direct=yes
10065 hardcode_direct_absolute=yes
10066 export_dynamic_flag_spec='${wl}-E'
10067 # hardcode_minus_L: Not really in the search PATH,
10068 # but as the default location of the library.
10069 hardcode_minus_L=yes
10074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10096 # Older versions of the 11.00 compiler do not understand -b yet
10097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099 $as_echo_n "checking if $CC understands -b... " >&6; }
10100 if ${lt_cv_prog_compiler__b+:} false; then :
10101 $as_echo_n "(cached) " >&6
10103 lt_cv_prog_compiler__b=no
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -b"
10106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108 # The linker can only warn and ignore the option if not recognized
10109 # So say no if there are warnings
10110 if test -s conftest.err; then
10111 # Append any errors to the config.log.
10112 cat conftest.err 1>&5
10113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115 if diff conftest.exp conftest.er2 >/dev/null; then
10116 lt_cv_prog_compiler__b=yes
10119 lt_cv_prog_compiler__b=yes
10123 LDFLAGS="$save_LDFLAGS"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10129 if test x"$lt_cv_prog_compiler__b" = xyes; then
10130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10138 if test "$with_gnu_ld" = no; then
10139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140 hardcode_libdir_separator=:
10145 hardcode_shlibpath_var=no
10148 hardcode_direct=yes
10149 hardcode_direct_absolute=yes
10150 export_dynamic_flag_spec='${wl}-E'
10152 # hardcode_minus_L: Not really in the search PATH,
10153 # but as the default location of the library.
10154 hardcode_minus_L=yes
10160 irix5* | irix6* | nonstopux*)
10161 if test "$GCC" = yes; then
10162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10163 # Try to use the -exported_symbol ld option, if it does not
10164 # work, assume that -exports_file does not work either and
10165 # implicitly export all symbols.
10166 # This should be the same for all languages, so no per-tag cache variable.
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10168 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10169 if ${lt_cv_irix_exported_symbol+:} false; then :
10170 $as_echo_n "(cached) " >&6
10172 save_LDFLAGS="$LDFLAGS"
10173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 int foo (void) { return 0; }
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 lt_cv_irix_exported_symbol=yes
10181 lt_cv_irix_exported_symbol=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LDFLAGS="$save_LDFLAGS"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10188 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10189 if test "$lt_cv_irix_exported_symbol" = yes; then
10190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10196 archive_cmds_need_lc='no'
10197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198 hardcode_libdir_separator=:
10200 link_all_deplibs=yes
10203 netbsd* | netbsdelf*-gnu)
10204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 hardcode_libdir_separator=:
10219 hardcode_shlibpath_var=no
10226 if test -f /usr/libexec/ld.so; then
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10229 hardcode_direct_absolute=yes
10230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234 export_dynamic_flag_spec='${wl}-E'
10237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_libdir_flag_spec='-R$libdir'
10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_minus_L=yes
10255 allow_undefined_flag=unsupported
10256 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'
10257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10261 if test "$GCC" = yes; then
10262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10265 allow_undefined_flag=' -expect_unresolved \*'
10266 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10268 archive_cmds_need_lc='no'
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 hardcode_libdir_separator=:
10273 osf4* | osf5*) # as osf3* with the addition of -msym flag
10274 if test "$GCC" = yes; then
10275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279 allow_undefined_flag=' -expect_unresolved \*'
10280 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10281 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~
10282 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10284 # Both c and cxx compiler support -rpath directly
10285 hardcode_libdir_flag_spec='-rpath $libdir'
10287 archive_cmds_need_lc='no'
10288 hardcode_libdir_separator=:
10292 no_undefined_flag=' -z defs'
10293 if test "$GCC" = yes; then
10295 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10299 case `$CC -V 2>&1` in
10302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10314 hardcode_libdir_flag_spec='-R$libdir'
10315 hardcode_shlibpath_var=no
10317 solaris2.[0-5] | solaris2.[0-5].*) ;;
10319 # The compiler driver will combine and reorder linker options,
10320 # but understands `-z linker_flag'. GCC discards it without `$wl',
10321 # but is careful enough not to reorder.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 if test "$GCC" = yes; then
10324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10330 link_all_deplibs=yes
10334 if test "x$host_vendor" = xsequent; then
10335 # Use $CC to link under sequent, because it throws in some extra .o
10336 # files that make .init and .fini sections work.
10337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_direct=yes
10343 hardcode_minus_L=yes
10344 hardcode_shlibpath_var=no
10348 case $host_vendor in
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct=yes # is this really true???
10354 ## LD is ld it makes a PLAMLIB
10355 ## CC just makes a GrossModule.
10356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357 reload_cmds='$CC -r -o $output$reload_objs'
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10365 runpath_var='LD_RUN_PATH'
10366 hardcode_shlibpath_var=no
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var=no
10372 export_dynamic_flag_spec='-Bexport'
10376 if test -d /usr/nec; then
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_shlibpath_var=no
10379 runpath_var=LD_RUN_PATH
10380 hardcode_runpath_var=yes
10385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386 no_undefined_flag='${wl}-z,text'
10387 archive_cmds_need_lc=no
10388 hardcode_shlibpath_var=no
10389 runpath_var='LD_RUN_PATH'
10391 if test "$GCC" = yes; then
10392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 sysv5* | sco3.2v5* | sco5v6*)
10401 # Note: We can NOT use -z defs as we might desire, because we do not
10402 # link with -lc, and that would cause any symbols used from libc to
10403 # always be unresolved, which means just about no library would
10404 # ever link correctly. If we're not using GNU ld we use -z text
10405 # though, which does catch some bad symbols but isn't as heavy-handed
10407 no_undefined_flag='${wl}-z,text'
10408 allow_undefined_flag='${wl}-z,nodefs'
10409 archive_cmds_need_lc=no
10410 hardcode_shlibpath_var=no
10411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412 hardcode_libdir_separator=':'
10413 link_all_deplibs=yes
10414 export_dynamic_flag_spec='${wl}-Bexport'
10415 runpath_var='LD_RUN_PATH'
10417 if test "$GCC" = yes; then
10418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_shlibpath_var=no
10437 if test x$host_vendor = xsni; then
10439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440 export_dynamic_flag_spec='${wl}-Blargedynsym'
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test "$ld_shlibs" = no && can_build_shared=no
10450 with_gnu_ld=$with_gnu_ld
10467 # Do we need to explicitly link libc?
10469 case "x$archive_cmds_need_lc" in
10471 # Assume -lc should be added
10472 archive_cmds_need_lc=yes
10474 if test "$enable_shared" = yes && test "$GCC" = yes; then
10475 case $archive_cmds in
10477 # FIXME: we may have to deal with multi-command sequences.
10480 # Test whether the compiler implicitly links with -lc since on some
10481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482 # to ld, don't add -lc before -lgcc.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10486 $as_echo_n "(cached) " >&6
10489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492 (eval $ac_compile) 2>&5
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; } 2>conftest.err; then
10498 libobjs=conftest.$ac_objext
10500 wl=$lt_prog_compiler_wl
10501 pic_flag=$lt_prog_compiler_pic
10507 lt_save_allow_undefined_flag=$allow_undefined_flag
10508 allow_undefined_flag=
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10515 lt_cv_archive_cmds_need_lc=no
10517 lt_cv_archive_cmds_need_lc=yes
10519 allow_undefined_flag=$lt_save_allow_undefined_flag
10521 cat conftest.err 1>&5
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10689 if test "$GCC" = yes; then
10691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692 *) lt_awk_arg="/^libraries:/" ;;
10695 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696 *) lt_sed_strip_eq="s,=/,/,g" ;;
10698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699 case $lt_search_path_spec in
10701 # if the path contains ";" then we assume it to be the separator
10702 # otherwise default to the standard path separator (i.e. ":") - it is
10703 # assumed that no part of a normal pathname contains ";" but that should
10704 # okay in the real world where ";" in dirpaths is itself problematic.
10705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10711 # Ok, now we have the path, separated by spaces, we can step through it
10712 # and add multilib dir if necessary.
10713 lt_tmp_lt_search_path_spec=
10714 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715 for lt_sys_path in $lt_search_path_spec; do
10716 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10719 test -d "$lt_sys_path" && \
10720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10723 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10724 BEGIN {RS=" "; FS="/|\n";} {
10727 for (lt_i = NF; lt_i > 0; lt_i--) {
10728 if ($lt_i != "" && $lt_i != ".") {
10729 if ($lt_i == "..") {
10732 if (lt_count == 0) {
10733 lt_foo="/" $lt_i lt_foo;
10740 if (lt_foo != "") { lt_freq[lt_foo]++; }
10741 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10743 # AWK program above erroneously prepends '/' to C:/dos/paths
10746 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10747 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10749 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10753 library_names_spec=
10754 libname_spec='lib$name'
10758 postuninstall_cmds=
10762 shlibpath_overrides_runpath=unknown
10764 dynamic_linker="$host_os ld.so"
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10766 need_lib_prefix=unknown
10767 hardcode_into_libs=no
10769 # when you set need_version to no, make sure it does not cause -set_version
10770 # flags to be left without arguments
10771 need_version=unknown
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10777 shlibpath_var=LIBPATH
10779 # AIX 3 has no versioning support, so we append a major version to the name.
10780 soname_spec='${libname}${release}${shared_ext}$major'
10784 version_type=linux # correct to gnu/linux during the next big refactor
10787 hardcode_into_libs=yes
10788 if test "$host_cpu" = ia64; then
10789 # AIX 5 supports IA64
10790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10793 # With GCC up to 2.95.x, collect2 would create an import file
10794 # for dependence libraries. The import file would start with
10795 # the line `#! .'. This would cause the generated library to
10796 # depend on `.', always an invalid library. This was fixed in
10797 # development snapshots of GCC prior to 3.0.
10799 aix4 | aix4.[01] | aix4.[01].*)
10800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10805 can_build_shared=no
10809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10810 # soname into executable. Probably we can add versioning support to
10811 # collect2, so additional links can be useful in future.
10812 if test "$aix_use_runtimelinking" = yes; then
10813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10814 # instead of lib<name>.a to let people know that these are not
10815 # typical AIX shared libraries.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 # We preserve .a as extension for shared libraries through AIX4.2
10819 # and later when we are not doing run time linking.
10820 library_names_spec='${libname}${release}.a $libname.a'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10823 shlibpath_var=LIBPATH
10830 # Since July 2007 AmigaOS4 officially supports .so libraries.
10831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 library_names_spec='$libname.ixlibrary $libname.a'
10836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10837 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10843 library_names_spec='${libname}${shared_ext}'
10844 dynamic_linker="$host_os ld.so"
10845 shlibpath_var=LIBRARY_PATH
10849 version_type=linux # correct to gnu/linux during the next big refactor
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10857 # the default ld.so.conf also contains /usr/contrib/lib and
10858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10859 # libtool to hard-code these into programs
10862 cygwin* | mingw* | pw32* | cegcc*)
10863 version_type=windows
10868 case $GCC,$cc_basename in
10871 library_names_spec='$libname.dll.a'
10872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873 postinstall_cmds='base_file=`basename \${file}`~
10874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875 dldir=$destdir/`dirname \$dlpath`~
10876 test -d \$dldir || mkdir -p \$dldir~
10877 $install_prog $dir/$dlname \$dldir/$dlname~
10878 chmod a+x \$dldir/$dlname~
10879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883 dlpath=$dir/\$dldll~
10885 shlibpath_overrides_runpath=yes
10889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10895 # MinGW DLLs use traditional 'lib' prefix
10896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899 # pw32 DLLs use 'pw' prefix rather than 'lib'
10900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 dynamic_linker='Win32 ld.exe'
10908 libname_spec='$name'
10909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910 library_names_spec='${libname}.dll.lib'
10914 sys_lib_search_path_spec=
10917 for lt_path in $LIB
10920 # Let DOS variable expansion print the short 8.3 style file name.
10921 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10922 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10925 # Convert to MSYS style.
10926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10929 # Convert to unix form, then to dos form, then back to unix form
10930 # but this time dos style (no spaces!) so that the unix form looks
10931 # like /cygdrive/c/PROGRA~1:/cygdr...
10932 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10933 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10934 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10937 sys_lib_search_path_spec="$LIB"
10938 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939 # It is most probably a Windows format PATH.
10940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10944 # FIXME: find the short name or the path components, as spaces are
10945 # common. (e.g. "Program Files" -> "PROGRA~1")
10949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950 postinstall_cmds='base_file=`basename \${file}`~
10951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952 dldir=$destdir/`dirname \$dlpath`~
10953 test -d \$dldir || mkdir -p \$dldir~
10954 $install_prog $dir/$dlname \$dldir/$dlname'
10955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956 dlpath=$dir/\$dldll~
10958 shlibpath_overrides_runpath=yes
10959 dynamic_linker='Win32 link.exe'
10963 # Assume MSVC wrapper
10964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10965 dynamic_linker='Win32 ld.exe'
10968 # FIXME: first we should search . and the directory the executable is in
10972 darwin* | rhapsody*)
10973 dynamic_linker="$host_os dyld"
10974 version_type=darwin
10977 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10978 soname_spec='${libname}${release}${major}$shared_ext'
10979 shlibpath_overrides_runpath=yes
10980 shlibpath_var=DYLD_LIBRARY_PATH
10981 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10983 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10988 version_type=linux # correct to gnu/linux during the next big refactor
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10996 freebsd* | dragonfly*)
10997 # DragonFly does not have aout. When/if they implement a new
10998 # versioning mechanism, adjust this.
10999 if test -x /usr/bin/objformat; then
11000 objformat=`/usr/bin/objformat`
11003 freebsd[23].*) objformat=aout ;;
11004 *) objformat=elf ;;
11007 version_type=freebsd-$objformat
11008 case $version_type in
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11019 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes
11024 freebsd3.[01]* | freebsdelf3.[01]*)
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11028 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11029 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11033 *) # from 4.6 on, and DragonFly
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11041 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=no
11048 hardcode_into_libs=yes
11052 version_type=linux # correct to gnu/linux during the next big refactor
11055 dynamic_linker="$host_os runtime_loader"
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11061 hardcode_into_libs=yes
11064 hpux9* | hpux10* | hpux11*)
11065 # Give a soname corresponding to the major version so that dld.sl refuses to
11066 # link against other versions.
11073 hardcode_into_libs=yes
11074 dynamic_linker="$host_os dld.so"
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 if test "X$HPUX_IA64_MODE" = X32; then
11080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11088 hardcode_into_libs=yes
11089 dynamic_linker="$host_os dld.sl"
11090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11099 dynamic_linker="$host_os dld.sl"
11100 shlibpath_var=SHLIB_PATH
11101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11106 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11107 postinstall_cmds='chmod 555 $lib'
11108 # or fails outright, so override atomically:
11109 install_override_mode=555
11113 version_type=linux # correct to gnu/linux during the next big refactor
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=no
11121 hardcode_into_libs=yes
11124 irix5* | irix6* | nonstopux*)
11126 nonstopux*) version_type=nonstopux ;;
11128 if test "$lt_cv_prog_gnu_ld" = yes; then
11129 version_type=linux # correct to gnu/linux during the next big refactor
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11139 irix5* | nonstopux*)
11140 libsuff= shlibsuff=
11143 case $LD in # libtool.m4 will add one of these switches to LD
11144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11145 libsuff= shlibsuff= libmagic=32-bit;;
11146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11147 libsuff=32 shlibsuff=N32 libmagic=N32;;
11148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11150 *) libsuff= shlibsuff= libmagic=never-match;;
11154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11155 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11158 hardcode_into_libs=yes
11161 # No shared lib support for Linux oldld, aout, or coff.
11162 linux*oldld* | linux*aout* | linux*coff*)
11167 version_type=none # Android doesn't support versioned libraries.
11170 library_names_spec='$libname$release$shared_ext'
11171 soname_spec='$libname$release$shared_ext'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes
11176 # This implies no fast_install, which is unacceptable.
11177 # Some rework will be needed to allow for fast_install
11178 # before this can be enabled.
11179 hardcode_into_libs=yes
11181 dynamic_linker='Android linker'
11182 # Don't embed -rpath directories since the linker doesn't support them.
11183 hardcode_libdir_flag_spec='-L$libdir'
11186 # This must be glibc/ELF.
11187 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11188 version_type=linux # correct to gnu/linux during the next big refactor
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=no
11197 # Some binutils ld are patched to set DT_RUNPATH
11198 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11199 $as_echo_n "(cached) " >&6
11201 lt_cv_shlibpath_overrides_runpath=no
11202 save_LDFLAGS=$LDFLAGS
11203 save_libdir=$libdir
11204 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11205 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11217 if ac_fn_c_try_link "$LINENO"; then :
11218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11219 lt_cv_shlibpath_overrides_runpath=yes
11222 rm -f core conftest.err conftest.$ac_objext \
11223 conftest$ac_exeext conftest.$ac_ext
11224 LDFLAGS=$save_LDFLAGS
11225 libdir=$save_libdir
11229 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11231 # This implies no fast_install, which is unacceptable.
11232 # Some rework will be needed to allow for fast_install
11233 # before this can be enabled.
11234 hardcode_into_libs=yes
11236 # Append ld.so.conf contents to the search path
11237 if test -f /etc/ld.so.conf; then
11238 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11239 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11242 # We used to test for /lib/ld.so.1 and disable shared libraries on
11243 # powerpc, because MkLinux only supported shared libraries with the
11244 # GNU dynamic linker. Since this was broken with cross compilers,
11245 # most powerpc-linux boxes support dynamic linking these days and
11246 # people can always --disable-shared, the test was removed, and we
11247 # assume the GNU/Linux dynamic linker is in use.
11248 dynamic_linker='GNU/Linux ld.so'
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=no
11259 hardcode_into_libs=yes
11260 dynamic_linker='NetBSD ld.elf_so'
11267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11270 dynamic_linker='NetBSD (a.out) ld.so'
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 dynamic_linker='NetBSD ld.elf_so'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 hardcode_into_libs=yes
11282 version_type=linux # correct to gnu/linux during the next big refactor
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=yes
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11297 dynamic_linker='ldqnx.so'
11302 sys_lib_dlsearch_path_spec="/usr/lib"
11304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11307 *) need_version=no ;;
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11314 openbsd2.[89] | openbsd2.[89].*)
11315 shlibpath_overrides_runpath=no
11318 shlibpath_overrides_runpath=yes
11322 shlibpath_overrides_runpath=yes
11327 libname_spec='$name'
11330 library_names_spec='$libname${shared_ext} $libname.a'
11331 dynamic_linker='OS/2 ld.exe'
11332 shlibpath_var=LIBPATH
11335 osf3* | osf4* | osf5*)
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11351 version_type=linux # correct to gnu/linux during the next big refactor
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=yes
11358 hardcode_into_libs=yes
11359 # ldd complains unless libraries are executable
11360 postinstall_cmds='chmod +x $lib'
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=yes
11369 if test "$with_gnu_ld" = yes; then
11376 version_type=linux # correct to gnu/linux during the next big refactor
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 case $host_vendor in
11382 shlibpath_overrides_runpath=no
11384 runpath_var=LD_RUN_PATH
11392 shlibpath_overrides_runpath=no
11393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11399 if test -d /usr/nec ;then
11400 version_type=linux # correct to gnu/linux during the next big refactor
11401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11402 soname_spec='$libname${shared_ext}.$major'
11403 shlibpath_var=LD_LIBRARY_PATH
11407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11408 version_type=freebsd-elf
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 shlibpath_var=LD_LIBRARY_PATH
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 if test "$with_gnu_ld" = yes; then
11417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11426 sys_lib_dlsearch_path_spec='/usr/lib'
11430 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11431 version_type=linux # correct to gnu/linux during the next big refactor
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 hardcode_into_libs=yes
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11452 $as_echo "$dynamic_linker" >&6; }
11453 test "$dynamic_linker" = no && can_build_shared=no
11455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11456 if test "$GCC" = yes; then
11457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11460 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11461 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11463 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11464 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11559 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11561 if test -n "$hardcode_libdir_flag_spec" ||
11562 test -n "$runpath_var" ||
11563 test "X$hardcode_automatic" = "Xyes" ; then
11565 # We can hardcode non-existent directories.
11566 if test "$hardcode_direct" != no &&
11567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11568 # have to relink, otherwise we might link with an installed library
11569 # when we should be linking with a yet-to-be-installed one
11570 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11571 test "$hardcode_minus_L" != no; then
11572 # Linking always hardcodes the temporary library directory.
11573 hardcode_action=relink
11575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11576 hardcode_action=immediate
11579 # We cannot hardcode anything, or else we can only hardcode existing
11581 hardcode_action=unsupported
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11584 $as_echo "$hardcode_action" >&6; }
11586 if test "$hardcode_action" = relink ||
11587 test "$inherit_rpath" = yes; then
11588 # Fast installation is not supported
11589 enable_fast_install=no
11590 elif test "$shlibpath_overrides_runpath" = yes ||
11591 test "$enable_shared" = no; then
11592 # Fast installation is not necessary
11593 enable_fast_install=needless
11601 if test "x$enable_dlopen" != xyes; then
11602 enable_dlopen=unknown
11603 enable_dlopen_self=unknown
11604 enable_dlopen_self_static=unknown
11611 lt_cv_dlopen="load_add_on"
11613 lt_cv_dlopen_self=yes
11616 mingw* | pw32* | cegcc*)
11617 lt_cv_dlopen="LoadLibrary"
11622 lt_cv_dlopen="dlopen"
11627 # if libdl is installed we need to link against it
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11629 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11630 if ${ac_cv_lib_dl_dlopen+:} false; then :
11631 $as_echo_n "(cached) " >&6
11633 ac_check_lib_save_LIBS=$LIBS
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11653 if ac_fn_c_try_link "$LINENO"; then :
11654 ac_cv_lib_dl_dlopen=yes
11656 ac_cv_lib_dl_dlopen=no
11658 rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660 LIBS=$ac_check_lib_save_LIBS
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11663 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11664 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11668 lt_cv_dlopen="dyld"
11670 lt_cv_dlopen_self=yes
11677 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11678 if test "x$ac_cv_func_shl_load" = xyes; then :
11679 lt_cv_dlopen="shl_load"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11682 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11683 if ${ac_cv_lib_dld_shl_load+:} false; then :
11684 $as_echo_n "(cached) " >&6
11686 ac_check_lib_save_LIBS=$LIBS
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11701 return shl_load ();
11706 if ac_fn_c_try_link "$LINENO"; then :
11707 ac_cv_lib_dld_shl_load=yes
11709 ac_cv_lib_dld_shl_load=no
11711 rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11716 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11717 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11718 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11720 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11721 if test "x$ac_cv_func_dlopen" = xyes; then :
11722 lt_cv_dlopen="dlopen"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11726 if ${ac_cv_lib_dl_dlopen+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 ac_check_lib_save_LIBS=$LIBS
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11749 if ac_fn_c_try_link "$LINENO"; then :
11750 ac_cv_lib_dl_dlopen=yes
11752 ac_cv_lib_dl_dlopen=no
11754 rm -f core conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11764 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11765 if ${ac_cv_lib_svld_dlopen+:} false; then :
11766 $as_echo_n "(cached) " >&6
11768 ac_check_lib_save_LIBS=$LIBS
11769 LIBS="-lsvld $LIBS"
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11773 /* Override any GCC internal prototype to avoid an error.
11774 Use char because int might match the return type of a GCC
11775 builtin and then its argument prototype would still apply. */
11788 if ac_fn_c_try_link "$LINENO"; then :
11789 ac_cv_lib_svld_dlopen=yes
11791 ac_cv_lib_svld_dlopen=no
11793 rm -f core conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795 LIBS=$ac_check_lib_save_LIBS
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11798 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11799 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11803 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11804 if ${ac_cv_lib_dld_dld_link+:} false; then :
11805 $as_echo_n "(cached) " >&6
11807 ac_check_lib_save_LIBS=$LIBS
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11812 /* Override any GCC internal prototype to avoid an error.
11813 Use char because int might match the return type of a GCC
11814 builtin and then its argument prototype would still apply. */
11822 return dld_link ();
11827 if ac_fn_c_try_link "$LINENO"; then :
11828 ac_cv_lib_dld_dld_link=yes
11830 ac_cv_lib_dld_dld_link=no
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_check_lib_save_LIBS
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11837 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11838 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11839 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11860 if test "x$lt_cv_dlopen" != xno; then
11866 case $lt_cv_dlopen in
11868 save_CPPFLAGS="$CPPFLAGS"
11869 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11871 save_LDFLAGS="$LDFLAGS"
11872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11875 LIBS="$lt_cv_dlopen_libs $LIBS"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11878 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11879 if ${lt_cv_dlopen_self+:} false; then :
11880 $as_echo_n "(cached) " >&6
11882 if test "$cross_compiling" = yes; then :
11883 lt_cv_dlopen_self=cross
11885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11886 lt_status=$lt_dlunknown
11887 cat > conftest.$ac_ext <<_LT_EOF
11888 #line $LINENO "configure"
11889 #include "confdefs.h"
11898 # define LT_DLGLOBAL RTLD_GLOBAL
11901 # define LT_DLGLOBAL DL_GLOBAL
11903 # define LT_DLGLOBAL 0
11907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11908 find out it does not work in some platform. */
11909 #ifndef LT_DLLAZY_OR_NOW
11911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11914 # define LT_DLLAZY_OR_NOW DL_LAZY
11917 # define LT_DLLAZY_OR_NOW RTLD_NOW
11920 # define LT_DLLAZY_OR_NOW DL_NOW
11922 # define LT_DLLAZY_OR_NOW 0
11929 /* When -fvisbility=hidden is used, assume the code has been annotated
11930 correspondingly for the symbols needed. */
11931 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11932 int fnord () __attribute__((visibility("default")));
11935 int fnord () { return 42; }
11938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11939 int status = $lt_dlunknown;
11943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11946 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11947 else puts (dlerror ());
11949 /* dlclose (self); */
11957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11958 (eval $ac_link) 2>&5
11960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11961 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11962 (./conftest; exit; ) >&5 2>/dev/null
11964 case x$lt_status in
11965 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11966 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11967 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11970 # compilation failed
11971 lt_cv_dlopen_self=no
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11979 $as_echo "$lt_cv_dlopen_self" >&6; }
11981 if test "x$lt_cv_dlopen_self" = xyes; then
11982 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11984 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11985 if ${lt_cv_dlopen_self_static+:} false; then :
11986 $as_echo_n "(cached) " >&6
11988 if test "$cross_compiling" = yes; then :
11989 lt_cv_dlopen_self_static=cross
11991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11992 lt_status=$lt_dlunknown
11993 cat > conftest.$ac_ext <<_LT_EOF
11994 #line $LINENO "configure"
11995 #include "confdefs.h"
12004 # define LT_DLGLOBAL RTLD_GLOBAL
12007 # define LT_DLGLOBAL DL_GLOBAL
12009 # define LT_DLGLOBAL 0
12013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12014 find out it does not work in some platform. */
12015 #ifndef LT_DLLAZY_OR_NOW
12017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12020 # define LT_DLLAZY_OR_NOW DL_LAZY
12023 # define LT_DLLAZY_OR_NOW RTLD_NOW
12026 # define LT_DLLAZY_OR_NOW DL_NOW
12028 # define LT_DLLAZY_OR_NOW 0
12035 /* When -fvisbility=hidden is used, assume the code has been annotated
12036 correspondingly for the symbols needed. */
12037 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12038 int fnord () __attribute__((visibility("default")));
12041 int fnord () { return 42; }
12044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12045 int status = $lt_dlunknown;
12049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12053 else puts (dlerror ());
12055 /* dlclose (self); */
12063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12064 (eval $ac_link) 2>&5
12066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12068 (./conftest; exit; ) >&5 2>/dev/null
12070 case x$lt_status in
12071 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12072 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12073 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12076 # compilation failed
12077 lt_cv_dlopen_self_static=no
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12085 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12088 CPPFLAGS="$save_CPPFLAGS"
12089 LDFLAGS="$save_LDFLAGS"
12094 case $lt_cv_dlopen_self in
12095 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12096 *) enable_dlopen_self=unknown ;;
12099 case $lt_cv_dlopen_self_static in
12100 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12101 *) enable_dlopen_self_static=unknown ;;
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12124 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12125 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12126 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12127 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12131 # FIXME - insert some real tests, host_os isn't really good enough
12134 if test -n "$STRIP" ; then
12135 striplib="$STRIP -x"
12136 old_striplib="$STRIP -S"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12162 # Report which library types will actually be built
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12164 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12166 $as_echo "$can_build_shared" >&6; }
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12169 $as_echo_n "checking whether to build shared libraries... " >&6; }
12170 test "$can_build_shared" = "no" && enable_shared=no
12172 # On AIX, shared libraries and static libraries use the same namespace, and
12173 # are all built from PIC.
12176 test "$enable_shared" = yes && enable_static=no
12177 if test -n "$RANLIB"; then
12178 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12179 postinstall_cmds='$RANLIB $lib'
12184 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12185 test "$enable_shared" = yes && enable_static=no
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12190 $as_echo "$enable_shared" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12193 $as_echo_n "checking whether to build static libraries... " >&6; }
12194 # Make sure either enable_shared or enable_static is yes.
12195 test "$enable_shared" = yes || enable_static=yes
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12197 $as_echo "$enable_static" >&6; }
12204 ac_cpp='$CPP $CPPFLAGS'
12205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225 ac_config_commands="$ac_config_commands libtool"
12230 # Only expand once:
12233 if test -n "$ac_tool_prefix"; then
12234 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12235 set dummy ${ac_tool_prefix}windres; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_prog_RC+:} false; then :
12239 $as_echo_n "(cached) " >&6
12241 if test -n "$RC"; then
12242 ac_cv_prog_RC="$RC" # Let the user override the test.
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_prog_RC="${ac_tool_prefix}windres"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 if test -n "$RC"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12264 $as_echo "$RC" >&6; }
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test -z "$ac_cv_prog_RC"; then
12274 # Extract the first word of "windres", so it can be a program name with args.
12275 set dummy windres; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12279 $as_echo_n "(cached) " >&6
12281 if test -n "$ac_ct_RC"; then
12282 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291 ac_cv_prog_ac_ct_RC="windres"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12302 if test -n "$ac_ct_RC"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12304 $as_echo "$ac_ct_RC" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12310 if test "x$ac_ct_RC" = x; then
12313 case $cross_compiling:$ac_tool_warned in
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12317 ac_tool_warned=yes ;;
12322 RC="$ac_cv_prog_RC"
12328 # Source file extension for RC test sources.
12331 # Object file extension for compiled RC test sources.
12335 # Code to be used in simple compile tests
12336 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12338 # Code to be used in simple link tests
12339 lt_simple_link_test_code="$lt_simple_compile_test_code"
12341 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12348 # If no C compiler was specified, use CC.
12351 # If no C compiler flags were specified, use CFLAGS.
12352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12354 # Allow CC to be a program name with arguments.
12358 # save warnings/boilerplate of simple test code
12359 ac_outfile=conftest.$ac_objext
12360 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12361 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12362 _lt_compiler_boilerplate=`cat conftest.err`
12365 ac_outfile=conftest.$ac_objext
12366 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12367 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12368 _lt_linker_boilerplate=`cat conftest.err`
12372 # Allow CC to be a program name with arguments.
12374 lt_save_CFLAGS=$CFLAGS
12381 for cc_temp in $compiler""; do
12383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12389 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12391 lt_cv_prog_compiler_c_o_RC=yes
12393 if test -n "$compiler"; then
12402 ac_cpp='$CPP $CPPFLAGS'
12403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12408 CFLAGS=$lt_save_CFLAGS
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12413 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12414 # Check whether --enable-maintainer-mode was given.
12415 if test "${enable_maintainer_mode+set}" = set; then :
12416 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12418 USE_MAINTAINER_MODE=no
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12422 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12423 if test $USE_MAINTAINER_MODE = yes; then
12424 MAINTAINER_MODE_TRUE=
12425 MAINTAINER_MODE_FALSE='#'
12427 MAINTAINER_MODE_TRUE='#'
12428 MAINTAINER_MODE_FALSE=
12431 MAINT=$MAINTAINER_MODE_TRUE
12435 # We need to compile and run a program on the build machine.
12436 # Put a plausible default for CC_FOR_BUILD in Makefile.
12437 if test -z "$CC_FOR_BUILD"; then
12438 if test "x$cross_compiling" = "xno"; then
12439 CC_FOR_BUILD='$(CC)'
12445 # Also set EXEEXT_FOR_BUILD.
12446 if test "x$cross_compiling" = "xno"; then
12447 EXEEXT_FOR_BUILD='$(EXEEXT)'
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12450 $as_echo_n "checking for build system executable suffix... " >&6; }
12451 if ${bfd_cv_build_exeext+:} false; then :
12452 $as_echo_n "(cached) " >&6
12455 echo 'int main () { return 0; }' > conftest.c
12456 bfd_cv_build_exeext=
12457 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12458 for file in conftest.*; do
12460 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12461 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12465 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12468 $as_echo "$bfd_cv_build_exeext" >&6; }
12469 EXEEXT_FOR_BUILD=""
12470 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12478 VERSION_NUMBER=0x010603
12488 # Checks for programs.
12489 missing_dir=`cd $ac_aux_dir && pwd`
12491 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12494 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12497 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12500 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12503 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12505 # Check whether --enable-silent-rules was given.
12506 if test "${enable_silent_rules+set}" = set; then :
12507 enableval=$enable_silent_rules;
12510 case $enable_silent_rules in # (((
12511 yes) AM_DEFAULT_VERBOSITY=0;;
12512 no) AM_DEFAULT_VERBOSITY=1;;
12513 *) AM_DEFAULT_VERBOSITY=1;;
12515 am_make=${MAKE-make}
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12517 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12518 if ${am_cv_make_support_nested_variables+:} false; then :
12519 $as_echo_n "(cached) " >&6
12521 if $as_echo 'TRUE=$(BAR$(V))
12527 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12528 am_cv_make_support_nested_variables=yes
12530 am_cv_make_support_nested_variables=no
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12534 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12535 if test $am_cv_make_support_nested_variables = yes; then
12537 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12539 AM_V=$AM_DEFAULT_VERBOSITY
12540 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12544 for ac_prog in gawk mawk nawk awk
12546 # Extract the first word of "$ac_prog", so it can be a program name with args.
12547 set dummy $ac_prog; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_AWK+:} false; then :
12551 $as_echo_n "(cached) " >&6
12553 if test -n "$AWK"; then
12554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12563 ac_cv_prog_AWK="$ac_prog"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 AWK=$ac_cv_prog_AWK
12574 if test -n "$AWK"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12576 $as_echo "$AWK" >&6; }
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12583 test -n "$AWK" && break
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12591 if test -n "$ac_tool_prefix"; then
12592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_prog_CC+:} false; then :
12597 $as_echo_n "(cached) " >&6
12599 if test -n "$CC"; then
12600 ac_cv_prog_CC="$CC" # Let the user override the test.
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 if test -n "$CC"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12622 $as_echo "$CC" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12630 if test -z "$ac_cv_prog_CC"; then
12632 # Extract the first word of "gcc", so it can be a program name with args.
12633 set dummy gcc; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12637 $as_echo_n "(cached) " >&6
12639 if test -n "$ac_ct_CC"; then
12640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649 ac_cv_prog_ac_ct_CC="gcc"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12660 if test -n "$ac_ct_CC"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12662 $as_echo "$ac_ct_CC" >&6; }
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12668 if test "x$ac_ct_CC" = x; then
12671 case $cross_compiling:$ac_tool_warned in
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12675 ac_tool_warned=yes ;;
12680 CC="$ac_cv_prog_CC"
12683 if test -z "$CC"; then
12684 if test -n "$ac_tool_prefix"; then
12685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12686 set dummy ${ac_tool_prefix}cc; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_prog_CC+:} false; then :
12690 $as_echo_n "(cached) " >&6
12692 if test -n "$CC"; then
12693 ac_cv_prog_CC="$CC" # Let the user override the test.
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702 ac_cv_prog_CC="${ac_tool_prefix}cc"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 if test -n "$CC"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12715 $as_echo "$CC" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12724 if test -z "$CC"; then
12725 # Extract the first word of "cc", so it can be a program name with args.
12726 set dummy cc; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_prog_CC+:} false; then :
12730 $as_echo_n "(cached) " >&6
12732 if test -n "$CC"; then
12733 ac_cv_prog_CC="$CC" # Let the user override the test.
12735 ac_prog_rejected=no
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12744 ac_prog_rejected=yes
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 if test $ac_prog_rejected = yes; then
12756 # We found a bogon in the path, so make sure we never use it.
12757 set dummy $ac_cv_prog_CC
12759 if test $# != 0; then
12760 # We chose a different compiler from the bogus one.
12761 # However, it has the same basename, so the bogon will be chosen
12762 # first if we set CC to just the basename; use the full file name.
12764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12770 if test -n "$CC"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12772 $as_echo "$CC" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12780 if test -z "$CC"; then
12781 if test -n "$ac_tool_prefix"; then
12782 for ac_prog in cl.exe
12784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if ${ac_cv_prog_CC+:} false; then :
12789 $as_echo_n "(cached) " >&6
12791 if test -n "$CC"; then
12792 ac_cv_prog_CC="$CC" # Let the user override the test.
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 if test -n "$CC"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12814 $as_echo "$CC" >&6; }
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12821 test -n "$CC" && break
12824 if test -z "$CC"; then
12826 for ac_prog in cl.exe
12828 # Extract the first word of "$ac_prog", so it can be a program name with args.
12829 set dummy $ac_prog; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12833 $as_echo_n "(cached) " >&6
12835 if test -n "$ac_ct_CC"; then
12836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12845 ac_cv_prog_ac_ct_CC="$ac_prog"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12856 if test -n "$ac_ct_CC"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12858 $as_echo "$ac_ct_CC" >&6; }
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
12865 test -n "$ac_ct_CC" && break
12868 if test "x$ac_ct_CC" = x; then
12871 case $cross_compiling:$ac_tool_warned in
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12875 ac_tool_warned=yes ;;
12884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12886 as_fn_error $? "no acceptable C compiler found in \$PATH
12887 See \`config.log' for more details" "$LINENO" 5; }
12889 # Provide some information about the compiler.
12890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12893 for ac_option in --version -v -V -qversion; do
12894 { { ac_try="$ac_compiler $ac_option >&5"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12900 $as_echo "$ac_try_echo"; } >&5
12901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12903 if test -s conftest.err; then
12905 ... rest of stderr output deleted ...
12906 10q' conftest.err >conftest.er1
12907 cat conftest.er1 >&5
12909 rm -f conftest.er1 conftest.err
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911 test $ac_status = 0; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12915 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12916 if ${ac_cv_c_compiler_gnu+:} false; then :
12917 $as_echo_n "(cached) " >&6
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934 ac_compiler_gnu=yes
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12943 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12944 if test $ac_compiler_gnu = yes; then
12949 ac_test_CFLAGS=${CFLAGS+set}
12950 ac_save_CFLAGS=$CFLAGS
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12952 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12953 if ${ac_cv_prog_cc_g+:} false; then :
12954 $as_echo_n "(cached) " >&6
12956 ac_save_c_werror_flag=$ac_c_werror_flag
12957 ac_c_werror_flag=yes
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12971 if ac_fn_c_try_compile "$LINENO"; then :
12972 ac_cv_prog_cc_g=yes
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12986 if ac_fn_c_try_compile "$LINENO"; then :
12989 ac_c_werror_flag=$ac_save_c_werror_flag
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
13002 if ac_fn_c_try_compile "$LINENO"; then :
13003 ac_cv_prog_cc_g=yes
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 ac_c_werror_flag=$ac_save_c_werror_flag
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13013 $as_echo "$ac_cv_prog_cc_g" >&6; }
13014 if test "$ac_test_CFLAGS" = set; then
13015 CFLAGS=$ac_save_CFLAGS
13016 elif test $ac_cv_prog_cc_g = yes; then
13017 if test "$GCC" = yes; then
13023 if test "$GCC" = yes; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13030 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13031 if ${ac_cv_prog_cc_c89+:} false; then :
13032 $as_echo_n "(cached) " >&6
13034 ac_cv_prog_cc_c89=no
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 #include <stdarg.h>
13041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13042 struct buf { int x; };
13043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13044 static char *e (p, i)
13050 static char *f (char * (*g) (char **, int), char **p, ...)
13055 s = g (p, va_arg (v,int));
13060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13061 function prototypes and stuff, but not '\xHH' hex character constants.
13062 These don't provoke an error unfortunately, instead are silently treated
13063 as 'x'. The following induces an error, until -std is added to get
13064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13065 array size at least. It's necessary to write '\x00'==0 to get something
13066 that's true only with -std. */
13067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13070 inside strings and character constants. */
13072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13074 int test (int i, double x);
13075 struct s1 {int (*f) (int a);};
13076 struct s2 {int (*f) (double a);};
13077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13083 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13091 CC="$ac_save_CC $ac_arg"
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093 ac_cv_prog_cc_c89=$ac_arg
13095 rm -f core conftest.err conftest.$ac_objext
13096 test "x$ac_cv_prog_cc_c89" != "xno" && break
13098 rm -f conftest.$ac_ext
13103 case "x$ac_cv_prog_cc_c89" in
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13106 $as_echo "none needed" >&6; } ;;
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13109 $as_echo "unsupported" >&6; } ;;
13111 CC="$CC $ac_cv_prog_cc_c89"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13113 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13115 if test "x$ac_cv_prog_cc_c89" != xno; then :
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126 ac_cpp='$CPP $CPPFLAGS'
13127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13131 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13132 if ${am_cv_prog_cc_c_o+:} false; then :
13133 $as_echo_n "(cached) " >&6
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13146 # Make sure it works both with $CC and with simple cc.
13147 # Following AC_PROG_CC_C_O, we do the test twice because some
13148 # compilers refuse to overwrite an existing .o file with -o,
13149 # though they will create one.
13150 am_cv_prog_cc_c_o=yes
13151 for am_i in 1 2; do
13152 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13153 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } \
13157 && test -f conftest2.$ac_objext; then
13160 am_cv_prog_cc_c_o=no
13164 rm -f core conftest*
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13168 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13169 if test "$am_cv_prog_cc_c_o" != yes; then
13170 # Losing compiler, so override with the script.
13171 # FIXME: It is wrong to rewrite CC.
13172 # But if we don't then we get into trouble of one sort or another.
13173 # A longer-term fix would be to have automake use am__CC in this case,
13174 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13175 CC="$am_aux_dir/compile $CC"
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13184 depcc="$CC" am_compiler_list=
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13187 $as_echo_n "checking dependency style of $depcc... " >&6; }
13188 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13189 $as_echo_n "(cached) " >&6
13191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13192 # We make a subdir and do the tests there. Otherwise we can end up
13193 # making bogus files that we don't know about and never remove. For
13194 # instance it was reported that on HP-UX the gcc test will end up
13195 # making a dummy file named 'D' -- because '-MD' means "put the output
13197 rm -rf conftest.dir
13199 # Copy depcomp to subdir because otherwise we won't find it if we're
13200 # using a relative directory.
13201 cp "$am_depcomp" conftest.dir
13203 # We will build objects and dependencies in a subdirectory because
13204 # it helps to detect inapplicable dependency modes. For instance
13205 # both Tru64's cc and ICC support -MD to output dependencies as a
13206 # side effect of compilation, but ICC will put the dependencies in
13207 # the current directory while Tru64 will put them in the object
13211 am_cv_CC_dependencies_compiler_type=none
13212 if test "$am_compiler_list" = ""; then
13213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13215 am__universal=false
13216 case " $depcc " in #(
13217 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13220 for depmode in $am_compiler_list; do
13221 # Setup a source with many dependencies, because some compilers
13222 # like to wrap large dependency lists on column 80 (with \), and
13223 # we should not choose a depcomp mode which is confused by this.
13225 # We need to recreate these files for each test, as the compiler may
13226 # overwrite some of them when testing with obscure command lines.
13227 # This happens at least with the AIX C compiler.
13229 for i in 1 2 3 4 5 6; do
13230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13231 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13232 # Solaris 10 /bin/sh.
13233 echo '/* dummy */' > sub/conftst$i.h
13235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13237 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13238 # mode. It turns out that the SunPro C++ compiler does not properly
13239 # handle '-M -o', and we need to detect this. Also, some Intel
13240 # versions had trouble with output in subdirs.
13241 am__obj=sub/conftest.${OBJEXT-o}
13242 am__minus_obj="-o $am__obj"
13245 # This depmode causes a compiler race in universal mode.
13246 test "$am__universal" = false || continue
13249 # After this tag, mechanisms are not by side-effect, so they'll
13250 # only be used when explicitly requested.
13251 if test "x$enable_dependency_tracking" = xyes; then
13257 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13258 # This compiler won't grok '-c -o', but also, the minuso test has
13259 # not run yet. These depmodes are late enough in the game, and
13260 # so weak that their functioning should not be impacted.
13261 am__obj=conftest.${OBJEXT-o}
13266 if depmode=$depmode \
13267 source=sub/conftest.c object=$am__obj \
13268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13270 >/dev/null 2>conftest.err &&
13271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13275 # icc doesn't choke on unknown options, it will just issue warnings
13276 # or remarks (even with -Werror). So we grep stderr for any message
13277 # that says an option was ignored or not supported.
13278 # When given -MP, icc 7.0 and 7.1 complain thusly:
13279 # icc: Command line warning: ignoring option '-M'; no argument required
13280 # The diagnosis changed in icc 8.0:
13281 # icc: Command line remark: option '-MP' not supported
13282 if (grep 'ignoring option' conftest.err ||
13283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13284 am_cv_CC_dependencies_compiler_type=$depmode
13291 rm -rf conftest.dir
13293 am_cv_CC_dependencies_compiler_type=none
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13298 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13299 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13302 test "x$enable_dependency_tracking" != xno \
13303 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13304 am__fastdepCC_TRUE=
13305 am__fastdepCC_FALSE='#'
13307 am__fastdepCC_TRUE='#'
13308 am__fastdepCC_FALSE=
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13318 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13319 # On Suns, sometimes $CPP names a directory.
13320 if test -n "$CPP" && test -d "$CPP"; then
13323 if test -z "$CPP"; then
13324 if ${ac_cv_prog_CPP+:} false; then :
13325 $as_echo_n "(cached) " >&6
13327 # Double quotes because CPP needs to be expanded
13328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13330 ac_preproc_ok=false
13331 for ac_c_preproc_warn_flag in '' yes
13333 # Use a header file that comes with gcc, so configuring glibc
13334 # with a fresh cross-compiler works.
13335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13336 # <limits.h> exists even on freestanding compilers.
13337 # On the NeXT, cc -E runs the code through the compiler's parser,
13338 # not just through cpp. "Syntax error" is here to catch this case.
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13342 # include <limits.h>
13344 # include <assert.h>
13348 if ac_fn_c_try_cpp "$LINENO"; then :
13351 # Broken: fails on valid input.
13354 rm -f conftest.err conftest.i conftest.$ac_ext
13356 # OK, works on sane cases. Now check whether nonexistent headers
13357 # can be detected and how.
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13360 #include <ac_nonexistent.h>
13362 if ac_fn_c_try_cpp "$LINENO"; then :
13363 # Broken: success on invalid input.
13366 # Passes both tests.
13370 rm -f conftest.err conftest.i conftest.$ac_ext
13373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13374 rm -f conftest.i conftest.err conftest.$ac_ext
13375 if $ac_preproc_ok; then :
13380 ac_cv_prog_CPP=$CPP
13383 CPP=$ac_cv_prog_CPP
13385 ac_cv_prog_CPP=$CPP
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13388 $as_echo "$CPP" >&6; }
13389 ac_preproc_ok=false
13390 for ac_c_preproc_warn_flag in '' yes
13392 # Use a header file that comes with gcc, so configuring glibc
13393 # with a fresh cross-compiler works.
13394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395 # <limits.h> exists even on freestanding compilers.
13396 # On the NeXT, cc -E runs the code through the compiler's parser,
13397 # not just through cpp. "Syntax error" is here to catch this case.
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13401 # include <limits.h>
13403 # include <assert.h>
13407 if ac_fn_c_try_cpp "$LINENO"; then :
13410 # Broken: fails on valid input.
13413 rm -f conftest.err conftest.i conftest.$ac_ext
13415 # OK, works on sane cases. Now check whether nonexistent headers
13416 # can be detected and how.
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #include <ac_nonexistent.h>
13421 if ac_fn_c_try_cpp "$LINENO"; then :
13422 # Broken: success on invalid input.
13425 # Passes both tests.
13429 rm -f conftest.err conftest.i conftest.$ac_ext
13432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13433 rm -f conftest.i conftest.err conftest.$ac_ext
13434 if $ac_preproc_ok; then :
13437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13439 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13440 See \`config.log' for more details" "$LINENO" 5; }
13444 ac_cpp='$CPP $CPPFLAGS'
13445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
13451 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13455 $as_echo_n "checking whether ln -s works... " >&6; }
13457 if test "$LN_S" = "ln -s"; then
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13459 $as_echo "yes" >&6; }
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13462 $as_echo "no, using $LN_S" >&6; }
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13466 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13468 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13469 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13470 $as_echo_n "(cached) " >&6
13472 cat >conftest.make <<\_ACEOF
13475 @echo '@@@%%%=$(MAKE)=@@@%%%'
13477 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13479 *@@@%%%=?*=@@@%%%*)
13480 eval ac_cv_prog_make_${ac_make}_set=yes;;
13482 eval ac_cv_prog_make_${ac_make}_set=no;;
13484 rm -f conftest.make
13486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 $as_echo "yes" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493 SET_MAKE="MAKE=${MAKE-make}"
13499 for ac_prog in 'bison -y' byacc
13501 # Extract the first word of "$ac_prog", so it can be a program name with args.
13502 set dummy $ac_prog; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if ${ac_cv_prog_YACC+:} false; then :
13506 $as_echo_n "(cached) " >&6
13508 if test -n "$YACC"; then
13509 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518 ac_cv_prog_YACC="$ac_prog"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 YACC=$ac_cv_prog_YACC
13529 if test -n "$YACC"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13531 $as_echo "$YACC" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13538 test -n "$YACC" && break
13540 test -n "$YACC" || YACC="yacc"
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
13547 $as_echo_n "checking if bison is the parser generator... " >&6; }
13548 if ${ax_cv_prog_bison+:} false; then :
13549 $as_echo_n "(cached) " >&6
13552 if $YACC --version 2>/dev/null | $EGREP -q '^bison '; then :
13553 ax_cv_prog_bison=yes
13555 ax_cv_prog_bison=no
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
13560 $as_echo "$ax_cv_prog_bison" >&6; }
13561 if test "$ax_cv_prog_bison" = "yes"; then :
13563 YACC="${YACC% -y} -o y.tab.c"
13571 if test "$USE_MAINTAINER_MODE" = "yes"; then
13572 for ac_prog in gcov
13574 # Extract the first word of "$ac_prog", so it can be a program name with args.
13575 set dummy $ac_prog; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if ${ac_cv_prog_GCOV+:} false; then :
13579 $as_echo_n "(cached) " >&6
13581 if test -n "$GCOV"; then
13582 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591 ac_cv_prog_GCOV="$ac_prog"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13601 GCOV=$ac_cv_prog_GCOV
13602 if test -n "$GCOV"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
13604 $as_echo "$GCOV" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13611 test -n "$GCOV" && break
13613 test -n "$GCOV" || GCOV="gcov"
13615 # gcov coverage reporting
13617 # Check whether --enable-gcov was given.
13618 if test "${enable_gcov+set}" = set; then :
13619 enableval=$enable_gcov; use_gcov=yes
13625 if test "x$use_gcov" = "xyes"; then
13627 HAVE_GCOV_FALSE='#'
13634 if test "x$use_gcov" = "xyes"; then
13636 if test "$GCC" != "yes"; then
13637 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
13640 # Check if ccache is being used
13641 # Extract the first word of "shtool", so it can be a program name with args.
13642 set dummy shtool; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_SHTOOL+:} false; then :
13646 $as_echo_n "(cached) " >&6
13648 if test -n "$SHTOOL"; then
13649 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_SHTOOL="shtool"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 SHTOOL=$ac_cv_prog_SHTOOL
13669 if test -n "$SHTOOL"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
13671 $as_echo "$SHTOOL" >&6; }
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13678 if test "$SHTOOL"; then
13679 case `$SHTOOL path $CC` in #(
13681 gcc_ccache=yes ;; #(
13687 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
13688 as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
13691 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13"
13692 # Extract the first word of "lcov", so it can be a program name with args.
13693 set dummy lcov; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_prog_LCOV+:} false; then :
13697 $as_echo_n "(cached) " >&6
13699 if test -n "$LCOV"; then
13700 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709 ac_cv_prog_LCOV="lcov"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 LCOV=$ac_cv_prog_LCOV
13720 if test -n "$LCOV"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
13722 $as_echo "$LCOV" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13729 # Extract the first word of "genhtml", so it can be a program name with args.
13730 set dummy genhtml; ac_word=$2
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if ${ac_cv_prog_GENHTML+:} false; then :
13734 $as_echo_n "(cached) " >&6
13736 if test -n "$GENHTML"; then
13737 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH
13743 test -z "$as_dir" && as_dir=.
13744 for ac_exec_ext in '' $ac_executable_extensions; do
13745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13746 ac_cv_prog_GENHTML="genhtml"
13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 GENHTML=$ac_cv_prog_GENHTML
13757 if test -n "$GENHTML"; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
13759 $as_echo "$GENHTML" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13767 if test "$LCOV"; then
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
13769 $as_echo_n "checking for lcov version... " >&6; }
13770 if ${glib_cv_lcov_version+:} false; then :
13771 $as_echo_n "(cached) " >&6
13774 glib_cv_lcov_version=invalid
13775 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
13776 for lcov_check_version in $lcov_version_list; do
13777 if test "$lcov_version" = "$lcov_check_version"; then
13778 glib_cv_lcov_version="$lcov_check_version (ok)"
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5
13784 $as_echo "$glib_cv_lcov_version" >&6; }
13786 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
13787 as_fn_error $? "$lcov_msg" "$LINENO" 5
13790 case $glib_cv_lcov_version in
13792 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
13793 as_fn_error $? "$lcov_msg" "$LINENO" 5
13798 if test -z "$GENHTML"; then
13799 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
13802 # Remove all optimization flags from CFLAGS
13804 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
13805 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-O[0-9]*//g'`
13808 # Add the special gcc flags
13809 COVERAGE_CFLAGS="--coverage -DDEBUG"
13810 COVERAGE_CXXFLAGS="--coverage -DDEBUG"
13811 COVERAGE_LDFLAGS="--coverage -lgcov"
13820 HAVE_GCOV_FALSE='#'
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13829 $as_echo_n "checking for inline... " >&6; }
13830 if ${ac_cv_c_inline+:} false; then :
13831 $as_echo_n "(cached) " >&6
13834 for ac_kw in inline __inline__ __inline; do
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #ifndef __cplusplus
13839 static $ac_kw foo_t static_foo () {return 0; }
13840 $ac_kw foo_t foo () {return 0; }
13844 if ac_fn_c_try_compile "$LINENO"; then :
13845 ac_cv_c_inline=$ac_kw
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 test "$ac_cv_c_inline" != no && break
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13853 $as_echo "$ac_cv_c_inline" >&6; }
13855 case $ac_cv_c_inline in
13858 case $ac_cv_c_inline in
13860 *) ac_val=$ac_cv_c_inline;;
13862 cat >>confdefs.h <<_ACEOF
13863 #ifndef __cplusplus
13864 #define inline $ac_val
13871 # We need to compile and run a program on the build machine.
13872 # The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
13875 $as_echo_n "checking for cc for build... " >&6; }
13876 if test "$cross_compiling" = "yes"; then
13877 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
13879 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13882 $as_echo "$CC_FOR_BUILD" >&6; }
13886 # This is handy for debugging so the compiler doesn't rearrange
13887 # things and eliminate variables.
13888 # Check whether --enable-optimization was given.
13889 if test "${enable_optimization+set}" = set; then :
13890 enableval=$enable_optimization; if test $enableval = no ; then
13891 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
13896 if test "$GCC" = yes; then
13897 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
13899 if test "$USE_MAINTAINER_MODE" = "yes"; then
13900 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
13902 # We use -W only if -Wno-missing-field-initializers is supported.
13903 # -W is important because it detects errors like "if (foo);"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
13905 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
13906 _gcc_cflags_save=$CFLAGS
13907 CFLAGS="-Wno-missing-field-initializers"
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13919 if ac_fn_c_try_compile "$LINENO"; then :
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13926 $as_echo "$_gcc_wopt" >&6; }
13927 CFLAGS=$_gcc_cflags_save;
13928 if test x"$_gcc_wopt" = xyes ; then
13929 CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
13933 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
13934 _gcc_cflags_save=$CFLAGS
13935 CFLAGS="-Wdeclaration-after-statement"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13947 if ac_fn_c_try_compile "$LINENO"; then :
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13954 $as_echo "$_gcc_wopt" >&6; }
13955 CFLAGS=$_gcc_cflags_save;
13956 if test x"$_gcc_wopt" = xyes ; then
13957 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
13962 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
13963 _gcc_cflags_save=$CFLAGS
13964 CFLAGS="-Wpointer-arith"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13976 if ac_fn_c_try_compile "$LINENO"; then :
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13983 $as_echo "$_gcc_wopt" >&6; }
13984 CFLAGS=$_gcc_cflags_save;
13985 if test x"$_gcc_wopt" = xyes ; then
13986 CFLAGS="$CFLAGS -Wpointer-arith"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
13990 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
13991 _gcc_cflags_save=$CFLAGS
13992 CFLAGS="-Wno-pointer-sign"
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
14004 if ac_fn_c_try_compile "$LINENO"; then :
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
14011 $as_echo "$_gcc_psign" >&6; }
14012 CFLAGS=$_gcc_cflags_save;
14013 if test x"$_gcc_psign" = xyes ; then
14014 CFLAGS="$CFLAGS -Wno-pointer-sign"
14019 # Setup some stuff depending on host.
14021 have_w32ce_system=no
14024 have_w32_system=yes
14025 have_w32ce_system=yes
14028 have_w32_system=yes
14032 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
14038 if test "$have_w32_system" = yes; then
14040 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
14042 if test "$have_w32ce_system" = yes; then
14044 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
14048 if test "$have_w32_system" = yes; then
14049 HAVE_W32_SYSTEM_TRUE=
14050 HAVE_W32_SYSTEM_FALSE='#'
14052 HAVE_W32_SYSTEM_TRUE='#'
14053 HAVE_W32_SYSTEM_FALSE=
14056 if test "$have_w32ce_system" = yes; then
14057 HAVE_W32CE_SYSTEM_TRUE=
14058 HAVE_W32CE_SYSTEM_FALSE='#'
14060 HAVE_W32CE_SYSTEM_TRUE='#'
14061 HAVE_W32CE_SYSTEM_FALSE=
14066 # For some systems we know that we have ld_version scripts.
14067 # Use it then as default.
14068 have_ld_version_script=no
14071 have_ld_version_script=yes
14074 have_ld_version_script=yes
14077 # Check whether --enable-ld-version-script was given.
14078 if test "${enable_ld_version_script+set}" = set; then :
14079 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
14084 if test "$have_ld_version_script" = "yes"; then
14085 HAVE_LD_VERSION_SCRIPT_TRUE=
14086 HAVE_LD_VERSION_SCRIPT_FALSE='#'
14088 HAVE_LD_VERSION_SCRIPT_TRUE='#'
14089 HAVE_LD_VERSION_SCRIPT_FALSE=
14095 # Check for ELF visibility support.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
14098 $as_echo_n "checking whether the visibility attribute is supported... " >&6; }
14099 if ${ksba_cv_visibility_attribute+:} false; then :
14100 $as_echo_n "(cached) " >&6
14102 ksba_cv_visibility_attribute=no
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105 int foo __attribute__ ((visibility ("hidden"))) = 1;
14106 int bar __attribute__ ((visibility ("protected"))) = 1;
14110 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14112 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
14113 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
14114 ksba_cv_visibility_attribute=yes
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
14121 $as_echo "$ksba_cv_visibility_attribute" >&6; }
14122 if test "$ksba_cv_visibility_attribute" = "yes"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
14124 $as_echo_n "checking for broken visibility attribute... " >&6; }
14125 if ${ksba_cv_broken_visibility_attribute+:} false; then :
14126 $as_echo_n "(cached) " >&6
14128 ksba_cv_broken_visibility_attribute=yes
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14132 int bar (int x) __asm__ ("foo")
14133 __attribute__ ((visibility ("hidden")));
14134 int bar (int x) { return x; }
14138 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14140 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
14142 ksba_cv_broken_visibility_attribute=no
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
14148 $as_echo "$ksba_cv_broken_visibility_attribute" >&6; }
14150 if test "$ksba_cv_visibility_attribute" = "yes"; then
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
14152 $as_echo_n "checking for broken alias attribute... " >&6; }
14153 if ${ksba_cv_broken_alias_attribute+:} false; then :
14154 $as_echo_n "(cached) " >&6
14156 ksba_cv_broken_alias_attribute=yes
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 extern int foo (int x) __asm ("xyzzy");
14160 int bar (int x) { return x; }
14161 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
14163 extern __typeof (dfoo) dfoo __asm ("abccb");
14168 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
14170 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
14171 grep 'abccb' conftest.s >/dev/null 2>&1; then
14172 ksba_cv_broken_alias_attribute=no
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
14178 $as_echo "$ksba_cv_broken_alias_attribute" >&6; }
14180 if test "$ksba_cv_visibility_attribute" = "yes"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
14182 $as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
14183 if ${ksba_cv_gcc_has_f_visibility+:} false; then :
14184 $as_echo_n "(cached) " >&6
14186 ksba_cv_gcc_has_f_visibility=no
14187 _gcc_cflags_save=$CFLAGS
14188 CFLAGS="-fvisibility=hidden"
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14200 if ac_fn_c_try_compile "$LINENO"; then :
14201 ksba_cv_gcc_has_f_visibility=yes
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 CFLAGS=$_gcc_cflags_save;
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
14208 $as_echo "$ksba_cv_gcc_has_f_visibility" >&6; }
14210 if test "$ksba_cv_visibility_attribute" = "yes" \
14211 && test "$ksba_cv_broken_visibility_attribute" != "yes" \
14212 && test "$ksba_cv_broken_alias_attribute" != "yes" \
14213 && test "$ksba_cv_gcc_has_f_visibility" = "yes"
14216 $as_echo "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
14218 CFLAGS="$CFLAGS -fvisibility=hidden"
14223 # Checks for libraries.
14226 gpg_error_config_prefix=""
14228 # Check whether --with-libgpg-error-prefix was given.
14229 if test "${with_libgpg_error_prefix+set}" = set; then :
14230 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
14235 # Check whether --with-gpg-error-prefix was given.
14236 if test "${with_gpg_error_prefix+set}" = set; then :
14237 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
14241 if test x"${GPG_ERROR_CONFIG}" = x ; then
14242 if test x"${gpg_error_config_prefix}" != x ; then
14243 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
14245 case "${SYSROOT}" in
14247 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
14248 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
14255 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
14261 # Extract the first word of "gpg-error-config", so it can be a program name with args.
14262 set dummy gpg-error-config; ac_word=$2
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264 $as_echo_n "checking for $ac_word... " >&6; }
14265 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
14266 $as_echo_n "(cached) " >&6
14268 case $GPG_ERROR_CONFIG in
14270 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
14273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14277 test -z "$as_dir" && as_dir=.
14278 for ac_exec_ext in '' $ac_executable_extensions; do
14279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14280 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
14292 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
14293 if test -n "$GPG_ERROR_CONFIG"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
14295 $as_echo "$GPG_ERROR_CONFIG" >&6; }
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14302 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
14305 # Extract the first word of "gpgrt-config", so it can be a program name with args.
14306 set dummy gpgrt-config; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
14310 $as_echo_n "(cached) " >&6
14312 case $GPGRT_CONFIG in
14314 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 as_dummy="$prefix/bin:$PATH"
14319 for as_dir in $as_dummy
14322 test -z "$as_dir" && as_dir=.
14323 for ac_exec_ext in '' $ac_executable_extensions; do
14324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14325 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
14337 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
14338 if test -n "$GPGRT_CONFIG"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
14340 $as_echo "$GPGRT_CONFIG" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14347 if test "$GPGRT_CONFIG" != "no"; then
14348 # Determine gpgrt_libdir
14350 # Get the prefix of gpgrt-config assuming it's something like:
14351 # <PREFIX>/bin/gpgrt-config
14352 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
14353 possible_libdir1=${gpgrt_prefix}/lib
14354 # Determine by using system libdir-format with CC, it's like:
14355 # Normal style: /usr/lib
14356 # GNU cross style: /usr/<triplet>/lib
14357 # Debian style: /usr/lib/<multiarch-name>
14358 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
14359 # It is assumed that CC is specified to the one of host on cross build.
14360 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
14361 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
14363 # From the output of -print-search-dirs, select valid pkgconfig dirs.
14364 libdir_candidates=$(for dir in $libdir_candidates; do
14365 if p=$(cd $dir 2>/dev/null && pwd); then
14366 test -d "$p/pkgconfig" && echo $p;
14370 for possible_libdir0 in $libdir_candidates; do
14371 # possible_libdir0:
14372 # Fallback candidate, the one of system-installed (by $CC)
14373 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
14374 # possible_libdir1:
14375 # Another candidate, user-locally-installed
14376 # (<gpgrt_prefix>/lib)
14379 # (<gpgrt_prefix>/<triplet>/lib,
14380 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
14381 if test "${possible_libdir0##*/}" = "lib"; then
14382 possible_prefix0=${possible_libdir0%/lib}
14383 possible_prefix0_triplet=${possible_prefix0##*/}
14384 if test -z "$possible_prefix0_triplet"; then
14387 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
14389 possible_prefix0=${possible_libdir0%%/lib*}
14390 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
14392 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
14393 gpgrt_libdir=${possible_libdir2}
14394 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
14395 gpgrt_libdir=${possible_libdir1}
14396 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
14397 gpgrt_libdir=${possible_libdir0}
14399 if test -n "$gpgrt_libdir"; then break; fi
14401 if test -z "$libdir_candidates"; then
14402 # No valid pkgconfig dir in any of the system directories, fallback
14403 gpgrt_libdir=${possible_libdir1}
14406 # When we cannot determine system libdir-format, use this:
14407 gpgrt_libdir=${possible_libdir1}
14413 if test -n "$gpgrt_libdir"; then
14414 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
14415 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
14416 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
14418 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
14419 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
14423 elif test "$GPG_ERROR_CONFIG" != "no"; then
14424 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
14427 if test "$GPG_ERROR_CONFIG" != "no"; then
14428 req_major=`echo $min_gpg_error_version | \
14429 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
14430 req_minor=`echo $min_gpg_error_version | \
14431 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
14432 major=`echo $gpg_error_config_version | \
14433 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
14434 minor=`echo $gpg_error_config_version | \
14435 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
14436 if test "$major" -gt "$req_major"; then
14439 if test "$major" -eq "$req_major"; then
14440 if test "$minor" -ge "$req_minor"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
14447 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
14448 if test $ok = yes; then
14449 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
14450 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
14451 if test -z "$GPGRT_CONFIG"; then
14452 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
14453 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
14455 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
14456 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
14457 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
14458 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
14461 $as_echo "yes ($gpg_error_config_version)" >&6; }
14463 if test -z "$GPGRT_CONFIG"; then
14464 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
14466 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
14468 if test x"$gpg_error_config_host" != xnone ; then
14469 if test x"$gpg_error_config_host" != x"$host" ; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14472 *** The config script \"$GPG_ERROR_CONFIG\" was
14473 *** built for $gpg_error_config_host and thus may not match the
14474 *** used host $host.
14475 *** You may want to use the configure option --with-libgpg-error-prefix
14476 *** to specify a matching config script or use \$SYSROOT.
14478 $as_echo "$as_me: WARNING:
14480 *** The config script \"$GPG_ERROR_CONFIG\" was
14481 *** built for $gpg_error_config_host and thus may not match the
14482 *** used host $host.
14483 *** You may want to use the configure option --with-libgpg-error-prefix
14484 *** to specify a matching config script or use \$SYSROOT.
14486 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
14490 GPG_ERROR_CFLAGS=""
14492 GPG_ERROR_MT_CFLAGS=""
14493 GPG_ERROR_MT_LIBS=""
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14495 $as_echo "no" >&6; }
14503 if test "x$GPG_ERROR_LIBS" = "x"; then
14504 as_fn_error $? "libgpg-error is needed.
14505 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
14509 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
14512 if test -n "$GPGRT_CONFIG" \
14513 -a "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
14514 USE_GPGRT_CONFIG_TRUE=
14515 USE_GPGRT_CONFIG_FALSE='#'
14517 USE_GPGRT_CONFIG_TRUE='#'
14518 USE_GPGRT_CONFIG_FALSE=
14522 # Checks for header files.
14524 # Checks for typedefs, structures, and compiler characteristics.
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14526 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14527 if ${ac_cv_c_const+:} false; then :
14528 $as_echo_n "(cached) " >&6
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14537 #ifndef __cplusplus
14538 /* Ultrix mips cc rejects this sort of thing. */
14539 typedef int charset[2];
14540 const charset cs = { 0, 0 };
14541 /* SunOS 4.1.1 cc rejects this. */
14542 char const *const *pcpcc;
14544 /* NEC SVR4.0.2 mips cc rejects this. */
14545 struct point {int x, y;};
14546 static struct point const zero = {0,0};
14547 /* AIX XL C 1.02.0.0 rejects this.
14548 It does not let you subtract one const X* pointer from another in
14549 an arm of an if-expression whose if-part is not a constant
14551 const char *g = "string";
14552 pcpcc = &g + (g ? g-g : 0);
14553 /* HPUX 7.0 cc rejects these. */
14555 ppc = (char**) pcpcc;
14556 pcpcc = (char const *const *) ppc;
14557 { /* SCO 3.2v4 cc rejects this sort of thing. */
14560 char const *s = 0 ? (char *) 0 : (char const *) 0;
14565 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14566 int x[] = {25, 17};
14567 const int *foo = &x[0];
14570 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14571 typedef const int *iptr;
14575 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14576 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14577 struct s { int j; const int *ap[3]; } bx;
14578 struct s *b = &bx; b->j = 5;
14580 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14581 const int foo = 10;
14582 if (!foo) return 0;
14584 return !cs[0] && !zero.x;
14591 if ac_fn_c_try_compile "$LINENO"; then :
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14599 $as_echo "$ac_cv_c_const" >&6; }
14600 if test $ac_cv_c_const = no; then
14602 $as_echo "#define const /**/" >>confdefs.h
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14608 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14609 if ${ac_cv_c_bigendian+:} false; then :
14610 $as_echo_n "(cached) " >&6
14612 ac_cv_c_bigendian=unknown
14613 # See if we're dealing with a universal compiler.
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 #ifndef __APPLE_CC__
14617 not a universal capable compiler
14622 if ac_fn_c_try_compile "$LINENO"; then :
14624 # Check for potential -arch flags. It is not universal unless
14625 # there are at least two -arch flags with different values.
14628 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14629 if test -n "$ac_prev"; then
14631 i?86 | x86_64 | ppc | ppc64)
14632 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14635 ac_cv_c_bigendian=universal
14641 elif test "x$ac_word" = "x-arch"; then
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 if test $ac_cv_c_bigendian = unknown; then
14648 # See if sys/param.h defines the BYTE_ORDER macro.
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651 #include <sys/types.h>
14652 #include <sys/param.h>
14657 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14658 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14660 bogus endian macros
14667 if ac_fn_c_try_compile "$LINENO"; then :
14668 # It does; now see whether it defined to BIG_ENDIAN or not.
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 #include <sys/types.h>
14672 #include <sys/param.h>
14677 #if BYTE_ORDER != BIG_ENDIAN
14685 if ac_fn_c_try_compile "$LINENO"; then :
14686 ac_cv_c_bigendian=yes
14688 ac_cv_c_bigendian=no
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 if test $ac_cv_c_bigendian = unknown; then
14695 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698 #include <limits.h>
14703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14704 bogus endian macros
14711 if ac_fn_c_try_compile "$LINENO"; then :
14712 # It does; now see whether it defined to _BIG_ENDIAN or not.
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715 #include <limits.h>
14720 #ifndef _BIG_ENDIAN
14728 if ac_fn_c_try_compile "$LINENO"; then :
14729 ac_cv_c_bigendian=yes
14731 ac_cv_c_bigendian=no
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 if test $ac_cv_c_bigendian = unknown; then
14738 # Compile a test program.
14739 if test "$cross_compiling" = yes; then :
14740 # Try to guess by grepping values from an object file.
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 short int ascii_mm[] =
14744 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14745 short int ascii_ii[] =
14746 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14747 int use_ascii (int i) {
14748 return ascii_mm[i] + ascii_ii[i];
14750 short int ebcdic_ii[] =
14751 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14752 short int ebcdic_mm[] =
14753 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14754 int use_ebcdic (int i) {
14755 return ebcdic_mm[i] + ebcdic_ii[i];
14762 return use_ascii (foo) == use_ebcdic (foo);
14767 if ac_fn_c_try_compile "$LINENO"; then :
14768 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14769 ac_cv_c_bigendian=yes
14771 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14772 if test "$ac_cv_c_bigendian" = unknown; then
14773 ac_cv_c_bigendian=no
14775 # finding both strings is unlikely to happen, but who knows?
14776 ac_cv_c_bigendian=unknown
14780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14784 $ac_includes_default
14789 /* Are we little or big endian? From Harbison&Steele. */
14793 char c[sizeof (long int)];
14796 return u.c[sizeof (long int) - 1] == 1;
14802 if ac_fn_c_try_run "$LINENO"; then :
14803 ac_cv_c_bigendian=no
14805 ac_cv_c_bigendian=yes
14807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14808 conftest.$ac_objext conftest.beam conftest.$ac_ext
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14814 $as_echo "$ac_cv_c_bigendian" >&6; }
14815 case $ac_cv_c_bigendian in #(
14817 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14823 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14827 as_fn_error $? "unknown endianness
14828 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14832 # The cast to long int works around a bug in the HP C Compiler
14833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14835 # This bug is HP SR number 8606223364.
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14837 $as_echo_n "checking size of unsigned int... " >&6; }
14838 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14839 $as_echo_n "(cached) " >&6
14841 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14844 if test "$ac_cv_type_unsigned_int" = yes; then
14845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14847 as_fn_error 77 "cannot compute sizeof (unsigned int)
14848 See \`config.log' for more details" "$LINENO" 5; }
14850 ac_cv_sizeof_unsigned_int=0
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14856 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14860 cat >>confdefs.h <<_ACEOF
14861 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14865 # The cast to long int works around a bug in the HP C Compiler
14866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868 # This bug is HP SR number 8606223364.
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14870 $as_echo_n "checking size of unsigned long... " >&6; }
14871 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14872 $as_echo_n "(cached) " >&6
14874 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14877 if test "$ac_cv_type_unsigned_long" = yes; then
14878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880 as_fn_error 77 "cannot compute sizeof (unsigned long)
14881 See \`config.log' for more details" "$LINENO" 5; }
14883 ac_cv_sizeof_unsigned_long=0
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14889 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14893 cat >>confdefs.h <<_ACEOF
14894 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14898 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14899 if test "x$ac_cv_type_u32" = xyes; then :
14901 cat >>confdefs.h <<_ACEOF
14910 # Checks for library functions.
14911 for ac_func in stpcpy gmtime_r getenv
14913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14916 cat >>confdefs.h <<_ACEOF
14917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14929 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14930 if test "x$ac_cv_type_size_t" = xyes; then :
14934 cat >>confdefs.h <<_ACEOF
14935 #define size_t unsigned int
14940 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14941 # for constant arguments. Useless!
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14943 $as_echo_n "checking for working alloca.h... " >&6; }
14944 if ${ac_cv_working_alloca_h+:} false; then :
14945 $as_echo_n "(cached) " >&6
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14949 #include <alloca.h>
14953 char *p = (char *) alloca (2 * sizeof (int));
14959 if ac_fn_c_try_link "$LINENO"; then :
14960 ac_cv_working_alloca_h=yes
14962 ac_cv_working_alloca_h=no
14964 rm -f core conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14968 $as_echo "$ac_cv_working_alloca_h" >&6; }
14969 if test $ac_cv_working_alloca_h = yes; then
14971 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14976 $as_echo_n "checking for alloca... " >&6; }
14977 if ${ac_cv_func_alloca_works+:} false; then :
14978 $as_echo_n "(cached) " >&6
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14983 # define alloca __builtin_alloca
14986 # include <malloc.h>
14987 # define alloca _alloca
14989 # ifdef HAVE_ALLOCA_H
14990 # include <alloca.h>
14995 # ifndef alloca /* predefined by HP cc +Olibcalls */
14996 void *alloca (size_t);
15006 char *p = (char *) alloca (1);
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 ac_cv_func_alloca_works=yes
15015 ac_cv_func_alloca_works=no
15017 rm -f core conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15021 $as_echo "$ac_cv_func_alloca_works" >&6; }
15023 if test $ac_cv_func_alloca_works = yes; then
15025 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15028 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15029 # that cause trouble. Some versions do not even contain alloca or
15030 # contain a buggy version. If you still want to use their alloca,
15031 # use ar to extract alloca.o from them instead of compiling alloca.c.
15033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15035 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15039 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15040 if ${ac_cv_os_cray+:} false; then :
15041 $as_echo_n "(cached) " >&6
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 #if defined CRAY && ! defined CRAY2
15052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15053 $EGREP "webecray" >/dev/null 2>&1; then :
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15062 $as_echo "$ac_cv_os_cray" >&6; }
15063 if test $ac_cv_os_cray = yes; then
15064 for ac_func in _getb67 GETB67 getb67; do
15065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15067 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15069 cat >>confdefs.h <<_ACEOF
15070 #define CRAY_STACKSEG_END $ac_func
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15080 $as_echo_n "checking stack direction for C alloca... " >&6; }
15081 if ${ac_cv_c_stack_direction+:} false; then :
15082 $as_echo_n "(cached) " >&6
15084 if test "$cross_compiling" = yes; then :
15085 ac_cv_c_stack_direction=0
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 $ac_includes_default
15091 find_stack_direction (int *addr, int depth)
15093 int dir, dummy = 0;
15096 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15097 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15098 return dir + dummy;
15102 main (int argc, char **argv)
15104 return find_stack_direction (0, argc + !argv + 20) < 0;
15107 if ac_fn_c_try_run "$LINENO"; then :
15108 ac_cv_c_stack_direction=1
15110 ac_cv_c_stack_direction=-1
15112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15113 conftest.$ac_objext conftest.beam conftest.$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15118 $as_echo "$ac_cv_c_stack_direction" >&6; }
15119 cat >>confdefs.h <<_ACEOF
15120 #define STACK_DIRECTION $ac_cv_c_stack_direction
15127 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
15134 if test $ac_cv_func_alloca_works = no; then
15138 # Define an additional variable used in the Makefile substitution.
15139 if test $ac_cv_working_alloca_h = yes; then
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15143 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15149 $EGREP "Need own alloca" >/dev/null 2>&1; then :
15151 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15165 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15169 # Check whether --enable-valgrind-tests was given.
15170 if test "${enable_valgrind_tests+set}" = set; then :
15171 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
15173 opt_valgrind_tests=yes
15177 # Run self-tests under valgrind?
15178 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
15179 for ac_prog in valgrind
15181 # Extract the first word of "$ac_prog", so it can be a program name with args.
15182 set dummy $ac_prog; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184 $as_echo_n "checking for $ac_word... " >&6; }
15185 if ${ac_cv_prog_VALGRIND+:} false; then :
15186 $as_echo_n "(cached) " >&6
15188 if test -n "$VALGRIND"; then
15189 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_VALGRIND="$ac_prog"
15199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 VALGRIND=$ac_cv_prog_VALGRIND
15209 if test -n "$VALGRIND"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
15211 $as_echo "$VALGRIND" >&6; }
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214 $as_echo "no" >&6; }
15218 test -n "$VALGRIND" && break
15223 OPTS="-q --error-exitcode=1 --leak-check=full"
15225 if test -n "$VALGRIND" \
15226 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
15227 opt_valgrind_tests=yes
15228 VALGRIND="$VALGRIND $OPTS"
15230 opt_valgrind_tests=no
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
15235 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
15237 $as_echo "$opt_valgrind_tests" >&6; }
15241 # To be used in ksba-config
15242 KSBA_CONFIG_LIBS="-lksba"
15243 KSBA_CONFIG_CFLAGS=""
15244 KSBA_CONFIG_HOST="$host"
15250 # The Makefiles need to know about cross compiling
15251 if test x$cross_compiling != xno; then
15252 CROSS_COMPILING_TRUE=
15253 CROSS_COMPILING_FALSE='#'
15255 CROSS_COMPILING_TRUE='#'
15256 CROSS_COMPILING_FALSE=
15261 # Generate extended version information for W32.
15262 if test "$have_w32_system" = yes; then
15263 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
15264 BUILD_FILEVERSION="${BUILD_FILEVERSION}49146"
15268 BUILD_REVISION="bffa9b3"
15271 cat >>confdefs.h <<_ACEOF
15272 #define BUILD_REVISION "$BUILD_REVISION"
15276 # Check whether --enable-build-timestamp was given.
15277 if test "${enable_build_timestamp+set}" = set; then :
15278 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
15279 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
15281 BUILD_TIMESTAMP="$enableval"
15284 BUILD_TIMESTAMP="<none>"
15289 cat >>confdefs.h <<_ACEOF
15290 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
15295 # Check whether --enable-doc was given.
15296 if test "${enable_doc+set}" = set; then :
15297 enableval=$enable_doc; build_doc=$enableval
15302 if test "x$build_doc" != xno; then
15304 BUILD_DOC_FALSE='#'
15312 ac_config_files="$ac_config_files Makefile m4/Makefile gl/Makefile src/Makefile src/ksba.h src/ksba-config src/ksba.pc src/versioninfo.rc tests/Makefile doc/Makefile"
15314 cat >confcache <<\_ACEOF
15315 # This file is a shell script that caches the results of configure
15316 # tests run on this system so they can be shared between configure
15317 # scripts and configure runs, see configure's option --config-cache.
15318 # It is not useful on other systems. If it contains results you don't
15319 # want to keep, you may remove or edit it.
15321 # config.status only pays attention to the cache file if you give it
15322 # the --recheck option to rerun configure.
15324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15326 # following values.
15330 # The following way of writing the cache mishandles newlines in values,
15331 # but we know of no workaround that is simple, portable, and efficient.
15332 # So, we kill variables containing newlines.
15333 # Ultrix sh set writes to stderr and can't be redirected directly,
15334 # and sets the high bit in the cache file unless we assign to the vars.
15336 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15337 eval ac_val=\$$ac_var
15341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15345 _ | IFS | as_nl) ;; #(
15346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15347 *) { eval $ac_var=; unset $ac_var;} ;;
15353 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15354 *${as_nl}ac_space=\ *)
15355 # `set' does not quote correctly, so add quotes: double-quote
15356 # substitution turns \\\\ into \\, and sed turns \\ into \.
15359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15362 # `set' quotes correctly as required by POSIX, so do not add quotes.
15363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15374 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15377 if test -w "$cache_file"; then
15378 if test "x$cache_file" != "x/dev/null"; then
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15380 $as_echo "$as_me: updating cache $cache_file" >&6;}
15381 if test ! -f "$cache_file" || test -h "$cache_file"; then
15382 cat confcache >"$cache_file"
15384 case $cache_file in #(
15386 mv -f confcache "$cache_file"$$ &&
15387 mv -f "$cache_file"$$ "$cache_file" ;; #(
15389 mv -f confcache "$cache_file" ;;
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15401 # Let make expand exec_prefix.
15402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15404 DEFS=-DHAVE_CONFIG_H
15409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15410 # 1. Remove the extension, and $U if already installed.
15411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15412 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15414 # will be set to the directory where LIBOBJS objects are built.
15415 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15416 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15418 LIBOBJS=$ac_libobjs
15420 LTLIBOBJS=$ac_ltlibobjs
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15424 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15425 if test -n "$am_sleep_pid"; then
15426 # Hide warnings about reused PIDs.
15427 wait $am_sleep_pid 2>/dev/null
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15430 $as_echo "done" >&6; }
15431 if test -n "$EXEEXT"; then
15433 am__EXEEXT_FALSE='#'
15435 am__EXEEXT_TRUE='#'
15439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15440 as_fn_error $? "conditional \"AMDEP\" was never defined.
15441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15444 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15448 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15452 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15455 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
15456 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
15457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15459 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
15460 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
15461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15463 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15464 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15468 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15471 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15472 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15475 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
15476 as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
15477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15481 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
15485 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
15486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15489 : "${CONFIG_STATUS=./config.status}"
15491 ac_clean_files_save=$ac_clean_files
15492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15496 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15498 # Generated by $as_me.
15499 # Run this file to recreate the current configuration.
15500 # Compiler output produced by configure, useful for debugging
15501 # configure, is in config.log if it exists.
15504 ac_cs_recheck=false
15507 SHELL=\${CONFIG_SHELL-$SHELL}
15510 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15511 ## -------------------- ##
15512 ## M4sh Initialization. ##
15513 ## -------------------- ##
15515 # Be more Bourne compatible
15516 DUALCASE=1; export DUALCASE # for MKS sh
15517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15521 # is contrary to our usage. Disable this feature.
15522 alias -g '${1+"$@"}'='"$@"'
15523 setopt NO_GLOB_SUBST
15525 case `(set -o) 2>/dev/null` in #(
15537 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15538 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15541 # Prefer a ksh shell builtin over an external printf program on Solaris,
15542 # but without wasting forks for bash or zsh.
15543 if test -z "$BASH_VERSION$ZSH_VERSION" \
15544 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15545 as_echo='print -r --'
15546 as_echo_n='print -rn --'
15547 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15548 as_echo='printf %s\n'
15549 as_echo_n='printf %s'
15551 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15552 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15553 as_echo_n='/usr/ucb/echo -n'
15555 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15556 as_echo_n_body='eval
15560 expr "X$arg" : "X\\(.*\\)$as_nl";
15561 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15563 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15565 export as_echo_n_body
15566 as_echo_n='sh -c $as_echo_n_body as_echo'
15568 export as_echo_body
15569 as_echo='sh -c $as_echo_body as_echo'
15572 # The user is always right.
15573 if test "${PATH_SEPARATOR+set}" != set; then
15575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15576 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15583 # We need space, tab and new line, in precisely that order. Quoting is
15584 # there to prevent editors from complaining about space-tab.
15585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15586 # splitting by setting IFS to empty value.)
15589 # Find who we are. Look in the path if we contain no directory separator.
15592 *[\\/]* ) as_myself=$0 ;;
15593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15594 for as_dir in $PATH
15597 test -z "$as_dir" && as_dir=.
15598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15604 # We did not find ourselves, most probably we were run as `sh COMMAND'
15605 # in which case we are not to be found in the path.
15606 if test "x$as_myself" = x; then
15609 if test ! -f "$as_myself"; then
15610 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15614 # Unset variables that we do not need and which cause bugs (e.g. in
15615 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15616 # suppresses any "Segmentation fault" message there. '((' could
15617 # trigger a bug in pdksh 5.2.14.
15618 for as_var in BASH_ENV ENV MAIL MAILPATH
15619 do eval test x\${$as_var+set} = xset \
15620 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15636 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15637 # ----------------------------------------
15638 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15639 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15640 # script with STATUS, using 1 if that was 0.
15643 as_status=$1; test $as_status -eq 0 && as_status=1
15645 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15646 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15648 $as_echo "$as_me: error: $2" >&2
15649 as_fn_exit $as_status
15653 # as_fn_set_status STATUS
15654 # -----------------------
15655 # Set $? to STATUS, without forking.
15656 as_fn_set_status ()
15659 } # as_fn_set_status
15661 # as_fn_exit STATUS
15662 # -----------------
15663 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15667 as_fn_set_status $1
15673 # Portably unset VAR.
15676 { eval $1=; unset $1;}
15678 as_unset=as_fn_unset
15679 # as_fn_append VAR VALUE
15680 # ----------------------
15681 # Append the text in VALUE to the end of the definition contained in VAR. Take
15682 # advantage of any shell optimizations that allow amortized linear growth over
15683 # repeated appends, instead of the typical quadratic growth present in naive
15685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15686 eval 'as_fn_append ()
15697 # as_fn_arith ARG...
15698 # ------------------
15699 # Perform arithmetic evaluation on the ARGs, and store the result in the
15700 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15701 # must be portable across $(()) and expr.
15702 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15703 eval 'as_fn_arith ()
15710 as_val=`expr "$@" || test $? -eq 1`
15715 if expr a : '\(a\)' >/dev/null 2>&1 &&
15716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15722 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15723 as_basename=basename
15728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15734 as_me=`$as_basename -- "$0" ||
15735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15736 X"$0" : 'X\(//\)$' \| \
15737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15739 sed '/^.*\/\([^/][^/]*\)\/*$/{
15753 # Avoid depending upon Character Ranges.
15754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15757 as_cr_digits='0123456789'
15758 as_cr_alnum=$as_cr_Letters$as_cr_digits
15760 ECHO_C= ECHO_N= ECHO_T=
15761 case `echo -n x` in #(((((
15763 case `echo 'xy\c'` in
15764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15766 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15773 rm -f conf$$ conf$$.exe conf$$.file
15774 if test -d conf$$.dir; then
15775 rm -f conf$$.dir/conf$$.file
15778 mkdir conf$$.dir 2>/dev/null
15780 if (echo >conf$$.file) 2>/dev/null; then
15781 if ln -s conf$$.file conf$$ 2>/dev/null; then
15783 # ... but there are two gotchas:
15784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15786 # In both cases, we have to default to `cp -pR'.
15787 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15789 elif ln conf$$.file conf$$ 2>/dev/null; then
15797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15798 rmdir conf$$.dir 2>/dev/null
15803 # Create "$as_dir" as a directory, including parents if necessary.
15808 -*) as_dir=./$as_dir;;
15810 test -d "$as_dir" || eval $as_mkdir_p || {
15814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15815 *) as_qdir=$as_dir;;
15817 as_dirs="'$as_qdir' $as_dirs"
15818 as_dir=`$as_dirname -- "$as_dir" ||
15819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15820 X"$as_dir" : 'X\(//\)[^/]' \| \
15821 X"$as_dir" : 'X\(//\)$' \| \
15822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15823 $as_echo X"$as_dir" |
15824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15828 /^X\(\/\/\)[^/].*/{
15841 test -d "$as_dir" && break
15843 test -z "$as_dirs" || eval "mkdir $as_dirs"
15844 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15848 if mkdir -p . 2>/dev/null; then
15849 as_mkdir_p='mkdir -p "$as_dir"'
15851 test -d ./-p && rmdir ./-p
15856 # as_fn_executable_p FILE
15857 # -----------------------
15858 # Test if FILE is an executable regular file.
15859 as_fn_executable_p ()
15861 test -f "$1" && test -x "$1"
15862 } # as_fn_executable_p
15863 as_test_x='test -x'
15864 as_executable_p=as_fn_executable_p
15866 # Sed expression to map a string onto a valid CPP name.
15867 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15869 # Sed expression to map a string onto a valid variable name.
15870 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15874 ## ----------------------------------- ##
15875 ## Main body of $CONFIG_STATUS script. ##
15876 ## ----------------------------------- ##
15878 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15881 # Save the log message, to keep $0 and so on meaningful, and to
15882 # report actual input values of CONFIG_FILES etc. instead of their
15883 # values after options handling.
15885 This file was extended by libksba $as_me 1.6.3, which was
15886 generated by GNU Autoconf 2.69. Invocation command line was
15888 CONFIG_FILES = $CONFIG_FILES
15889 CONFIG_HEADERS = $CONFIG_HEADERS
15890 CONFIG_LINKS = $CONFIG_LINKS
15891 CONFIG_COMMANDS = $CONFIG_COMMANDS
15894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15899 case $ac_config_files in *"
15900 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15903 case $ac_config_headers in *"
15904 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 # Files that config.status was made for.
15910 config_files="$ac_config_files"
15911 config_headers="$ac_config_headers"
15912 config_commands="$ac_config_commands"
15916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918 \`$as_me' instantiates files and other configuration actions
15919 from templates according to the current configuration. Unless the files
15920 and actions are specified as TAGs, all are instantiated by default.
15922 Usage: $0 [OPTION]... [TAG]...
15924 -h, --help print this help, then exit
15925 -V, --version print version number and configuration settings, then exit
15926 --config print configuration, then exit
15927 -q, --quiet, --silent
15928 do not print progress messages
15929 -d, --debug don't remove temporary files
15930 --recheck update $as_me by reconfiguring in the same conditions
15931 --file=FILE[:TEMPLATE]
15932 instantiate the configuration file FILE
15933 --header=FILE[:TEMPLATE]
15934 instantiate the configuration header FILE
15936 Configuration files:
15939 Configuration headers:
15942 Configuration commands:
15945 Report bugs to <https://bugs.gnupg.org>."
15948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15949 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15951 libksba config.status 1.6.3
15952 configured by $0, generated by GNU Autoconf 2.69,
15953 with options \\"\$ac_cs_config\\"
15955 Copyright (C) 2012 Free Software Foundation, Inc.
15956 This config.status script is free software; the Free Software Foundation
15957 gives unlimited permission to copy, distribute and modify it."
15964 test -n "\$AWK" || AWK=awk
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 # The default lists apply if the user does not specify any file.
15974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15991 # Handling of the options.
15992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15995 $as_echo "$ac_cs_version"; exit ;;
15996 --config | --confi | --conf | --con | --co | --c )
15997 $as_echo "$ac_cs_config"; exit ;;
15998 --debug | --debu | --deb | --de | --d | -d )
16000 --file | --fil | --fi | --f )
16003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16004 '') as_fn_error $? "missing file argument" ;;
16006 as_fn_append CONFIG_FILES " '$ac_optarg'"
16007 ac_need_defaults=false;;
16008 --header | --heade | --head | --hea )
16011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16013 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16014 ac_need_defaults=false;;
16016 # Conflict between --help and --header
16017 as_fn_error $? "ambiguous option: \`$1'
16018 Try \`$0 --help' for more information.";;
16019 --help | --hel | -h )
16020 $as_echo "$ac_cs_usage"; exit ;;
16021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16022 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16025 # This is an error.
16026 -*) as_fn_error $? "unrecognized option: \`$1'
16027 Try \`$0 --help' for more information." ;;
16029 *) as_fn_append ac_config_targets " $1"
16030 ac_need_defaults=false ;;
16036 ac_configure_extra_args=
16038 if $ac_cs_silent; then
16040 ac_configure_extra_args="$ac_configure_extra_args --silent"
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 if \$ac_cs_recheck; then
16046 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16049 CONFIG_SHELL='$SHELL'
16050 export CONFIG_SHELL
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16060 ## Running $as_me. ##
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16073 # The HP-UX ksh and POSIX shell print the target directory to stdout
16074 # if CDPATH is set.
16075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16077 sed_quote_subst='$sed_quote_subst'
16078 double_quote_subst='$double_quote_subst'
16079 delay_variable_subst='$delay_variable_subst'
16080 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16081 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16082 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16083 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16084 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16085 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16086 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16087 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16088 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16089 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16090 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16091 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16092 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16093 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16094 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16095 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16096 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16097 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16098 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16099 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16100 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16101 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16102 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16103 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16104 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16105 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16106 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16107 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16108 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16109 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16110 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16111 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16112 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16113 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16114 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16115 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16116 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16117 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16118 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16119 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16120 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16121 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16122 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16123 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16124 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16125 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16126 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16127 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16128 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16129 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16130 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16131 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16132 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16133 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16134 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16135 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16136 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16137 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16138 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16139 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16140 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16141 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16142 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16143 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16144 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16145 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16146 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16147 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16148 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16149 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16150 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16151 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16152 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16153 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16154 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16155 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16156 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16157 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16158 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16159 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16160 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16161 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16162 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16163 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16164 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16165 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16166 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16167 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16168 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16169 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16170 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16171 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16172 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16173 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16174 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16175 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16176 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16177 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16178 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16179 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16180 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16181 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16182 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16183 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16184 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16185 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16186 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16187 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16188 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16189 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16190 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16191 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16192 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16193 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16194 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16195 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16196 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16197 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16198 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16199 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16201 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16202 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16203 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16204 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16205 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16206 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16207 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16208 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16209 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16210 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16211 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16212 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16213 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16214 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16215 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16216 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16217 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16218 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16219 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16220 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16221 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16222 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16223 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16224 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16225 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16226 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16227 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16228 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16229 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16230 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16231 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16232 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16233 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16234 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16235 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16236 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16237 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16238 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16239 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16240 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16241 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16242 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16243 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16244 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16245 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16246 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16247 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16248 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16249 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16250 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16251 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16252 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16255 LTCFLAGS='$LTCFLAGS'
16256 compiler='$compiler_DEFAULT'
16258 # A function that is used when there is no print builtin or printf.
16259 func_fallback_echo ()
16261 eval 'cat <<_LTECHO_EOF
16266 # Quote evaled strings.
16283 deplibs_check_method \
16287 sharedlib_from_linklib_cmd \
16290 archiver_list_spec \
16296 lt_cv_sys_global_symbol_pipe \
16297 lt_cv_sys_global_symbol_to_cdecl \
16298 lt_cv_sys_global_symbol_to_c_name_address \
16299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16300 nm_file_list_spec \
16301 lt_prog_compiler_no_builtin_flag \
16302 lt_prog_compiler_pic \
16303 lt_prog_compiler_wl \
16304 lt_prog_compiler_static \
16305 lt_cv_prog_compiler_c_o \
16314 export_dynamic_flag_spec \
16315 whole_archive_flag_spec \
16316 compiler_needs_object \
16318 allow_undefined_flag \
16319 no_undefined_flag \
16320 hardcode_libdir_flag_spec \
16321 hardcode_libdir_separator \
16325 variables_saved_for_relink \
16327 library_names_spec \
16329 install_override_mode \
16336 lt_prog_compiler_no_builtin_flag_RC \
16337 lt_prog_compiler_pic_RC \
16338 lt_prog_compiler_wl_RC \
16339 lt_prog_compiler_static_RC \
16340 lt_cv_prog_compiler_c_o_RC \
16341 export_dynamic_flag_spec_RC \
16342 whole_archive_flag_spec_RC \
16343 compiler_needs_object_RC \
16345 allow_undefined_flag_RC \
16346 no_undefined_flag_RC \
16347 hardcode_libdir_flag_spec_RC \
16348 hardcode_libdir_separator_RC \
16349 exclude_expsyms_RC \
16350 include_expsyms_RC \
16351 file_list_spec_RC; do
16352 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16353 *[\\\\\\\`\\"\\\$]*)
16354 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16357 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16362 # Double-quote double-evaled strings.
16363 for var in reload_cmds \
16364 old_postinstall_cmds \
16365 old_postuninstall_cmds \
16367 extract_expsyms_cmds \
16368 old_archive_from_new_cmds \
16369 old_archive_from_expsyms_cmds \
16371 archive_expsym_cmds \
16373 module_expsym_cmds \
16374 export_symbols_cmds \
16378 postuninstall_cmds \
16380 sys_lib_search_path_spec \
16381 sys_lib_dlsearch_path_spec \
16383 old_archive_cmds_RC \
16384 old_archive_from_new_cmds_RC \
16385 old_archive_from_expsyms_cmds_RC \
16387 archive_expsym_cmds_RC \
16389 module_expsym_cmds_RC \
16390 export_symbols_cmds_RC \
16392 postlink_cmds_RC; do
16393 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16394 *[\\\\\\\`\\"\\\$]*)
16395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16403 ac_aux_dir='$ac_aux_dir'
16404 xsi_shell='$xsi_shell'
16405 lt_shell_append='$lt_shell_append'
16407 # See if we are running on zsh, and set the options which allow our
16408 # commands through without removal of \ escapes INIT.
16409 if test -n "\${ZSH_VERSION+set}" ; then
16410 setopt NO_GLOB_SUBST
16416 TIMESTAMP='$TIMESTAMP'
16427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 # Handling of arguments.
16430 for ac_config_target in $ac_config_targets
16432 case $ac_config_target in
16433 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16435 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16436 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16437 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16438 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
16439 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16440 "src/ksba.h") CONFIG_FILES="$CONFIG_FILES src/ksba.h" ;;
16441 "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
16442 "src/ksba.pc") CONFIG_FILES="$CONFIG_FILES src/ksba.pc" ;;
16443 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16444 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16445 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16447 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16452 # If the user did not use the arguments to specify the items to instantiate,
16453 # then the envvar interface is used. Set only those that are not.
16454 # We use the long form for the default assignment because of an extremely
16455 # bizarre bug on SunOS 4.1.3.
16456 if $ac_need_defaults; then
16457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16459 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16462 # Have a temporary directory for convenience. Make it in the build tree
16463 # simply because there is no reason against having it here, and in addition,
16464 # creating and moving files from /tmp can sometimes cause problems.
16465 # Hook for its removal unless debugging.
16466 # Note that there is a small window in which the directory will not be cleaned:
16467 # after its creation but before its name has been assigned to `$tmp'.
16471 trap 'exit_status=$?
16472 : "${ac_tmp:=$tmp}"
16473 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16475 trap 'as_fn_exit 1' 1 2 13 15
16477 # Create a (secure) tmp directory for tmp files.
16480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16484 tmp=./conf$$-$RANDOM
16485 (umask 077 && mkdir "$tmp")
16486 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16489 # Set up the scripts for CONFIG_FILES section.
16490 # No need to generate them if there are no CONFIG_FILES.
16491 # This happens for instance with `./config.status config.h'.
16492 if test -n "$CONFIG_FILES"; then
16495 ac_cr=`echo X | tr X '\015'`
16496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16497 # But we know of no other shell where ac_cr would be empty at this
16498 # point, so we can use a bashism as a fallback.
16499 if test "x$ac_cr" = x; then
16500 eval ac_cr=\$\'\\r\'
16502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16506 ac_cs_awk_cr=$ac_cr
16509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16514 echo "cat >conf$$subs.awk <<_ACEOF" &&
16515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16517 } >conf$$subs.sh ||
16518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16521 for ac_last_try in false false false false false :; do
16522 . ./conf$$subs.sh ||
16523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16525 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16526 if test $ac_delim_n = $ac_delim_num; then
16528 elif $ac_last_try; then
16529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16534 rm -f conf$$subs.sh
16536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16537 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16541 s/^/S["/; s/!.*/"]=/
16551 s/\(.\{148\}\)..*/\1/
16553 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16565 s/\(.\{148\}\)..*/\1/
16567 s/["\\]/\\&/g; s/^/"/; s/$/"/
16571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16576 ' <conf$$subs.awk | sed '
16581 ' >>$CONFIG_STATUS || ac_write_fail=1
16582 rm -f conf$$subs.awk
16583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16585 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16586 for (key in S) S_is_set[key] = 1
16592 nfields = split(line, field, "@")
16594 len = length(field[1])
16595 for (i = 2; i < nfields; i++) {
16597 keylen = length(key)
16598 if (S_is_set[key]) {
16600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16601 len += length(value) + length(field[++i])
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16623 # trailing colons and then remove the whole line if VPATH becomes empty
16624 # (actually we leave an empty line to preserve line numbers).
16625 if test "x$srcdir" = x.; then
16626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645 fi # test -n "$CONFIG_FILES"
16647 # Set up the scripts for CONFIG_HEADERS section.
16648 # No need to generate them if there are no CONFIG_HEADERS.
16649 # This happens for instance with `./config.status Makefile'.
16650 if test -n "$CONFIG_HEADERS"; then
16651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16655 # Transform confdefs.h into an awk script `defines.awk', embedded as
16656 # here-document in config.status, that substitutes the proper values into
16657 # config.h.in to produce config.h.
16659 # Create a delimiter string that does not exist in confdefs.h, to ease
16660 # handling of long lines.
16662 for ac_last_try in false false :; do
16663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16664 if test -z "$ac_tt"; then
16666 elif $ac_last_try; then
16667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16673 # For the awk script, D is an array of macro values keyed by name,
16674 # likewise P contains macro parameters if any. Preserve backslash
16675 # newline sequences.
16677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16679 s/.\{148\}/&'"$ac_delim"'/g
16682 s/^[ ]*#[ ]*define[ ][ ]*/ /
16689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16696 D["\1"]=" \3\\\\\\n"\\/p
16698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16703 s/.\{148\}/&'"$ac_delim"'/g
16708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16713 ' <confdefs.h | sed '
16714 s/'"$ac_delim"'/"\\\
16715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718 for (key in D) D_is_set[key] = 1
16721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16723 split(line, arg, " ")
16724 if (arg[1] == "#") {
16728 defundef = substr(arg[1], 2)
16731 split(mac1, mac2, "(") #)
16733 prefix = substr(line, 1, index(line, defundef) - 1)
16734 if (D_is_set[macro]) {
16735 # Preserve the white space surrounding the "#".
16736 print prefix "define", macro P[macro] D[macro]
16739 # Replace #undef with comments. This is necessary, for example,
16740 # in the case of _POSIX_SOURCE, which is predefined and required
16741 # on some systems where configure will not decide to define it.
16742 if (defundef == "undef") {
16743 print "/*", prefix defundef, macro, "*/"
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16753 fi # test -n "$CONFIG_HEADERS"
16756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16761 :[FHLC]) ac_mode=$ac_tag; continue;;
16763 case $ac_mode$ac_tag in
16765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16766 :[FH]-) ac_tag=-:-;;
16767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16784 -) ac_f="$ac_tmp/stdin";;
16785 *) # Look for the file first in the build tree, then in the source tree
16786 # (if the path is not absolute). The absolute path cannot be DOS-style,
16787 # because $ac_f cannot contain `:'.
16791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16796 as_fn_append ac_file_inputs " '$ac_f'"
16799 # Let's still pretend it is `configure' which instantiates (i.e., don't
16800 # use $as_me), people would be surprised to read:
16801 # /* config.h. Generated by config.status. */
16802 configure_input='Generated from '`
16803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16805 if test x"$ac_file" != x-; then
16806 configure_input="$ac_file. $configure_input"
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16808 $as_echo "$as_me: creating $ac_file" >&6;}
16810 # Neutralize special characters interpreted by sed in replacement strings.
16811 case $configure_input in #(
16812 *\&* | *\|* | *\\* )
16813 ac_sed_conf_input=`$as_echo "$configure_input" |
16814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16815 *) ac_sed_conf_input=$configure_input;;
16819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16825 ac_dir=`$as_dirname -- "$ac_file" ||
16826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16827 X"$ac_file" : 'X\(//\)[^/]' \| \
16828 X"$ac_file" : 'X\(//\)$' \| \
16829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16830 $as_echo X"$ac_file" |
16831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16835 /^X\(\/\/\)[^/].*/{
16848 as_dir="$ac_dir"; as_fn_mkdir_p
16852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16855 # A ".." for each directory in $ac_dir_suffix.
16856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16857 case $ac_top_builddir_sub in
16858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16862 ac_abs_top_builddir=$ac_pwd
16863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16864 # for backward compatibility:
16865 ac_top_builddir=$ac_top_build_prefix
16868 .) # We are building in place.
16870 ac_top_srcdir=$ac_top_builddir_sub
16871 ac_abs_top_srcdir=$ac_pwd ;;
16872 [\\/]* | ?:[\\/]* ) # Absolute name.
16873 ac_srcdir=$srcdir$ac_dir_suffix;
16874 ac_top_srcdir=$srcdir
16875 ac_abs_top_srcdir=$srcdir ;;
16876 *) # Relative name.
16877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16878 ac_top_srcdir=$ac_top_build_prefix$srcdir
16879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16894 ac_MKDIR_P=$MKDIR_P
16896 [\\/$]* | ?:[\\/]* ) ;;
16897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16902 # If the template does not know about datarootdir, expand it.
16903 # FIXME: This hack should be removed a few years after 2.60.
16904 ac_datarootdir_hack=; ac_datarootdir_seen=
16915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16916 *datarootdir*) ac_datarootdir_seen=yes;;
16917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16922 ac_datarootdir_hack='
16923 s&@datadir@&$datadir&g
16924 s&@docdir@&$docdir&g
16925 s&@infodir@&$infodir&g
16926 s&@localedir@&$localedir&g
16927 s&@mandir@&$mandir&g
16928 s&\\\${datarootdir}&$datarootdir&g' ;;
16932 # Neutralize VPATH when `$srcdir' = `.'.
16933 # Shell code in configure.ac might set extrasub.
16934 # FIXME: do we really want to maintain this feature?
16935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16936 ac_sed_extra="$ac_vpsub
16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16942 s|@configure_input@|$ac_sed_conf_input|;t t
16943 s&@top_builddir@&$ac_top_builddir_sub&;t t
16944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16945 s&@srcdir@&$ac_srcdir&;t t
16946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16947 s&@top_srcdir@&$ac_top_srcdir&;t t
16948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16949 s&@builddir@&$ac_builddir&;t t
16950 s&@abs_builddir@&$ac_abs_builddir&;t t
16951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16952 s&@INSTALL@&$ac_INSTALL&;t t
16953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16954 $ac_datarootdir_hack
16956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16957 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16962 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16964 which seems to be undefined. Please make sure it is defined" >&5
16965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16966 which seems to be undefined. Please make sure it is defined" >&2;}
16968 rm -f "$ac_tmp/stdin"
16970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16979 if test x"$ac_file" != x-; then
16981 $as_echo "/* $configure_input */" \
16982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16983 } >"$ac_tmp/config.h" \
16984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16990 mv "$ac_tmp/config.h" "$ac_file" \
16991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16994 $as_echo "/* $configure_input */" \
16995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16996 || as_fn_error $? "could not create -" "$LINENO" 5
16998 # Compute "$ac_file"'s index in $config_headers.
17001 for _am_header in $config_headers :; do
17002 case $_am_header in
17003 $_am_arg | $_am_arg:* )
17006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17011 X"$_am_arg" : 'X\(//\)[^/]' \| \
17012 X"$_am_arg" : 'X\(//\)$' \| \
17013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17014 $as_echo X"$_am_arg" |
17015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17019 /^X\(\/\/\)[^/].*/{
17031 s/.*/./; q'`/stamp-h$_am_stamp_count
17034 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17035 $as_echo "$as_me: executing $ac_file commands" >&6;}
17040 case $ac_file$ac_mode in
17041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17042 # Older Autoconf quotes --file arguments for eval, but not when files
17043 # are listed without --file. Let's play safe and only enable the eval
17044 # if we detect the quoting.
17045 # TODO: see whether this extra hack can be removed once we start
17046 # requiring Autoconf 2.70 or later.
17047 case $CONFIG_FILES in #(
17049 eval set x "$CONFIG_FILES" ;; #(
17051 set x $CONFIG_FILES ;; #(
17056 # Used to flag and report bootstrapping failures.
17060 # Strip MF so we end up with the name of the file.
17061 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17062 # Check whether this is an Automake generated Makefile which includes
17063 # dependency-tracking related rules and includes.
17064 # Grep'ing the whole file directly is not great: AIX grep has a line
17065 # limit of 2048, but all sed's we know have understand at least 4000.
17066 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17068 am_dirpart=`$as_dirname -- "$am_mf" ||
17069 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17070 X"$am_mf" : 'X\(//\)[^/]' \| \
17071 X"$am_mf" : 'X\(//\)$' \| \
17072 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17073 $as_echo X"$am_mf" |
17074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17078 /^X\(\/\/\)[^/].*/{
17091 am_filepart=`$as_basename -- "$am_mf" ||
17092 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17093 X"$am_mf" : 'X\(//\)$' \| \
17094 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17095 $as_echo X/"$am_mf" |
17096 sed '/^.*\/\([^/][^/]*\)\/*$/{
17109 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17110 && sed -e '/# am--include-marker/d' "$am_filepart" \
17111 | $MAKE -f - am--depfiles" >&5
17112 (cd "$am_dirpart" \
17113 && sed -e '/# am--include-marker/d' "$am_filepart" \
17114 | $MAKE -f - am--depfiles) >&5 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } || am_rc=$?
17119 if test $am_rc -ne 0; then
17120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17122 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17123 for automatic dependency tracking. If GNU make was not used, consider
17124 re-running the configure script with MAKE=\"gmake\" (or whatever is
17125 necessary). You can also try re-running configure with the
17126 '--disable-dependency-tracking' option to at least be able to build
17127 the package (albeit without support for automatic dependency tracking).
17128 See \`config.log' for more details" "$LINENO" 5; }
17130 { am_dirpart=; unset am_dirpart;}
17131 { am_filepart=; unset am_filepart;}
17132 { am_mf=; unset am_mf;}
17133 { am_rc=; unset am_rc;}
17134 rm -f conftest-deps.mk
17139 # See if we are running on zsh, and set the options which allow our
17140 # commands through without removal of \ escapes.
17141 if test -n "${ZSH_VERSION+set}" ; then
17142 setopt NO_GLOB_SUBST
17145 cfgfile="${ofile}T"
17146 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17149 cat <<_LT_EOF >> "$cfgfile"
17152 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17153 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17158 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17160 # Written by Gordon Matzigkeit, 1996
17162 # This file is part of GNU Libtool.
17164 # GNU Libtool is free software; you can redistribute it and/or
17165 # modify it under the terms of the GNU General Public License as
17166 # published by the Free Software Foundation; either version 2 of
17167 # the License, or (at your option) any later version.
17169 # As a special exception to the GNU General Public License,
17170 # if you distribute this file as part of a program or library that
17171 # is built using GNU Libtool, you may include this file under the
17172 # same distribution terms that you use for the rest of that program.
17174 # GNU Libtool is distributed in the hope that it will be useful,
17175 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17176 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17177 # GNU General Public License for more details.
17179 # You should have received a copy of the GNU General Public License
17180 # along with GNU Libtool; see the file COPYING. If not, a copy
17181 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
17182 # obtained by writing to the Free Software Foundation, Inc.,
17183 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17186 # The names of the tagged configurations supported by this script.
17187 available_tags="RC "
17189 # ### BEGIN LIBTOOL CONFIG
17191 # Which release of libtool.m4 was used?
17192 macro_version=$macro_version
17193 macro_revision=$macro_revision
17195 # Assembler program.
17198 # DLL creation program.
17199 DLLTOOL=$lt_DLLTOOL
17201 # Object dumper program.
17202 OBJDUMP=$lt_OBJDUMP
17204 # Whether or not to build static libraries.
17205 build_old_libs=$enable_static
17207 # Whether or not to build shared libraries.
17208 build_libtool_libs=$enable_shared
17210 # What type of objects to build.
17213 # Whether or not to optimize for fast installation.
17214 fast_install=$enable_fast_install
17216 # Shell to use when invoking shell scripts.
17219 # An echo program that protects backslashes.
17222 # The PATH separator for the build system.
17223 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17226 host_alias=$host_alias
17230 # The build system.
17231 build_alias=$build_alias
17235 # A sed program that does not truncate output.
17238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17239 Xsed="\$SED -e 1s/^X//"
17241 # A grep program that handles long lines.
17247 # A literal string matcher.
17250 # A BSD- or MS-compatible name lister.
17253 # Whether we need soft or hard links.
17256 # What is the maximum length of a command?
17257 max_cmd_len=$max_cmd_len
17259 # Object file suffix (normally "o").
17262 # Executable file suffix (normally "").
17265 # whether the shell understands "unset".
17268 # turn spaces into newlines.
17271 # turn newlines into spaces.
17274 # convert \$build file names to \$host format.
17275 to_host_file_cmd=$lt_cv_to_host_file_cmd
17277 # convert \$build files to toolchain format.
17278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17280 # Method to check whether dependent libraries are shared objects.
17281 deplibs_check_method=$lt_deplibs_check_method
17283 # Command to use when deplibs_check_method = "file_magic".
17284 file_magic_cmd=$lt_file_magic_cmd
17286 # How to find potential files when deplibs_check_method = "file_magic".
17287 file_magic_glob=$lt_file_magic_glob
17289 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17290 want_nocaseglob=$lt_want_nocaseglob
17292 # Command to associate shared and link libraries.
17293 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17298 # Flags to create an archive.
17299 AR_FLAGS=$lt_AR_FLAGS
17301 # How to feed a file listing to the archiver.
17302 archiver_list_spec=$lt_archiver_list_spec
17304 # A symbol stripping program.
17307 # Commands used to install an old-style archive.
17309 old_postinstall_cmds=$lt_old_postinstall_cmds
17310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17312 # Whether to use a lock for old archive extraction.
17313 lock_old_archive_extraction=$lock_old_archive_extraction
17318 # LTCC compiler flags.
17319 LTCFLAGS=$lt_CFLAGS
17321 # Take the output of nm and produce a listing of raw symbols and C names.
17322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17324 # Transform the output of nm in a proper C declaration.
17325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17327 # Transform the output of nm in a C name address pair.
17328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17330 # Transform the output of nm in a C name address pair when lib prefix is needed.
17331 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17333 # Specify filename containing input files for \$NM.
17334 nm_file_list_spec=$lt_nm_file_list_spec
17336 # The root where to search for dependent libraries,and in which our libraries should be installed.
17337 lt_sysroot=$lt_sysroot
17339 # The name of the directory that contains temporary libtool files.
17342 # Used to examine libraries when file_magic_cmd begins with "file".
17343 MAGIC_CMD=$MAGIC_CMD
17345 # Must we lock files when doing compilation?
17346 need_locks=$lt_need_locks
17349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17352 DSYMUTIL=$lt_DSYMUTIL
17354 # Tool to change global to local symbols on Mac OS X.
17357 # Tool to manipulate fat objects and archives on Mac OS X.
17360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17364 OTOOL64=$lt_OTOOL64
17366 # Old archive suffix (normally "a").
17369 # Shared library suffix (normally ".so").
17370 shrext_cmds=$lt_shrext_cmds
17372 # The commands to extract the exported symbol list from a shared archive.
17373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17375 # Variables whose values should be saved in libtool wrapper scripts and
17376 # restored at link time.
17377 variables_saved_for_relink=$lt_variables_saved_for_relink
17379 # Do we need the "lib" prefix for modules?
17380 need_lib_prefix=$need_lib_prefix
17382 # Do we need a version for libraries?
17383 need_version=$need_version
17385 # Library versioning type.
17386 version_type=$version_type
17388 # Shared library runtime path variable.
17389 runpath_var=$runpath_var
17391 # Shared library path variable.
17392 shlibpath_var=$shlibpath_var
17394 # Is shlibpath searched before the hard-coded library search path?
17395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17397 # Format of library name prefix.
17398 libname_spec=$lt_libname_spec
17400 # List of archive names. First name is the real one, the rest are links.
17401 # The last name is the one that the linker finds with -lNAME
17402 library_names_spec=$lt_library_names_spec
17404 # The coded name of the library, if different from the real name.
17405 soname_spec=$lt_soname_spec
17407 # Permission mode override for installation of shared libraries.
17408 install_override_mode=$lt_install_override_mode
17410 # Command to use after installation of a shared archive.
17411 postinstall_cmds=$lt_postinstall_cmds
17413 # Command to use after uninstallation of a shared archive.
17414 postuninstall_cmds=$lt_postuninstall_cmds
17416 # Commands used to finish a libtool library installation in a directory.
17417 finish_cmds=$lt_finish_cmds
17419 # As "finish_cmds", except a single script fragment to be evaled but
17421 finish_eval=$lt_finish_eval
17423 # Whether we should hardcode library paths into libraries.
17424 hardcode_into_libs=$hardcode_into_libs
17426 # Compile-time system search path for libraries.
17427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17429 # Run-time system search path for libraries.
17430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17432 # Whether dlopen is supported.
17433 dlopen_support=$enable_dlopen
17435 # Whether dlopen of programs is supported.
17436 dlopen_self=$enable_dlopen_self
17438 # Whether dlopen of statically linked programs is supported.
17439 dlopen_self_static=$enable_dlopen_self_static
17441 # Commands to strip libraries.
17442 old_striplib=$lt_old_striplib
17443 striplib=$lt_striplib
17446 # The linker used to build libraries.
17449 # How to create reloadable object files.
17450 reload_flag=$lt_reload_flag
17451 reload_cmds=$lt_reload_cmds
17453 # Commands used to build an old-style archive.
17454 old_archive_cmds=$lt_old_archive_cmds
17456 # A language specific compiler.
17459 # Is the compiler the GNU compiler?
17462 # Compiler flag to turn off builtin functions.
17463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17465 # Additional compiler flags for building library objects.
17466 pic_flag=$lt_lt_prog_compiler_pic
17468 # How to pass a linker flag through the compiler.
17469 wl=$lt_lt_prog_compiler_wl
17471 # Compiler flag to prevent dynamic linking.
17472 link_static_flag=$lt_lt_prog_compiler_static
17474 # Does compiler simultaneously support -c and -o options?
17475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17477 # Whether or not to add -lc for building shared libraries.
17478 build_libtool_need_lc=$archive_cmds_need_lc
17480 # Whether or not to disallow shared libs when runtime libs are static.
17481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17483 # Compiler flag to allow reflexive dlopens.
17484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17486 # Compiler flag to generate shared objects directly from archives.
17487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17489 # Whether the compiler copes with passing no objects directly.
17490 compiler_needs_object=$lt_compiler_needs_object
17492 # Create an old-style archive from a shared archive.
17493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17495 # Create a temporary old-style archive to link instead of a shared archive.
17496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17498 # Commands used to build a shared archive.
17499 archive_cmds=$lt_archive_cmds
17500 archive_expsym_cmds=$lt_archive_expsym_cmds
17502 # Commands used to build a loadable module if different from building
17503 # a shared archive.
17504 module_cmds=$lt_module_cmds
17505 module_expsym_cmds=$lt_module_expsym_cmds
17507 # Whether we are building with GNU ld or not.
17508 with_gnu_ld=$lt_with_gnu_ld
17510 # Flag that allows shared libraries with undefined symbols to be built.
17511 allow_undefined_flag=$lt_allow_undefined_flag
17513 # Flag that enforces no undefined symbols.
17514 no_undefined_flag=$lt_no_undefined_flag
17516 # Flag to hardcode \$libdir into a binary during linking.
17517 # This must work even if \$libdir does not exist
17518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17520 # Whether we need a single "-rpath" flag with a separated argument.
17521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17524 # DIR into the resulting binary.
17525 hardcode_direct=$hardcode_direct
17527 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17528 # DIR into the resulting binary and the resulting library dependency is
17529 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17530 # library is relocated.
17531 hardcode_direct_absolute=$hardcode_direct_absolute
17533 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17534 # into the resulting binary.
17535 hardcode_minus_L=$hardcode_minus_L
17537 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17538 # into the resulting binary.
17539 hardcode_shlibpath_var=$hardcode_shlibpath_var
17541 # Set to "yes" if building a shared library automatically hardcodes DIR
17542 # into the library and all subsequent libraries and executables linked
17544 hardcode_automatic=$hardcode_automatic
17546 # Set to yes if linker adds runtime paths of dependent libraries
17547 # to runtime path list.
17548 inherit_rpath=$inherit_rpath
17550 # Whether libtool must link a program against all its dependency libraries.
17551 link_all_deplibs=$link_all_deplibs
17553 # Set to "yes" if exported symbols are required.
17554 always_export_symbols=$always_export_symbols
17556 # The commands to list exported symbols.
17557 export_symbols_cmds=$lt_export_symbols_cmds
17559 # Symbols that should not be listed in the preloaded symbols.
17560 exclude_expsyms=$lt_exclude_expsyms
17562 # Symbols that must always be exported.
17563 include_expsyms=$lt_include_expsyms
17565 # Commands necessary for linking programs (against libraries) with templates.
17566 prelink_cmds=$lt_prelink_cmds
17568 # Commands necessary for finishing linking programs.
17569 postlink_cmds=$lt_postlink_cmds
17571 # Specify filename containing input files.
17572 file_list_spec=$lt_file_list_spec
17574 # How to hardcode a shared library path into an executable.
17575 hardcode_action=$hardcode_action
17577 # ### END LIBTOOL CONFIG
17583 cat <<\_LT_EOF >> "$cfgfile"
17584 # AIX sometimes has problems with the GCC collect2 program. For some
17585 # reason, if we set the COLLECT_NAMES environment variable, the problems
17586 # vanish in a puff of smoke.
17587 if test "X${COLLECT_NAMES+set}" != Xset; then
17589 export COLLECT_NAMES
17596 ltmain="$ac_aux_dir/ltmain.sh"
17599 # We use sed instead of cat because bash on DJGPP gets confused if
17600 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17601 # text mode, it properly converts lines to CR/LF. This bash problem
17602 # is reportedly fixed, but why not run on old versions too?
17603 sed '$q' "$ltmain" >> "$cfgfile" \
17604 || (rm -f "$cfgfile"; exit 1)
17606 if test x"$xsi_shell" = xyes; then
17607 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17611 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17612 \ * ) func_dirname_result="${3}" ;;\
17614 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17615 && mv -f "$cfgfile.tmp" "$cfgfile" \
17616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17617 test 0 -eq $? || _lt_function_replace_fail=:
17620 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17623 \ func_basename_result="${1##*/}"\
17624 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17625 && mv -f "$cfgfile.tmp" "$cfgfile" \
17626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17627 test 0 -eq $? || _lt_function_replace_fail=:
17630 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17631 func_dirname_and_basename ()\
17634 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17635 \ * ) func_dirname_result="${3}" ;;\
17637 \ func_basename_result="${1##*/}"\
17638 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17639 && mv -f "$cfgfile.tmp" "$cfgfile" \
17640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17641 test 0 -eq $? || _lt_function_replace_fail=:
17644 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17647 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17648 \ # positional parameters, so assign one to ordinary parameter first.\
17649 \ func_stripname_result=${3}\
17650 \ func_stripname_result=${func_stripname_result#"${1}"}\
17651 \ func_stripname_result=${func_stripname_result%"${2}"}\
17652 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17653 && mv -f "$cfgfile.tmp" "$cfgfile" \
17654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17655 test 0 -eq $? || _lt_function_replace_fail=:
17658 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17659 func_split_long_opt ()\
17661 \ func_split_long_opt_name=${1%%=*}\
17662 \ func_split_long_opt_arg=${1#*=}\
17663 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17664 && mv -f "$cfgfile.tmp" "$cfgfile" \
17665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17666 test 0 -eq $? || _lt_function_replace_fail=:
17669 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17670 func_split_short_opt ()\
17672 \ func_split_short_opt_arg=${1#??}\
17673 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17674 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17675 && mv -f "$cfgfile.tmp" "$cfgfile" \
17676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17677 test 0 -eq $? || _lt_function_replace_fail=:
17680 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17684 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17685 \ *) func_lo2o_result=${1} ;;\
17687 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17688 && mv -f "$cfgfile.tmp" "$cfgfile" \
17689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17690 test 0 -eq $? || _lt_function_replace_fail=:
17693 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17696 func_xform_result=${1%.*}.lo\
17697 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17698 && mv -f "$cfgfile.tmp" "$cfgfile" \
17699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17700 test 0 -eq $? || _lt_function_replace_fail=:
17703 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17706 func_arith_result=$(( $* ))\
17707 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17708 && mv -f "$cfgfile.tmp" "$cfgfile" \
17709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17710 test 0 -eq $? || _lt_function_replace_fail=:
17713 sed -e '/^func_len ()$/,/^} # func_len /c\
17716 func_len_result=${#1}\
17717 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17718 && mv -f "$cfgfile.tmp" "$cfgfile" \
17719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17720 test 0 -eq $? || _lt_function_replace_fail=:
17724 if test x"$lt_shell_append" = xyes; then
17725 sed -e '/^func_append ()$/,/^} # func_append /c\
17728 eval "${1}+=\\${2}"\
17729 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17730 && mv -f "$cfgfile.tmp" "$cfgfile" \
17731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17732 test 0 -eq $? || _lt_function_replace_fail=:
17735 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17736 func_append_quoted ()\
17738 \ func_quote_for_eval "${2}"\
17739 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17740 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17741 && mv -f "$cfgfile.tmp" "$cfgfile" \
17742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17743 test 0 -eq $? || _lt_function_replace_fail=:
17746 # Save a `func_append' function call where possible by direct use of '+='
17747 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17748 && mv -f "$cfgfile.tmp" "$cfgfile" \
17749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17750 test 0 -eq $? || _lt_function_replace_fail=:
17752 # Save a `func_append' function call even when '+=' is not available
17753 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17754 && mv -f "$cfgfile.tmp" "$cfgfile" \
17755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17756 test 0 -eq $? || _lt_function_replace_fail=:
17759 if test x"$_lt_function_replace_fail" = x":"; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17761 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17765 mv -f "$cfgfile" "$ofile" ||
17766 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17770 cat <<_LT_EOF >> "$ofile"
17772 # ### BEGIN LIBTOOL TAG CONFIG: RC
17774 # The linker used to build libraries.
17777 # How to create reloadable object files.
17778 reload_flag=$lt_reload_flag_RC
17779 reload_cmds=$lt_reload_cmds_RC
17781 # Commands used to build an old-style archive.
17782 old_archive_cmds=$lt_old_archive_cmds_RC
17784 # A language specific compiler.
17787 # Is the compiler the GNU compiler?
17790 # Compiler flag to turn off builtin functions.
17791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17793 # Additional compiler flags for building library objects.
17794 pic_flag=$lt_lt_prog_compiler_pic_RC
17796 # How to pass a linker flag through the compiler.
17797 wl=$lt_lt_prog_compiler_wl_RC
17799 # Compiler flag to prevent dynamic linking.
17800 link_static_flag=$lt_lt_prog_compiler_static_RC
17802 # Does compiler simultaneously support -c and -o options?
17803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17805 # Whether or not to add -lc for building shared libraries.
17806 build_libtool_need_lc=$archive_cmds_need_lc_RC
17808 # Whether or not to disallow shared libs when runtime libs are static.
17809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17811 # Compiler flag to allow reflexive dlopens.
17812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17814 # Compiler flag to generate shared objects directly from archives.
17815 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17817 # Whether the compiler copes with passing no objects directly.
17818 compiler_needs_object=$lt_compiler_needs_object_RC
17820 # Create an old-style archive from a shared archive.
17821 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17823 # Create a temporary old-style archive to link instead of a shared archive.
17824 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17826 # Commands used to build a shared archive.
17827 archive_cmds=$lt_archive_cmds_RC
17828 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17830 # Commands used to build a loadable module if different from building
17831 # a shared archive.
17832 module_cmds=$lt_module_cmds_RC
17833 module_expsym_cmds=$lt_module_expsym_cmds_RC
17835 # Whether we are building with GNU ld or not.
17836 with_gnu_ld=$lt_with_gnu_ld_RC
17838 # Flag that allows shared libraries with undefined symbols to be built.
17839 allow_undefined_flag=$lt_allow_undefined_flag_RC
17841 # Flag that enforces no undefined symbols.
17842 no_undefined_flag=$lt_no_undefined_flag_RC
17844 # Flag to hardcode \$libdir into a binary during linking.
17845 # This must work even if \$libdir does not exist
17846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17848 # Whether we need a single "-rpath" flag with a separated argument.
17849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17852 # DIR into the resulting binary.
17853 hardcode_direct=$hardcode_direct_RC
17855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17856 # DIR into the resulting binary and the resulting library dependency is
17857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17858 # library is relocated.
17859 hardcode_direct_absolute=$hardcode_direct_absolute_RC
17861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17862 # into the resulting binary.
17863 hardcode_minus_L=$hardcode_minus_L_RC
17865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17866 # into the resulting binary.
17867 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17869 # Set to "yes" if building a shared library automatically hardcodes DIR
17870 # into the library and all subsequent libraries and executables linked
17872 hardcode_automatic=$hardcode_automatic_RC
17874 # Set to yes if linker adds runtime paths of dependent libraries
17875 # to runtime path list.
17876 inherit_rpath=$inherit_rpath_RC
17878 # Whether libtool must link a program against all its dependency libraries.
17879 link_all_deplibs=$link_all_deplibs_RC
17881 # Set to "yes" if exported symbols are required.
17882 always_export_symbols=$always_export_symbols_RC
17884 # The commands to list exported symbols.
17885 export_symbols_cmds=$lt_export_symbols_cmds_RC
17887 # Symbols that should not be listed in the preloaded symbols.
17888 exclude_expsyms=$lt_exclude_expsyms_RC
17890 # Symbols that must always be exported.
17891 include_expsyms=$lt_include_expsyms_RC
17893 # Commands necessary for linking programs (against libraries) with templates.
17894 prelink_cmds=$lt_prelink_cmds_RC
17896 # Commands necessary for finishing linking programs.
17897 postlink_cmds=$lt_postlink_cmds_RC
17899 # Specify filename containing input files.
17900 file_list_spec=$lt_file_list_spec_RC
17902 # How to hardcode a shared library path into an executable.
17903 hardcode_action=$hardcode_action_RC
17905 # ### END LIBTOOL TAG CONFIG: RC
17916 ac_clean_files=$ac_clean_files_save
17918 test $ac_write_fail = 0 ||
17919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17922 # configure is writing to config.log, and then calls config.status.
17923 # config.status does its own redirection, appending to config.log.
17924 # Unfortunately, on DOS this fails, as config.log is still kept open
17925 # by configure, so config.status won't be able to write to it; its
17926 # output is simply discarded. So we exec the FD to /dev/null,
17927 # effectively closing config.log, so it can be properly (re)opened and
17928 # appended to by config.status. When coming back to configure, we
17929 # need to make the FD available again.
17930 if test "$no_create" != yes; then
17932 ac_config_status_args=
17933 test "$silent" = yes &&
17934 ac_config_status_args="$ac_config_status_args --quiet"
17936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17939 # would make configure fail if this is the last instruction.
17940 $ac_cs_success || as_fn_exit 1
17942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17948 if test x"$have_bison" = xno; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}:
17951 *** Note: The installed yacc version is not GNU Bison. You need
17952 *** to install Bison if you want to change any grammar (.y) file.
17956 *** Note: The installed yacc version is not GNU Bison. You need
17957 *** to install Bison if you want to change any grammar (.y) file.
17962 Libksba v${VERSION} has been configured as follows:
17964 Revision: bffa9b3 (49146)