2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libksba 1.6.5.
5 # Report bugs to <https://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: https://bugs.gnupg.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='libksba'
623 PACKAGE_TARNAME='libksba'
624 PACKAGE_VERSION='1.6.5'
625 PACKAGE_STRING='libksba 1.6.5'
626 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
629 ac_unique_file="src/ksba.h.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
662 ac_subst_vars='am__EXEEXT_FALSE
671 CROSS_COMPILING_FALSE
674 KSBA_CONFIG_API_VERSION
681 USE_GPGRT_CONFIG_FALSE
682 USE_GPGRT_CONFIG_TRUE
689 HAVE_LD_VERSION_SCRIPT_FALSE
690 HAVE_LD_VERSION_SCRIPT_TRUE
691 HAVE_W32_SYSTEM_FALSE
711 MAINTAINER_MODE_FALSE
736 LDADD_FOR_TESTS_KLUDGE
776 INSTALL_STRIP_PROGRAM
819 program_transform_name
833 enable_option_checking
835 enable_dependency_tracking
843 enable_maintainer_mode
846 enable_ld_version_script
847 with_libtool_modification
848 with_libgpg_error_prefix
849 with_gpg_error_prefix
850 enable_valgrind_tests
851 enable_build_timestamp
854 ac_precious_vars='build_alias
868 # Initialize some variables set by options.
870 ac_init_version=false
871 ac_unrecognized_opts=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: \`$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: \`$ac_useropt'"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures libksba 1.6.5 to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/libksba]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of libksba 1.6.5:";;
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-dependency-tracking
1496 do not reject slow dependency extractors
1497 --disable-dependency-tracking
1498 speeds up one-time build
1499 --enable-static[=PKGS] build static libraries [default=no]
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --enable-maintainer-mode
1505 enable make rules and dependencies not useful (and
1506 sometimes confusing) to the casual installer
1507 --enable-gcov enable coverage testing with gcov
1508 --disable-optimization disable compiler optimization
1509 --enable-ld-version-script
1510 enable/disable use of linker version script.
1511 (default is system dependent)
1512 --enable-valgrind-tests run self tests under valgrind
1513 --enable-build-timestamp
1514 set an explicit build timestamp for reproducibility.
1515 (default is the current time in ISO-8601 format)
1516 --disable-doc do not build the documentation
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot=DIR Search for dependent libraries within DIR
1525 (or the compiler's sysroot if not specified).
1526 --with-libtool-modification=apply|never|try
1527 how to handle libtool modification (default=never)
1528 --with-libgpg-error-prefix=PFX
1529 prefix where GPG Error is installed (optional)
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1541 YACC The `Yet Another Compiler Compiler' implementation to use.
1542 Defaults to the first program found out of: `bison -y', `byacc',
1544 YFLAGS The list of arguments that will be passed by default to $YACC.
1545 This script will default YFLAGS to the empty string to avoid a
1546 default value of `-d' given by some make applications.
1548 build system C compiler
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1553 Report bugs to <https://bugs.gnupg.org>.
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for configure.gnu first; this name is used for a wrapper for
1600 # Metaconfig's "Configure" on case-insensitive file systems.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1608 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1617 libksba configure 1.6.5
1618 generated by GNU Autoconf 2.71
1620 Copyright (C) 2021 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest.beam
1638 if { { ac_try="$ac_compile"
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 printf "%s\n" "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext
1660 printf "%s\n" "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists and can be compiled using the include files in
1673 # INCLUDES, setting the cache variable VAR accordingly.
1674 ac_fn_c_check_header_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 printf %s "checking for $2... " >&6; }
1679 if eval test \${$3+y}
1681 printf %s "(cached) " >&6
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1688 if ac_fn_c_try_compile "$LINENO"
1694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 printf "%s\n" "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 } # ac_fn_c_check_header_compile
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 printf "%s\n" "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest$ac_exeext
1735 printf "%s\n" "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742 # interfere with the next link command; also delete a directory that is
1743 # left behind by Apple's compiler. We do this before executing the actions.
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_link
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 printf %s "checking for $2... " >&6; }
1758 if eval test \${$3+y}
1760 printf %s "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below. */
1774 /* Override any GCC internal prototype to avoid an error.
1775 Use char because int might match the return type of a GCC
1776 builtin and then its argument prototype would still apply. */
1781 /* The GNU C library defines this for functions which it implements
1782 to always fail with ENOSYS. Some functions are actually named
1783 something starting with __ and the normal name is an alias. */
1784 #if defined __stub_$2 || defined __stub___$2
1796 if ac_fn_c_try_link "$LINENO"
1802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1803 conftest$ac_exeext conftest.$ac_ext
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 printf "%s\n" "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 } # ac_fn_c_check_func
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 printf "%s\n" "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } > conftest.i && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1840 printf "%s\n" "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1853 # executables *can* be run.
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_link"
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 printf "%s\n" "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>&5
1866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868 { { case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 printf "%s\n" "$ac_try_echo"; } >&5
1874 (eval "$ac_try") 2>&5
1876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; }; }
1881 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1882 printf "%s\n" "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1893 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1894 # --------------------------------------------
1895 # Tries to find the compile-time value of EXPR in a program that includes
1896 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1898 ac_fn_c_compute_int ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if test "$cross_compiling" = yes; then
1902 # Depending upon the size, compute the lo and hi bounds.
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1909 static int test_array [1 - 2 * !(($2) >= 0)];
1911 return test_array [0];
1917 if ac_fn_c_try_compile "$LINENO"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1927 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1929 return test_array [0];
1935 if ac_fn_c_try_compile "$LINENO"
1937 ac_hi=$ac_mid; break
1939 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1940 if test $ac_lo -le $ac_mid; then
1944 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1955 static int test_array [1 - 2 * !(($2) < 0)];
1957 return test_array [0];
1963 if ac_fn_c_try_compile "$LINENO"
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1975 return test_array [0];
1981 if ac_fn_c_try_compile "$LINENO"
1983 ac_lo=$ac_mid; break
1985 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1986 if test $ac_mid -le $ac_hi; then
1990 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2000 # Binary search between lo and hi bounds.
2001 while test "x$ac_lo" != "x$ac_hi"; do
2002 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 return test_array [0];
2017 if ac_fn_c_try_compile "$LINENO"
2021 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2026 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2033 static long int longval (void) { return $2; }
2034 static unsigned long int ulongval (void) { return $2; }
2041 FILE *f = fopen ("conftest.val", "w");
2046 long int i = longval ();
2049 fprintf (f, "%ld", i);
2053 unsigned long int i = ulongval ();
2056 fprintf (f, "%lu", i);
2058 /* Do not output a trailing newline, as this causes \r\n confusion
2059 on some platforms. */
2060 return ferror (f) || fclose (f) != 0;
2066 if ac_fn_c_try_run "$LINENO"
2068 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2073 conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_c_compute_int
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 printf %s "checking for $2... " >&6; }
2091 if eval test \${$3+y}
2093 printf %s "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2108 if ac_fn_c_try_compile "$LINENO"
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"
2128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 printf "%s\n" "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_type
2138 ac_configure_args_raw=
2143 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 as_fn_append ac_configure_args_raw " '$ac_arg'"
2148 case $ac_configure_args_raw in
2152 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2153 ac_unsafe_a="$ac_unsafe_z#~"
2154 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2155 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2158 cat >config.log <<_ACEOF
2159 This file contains any messages produced by compilers while
2160 running configure, to aid debugging if configure makes a mistake.
2162 It was created by libksba $as_me 1.6.5, which was
2163 generated by GNU Autoconf 2.71. Invocation command line was
2165 $ $0$ac_configure_args_raw
2175 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2176 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2177 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2178 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2179 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2182 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2185 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2186 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2187 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2188 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2189 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2190 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 case $as_dir in #(((
2201 *) as_dir=$as_dir/ ;;
2203 printf "%s\n" "PATH: $as_dir"
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_must_keep_next=false
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2238 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 -* ) ac_must_keep_next=true ;;
2259 as_fn_append ac_configure_args " '$ac_arg'"
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2275 # Save into config.log some information that might help in debugging.
2279 printf "%s\n" "## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##"
2283 # The following way of writing the cache mishandles newlines in values,
2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286 eval ac_val=\$$ac_var
2290 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294 _ | IFS | as_nl) ;; #(
2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) { eval $ac_var=; unset $ac_var;} ;;
2301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
2304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 printf "%s\n" "## ----------------- ##
2316 ## Output variables. ##
2317 ## ----------------- ##"
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2323 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 printf "%s\n" "$ac_var='\''$ac_val'\''"
2329 if test -n "$ac_subst_files"; then
2330 printf "%s\n" "## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##"
2334 for ac_var in $ac_subst_files
2336 eval ac_val=\$$ac_var
2338 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 printf "%s\n" "$ac_var='\''$ac_val'\''"
2345 if test -s confdefs.h; then
2346 printf "%s\n" "## ----------- ##
2353 test "$ac_signal" != 0 &&
2354 printf "%s\n" "$as_me: caught signal $ac_signal"
2355 printf "%s\n" "$as_me: exit $exit_status"
2357 rm -f core *.core core.conftest.* &&
2358 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361 for ac_signal in 1 2 13 15; do
2362 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2367 rm -f -r conftest* confdefs.h
2369 printf "%s\n" "/* confdefs.h */" > confdefs.h
2371 # Predefined preprocessor variables.
2373 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2375 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2377 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2379 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2381 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2383 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2386 # Let the site file select an alternate cache file if it wants to.
2387 # Prefer an explicitly selected file to automatically selected ones.
2388 if test -n "$CONFIG_SITE"; then
2389 ac_site_files="$CONFIG_SITE"
2390 elif test "x$prefix" != xNONE; then
2391 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2393 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2396 for ac_site_file in $ac_site_files
2398 case $ac_site_file in #(
2402 ac_site_file=./$ac_site_file ;;
2404 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2406 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2407 sed 's/^/| /' "$ac_site_file" >&5
2409 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2411 as_fn_error $? "failed to load site script $ac_site_file
2412 See \`config.log' for more details" "$LINENO" 5; }
2416 if test -r "$cache_file"; then
2417 # Some versions of bash will fail to source /dev/null (special files
2418 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2419 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2421 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2423 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2424 *) . "./$cache_file";;
2428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2429 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2433 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2434 # Test code for whether the C compiler supports C89 (global declarations)
2435 ac_c_conftest_c89_globals='
2436 /* Does the compiler advertise C89 conformance?
2437 Do not test the value of __STDC__, because some compilers set it to 0
2438 while being otherwise adequately conformant. */
2439 #if !defined __STDC__
2440 # error "Compiler does not advertise C89 conformance"
2446 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2447 struct buf { int x; };
2448 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not \xHH hex character constants.
2467 These do not provoke an error unfortunately, instead are silently treated
2468 as an "x". The following induces an error, until -std is added to get
2469 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2470 array size at least. It is necessary to write \x00 == 0 to get something
2471 that is true only with -std. */
2472 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2475 inside strings and character constants. */
2476 #define FOO(x) '\''x'\''
2477 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2479 int test (int i, double x);
2480 struct s1 {int (*f) (int a);};
2481 struct s2 {int (*f) (double a);};
2482 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2485 # Test code for whether the C compiler supports C89 (body of main).
2486 ac_c_conftest_c89_main='
2487 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2490 # Test code for whether the C compiler supports C99 (global declarations)
2491 ac_c_conftest_c99_globals='
2492 // Does the compiler advertise C99 conformance?
2493 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2494 # error "Compiler does not advertise C99 conformance"
2497 #include <stdbool.h>
2498 extern int puts (const char *);
2499 extern int printf (const char *, ...);
2500 extern int dprintf (int, const char *, ...);
2501 extern void *malloc (size_t);
2503 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2504 // dprintf is used instead of fprintf to avoid needing to declare
2506 #define debug(...) dprintf (2, __VA_ARGS__)
2507 #define showlist(...) puts (#__VA_ARGS__)
2508 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2510 test_varargs_macros (void)
2515 debug ("X = %d\n", x);
2516 showlist (The first, second, and third items.);
2517 report (x>y, "x is %d but y is %d", x, y);
2520 // Check long long types.
2521 #define BIG64 18446744073709551615ull
2522 #define BIG32 4294967295ul
2523 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2525 #error "your preprocessor is broken"
2529 #error "your preprocessor is broken"
2531 static long long int bignum = -9223372036854775807LL;
2532 static unsigned long long int ubignum = BIG64;
2534 struct incomplete_array
2542 const wchar_t *name;
2546 typedef const char *ccp;
2549 test_restrict (ccp restrict text)
2551 // See if C++-style comments work.
2552 // Iterate through items via the restricted pointer.
2553 // Also check for declarations in for loops.
2554 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2559 // Check varargs and va_copy.
2561 test_varargs (const char *format, ...)
2564 va_start (args, format);
2566 va_copy (args_copy, args);
2568 const char *str = "";
2576 case '\''s'\'': // string
2577 str = va_arg (args_copy, const char *);
2579 case '\''d'\'': // int
2580 number = va_arg (args_copy, int);
2582 case '\''f'\'': // float
2583 fnumber = va_arg (args_copy, double);
2592 return *str && number && fnumber;
2596 # Test code for whether the C compiler supports C99 (body of main).
2597 ac_c_conftest_c99_main='
2599 _Bool success = false;
2600 success |= (argc != 0);
2603 if (test_restrict ("String literal") == 0)
2605 char *restrict newvar = "Another string";
2608 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2609 test_varargs_macros ();
2611 // Check flexible array members.
2612 struct incomplete_array *ia =
2613 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2615 for (int i = 0; i < ia->datasize; ++i)
2616 ia->data[i] = i * 1.234;
2618 // Check named initializers.
2619 struct named_init ni = {
2621 .name = L"Test wide string",
2622 .average = 543.34343,
2627 int dynamic_array[ni.number];
2628 dynamic_array[0] = argv[0][0];
2629 dynamic_array[ni.number - 1] = 543;
2631 // work around unused variable warnings
2632 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2633 || dynamic_array[ni.number - 1] != 543);
2636 # Test code for whether the C compiler supports C11 (global declarations)
2637 ac_c_conftest_c11_globals='
2638 // Does the compiler advertise C11 conformance?
2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2640 # error "Compiler does not advertise C11 conformance"
2644 char _Alignas (double) aligned_as_double;
2645 char _Alignas (0) no_special_alignment;
2646 extern char aligned_as_int;
2647 char _Alignas (0) _Alignas (int) aligned_as_int;
2652 int_alignment = _Alignof (int),
2653 int_array_alignment = _Alignof (int[100]),
2654 char_alignment = _Alignof (char)
2656 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2659 int _Noreturn does_not_return (void) { for (;;) continue; }
2661 // Check _Static_assert.
2662 struct test_static_assert
2665 _Static_assert (sizeof (int) <= sizeof (long int),
2666 "_Static_assert does not work in struct");
2670 // Check UTF-8 literals.
2671 #define u8 syntax error!
2672 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2674 // Check duplicate typedefs.
2675 typedef long *long_ptr;
2676 typedef long int *long_ptr;
2677 typedef long_ptr long_ptr;
2679 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2683 struct { int i; int j; };
2684 struct { int k; long int l; } w;
2690 # Test code for whether the C compiler supports C11 (body of main).
2691 ac_c_conftest_c11_main='
2692 _Static_assert ((offsetof (struct anonymous, i)
2693 == offsetof (struct anonymous, w.k)),
2694 "Anonymous union alignment botch");
2700 # Test code for whether the C compiler supports C11 (complete).
2701 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2702 ${ac_c_conftest_c99_globals}
2703 ${ac_c_conftest_c11_globals}
2706 main (int argc, char **argv)
2709 ${ac_c_conftest_c89_main}
2710 ${ac_c_conftest_c99_main}
2711 ${ac_c_conftest_c11_main}
2716 # Test code for whether the C compiler supports C99 (complete).
2717 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2718 ${ac_c_conftest_c99_globals}
2721 main (int argc, char **argv)
2724 ${ac_c_conftest_c89_main}
2725 ${ac_c_conftest_c99_main}
2730 # Test code for whether the C compiler supports C89 (complete).
2731 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2734 main (int argc, char **argv)
2737 ${ac_c_conftest_c89_main}
2742 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2743 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2744 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2745 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2746 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2747 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2748 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2749 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2750 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2751 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2753 # Auxiliary files required by this configure script.
2754 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2756 # Locations in which to look for auxiliary files.
2757 ac_aux_dir_candidates="${srcdir}/build-aux"
2759 # Search for a directory containing all of the required auxiliary files,
2760 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2761 # If we don't find one directory that contains all the files we need,
2762 # we report the set of missing files from the *first* directory in
2763 # $ac_aux_dir_candidates and give up.
2764 ac_missing_aux_files=""
2765 ac_first_candidate=:
2766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $ac_aux_dir_candidates
2772 case $as_dir in #(((
2775 *) as_dir=$as_dir/ ;;
2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2780 ac_aux_dir_found=yes
2782 for ac_aux in $ac_aux_files
2784 # As a special case, if "install-sh" is required, that requirement
2785 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2786 # and $ac_install_sh is set appropriately for whichever one is found.
2787 if test x"$ac_aux" = x"install-sh"
2789 if test -f "${as_dir}install-sh"; then
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2791 ac_install_sh="${as_dir}install-sh -c"
2792 elif test -f "${as_dir}install.sh"; then
2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2794 ac_install_sh="${as_dir}install.sh -c"
2795 elif test -f "${as_dir}shtool"; then
2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2797 ac_install_sh="${as_dir}shtool install -c"
2800 if $ac_first_candidate; then
2801 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2807 if test -f "${as_dir}${ac_aux}"; then
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2811 if $ac_first_candidate; then
2812 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2819 if test "$ac_aux_dir_found" = yes; then
2820 ac_aux_dir="$as_dir"
2823 ac_first_candidate=false
2832 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2836 # These three variables are undocumented and unsupported,
2837 # and are intended to be withdrawn in a future Autoconf release.
2838 # They can cause serious problems if a builder's source tree is in a directory
2839 # whose full name contains unusual characters.
2840 if test -f "${ac_aux_dir}config.guess"; then
2841 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2843 if test -f "${ac_aux_dir}config.sub"; then
2844 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2846 if test -f "$ac_aux_dir/configure"; then
2847 ac_configure="$SHELL ${ac_aux_dir}configure"
2850 # Check that the precious variables saved in the cache have kept the same
2852 ac_cache_corrupted=false
2853 for ac_var in $ac_precious_vars; do
2854 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2855 eval ac_new_set=\$ac_env_${ac_var}_set
2856 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2857 eval ac_new_val=\$ac_env_${ac_var}_value
2858 case $ac_old_set,$ac_new_set in
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2861 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2862 ac_cache_corrupted=: ;;
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2865 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2866 ac_cache_corrupted=: ;;
2869 if test "x$ac_old_val" != "x$ac_new_val"; then
2870 # differences in whitespace do not lead to failure.
2871 ac_old_val_w=`echo x $ac_old_val`
2872 ac_new_val_w=`echo x $ac_new_val`
2873 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2875 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2876 ac_cache_corrupted=:
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2879 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2880 eval $ac_var=\$ac_old_val
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2883 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2885 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2888 # Pass precious variables to config.status.
2889 if test "$ac_new_set" = set; then
2891 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2892 *) ac_arg=$ac_var=$ac_new_val ;;
2894 case " $ac_configure_args " in
2895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2896 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2900 if $ac_cache_corrupted; then
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2904 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2905 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2906 and start over" "$LINENO" 5
2908 ## -------------------- ##
2909 ## Main body of script. ##
2910 ## -------------------- ##
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 # LT Version numbers: Remember to change them just *before* a release.
2921 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
2922 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
2923 # (No interfaces changed: REVISION++)
2924 # Please remember to document interface changes in the NEWS file.
2925 LIBKSBA_LT_CURRENT=22
2927 LIBKSBA_LT_REVISION=5
2928 #-------------------
2929 # If the API is changed in an incompatible way: increment the next counter.
2930 KSBA_CONFIG_API_VERSION=1
2933 NEED_GPG_ERROR_VERSION=1.8
2938 am__api_version='1.16'
2942 # Find a good install program. We prefer a C program (faster),
2943 # so one script is as good as another. But avoid the broken or
2944 # incompatible versions:
2945 # SysV /etc/install, /usr/sbin/install
2946 # SunOS /usr/etc/install
2947 # IRIX /sbin/install
2949 # AmigaOS /C/install, which installs bootblocks on floppy discs
2950 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2951 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2952 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2953 # OS/2's system install, which has a completely different semantic
2954 # ./install, which can be erroneously created by make from ./install.sh.
2955 # Reject install programs that cannot install multiple files.
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2957 printf %s "checking for a BSD-compatible install... " >&6; }
2958 if test -z "$INSTALL"; then
2959 if test ${ac_cv_path_install+y}
2961 printf %s "(cached) " >&6
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 case $as_dir in #(((
2970 *) as_dir=$as_dir/ ;;
2972 # Account for fact that we put trailing slashes in our PATH walk.
2975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2979 # OSF1 and SCO ODT 3.0 have their own names for install.
2980 # Don't use installbsd from OSF since it installs stuff as root
2982 for ac_prog in ginstall scoinst install; do
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2985 if test $ac_prog = install &&
2986 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # AIX install. It has an incompatible calling convention.
2989 elif test $ac_prog = install &&
2990 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991 # program-specific install script used by HP pwplus--don't use.
2994 rm -rf conftest.one conftest.two conftest.dir
2995 echo one > conftest.one
2996 echo two > conftest.two
2998 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2999 test -s conftest.one && test -s conftest.two &&
3000 test -s conftest.dir/conftest.one &&
3001 test -s conftest.dir/conftest.two
3003 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3016 rm -rf conftest.one conftest.two conftest.dir
3019 if test ${ac_cv_path_install+y}; then
3020 INSTALL=$ac_cv_path_install
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL=$ac_install_sh
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 printf "%s\n" "$INSTALL" >&6; }
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3041 printf %s "checking whether build environment is sane... " >&6; }
3042 # Reject unsafe characters in $srcdir or the absolute working directory
3043 # name. Accept space and tab only in the latter.
3047 *[\\\"\#\$\&\'\`$am_lf]*)
3048 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3051 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3052 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3055 # Do 'set' in a subshell so we don't clobber the current shell's
3056 # arguments. Must try -L first in case configure is actually a
3057 # symlink; some systems play weird games with the mod time of symlinks
3058 # (eg FreeBSD returns the mod time of the symlink's containing
3062 for am_try in 1 2; do
3063 echo "timestamp, slept: $am_has_slept" > conftest.file
3064 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3065 if test "$*" = "X"; then
3067 set X `ls -t "$srcdir/configure" conftest.file`
3069 if test "$*" != "X $srcdir/configure conftest.file" \
3070 && test "$*" != "X conftest.file $srcdir/configure"; then
3072 # If neither matched, then we have a broken ls. This can happen
3073 # if, for instance, CONFIG_SHELL is bash and it inherits a
3074 # broken ls alias from the environment. This has actually
3075 # happened. Such a system could not be considered "sane".
3076 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3077 alias in your environment" "$LINENO" 5
3079 if test "$2" = conftest.file || test $am_try -eq 2; then
3086 test "$2" = conftest.file
3092 as_fn_error $? "newly created file is older than distributed files!
3093 Check your system clock" "$LINENO" 5
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 printf "%s\n" "yes" >&6; }
3097 # If we didn't sleep, we still need to ensure time stamps of config.status and
3098 # generated files are strictly newer.
3100 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3107 test "$program_prefix" != NONE &&
3108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3109 # Use a double $ so make ignores it.
3110 test "$program_suffix" != NONE &&
3111 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3112 # Double any \ or $.
3113 # By default was `s,x,x', remove it if useless.
3114 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3115 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3118 # Expand $ac_aux_dir to an absolute path.
3119 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3122 if test x"${MISSING+set}" != xset; then
3123 MISSING="\${SHELL} '$am_aux_dir/missing'"
3125 # Use eval to expand $SHELL
3126 if eval "$MISSING --is-lightweight"; then
3127 am_missing_run="$MISSING "
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3131 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3134 if test x"${install_sh+set}" != xset; then
3137 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3139 install_sh="\${SHELL} $am_aux_dir/install-sh"
3143 # Installed binaries are usually stripped using 'strip' when the user
3144 # run "make install-strip". However 'strip' might not be the right
3145 # tool to use in cross-compilation environments, therefore Automake
3146 # will honor the 'STRIP' environment variable to overrule this program.
3147 if test "$cross_compiling" != no; then
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}strip; ac_word=$2
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 printf %s "checking for $ac_word... " >&6; }
3153 if test ${ac_cv_prog_STRIP+y}
3155 printf %s "(cached) " >&6
3157 if test -n "$STRIP"; then
3158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 case $as_dir in #(((
3167 *) as_dir=$as_dir/ ;;
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 printf "%s\n" "$STRIP" >&6; }
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 printf "%s\n" "no" >&6; }
3192 if test -z "$ac_cv_prog_STRIP"; then
3194 # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy strip; ac_word=$2
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_ac_ct_STRIP+y}
3200 printf %s "(cached) " >&6
3202 if test -n "$ac_ct_STRIP"; then
3203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 case $as_dir in #(((
3212 *) as_dir=$as_dir/ ;;
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_STRIP="strip"
3217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3227 if test -n "$ac_ct_STRIP"; then
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3229 printf "%s\n" "$ac_ct_STRIP" >&6; }
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 printf "%s\n" "no" >&6; }
3235 if test "x$ac_ct_STRIP" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3247 STRIP="$ac_cv_prog_STRIP"
3251 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3255 printf %s "checking for a race-free mkdir -p... " >&6; }
3256 if test -z "$MKDIR_P"; then
3257 if test ${ac_cv_path_mkdir+y}
3259 printf %s "(cached) " >&6
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3265 case $as_dir in #(((
3268 *) as_dir=$as_dir/ ;;
3270 for ac_prog in mkdir gmkdir; do
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3273 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3274 'mkdir ('*'coreutils) '* | \
3276 'mkdir (fileutils) '4.1*)
3277 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3287 test -d ./--version && rmdir ./--version
3288 if test ${ac_cv_path_mkdir+y}; then
3289 MKDIR_P="$ac_cv_path_mkdir -p"
3291 # As a last resort, use the slow shell script. Don't cache a
3292 # value for MKDIR_P within a source directory, because that will
3293 # break other packages using the cache if that directory is
3294 # removed, or if the value is a relative name.
3295 MKDIR_P="$ac_install_sh -d"
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3299 printf "%s\n" "$MKDIR_P" >&6; }
3301 for ac_prog in gawk mawk nawk awk
3303 # Extract the first word of "$ac_prog", so it can be a program name with args.
3304 set dummy $ac_prog; ac_word=$2
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 printf %s "checking for $ac_word... " >&6; }
3307 if test ${ac_cv_prog_AWK+y}
3309 printf %s "(cached) " >&6
3311 if test -n "$AWK"; then
3312 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 case $as_dir in #(((
3321 *) as_dir=$as_dir/ ;;
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_AWK="$ac_prog"
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3336 if test -n "$AWK"; then
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3338 printf "%s\n" "$AWK" >&6; }
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3345 test -n "$AWK" && break
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3349 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3351 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3352 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3354 printf %s "(cached) " >&6
3356 cat >conftest.make <<\_ACEOF
3359 @echo '@@@%%%=$(MAKE)=@@@%%%'
3361 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3364 eval ac_cv_prog_make_${ac_make}_set=yes;;
3366 eval ac_cv_prog_make_${ac_make}_set=no;;
3370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 printf "%s\n" "yes" >&6; }
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 SET_MAKE="MAKE=${MAKE-make}"
3380 rm -rf .tst 2>/dev/null
3381 mkdir .tst 2>/dev/null
3382 if test -d .tst; then
3387 rmdir .tst 2>/dev/null
3389 # Check whether --enable-silent-rules was given.
3390 if test ${enable_silent_rules+y}
3392 enableval=$enable_silent_rules;
3395 case $enable_silent_rules in # (((
3396 yes) AM_DEFAULT_VERBOSITY=0;;
3397 no) AM_DEFAULT_VERBOSITY=1;;
3398 *) AM_DEFAULT_VERBOSITY=1;;
3400 am_make=${MAKE-make}
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3402 printf %s "checking whether $am_make supports nested variables... " >&6; }
3403 if test ${am_cv_make_support_nested_variables+y}
3405 printf %s "(cached) " >&6
3407 if printf "%s\n" 'TRUE=$(BAR$(V))
3413 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3414 am_cv_make_support_nested_variables=yes
3416 am_cv_make_support_nested_variables=no
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3420 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3421 if test $am_cv_make_support_nested_variables = yes; then
3423 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3425 AM_V=$AM_DEFAULT_VERBOSITY
3426 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3430 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3431 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3432 # is not polluted with repeated "-I."
3433 am__isrc=' -I$(srcdir)'
3434 # test to see if srcdir already configured
3435 if test -f $srcdir/config.status; then
3436 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3440 # test whether we have cygpath
3441 if test -z "$CYGPATH_W"; then
3442 if (cygpath --version) >/dev/null 2>/dev/null; then
3443 CYGPATH_W='cygpath -w'
3450 # Define the identity of the package.
3455 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3458 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3460 # Some tools Automake needs.
3462 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3465 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3468 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3471 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3474 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3476 # For better backward compatibility. To be removed once Automake 1.9.x
3477 # dies out for good. For more background, see:
3478 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3479 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3480 mkdir_p='$(MKDIR_P)'
3482 # We need awk for the "check" target (and possibly the TAP driver). The
3483 # system "awk" is bad on some platforms.
3484 # Always define AMTAR for backward compatibility. Yes, it's still used
3485 # in the wild :-( We should find a proper way to deprecate it ...
3489 # We'll loop over all known methods to create a tar archive until one works.
3490 _am_tools='gnutar pax cpio none'
3492 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3498 # Variables for tags utilities; see am/tags.am
3499 if test -z "$CTAGS"; then
3503 if test -z "$ETAGS"; then
3507 if test -z "$CSCOPE"; then
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes. So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present. This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message. This
3532 can help us improve future automake versions.
3535 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536 echo 'Configuration will proceed anyway, since you have set the' >&2
3537 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3541 Aborting the configuration process, to ensure you take notice of the issue.
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3551 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3555 ac_config_headers="$ac_config_headers config.h"
3560 # Make sure we can run config.sub.
3561 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3562 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3565 printf %s "checking build system type... " >&6; }
3566 if test ${ac_cv_build+y}
3568 printf %s "(cached) " >&6
3570 ac_build_alias=$build_alias
3571 test "x$ac_build_alias" = x &&
3572 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3573 test "x$ac_build_alias" = x &&
3574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3575 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3576 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3580 printf "%s\n" "$ac_cv_build" >&6; }
3581 case $ac_cv_build in
3583 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586 ac_save_IFS=$IFS; IFS='-'
3592 # Remember, the first character of IFS is used to create $*,
3593 # except with old shells:
3596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3600 printf %s "checking host system type... " >&6; }
3601 if test ${ac_cv_host+y}
3603 printf %s "(cached) " >&6
3605 if test "x$host_alias" = x; then
3606 ac_cv_host=$ac_cv_build
3608 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3609 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3614 printf "%s\n" "$ac_cv_host" >&6; }
3617 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3620 ac_save_IFS=$IFS; IFS='-'
3626 # Remember, the first character of IFS is used to create $*,
3627 # except with old shells:
3630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3638 printf "%s\n" "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3640 printf "%s\n" "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3642 if test "$hostname"; then
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3644 printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;}
3647 date=`date +%Y%m%d-%H%M%S`
3648 if test "$?" != 0; then
3651 if test "$date"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3653 printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;}
3666 DEPDIR="${am__leading_dot}deps"
3668 ac_config_commands="$ac_config_commands depfiles"
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3671 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3672 cat > confinc.mk << 'END'
3674 @echo this is the am__doit target >confinc.out
3679 # BSD make does it like this.
3680 echo '.include "confinc.mk" # ignored' > confmf.BSD
3681 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3682 echo 'include confinc.mk # ignored' > confmf.GNU
3684 for s in GNU BSD; do
3685 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3686 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }
3690 case $?:`cat confinc.out 2>/dev/null` in #(
3691 '0:this is the am__doit target') :
3694 am__include='.include' am__quote='"' ;; #(
3696 am__include='include' am__quote='' ;;
3701 if test "$am__include" != "#"; then
3702 _am_result="yes ($s style)"
3706 rm -f confinc.* confmf.*
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3708 printf "%s\n" "${_am_result}" >&6; }
3710 # Check whether --enable-dependency-tracking was given.
3711 if test ${enable_dependency_tracking+y}
3713 enableval=$enable_dependency_tracking;
3716 if test "x$enable_dependency_tracking" != xno; then
3717 am_depcomp="$ac_aux_dir/depcomp"
3721 if test "x$enable_dependency_tracking" != xno; then
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 if test -n "$ac_tool_prefix"; then
3736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 printf %s "checking for $ac_word... " >&6; }
3740 if test ${ac_cv_prog_CC+y}
3742 printf %s "(cached) " >&6
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 case $as_dir in #(((
3754 *) as_dir=$as_dir/ ;;
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769 if test -n "$CC"; then
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 printf "%s\n" "$CC" >&6; }
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3779 if test -z "$ac_cv_prog_CC"; then
3781 # Extract the first word of "gcc", so it can be a program name with args.
3782 set dummy gcc; ac_word=$2
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 printf %s "checking for $ac_word... " >&6; }
3785 if test ${ac_cv_prog_ac_ct_CC+y}
3787 printf %s "(cached) " >&6
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 case $as_dir in #(((
3799 *) as_dir=$as_dir/ ;;
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_ac_ct_CC="gcc"
3804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814 if test -n "$ac_ct_CC"; then
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816 printf "%s\n" "$ac_ct_CC" >&6; }
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 printf "%s\n" "no" >&6; }
3822 if test "x$ac_ct_CC" = x; then
3825 case $cross_compiling:$ac_tool_warned in
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3837 if test -z "$CC"; then
3838 if test -n "$ac_tool_prefix"; then
3839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3840 set dummy ${ac_tool_prefix}cc; ac_word=$2
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 printf %s "checking for $ac_word... " >&6; }
3843 if test ${ac_cv_prog_CC+y}
3845 printf %s "(cached) " >&6
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 case $as_dir in #(((
3857 *) as_dir=$as_dir/ ;;
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_CC="${ac_tool_prefix}cc"
3862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872 if test -n "$CC"; then
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874 printf "%s\n" "$CC" >&6; }
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 printf "%s\n" "no" >&6; }
3883 if test -z "$CC"; then
3884 # Extract the first word of "cc", so it can be a program name with args.
3885 set dummy cc; ac_word=$2
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 printf %s "checking for $ac_word... " >&6; }
3888 if test ${ac_cv_prog_CC+y}
3890 printf %s "(cached) " >&6
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 case $as_dir in #(((
3903 *) as_dir=$as_dir/ ;;
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3907 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3908 ac_prog_rejected=yes
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919 if test $ac_prog_rejected = yes; then
3920 # We found a bogon in the path, so make sure we never use it.
3921 set dummy $ac_cv_prog_CC
3923 if test $# != 0; then
3924 # We chose a different compiler from the bogus one.
3925 # However, it has the same basename, so the bogon will be chosen
3926 # first if we set CC to just the basename; use the full file name.
3928 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3934 if test -n "$CC"; then
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 printf "%s\n" "$CC" >&6; }
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 printf "%s\n" "no" >&6; }
3944 if test -z "$CC"; then
3945 if test -n "$ac_tool_prefix"; then
3946 for ac_prog in cl.exe
3948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 printf %s "checking for $ac_word... " >&6; }
3952 if test ${ac_cv_prog_CC+y}
3954 printf %s "(cached) " >&6
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 case $as_dir in #(((
3966 *) as_dir=$as_dir/ ;;
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3981 if test -n "$CC"; then
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3983 printf "%s\n" "$CC" >&6; }
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 printf "%s\n" "no" >&6; }
3990 test -n "$CC" && break
3993 if test -z "$CC"; then
3995 for ac_prog in cl.exe
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998 set dummy $ac_prog; ac_word=$2
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 printf %s "checking for $ac_word... " >&6; }
4001 if test ${ac_cv_prog_ac_ct_CC+y}
4003 printf %s "(cached) " >&6
4005 if test -n "$ac_ct_CC"; then
4006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 case $as_dir in #(((
4015 *) as_dir=$as_dir/ ;;
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_ac_ct_CC="$ac_prog"
4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4030 if test -n "$ac_ct_CC"; then
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4032 printf "%s\n" "$ac_ct_CC" >&6; }
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 printf "%s\n" "no" >&6; }
4039 test -n "$ac_ct_CC" && break
4042 if test "x$ac_ct_CC" = x; then
4045 case $cross_compiling:$ac_tool_warned in
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049 ac_tool_warned=yes ;;
4056 if test -z "$CC"; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}clang; ac_word=$2
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 printf %s "checking for $ac_word... " >&6; }
4062 if test ${ac_cv_prog_CC+y}
4064 printf %s "(cached) " >&6
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 case $as_dir in #(((
4076 *) as_dir=$as_dir/ ;;
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_CC="${ac_tool_prefix}clang"
4081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4091 if test -n "$CC"; then
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093 printf "%s\n" "$CC" >&6; }
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 printf "%s\n" "no" >&6; }
4101 if test -z "$ac_cv_prog_CC"; then
4103 # Extract the first word of "clang", so it can be a program name with args.
4104 set dummy clang; ac_word=$2
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 printf %s "checking for $ac_word... " >&6; }
4107 if test ${ac_cv_prog_ac_ct_CC+y}
4109 printf %s "(cached) " >&6
4111 if test -n "$ac_ct_CC"; then
4112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 case $as_dir in #(((
4121 *) as_dir=$as_dir/ ;;
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_ac_ct_CC="clang"
4126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4136 if test -n "$ac_ct_CC"; then
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4138 printf "%s\n" "$ac_ct_CC" >&6; }
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 printf "%s\n" "no" >&6; }
4144 if test "x$ac_ct_CC" = x; then
4147 case $cross_compiling:$ac_tool_warned in
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4162 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "no acceptable C compiler found in \$PATH
4165 See \`config.log' for more details" "$LINENO" 5; }
4167 # Provide some information about the compiler.
4168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4171 for ac_option in --version -v -V -qversion -version; do
4172 { { ac_try="$ac_compiler $ac_option >&5"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 printf "%s\n" "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4181 if test -s conftest.err; then
4183 ... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4187 rm -f conftest.er1 conftest.err
4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 ac_clean_files_save=$ac_clean_files
4204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4205 # Try to create an executable without -o first, disregard a.out.
4206 # It will help us diagnose broken compilers, and finding out an intuition
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4209 printf %s "checking whether the C compiler works... " >&6; }
4210 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4212 # The possible output files:
4213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4216 for ac_file in $ac_files
4219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4225 if { { ac_try="$ac_link_default"
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 printf "%s\n" "$ac_try_echo"; } >&5
4232 (eval "$ac_link_default") 2>&5
4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }
4237 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4238 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4239 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4240 # so that the user can short-circuit this test for compilers unknown to
4242 for ac_file in $ac_files ''
4244 test -f "$ac_file" || continue
4246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4249 # We found the default executable, but exeext='' is most
4253 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4255 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4257 # We set ac_cv_exeext here because the later test for it is not
4258 # safe: cross compilers may not add the suffix if given an `-o'
4259 # argument, so we may need to know it at that point already.
4260 # Even if this section looks crufty: it has the advantage of
4267 test "$ac_cv_exeext" = no && ac_cv_exeext=
4272 if test -z "$ac_file"
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 printf "%s\n" "no" >&6; }
4276 printf "%s\n" "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error 77 "C compiler cannot create executables
4282 See \`config.log' for more details" "$LINENO" 5; }
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 printf "%s\n" "yes" >&6; }
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4288 printf %s "checking for C compiler default output file name... " >&6; }
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4290 printf "%s\n" "$ac_file" >&6; }
4291 ac_exeext=$ac_cv_exeext
4293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4294 ac_clean_files=$ac_clean_files_save
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4296 printf %s "checking for suffix of executables... " >&6; }
4297 if { { ac_try="$ac_link"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 printf "%s\n" "$ac_try_echo"; } >&5
4304 (eval "$ac_link") 2>&5
4306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }
4309 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4310 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4311 # work properly (i.e., refer to `conftest.exe'), while it won't with
4313 for ac_file in conftest.exe conftest conftest.*; do
4314 test -f "$ac_file" || continue
4316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4326 See \`config.log' for more details" "$LINENO" 5; }
4328 rm -f conftest conftest$ac_cv_exeext
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4330 printf "%s\n" "$ac_cv_exeext" >&6; }
4332 rm -f conftest.$ac_ext
4333 EXEEXT=$ac_cv_exeext
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4341 FILE *f = fopen ("conftest.out", "w");
4342 return ferror (f) || fclose (f) != 0;
4348 ac_clean_files="$ac_clean_files conftest.out"
4349 # Check that the compiler produces executables we can run. If not, either
4350 # the compiler is broken, or we cross compile.
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4352 printf %s "checking whether we are cross compiling... " >&6; }
4353 if test "$cross_compiling" != yes; then
4354 { { ac_try="$ac_link"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 printf "%s\n" "$ac_try_echo"; } >&5
4361 (eval "$ac_link") 2>&5
4363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364 test $ac_status = 0; }
4365 if { ac_try='./conftest$ac_cv_exeext'
4366 { { case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 printf "%s\n" "$ac_try_echo"; } >&5
4372 (eval "$ac_try") 2>&5
4374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; }; then
4378 if test "$cross_compiling" = maybe; then
4381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error 77 "cannot run C compiled programs.
4384 If you meant to cross compile, use \`--host'.
4385 See \`config.log' for more details" "$LINENO" 5; }
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4390 printf "%s\n" "$cross_compiling" >&6; }
4392 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4393 ac_clean_files=$ac_clean_files_save
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4395 printf %s "checking for suffix of object files... " >&6; }
4396 if test ${ac_cv_objext+y}
4398 printf %s "(cached) " >&6
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 rm -f conftest.o conftest.obj
4412 if { { ac_try="$ac_compile"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 printf "%s\n" "$ac_try_echo"; } >&5
4419 (eval "$ac_compile") 2>&5
4421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4424 for ac_file in conftest.o conftest.obj conftest.*; do
4425 test -f "$ac_file" || continue;
4427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4433 printf "%s\n" "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error $? "cannot compute suffix of object files: cannot compile
4439 See \`config.log' for more details" "$LINENO" 5; }
4441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4444 printf "%s\n" "$ac_cv_objext" >&6; }
4445 OBJEXT=$ac_cv_objext
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4448 printf %s "checking whether the compiler supports GNU C... " >&6; }
4449 if test ${ac_cv_c_compiler_gnu+y}
4451 printf %s "(cached) " >&6
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4467 if ac_fn_c_try_compile "$LINENO"
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4478 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 if test $ac_compiler_gnu = yes; then
4486 ac_test_CFLAGS=${CFLAGS+y}
4487 ac_save_CFLAGS=$CFLAGS
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4489 printf %s "checking whether $CC accepts -g... " >&6; }
4490 if test ${ac_cv_prog_cc_g+y}
4492 printf %s "(cached) " >&6
4494 ac_save_c_werror_flag=$ac_c_werror_flag
4495 ac_c_werror_flag=yes
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4509 if ac_fn_c_try_compile "$LINENO"
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4525 if ac_fn_c_try_compile "$LINENO"
4529 ac_c_werror_flag=$ac_save_c_werror_flag
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4542 if ac_fn_c_try_compile "$LINENO"
4546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 ac_c_werror_flag=$ac_save_c_werror_flag
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4554 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4555 if test $ac_test_CFLAGS; then
4556 CFLAGS=$ac_save_CFLAGS
4557 elif test $ac_cv_prog_cc_g = yes; then
4558 if test "$GCC" = yes; then
4564 if test "$GCC" = yes; then
4571 if test x$ac_prog_cc_stdc = xno
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4574 printf %s "checking for $CC option to enable C11 features... " >&6; }
4575 if test ${ac_cv_prog_cc_c11+y}
4577 printf %s "(cached) " >&6
4579 ac_cv_prog_cc_c11=no
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 $ac_c_conftest_c11_program
4585 for ac_arg in '' -std=gnu11
4587 CC="$ac_save_CC $ac_arg"
4588 if ac_fn_c_try_compile "$LINENO"
4590 ac_cv_prog_cc_c11=$ac_arg
4592 rm -f core conftest.err conftest.$ac_objext conftest.beam
4593 test "x$ac_cv_prog_cc_c11" != "xno" && break
4595 rm -f conftest.$ac_ext
4599 if test "x$ac_cv_prog_cc_c11" = xno
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4602 printf "%s\n" "unsupported" >&6; }
4604 if test "x$ac_cv_prog_cc_c11" = x
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4607 printf "%s\n" "none needed" >&6; }
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4610 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4611 CC="$CC $ac_cv_prog_cc_c11"
4613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4617 if test x$ac_prog_cc_stdc = xno
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4620 printf %s "checking for $CC option to enable C99 features... " >&6; }
4621 if test ${ac_cv_prog_cc_c99+y}
4623 printf %s "(cached) " >&6
4625 ac_cv_prog_cc_c99=no
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 $ac_c_conftest_c99_program
4631 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4633 CC="$ac_save_CC $ac_arg"
4634 if ac_fn_c_try_compile "$LINENO"
4636 ac_cv_prog_cc_c99=$ac_arg
4638 rm -f core conftest.err conftest.$ac_objext conftest.beam
4639 test "x$ac_cv_prog_cc_c99" != "xno" && break
4641 rm -f conftest.$ac_ext
4645 if test "x$ac_cv_prog_cc_c99" = xno
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4648 printf "%s\n" "unsupported" >&6; }
4650 if test "x$ac_cv_prog_cc_c99" = x
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4653 printf "%s\n" "none needed" >&6; }
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4656 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4657 CC="$CC $ac_cv_prog_cc_c99"
4659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4663 if test x$ac_prog_cc_stdc = xno
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4666 printf %s "checking for $CC option to enable C89 features... " >&6; }
4667 if test ${ac_cv_prog_cc_c89+y}
4669 printf %s "(cached) " >&6
4671 ac_cv_prog_cc_c89=no
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 $ac_c_conftest_c89_program
4677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4679 CC="$ac_save_CC $ac_arg"
4680 if ac_fn_c_try_compile "$LINENO"
4682 ac_cv_prog_cc_c89=$ac_arg
4684 rm -f core conftest.err conftest.$ac_objext conftest.beam
4685 test "x$ac_cv_prog_cc_c89" != "xno" && break
4687 rm -f conftest.$ac_ext
4691 if test "x$ac_cv_prog_cc_c89" = xno
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4694 printf "%s\n" "unsupported" >&6; }
4696 if test "x$ac_cv_prog_cc_c89" = x
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699 printf "%s\n" "none needed" >&6; }
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4702 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4703 CC="$CC $ac_cv_prog_cc_c89"
4705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4723 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4724 if test ${am_cv_prog_cc_c_o+y}
4726 printf %s "(cached) " >&6
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4739 # Make sure it works both with $CC and with simple cc.
4740 # Following AC_PROG_CC_C_O, we do the test twice because some
4741 # compilers refuse to overwrite an existing .o file with -o,
4742 # though they will create one.
4743 am_cv_prog_cc_c_o=yes
4745 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4746 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } \
4750 && test -f conftest2.$ac_objext; then
4753 am_cv_prog_cc_c_o=no
4757 rm -f core conftest*
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4761 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4762 if test "$am_cv_prog_cc_c_o" != yes; then
4763 # Losing compiler, so override with the script.
4764 # FIXME: It is wrong to rewrite CC.
4765 # But if we don't then we get into trouble of one sort or another.
4766 # A longer-term fix would be to have automake use am__CC in this case,
4767 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4768 CC="$am_aux_dir/compile $CC"
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777 depcc="$CC" am_compiler_list=
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4780 printf %s "checking dependency style of $depcc... " >&6; }
4781 if test ${am_cv_CC_dependencies_compiler_type+y}
4783 printf %s "(cached) " >&6
4785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4786 # We make a subdir and do the tests there. Otherwise we can end up
4787 # making bogus files that we don't know about and never remove. For
4788 # instance it was reported that on HP-UX the gcc test will end up
4789 # making a dummy file named 'D' -- because '-MD' means "put the output
4793 # Copy depcomp to subdir because otherwise we won't find it if we're
4794 # using a relative directory.
4795 cp "$am_depcomp" conftest.dir
4797 # We will build objects and dependencies in a subdirectory because
4798 # it helps to detect inapplicable dependency modes. For instance
4799 # both Tru64's cc and ICC support -MD to output dependencies as a
4800 # side effect of compilation, but ICC will put the dependencies in
4801 # the current directory while Tru64 will put them in the object
4805 am_cv_CC_dependencies_compiler_type=none
4806 if test "$am_compiler_list" = ""; then
4807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4810 case " $depcc " in #(
4811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4814 for depmode in $am_compiler_list; do
4815 # Setup a source with many dependencies, because some compilers
4816 # like to wrap large dependency lists on column 80 (with \), and
4817 # we should not choose a depcomp mode which is confused by this.
4819 # We need to recreate these files for each test, as the compiler may
4820 # overwrite some of them when testing with obscure command lines.
4821 # This happens at least with the AIX C compiler.
4823 for i in 1 2 3 4 5 6; do
4824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4825 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4826 # Solaris 10 /bin/sh.
4827 echo '/* dummy */' > sub/conftst$i.h
4829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4831 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4832 # mode. It turns out that the SunPro C++ compiler does not properly
4833 # handle '-M -o', and we need to detect this. Also, some Intel
4834 # versions had trouble with output in subdirs.
4835 am__obj=sub/conftest.${OBJEXT-o}
4836 am__minus_obj="-o $am__obj"
4839 # This depmode causes a compiler race in universal mode.
4840 test "$am__universal" = false || continue
4843 # After this tag, mechanisms are not by side-effect, so they'll
4844 # only be used when explicitly requested.
4845 if test "x$enable_dependency_tracking" = xyes; then
4851 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4852 # This compiler won't grok '-c -o', but also, the minuso test has
4853 # not run yet. These depmodes are late enough in the game, and
4854 # so weak that their functioning should not be impacted.
4855 am__obj=conftest.${OBJEXT-o}
4860 if depmode=$depmode \
4861 source=sub/conftest.c object=$am__obj \
4862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4864 >/dev/null 2>conftest.err &&
4865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4869 # icc doesn't choke on unknown options, it will just issue warnings
4870 # or remarks (even with -Werror). So we grep stderr for any message
4871 # that says an option was ignored or not supported.
4872 # When given -MP, icc 7.0 and 7.1 complain thusly:
4873 # icc: Command line warning: ignoring option '-M'; no argument required
4874 # The diagnosis changed in icc 8.0:
4875 # icc: Command line remark: option '-MP' not supported
4876 if (grep 'ignoring option' conftest.err ||
4877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4878 am_cv_CC_dependencies_compiler_type=$depmode
4887 am_cv_CC_dependencies_compiler_type=none
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4892 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4896 test "x$enable_dependency_tracking" != xno \
4897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4899 am__fastdepCC_FALSE='#'
4901 am__fastdepCC_TRUE='#'
4902 am__fastdepCC_FALSE=
4907 ac_header= ac_cache=
4908 for ac_item in $ac_header_c_list
4910 if test $ac_cache; then
4911 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4912 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4913 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4915 ac_header= ac_cache=
4916 elif test $ac_header; then
4930 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4933 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4943 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4944 if test ${ac_cv_safe_to_define___extensions__+y}
4946 printf %s "(cached) " >&6
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4951 # define __EXTENSIONS__ 1
4952 $ac_includes_default
4961 if ac_fn_c_try_compile "$LINENO"
4963 ac_cv_safe_to_define___extensions__=yes
4965 ac_cv_safe_to_define___extensions__=no
4967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4970 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4973 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4974 if test ${ac_cv_should_define__xopen_source+y}
4976 printf %s "(cached) " >&6
4978 ac_cv_should_define__xopen_source=no
4979 if test $ac_cv_header_wchar_h = yes
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4994 if ac_fn_c_try_compile "$LINENO"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5001 #define _XOPEN_SOURCE 500
5012 if ac_fn_c_try_compile "$LINENO"
5014 ac_cv_should_define__xopen_source=yes
5016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5022 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5024 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5026 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5028 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5030 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5032 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5034 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5036 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5038 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5040 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5042 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5044 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5046 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5048 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5050 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5052 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5054 if test $ac_cv_header_minix_config_h = yes
5057 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5059 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5061 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5066 if test $ac_cv_safe_to_define___extensions__ = yes
5068 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5071 if test $ac_cv_should_define__xopen_source = yes
5073 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5078 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5081 if test -n "$LD_LIBRARY_PATH"; then
5082 saved_LDFLAGS="$LDFLAGS"
5083 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5084 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5086 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5090 int main (void) { return 0; }
5093 if ac_fn_c_try_link "$LINENO"
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5096 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 printf "%s\n" "no" >&6; }
5100 LDADD_FOR_TESTS_KLUDGE=""
5103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5104 conftest$ac_exeext conftest.$ac_ext
5105 LDFLAGS="$saved_LDFLAGS"
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5115 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5120 macro_version='2.4.2'
5121 macro_revision='1.3337'
5136 ltmain="$ac_aux_dir/ltmain.sh"
5138 # Backslashify metacharacters that are still active within
5139 # double-quoted strings.
5140 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5142 # Same as above, but do not quote variable references.
5143 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5145 # Sed substitution to delay expansion of an escaped shell variable in a
5146 # double_quote_subst'ed string.
5147 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5149 # Sed substitution to delay expansion of an escaped single quote.
5150 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5152 # Sed substitution to avoid accidental globbing in evaled expressions
5153 no_glob_subst='s/\*/\\\*/g'
5155 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5160 printf %s "checking how to print strings... " >&6; }
5161 # Test print first, because it will be a builtin if present.
5162 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5163 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5165 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5168 # Use this function as a fallback that always works.
5169 func_fallback_echo ()
5171 eval 'cat <<_LTECHO_EOF
5175 ECHO='func_fallback_echo'
5178 # func_echo_all arg...
5179 # Invoke $ECHO with all args, space-separated.
5186 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5187 printf "%s\n" "printf" >&6; } ;;
5188 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5189 printf "%s\n" "print -r" >&6; } ;;
5190 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5191 printf "%s\n" "cat" >&6; } ;;
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5208 printf %s "checking for a sed that does not truncate output... " >&6; }
5209 if test ${ac_cv_path_SED+y}
5211 printf %s "(cached) " >&6
5213 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5214 for ac_i in 1 2 3 4 5 6 7; do
5215 ac_script="$ac_script$as_nl$ac_script"
5217 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5218 { ac_script=; unset ac_script;}
5219 if test -z "$SED"; then
5220 ac_path_SED_found=false
5221 # Loop through the user's path and test for each of PROGNAME-LIST
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 case $as_dir in #(((
5229 *) as_dir=$as_dir/ ;;
5231 for ac_prog in sed gsed
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5235 as_fn_executable_p "$ac_path_SED" || continue
5236 # Check for GNU ac_path_SED and select it if it is found.
5237 # Check for GNU $ac_path_SED
5238 case `"$ac_path_SED" --version 2>&1` in
5240 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5243 printf %s 0123456789 >"conftest.in"
5246 cat "conftest.in" "conftest.in" >"conftest.tmp"
5247 mv "conftest.tmp" "conftest.in"
5248 cp "conftest.in" "conftest.nl"
5249 printf "%s\n" '' >> "conftest.nl"
5250 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252 as_fn_arith $ac_count + 1 && ac_count=$as_val
5253 if test $ac_count -gt ${ac_path_SED_max-0}; then
5254 # Best one so far, save it but keep looking for a better one
5255 ac_cv_path_SED="$ac_path_SED"
5256 ac_path_SED_max=$ac_count
5258 # 10*(2^10) chars as input seems more than enough
5259 test $ac_count -gt 10 && break
5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 $ac_path_SED_found && break 3
5269 if test -z "$ac_cv_path_SED"; then
5270 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5278 printf "%s\n" "$ac_cv_path_SED" >&6; }
5279 SED="$ac_cv_path_SED"
5282 test -z "$SED" && SED=sed
5283 Xsed="$SED -e 1s/^X//"
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5296 printf %s "checking for grep that handles long lines and -e... " >&6; }
5297 if test ${ac_cv_path_GREP+y}
5299 printf %s "(cached) " >&6
5301 if test -z "$GREP"; then
5302 ac_path_GREP_found=false
5303 # Loop through the user's path and test for each of PROGNAME-LIST
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5308 case $as_dir in #(((
5311 *) as_dir=$as_dir/ ;;
5313 for ac_prog in grep ggrep
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5317 as_fn_executable_p "$ac_path_GREP" || continue
5318 # Check for GNU ac_path_GREP and select it if it is found.
5319 # Check for GNU $ac_path_GREP
5320 case `"$ac_path_GREP" --version 2>&1` in
5322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5325 printf %s 0123456789 >"conftest.in"
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 printf "%s\n" 'GREP' >> "conftest.nl"
5332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 as_fn_arith $ac_count + 1 && ac_count=$as_val
5335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_GREP="$ac_path_GREP"
5338 ac_path_GREP_max=$ac_count
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346 $ac_path_GREP_found && break 3
5351 if test -z "$ac_cv_path_GREP"; then
5352 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5355 ac_cv_path_GREP=$GREP
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5360 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5361 GREP="$ac_cv_path_GREP"
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5365 printf %s "checking for egrep... " >&6; }
5366 if test ${ac_cv_path_EGREP+y}
5368 printf %s "(cached) " >&6
5370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5371 then ac_cv_path_EGREP="$GREP -E"
5373 if test -z "$EGREP"; then
5374 ac_path_EGREP_found=false
5375 # Loop through the user's path and test for each of PROGNAME-LIST
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5380 case $as_dir in #(((
5383 *) as_dir=$as_dir/ ;;
5385 for ac_prog in egrep
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5389 as_fn_executable_p "$ac_path_EGREP" || continue
5390 # Check for GNU ac_path_EGREP and select it if it is found.
5391 # Check for GNU $ac_path_EGREP
5392 case `"$ac_path_EGREP" --version 2>&1` in
5394 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5397 printf %s 0123456789 >"conftest.in"
5400 cat "conftest.in" "conftest.in" >"conftest.tmp"
5401 mv "conftest.tmp" "conftest.in"
5402 cp "conftest.in" "conftest.nl"
5403 printf "%s\n" 'EGREP' >> "conftest.nl"
5404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5406 as_fn_arith $ac_count + 1 && ac_count=$as_val
5407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5408 # Best one so far, save it but keep looking for a better one
5409 ac_cv_path_EGREP="$ac_path_EGREP"
5410 ac_path_EGREP_max=$ac_count
5412 # 10*(2^10) chars as input seems more than enough
5413 test $ac_count -gt 10 && break
5415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 $ac_path_EGREP_found && break 3
5423 if test -z "$ac_cv_path_EGREP"; then
5424 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427 ac_cv_path_EGREP=$EGREP
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5433 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5434 EGREP="$ac_cv_path_EGREP"
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5438 printf %s "checking for fgrep... " >&6; }
5439 if test ${ac_cv_path_FGREP+y}
5441 printf %s "(cached) " >&6
5443 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5444 then ac_cv_path_FGREP="$GREP -F"
5446 if test -z "$FGREP"; then
5447 ac_path_FGREP_found=false
5448 # Loop through the user's path and test for each of PROGNAME-LIST
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5453 case $as_dir in #(((
5456 *) as_dir=$as_dir/ ;;
5458 for ac_prog in fgrep
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5462 as_fn_executable_p "$ac_path_FGREP" || continue
5463 # Check for GNU ac_path_FGREP and select it if it is found.
5464 # Check for GNU $ac_path_FGREP
5465 case `"$ac_path_FGREP" --version 2>&1` in
5467 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5470 printf %s 0123456789 >"conftest.in"
5473 cat "conftest.in" "conftest.in" >"conftest.tmp"
5474 mv "conftest.tmp" "conftest.in"
5475 cp "conftest.in" "conftest.nl"
5476 printf "%s\n" 'FGREP' >> "conftest.nl"
5477 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479 as_fn_arith $ac_count + 1 && ac_count=$as_val
5480 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5481 # Best one so far, save it but keep looking for a better one
5482 ac_cv_path_FGREP="$ac_path_FGREP"
5483 ac_path_FGREP_max=$ac_count
5485 # 10*(2^10) chars as input seems more than enough
5486 test $ac_count -gt 10 && break
5488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491 $ac_path_FGREP_found && break 3
5496 if test -z "$ac_cv_path_FGREP"; then
5497 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500 ac_cv_path_FGREP=$FGREP
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5506 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5507 FGREP="$ac_cv_path_FGREP"
5510 test -z "$GREP" && GREP=grep
5530 # Check whether --with-gnu-ld was given.
5531 if test ${with_gnu_ld+y}
5533 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5539 if test "$GCC" = yes; then
5540 # Check if gcc -print-prog-name=ld gives a path.
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5542 printf %s "checking for ld used by $CC... " >&6; }
5545 # gcc leaves a trailing carriage return which upsets mingw
5546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5551 # Accept absolute paths.
5553 re_direlt='/[^/][^/]*/\.\./'
5554 # Canonicalize the pathname of ld
5555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5559 test -z "$LD" && LD="$ac_prog"
5562 # If it fails, then pretend we aren't using GCC.
5566 # If it is relative, then search for the first ld in PATH.
5570 elif test "$with_gnu_ld" = yes; then
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5572 printf %s "checking for GNU ld... " >&6; }
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5575 printf %s "checking for non-GNU ld... " >&6; }
5577 if test ${lt_cv_path_LD+y}
5579 printf %s "(cached) " >&6
5581 if test -z "$LD"; then
5582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5583 for ac_dir in $PATH; do
5585 test -z "$ac_dir" && ac_dir=.
5586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5587 lt_cv_path_LD="$ac_dir/$ac_prog"
5588 # Check to see if the program is GNU ld. I'd rather use --version,
5589 # but apparently some variants of GNU ld only accept -v.
5590 # Break only if it was the GNU/non-GNU ld that we prefer.
5591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5592 *GNU* | *'with BFD'*)
5593 test "$with_gnu_ld" != no && break
5596 test "$with_gnu_ld" != yes && break
5603 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5608 if test -n "$LD"; then
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5610 printf "%s\n" "$LD" >&6; }
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 printf "%s\n" "no" >&6; }
5615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5617 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5618 if test ${lt_cv_prog_gnu_ld+y}
5620 printf %s "(cached) " >&6
5622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5623 case `$LD -v 2>&1 </dev/null` in
5624 *GNU* | *'with BFD'*)
5625 lt_cv_prog_gnu_ld=yes
5628 lt_cv_prog_gnu_ld=no
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5633 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5634 with_gnu_ld=$lt_cv_prog_gnu_ld
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5645 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5646 if test ${lt_cv_path_NM+y}
5648 printf %s "(cached) " >&6
5650 if test -n "$NM"; then
5651 # Let the user override the test.
5654 lt_nm_to_check="${ac_tool_prefix}nm"
5655 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5656 lt_nm_to_check="$lt_nm_to_check nm"
5658 for lt_tmp_nm in $lt_nm_to_check; do
5659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5660 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5662 test -z "$ac_dir" && ac_dir=.
5663 tmp_nm="$ac_dir/$lt_tmp_nm"
5664 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5665 # Check to see if the nm accepts a BSD-compat flag.
5666 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5667 # nm: unknown option "B" ignored
5668 # Tru64's nm complains that /dev/null is an invalid object file
5669 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5670 */dev/null* | *'Invalid file or object type'*)
5671 lt_cv_path_NM="$tmp_nm -B"
5675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5677 lt_cv_path_NM="$tmp_nm -p"
5681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5682 continue # so that we can try to find one that supports BSD flags
5691 : ${lt_cv_path_NM=no}
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5695 printf "%s\n" "$lt_cv_path_NM" >&6; }
5696 if test "$lt_cv_path_NM" != "no"; then
5699 # Didn't find any BSD compatible name lister, look for dumpbin.
5700 if test -n "$DUMPBIN"; then :
5701 # Let the user override the test.
5703 if test -n "$ac_tool_prefix"; then
5704 for ac_prog in dumpbin "link -dump"
5706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s "checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_DUMPBIN+y}
5712 printf %s "(cached) " >&6
5714 if test -n "$DUMPBIN"; then
5715 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 case $as_dir in #(((
5724 *) as_dir=$as_dir/ ;;
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738 DUMPBIN=$ac_cv_prog_DUMPBIN
5739 if test -n "$DUMPBIN"; then
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5741 printf "%s\n" "$DUMPBIN" >&6; }
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5748 test -n "$DUMPBIN" && break
5751 if test -z "$DUMPBIN"; then
5752 ac_ct_DUMPBIN=$DUMPBIN
5753 for ac_prog in dumpbin "link -dump"
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 printf %s "checking for $ac_word... " >&6; }
5759 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5761 printf %s "(cached) " >&6
5763 if test -n "$ac_ct_DUMPBIN"; then
5764 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 case $as_dir in #(((
5773 *) as_dir=$as_dir/ ;;
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5787 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5788 if test -n "$ac_ct_DUMPBIN"; then
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5790 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 printf "%s\n" "no" >&6; }
5797 test -n "$ac_ct_DUMPBIN" && break
5800 if test "x$ac_ct_DUMPBIN" = x; then
5803 case $cross_compiling:$ac_tool_warned in
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5809 DUMPBIN=$ac_ct_DUMPBIN
5813 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5815 DUMPBIN="$DUMPBIN -symbols"
5823 if test "$DUMPBIN" != ":"; then
5827 test -z "$NM" && NM=nm
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5835 printf %s "checking the name lister ($NM) interface... " >&6; }
5836 if test ${lt_cv_nm_interface+y}
5838 printf %s "(cached) " >&6
5840 lt_cv_nm_interface="BSD nm"
5841 echo "int some_variable = 0;" > conftest.$ac_ext
5842 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5843 (eval "$ac_compile" 2>conftest.err)
5844 cat conftest.err >&5
5845 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5847 cat conftest.err >&5
5848 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5849 cat conftest.out >&5
5850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5851 lt_cv_nm_interface="MS dumpbin"
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5856 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5859 printf %s "checking whether ln -s works... " >&6; }
5861 if test "$LN_S" = "ln -s"; then
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5863 printf "%s\n" "yes" >&6; }
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5866 printf "%s\n" "no, using $LN_S" >&6; }
5869 # find the maximum length of command line arguments
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5871 printf %s "checking the maximum length of command line arguments... " >&6; }
5872 if test ${lt_cv_sys_max_cmd_len+y}
5874 printf %s "(cached) " >&6
5881 # On DJGPP, this test can blow up pretty badly due to problems in libc
5882 # (any single argument exceeding 2000 bytes causes a buffer overrun
5883 # during glob expansion). Even if it were fixed, the result of this
5884 # check would be larger than it should be.
5885 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5889 # Under GNU Hurd, this test is not required because there is
5890 # no limit to the length of command line arguments.
5891 # Libtool will interpret -1 as no limit whatsoever
5892 lt_cv_sys_max_cmd_len=-1;
5895 cygwin* | mingw* | cegcc*)
5896 # On Win9x/ME, this test blows up -- it succeeds, but takes
5897 # about 5 minutes as the teststring grows exponentially.
5898 # Worse, since 9x/ME are not pre-emptively multitasking,
5899 # you end up with a "frozen" computer, even though with patience
5900 # the test eventually succeeds (with a max line length of 256k).
5901 # Instead, let's just punt: use the minimum linelength reported by
5902 # all of the supported platforms: 8192 (on NT/2K/XP).
5903 lt_cv_sys_max_cmd_len=8192;
5907 # On MiNT this can take a long time and run out of memory.
5908 lt_cv_sys_max_cmd_len=8192;
5912 # On AmigaOS with pdksh, this test takes hours, literally.
5913 # So we just punt and use a minimum line length of 8192.
5914 lt_cv_sys_max_cmd_len=8192;
5917 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5918 # This has been around since 386BSD, at least. Likely further.
5919 if test -x /sbin/sysctl; then
5920 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5921 elif test -x /usr/sbin/sysctl; then
5922 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5924 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5926 # And add a safety zone
5927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5933 lt_cv_sys_max_cmd_len=196608
5937 # The test takes a long time on OS/2.
5938 lt_cv_sys_max_cmd_len=8192
5942 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5943 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5944 # nice to cause kernel panics so lets avoid the loop below.
5945 # First set a reasonable default.
5946 lt_cv_sys_max_cmd_len=16384
5948 if test -x /sbin/sysconfig; then
5949 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5950 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5955 lt_cv_sys_max_cmd_len=102400
5957 sysv5* | sco5v6* | sysv4.2uw2*)
5958 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5959 if test -n "$kargmax"; then
5960 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5962 lt_cv_sys_max_cmd_len=32768
5966 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5967 if test -n "$lt_cv_sys_max_cmd_len"; then
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5971 # Make teststring a little bigger before we do anything with it.
5972 # a 1K string should be a reasonable start.
5973 for i in 1 2 3 4 5 6 7 8 ; do
5974 teststring=$teststring$teststring
5976 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5977 # If test is not a shell built-in, we'll probably end up computing a
5978 # maximum length that is only half of the actual maximum length, but
5980 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5981 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5982 test $i != 17 # 1/2 MB should be enough
5985 teststring=$teststring$teststring
5987 # Only check the string length outside the loop.
5988 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5990 # Add a significant safety factor because C++ compilers can tack on
5991 # massive amounts of additional arguments before passing them to the
5992 # linker. It appears as though 1/2 is a usable value.
5993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6000 if test -n $lt_cv_sys_max_cmd_len ; then
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6002 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6005 printf "%s\n" "none" >&6; }
6007 max_cmd_len=$lt_cv_sys_max_cmd_len
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6019 printf %s "checking whether the shell understands some XSI constructs... " >&6; }
6020 # Try some XSI features
6023 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6025 && eval 'test $(( 1 + 1 )) -eq 2 \
6026 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6029 printf "%s\n" "$xsi_shell" >&6; }
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6033 printf %s "checking whether the shell understands \"+=\"... " >&6; }
6035 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6037 && lt_shell_append=yes
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6039 printf "%s\n" "$lt_shell_append" >&6; }
6042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6052 # test EBCDIC or ASCII
6053 case `echo X|tr X '\101'` in
6054 A) # ASCII based system
6055 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6056 lt_SP2NL='tr \040 \012'
6057 lt_NL2SP='tr \015\012 \040\040'
6059 *) # EBCDIC based system
6060 lt_SP2NL='tr \100 \n'
6061 lt_NL2SP='tr \r\n \100\100'
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6074 printf %s "checking how to convert $build file names to $host format... " >&6; }
6075 if test ${lt_cv_to_host_file_cmd+y}
6077 printf %s "(cached) " >&6
6082 *-*-mingw* ) # actually msys
6083 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6086 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6088 * ) # otherwise, assume *nix
6089 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6095 *-*-mingw* ) # actually msys
6096 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6099 lt_cv_to_host_file_cmd=func_convert_file_noop
6101 * ) # otherwise, assume *nix
6102 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6106 * ) # unhandled hosts (and "normal" native builds)
6107 lt_cv_to_host_file_cmd=func_convert_file_noop
6113 to_host_file_cmd=$lt_cv_to_host_file_cmd
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6115 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6122 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6123 if test ${lt_cv_to_tool_file_cmd+y}
6125 printf %s "(cached) " >&6
6127 #assume ordinary cross tools, or native build.
6128 lt_cv_to_tool_file_cmd=func_convert_file_noop
6132 *-*-mingw* ) # actually msys
6133 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6141 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6143 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6150 printf %s "checking for $LD option to reload object files... " >&6; }
6151 if test ${lt_cv_ld_reload_flag+y}
6153 printf %s "(cached) " >&6
6155 lt_cv_ld_reload_flag='-r'
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6158 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6159 reload_flag=$lt_cv_ld_reload_flag
6160 case $reload_flag in
6162 *) reload_flag=" $reload_flag" ;;
6164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6166 cygwin* | mingw* | pw32* | cegcc*)
6167 if test "$GCC" != yes; then
6172 if test "$GCC" = yes; then
6173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6188 if test -n "$ac_tool_prefix"; then
6189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 printf %s "checking for $ac_word... " >&6; }
6193 if test ${ac_cv_prog_OBJDUMP+y}
6195 printf %s "(cached) " >&6
6197 if test -n "$OBJDUMP"; then
6198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 case $as_dir in #(((
6207 *) as_dir=$as_dir/ ;;
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6221 OBJDUMP=$ac_cv_prog_OBJDUMP
6222 if test -n "$OBJDUMP"; then
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6224 printf "%s\n" "$OBJDUMP" >&6; }
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 printf "%s\n" "no" >&6; }
6232 if test -z "$ac_cv_prog_OBJDUMP"; then
6233 ac_ct_OBJDUMP=$OBJDUMP
6234 # Extract the first word of "objdump", so it can be a program name with args.
6235 set dummy objdump; ac_word=$2
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 printf %s "checking for $ac_word... " >&6; }
6238 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6240 printf %s "(cached) " >&6
6242 if test -n "$ac_ct_OBJDUMP"; then
6243 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 case $as_dir in #(((
6252 *) as_dir=$as_dir/ ;;
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6266 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6267 if test -n "$ac_ct_OBJDUMP"; then
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6269 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 printf "%s\n" "no" >&6; }
6275 if test "x$ac_ct_OBJDUMP" = x; then
6278 case $cross_compiling:$ac_tool_warned in
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6284 OBJDUMP=$ac_ct_OBJDUMP
6287 OBJDUMP="$ac_cv_prog_OBJDUMP"
6290 test -z "$OBJDUMP" && OBJDUMP=objdump
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6298 printf %s "checking how to recognize dependent libraries... " >&6; }
6299 if test ${lt_cv_deplibs_check_method+y}
6301 printf %s "(cached) " >&6
6303 lt_cv_file_magic_cmd='$MAGIC_CMD'
6304 lt_cv_file_magic_test_file=
6305 lt_cv_deplibs_check_method='unknown'
6306 # Need to set the preceding variable on all platforms that support
6307 # interlibrary dependencies.
6308 # 'none' -- dependencies not supported.
6309 # `unknown' -- same as none, but documents that we really don't know.
6310 # 'pass_all' -- all dependencies passed with no checks.
6311 # 'test_compile' -- check by making test program.
6312 # 'file_magic [[regex]]' -- check by looking for files in library path
6313 # which responds to the $file_magic_cmd with a given extended regex.
6314 # If you have `file' or equivalent on your system and you're not sure
6315 # whether `pass_all' will *always* work, you probably want this one.
6319 lt_cv_deplibs_check_method=pass_all
6323 lt_cv_deplibs_check_method=pass_all
6327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6328 lt_cv_file_magic_cmd='/usr/bin/file -L'
6329 lt_cv_file_magic_test_file=/shlib/libc.so
6333 # func_win32_libid is a shell function defined in ltmain.sh
6334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335 lt_cv_file_magic_cmd='func_win32_libid'
6339 # Base MSYS/MinGW do not provide the 'file' command needed by
6340 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6341 # unless we find 'file', for example because we are cross-compiling.
6342 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6343 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6345 lt_cv_file_magic_cmd='func_win32_libid'
6347 # Keep this pattern in sync with the one in func_win32_libid.
6348 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6354 # use the weaker test based on 'objdump'. See mingw*.
6355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6356 lt_cv_file_magic_cmd='$OBJDUMP -f'
6359 darwin* | rhapsody*)
6360 lt_cv_deplibs_check_method=pass_all
6363 freebsd* | dragonfly*)
6364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6367 # Not sure whether the presence of OpenBSD here was a mistake.
6368 # Let's accept both of them until this is cleared up.
6369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6370 lt_cv_file_magic_cmd=/usr/bin/file
6371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6375 lt_cv_deplibs_check_method=pass_all
6380 lt_cv_deplibs_check_method=pass_all
6384 lt_cv_deplibs_check_method=pass_all
6387 hpux10.20* | hpux11*)
6388 lt_cv_file_magic_cmd=/usr/bin/file
6391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6392 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6395 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]'
6396 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6400 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6406 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6410 irix5* | irix6* | nonstopux*)
6412 *-32|*"-32 ") libmagic=32-bit;;
6413 *-n32|*"-n32 ") libmagic=N32;;
6414 *-64|*"-64 ") libmagic=64-bit;;
6415 *) libmagic=never-match;;
6417 lt_cv_deplibs_check_method=pass_all
6420 # This must be glibc/ELF.
6421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6422 lt_cv_deplibs_check_method=pass_all
6425 netbsd* | netbsdelf*-gnu)
6426 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6435 lt_cv_file_magic_cmd=/usr/bin/file
6436 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6440 lt_cv_deplibs_check_method=pass_all
6444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6451 osf3* | osf4* | osf5*)
6452 lt_cv_deplibs_check_method=pass_all
6456 lt_cv_deplibs_check_method=pass_all
6460 lt_cv_deplibs_check_method=pass_all
6463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6464 lt_cv_deplibs_check_method=pass_all
6468 case $host_vendor in
6470 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]'
6471 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6474 lt_cv_deplibs_check_method=pass_all
6477 lt_cv_file_magic_cmd='/bin/file'
6478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6481 lt_cv_file_magic_cmd='/bin/file'
6482 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6483 lt_cv_file_magic_test_file=/lib/libc.so
6486 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method=pass_all
6495 lt_cv_deplibs_check_method=pass_all
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6501 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6505 if test "$build" = "$host"; then
6508 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6511 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6517 file_magic_cmd=$lt_cv_file_magic_cmd
6518 deplibs_check_method=$lt_cv_deplibs_check_method
6519 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 printf %s "checking for $ac_word... " >&6; }
6547 if test ${ac_cv_prog_DLLTOOL+y}
6549 printf %s "(cached) " >&6
6551 if test -n "$DLLTOOL"; then
6552 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 case $as_dir in #(((
6561 *) as_dir=$as_dir/ ;;
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6575 DLLTOOL=$ac_cv_prog_DLLTOOL
6576 if test -n "$DLLTOOL"; then
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6578 printf "%s\n" "$DLLTOOL" >&6; }
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 printf "%s\n" "no" >&6; }
6586 if test -z "$ac_cv_prog_DLLTOOL"; then
6587 ac_ct_DLLTOOL=$DLLTOOL
6588 # Extract the first word of "dlltool", so it can be a program name with args.
6589 set dummy dlltool; ac_word=$2
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 printf %s "checking for $ac_word... " >&6; }
6592 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6594 printf %s "(cached) " >&6
6596 if test -n "$ac_ct_DLLTOOL"; then
6597 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 case $as_dir in #(((
6606 *) as_dir=$as_dir/ ;;
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6620 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6621 if test -n "$ac_ct_DLLTOOL"; then
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6623 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 printf "%s\n" "no" >&6; }
6629 if test "x$ac_ct_DLLTOOL" = x; then
6632 case $cross_compiling:$ac_tool_warned in
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6638 DLLTOOL=$ac_ct_DLLTOOL
6641 DLLTOOL="$ac_cv_prog_DLLTOOL"
6644 test -z "$DLLTOOL" && DLLTOOL=dlltool
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6653 printf %s "checking how to associate runtime and link libraries... " >&6; }
6654 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6656 printf %s "(cached) " >&6
6658 lt_cv_sharedlib_from_linklib_cmd='unknown'
6661 cygwin* | mingw* | pw32* | cegcc*)
6662 # two different shell functions defined in ltmain.sh
6663 # decide which to use based on capabilities of $DLLTOOL
6664 case `$DLLTOOL --help 2>&1` in
6665 *--identify-strict*)
6666 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6669 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6674 # fallback: assume linklib IS sharedlib
6675 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6681 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6682 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6683 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6691 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 printf %s "checking for $ac_word... " >&6; }
6698 if test ${ac_cv_prog_AR+y}
6700 printf %s "(cached) " >&6
6702 if test -n "$AR"; then
6703 ac_cv_prog_AR="$AR" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 case $as_dir in #(((
6712 *) as_dir=$as_dir/ ;;
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6727 if test -n "$AR"; then
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6729 printf "%s\n" "$AR" >&6; }
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 printf "%s\n" "no" >&6; }
6736 test -n "$AR" && break
6739 if test -z "$AR"; then
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy $ac_prog; ac_word=$2
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 printf %s "checking for $ac_word... " >&6; }
6747 if test ${ac_cv_prog_ac_ct_AR+y}
6749 printf %s "(cached) " >&6
6751 if test -n "$ac_ct_AR"; then
6752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 case $as_dir in #(((
6761 *) as_dir=$as_dir/ ;;
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_AR="$ac_prog"
6766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6775 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6776 if test -n "$ac_ct_AR"; then
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6778 printf "%s\n" "$ac_ct_AR" >&6; }
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 printf "%s\n" "no" >&6; }
6785 test -n "$ac_ct_AR" && break
6788 if test "x$ac_ct_AR" = x; then
6791 case $cross_compiling:$ac_tool_warned in
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6815 printf %s "checking for archiver @FILE support... " >&6; }
6816 if test ${lt_cv_ar_at_file+y}
6818 printf %s "(cached) " >&6
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6832 if ac_fn_c_try_compile "$LINENO"
6834 echo conftest.$ac_objext > conftest.lst
6835 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6837 (eval $lt_ar_try) 2>&5
6839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }
6841 if test "$ac_status" -eq 0; then
6842 # Ensure the archiver fails upon bogus file names.
6843 rm -f conftest.$ac_objext libconftest.a
6844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6845 (eval $lt_ar_try) 2>&5
6847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }
6849 if test "$ac_status" -ne 0; then
6853 rm -f conftest.* libconftest.a
6856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6860 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6862 if test "x$lt_cv_ar_at_file" = xno; then
6865 archiver_list_spec=$lt_cv_ar_at_file
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}strip; ac_word=$2
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 printf %s "checking for $ac_word... " >&6; }
6879 if test ${ac_cv_prog_STRIP+y}
6881 printf %s "(cached) " >&6
6883 if test -n "$STRIP"; then
6884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 case $as_dir in #(((
6893 *) as_dir=$as_dir/ ;;
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907 STRIP=$ac_cv_prog_STRIP
6908 if test -n "$STRIP"; then
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6910 printf "%s\n" "$STRIP" >&6; }
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 printf "%s\n" "no" >&6; }
6918 if test -z "$ac_cv_prog_STRIP"; then
6920 # Extract the first word of "strip", so it can be a program name with args.
6921 set dummy strip; ac_word=$2
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 printf %s "checking for $ac_word... " >&6; }
6924 if test ${ac_cv_prog_ac_ct_STRIP+y}
6926 printf %s "(cached) " >&6
6928 if test -n "$ac_ct_STRIP"; then
6929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 case $as_dir in #(((
6938 *) as_dir=$as_dir/ ;;
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_STRIP="strip"
6943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6953 if test -n "$ac_ct_STRIP"; then
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6955 printf "%s\n" "$ac_ct_STRIP" >&6; }
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 printf "%s\n" "no" >&6; }
6961 if test "x$ac_ct_STRIP" = x; then
6964 case $cross_compiling:$ac_tool_warned in
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6973 STRIP="$ac_cv_prog_STRIP"
6976 test -z "$STRIP" && STRIP=:
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 printf %s "checking for $ac_word... " >&6; }
6988 if test ${ac_cv_prog_RANLIB+y}
6990 printf %s "(cached) " >&6
6992 if test -n "$RANLIB"; then
6993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 case $as_dir in #(((
7002 *) as_dir=$as_dir/ ;;
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7016 RANLIB=$ac_cv_prog_RANLIB
7017 if test -n "$RANLIB"; then
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7019 printf "%s\n" "$RANLIB" >&6; }
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 printf "%s\n" "no" >&6; }
7027 if test -z "$ac_cv_prog_RANLIB"; then
7028 ac_ct_RANLIB=$RANLIB
7029 # Extract the first word of "ranlib", so it can be a program name with args.
7030 set dummy ranlib; ac_word=$2
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 printf %s "checking for $ac_word... " >&6; }
7033 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7035 printf %s "(cached) " >&6
7037 if test -n "$ac_ct_RANLIB"; then
7038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 case $as_dir in #(((
7047 *) as_dir=$as_dir/ ;;
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_ac_ct_RANLIB="ranlib"
7052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062 if test -n "$ac_ct_RANLIB"; then
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 printf "%s\n" "no" >&6; }
7070 if test "x$ac_ct_RANLIB" = x; then
7073 case $cross_compiling:$ac_tool_warned in
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7079 RANLIB=$ac_ct_RANLIB
7082 RANLIB="$ac_cv_prog_RANLIB"
7085 test -z "$RANLIB" && RANLIB=:
7092 # Determine commands to create old-style static archives.
7093 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7094 old_postinstall_cmds='chmod 644 $oldlib'
7095 old_postuninstall_cmds=
7097 if test -n "$RANLIB"; then
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7111 lock_old_archive_extraction=yes ;;
7113 lock_old_archive_extraction=no ;;
7154 # If no C compiler was specified, use CC.
7157 # If no C compiler flags were specified, use CFLAGS.
7158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7160 # Allow CC to be a program name with arguments.
7164 # Check for command to grab the raw symbol name followed by C symbol from nm.
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7166 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7167 if test ${lt_cv_sys_global_symbol_pipe+y}
7169 printf %s "(cached) " >&6
7172 # These are sane defaults that work on at least a few old systems.
7173 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7175 # Character class describing NM global symbol codes.
7176 symcode='[BCDEGRST]'
7178 # Regexp to match symbols that can be accessed directly from C.
7179 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7181 # Define system-specific variables.
7186 cygwin* | mingw* | pw32* | cegcc*)
7187 symcode='[ABCDGISTW]'
7190 if test "$host_cpu" = ia64; then
7191 symcode='[ABCDEGRST]'
7195 symcode='[BCDEGRST]'
7198 symcode='[BCDEGQRST]'
7209 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7217 # If we're using GNU nm, then use its standard symbol codes.
7218 case `$NM -V 2>&1` in
7219 *GNU* | *'with BFD'*)
7220 symcode='[ABCDGIRSTW]' ;;
7223 # Transform an extracted symbol line into a proper C declaration.
7224 # Some systems (esp. on ia64) link data and code symbols differently,
7225 # so use this general approach.
7226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7228 # Transform an extracted symbol line into symbol name and symbol address
7229 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7230 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'"
7232 # Handle CRLF in mingw tool chain
7236 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7240 # Try without a prefix underscore, then with it.
7241 for ac_symprfx in "" "_"; do
7243 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7244 symxfrm="\\1 $ac_symprfx\\2 \\2"
7246 # Write the raw and C identifiers.
7247 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7248 # Fake it for dumpbin and say T for any non-static function
7249 # and D for any global variable.
7250 # Also find C++ and __fastcall symbols from MSVC++,
7251 # which start with @ or ?.
7252 lt_cv_sys_global_symbol_pipe="$AWK '"\
7253 " {last_section=section; section=\$ 3};"\
7254 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7255 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7256 " \$ 0!~/External *\|/{next};"\
7257 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7258 " {if(hide[section]) next};"\
7259 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7260 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7261 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7262 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7263 " ' prfx=^$ac_symprfx"
7265 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7267 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7269 # Check to see that the pipe works correctly.
7273 cat > conftest.$ac_ext <<_LT_EOF
7278 void nm_test_func(void);
7279 void nm_test_func(void){}
7283 int main(){nm_test_var='a';nm_test_func();return(0);}
7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287 (eval $ac_compile) 2>&5
7289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290 test $ac_status = 0; }; then
7291 # Now try to grab the symbols.
7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7294 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; } && test -s "$nlist"; then
7298 # Try sorting and uniquifying the output.
7299 if sort "$nlist" | uniq > "$nlist"T; then
7300 mv -f "$nlist"T "$nlist"
7305 # Make sure that we snagged all the symbols we need.
7306 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7307 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7308 cat <<_LT_EOF > conftest.$ac_ext
7309 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7310 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7311 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7312 relocations are performed -- see ld's documentation on pseudo-relocs. */
7313 # define LT_DLSYM_CONST
7314 #elif defined(__osf__)
7315 /* This system does not cope well with relocations in const data. */
7316 # define LT_DLSYM_CONST
7318 # define LT_DLSYM_CONST const
7326 # Now generate the symbol file.
7327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7329 cat <<_LT_EOF >> conftest.$ac_ext
7331 /* The mapping between symbol names and symbols. */
7332 LT_DLSYM_CONST struct {
7336 lt__PROGRAM__LTX_preloaded_symbols[] =
7338 { "@PROGRAM@", (void *) 0 },
7340 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7341 cat <<\_LT_EOF >> conftest.$ac_ext
7345 /* This works around a problem in FreeBSD linker */
7346 #ifdef FREEBSD_WORKAROUND
7347 static const void *lt_preloaded_setup() {
7348 return lt__PROGRAM__LTX_preloaded_symbols;
7356 # Now try linking the two files.
7357 mv conftest.$ac_objext conftstm.$ac_objext
7358 lt_globsym_save_LIBS=$LIBS
7359 lt_globsym_save_CFLAGS=$CFLAGS
7360 LIBS="conftstm.$ac_objext"
7361 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7363 (eval $ac_link) 2>&5
7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7369 LIBS=$lt_globsym_save_LIBS
7370 CFLAGS=$lt_globsym_save_CFLAGS
7372 echo "cannot find nm_test_func in $nlist" >&5
7375 echo "cannot find nm_test_var in $nlist" >&5
7378 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7381 echo "$progname: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7384 rm -rf conftest* conftst*
7386 # Do not use the global_symbol_pipe unless it works.
7387 if test "$pipe_works" = yes; then
7390 lt_cv_sys_global_symbol_pipe=
7396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7397 lt_cv_sys_global_symbol_to_cdecl=
7399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7401 printf "%s\n" "failed" >&6; }
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7404 printf "%s\n" "ok" >&6; }
7407 # Response file support.
7408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7409 nm_file_list_spec='@'
7410 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7411 nm_file_list_spec='@'
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7441 printf %s "checking for sysroot... " >&6; }
7443 # Check whether --with-sysroot was given.
7444 if test ${with_sysroot+y}
7446 withval=$with_sysroot;
7453 case ${with_sysroot} in #(
7455 if test "$GCC" = yes; then
7456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7466 printf "%s\n" "${with_sysroot}" >&6; }
7467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7472 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7478 # Check whether --enable-libtool-lock was given.
7479 if test ${enable_libtool_lock+y}
7481 enableval=$enable_libtool_lock;
7484 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7486 # Some flags need to be propagated to the compiler or linker for good
7490 # Find out which ABI we are using.
7491 echo 'int i;' > conftest.$ac_ext
7492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7493 (eval $ac_compile) 2>&5
7495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; }; then
7497 case `/usr/bin/file conftest.$ac_objext` in
7509 # Find out which ABI we are using.
7510 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 if test "$lt_cv_prog_gnu_ld" = yes; then
7517 case `/usr/bin/file conftest.$ac_objext` in
7519 LD="${LD-ld} -melf32bsmip"
7522 LD="${LD-ld} -melf32bmipn32"
7525 LD="${LD-ld} -melf64bmip"
7529 case `/usr/bin/file conftest.$ac_objext` in
7545 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7546 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7547 # Find out which ABI we are using.
7548 echo 'int i;' > conftest.$ac_ext
7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7550 (eval $ac_compile) 2>&5
7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; then
7554 case `/usr/bin/file conftest.o` in
7557 x86_64-*kfreebsd*-gnu)
7558 LD="${LD-ld} -m elf_i386_fbsd"
7561 LD="${LD-ld} -m elf_i386"
7564 LD="${LD-ld} -m elf32lppclinux"
7567 LD="${LD-ld} -m elf32ppclinux"
7570 LD="${LD-ld} -m elf_s390"
7573 LD="${LD-ld} -m elf32_sparc"
7579 x86_64-*kfreebsd*-gnu)
7580 LD="${LD-ld} -m elf_x86_64_fbsd"
7583 LD="${LD-ld} -m elf_x86_64"
7586 LD="${LD-ld} -m elf64lppc"
7589 LD="${LD-ld} -m elf64ppc"
7591 s390*-*linux*|s390*-*tpf*)
7592 LD="${LD-ld} -m elf64_s390"
7595 LD="${LD-ld} -m elf64_sparc"
7605 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7606 SAVE_CFLAGS="$CFLAGS"
7607 CFLAGS="$CFLAGS -belf"
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7609 printf %s "checking whether the C compiler needs -belf... " >&6; }
7610 if test ${lt_cv_cc_needs_belf+y}
7612 printf %s "(cached) " >&6
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7631 if ac_fn_c_try_link "$LINENO"
7633 lt_cv_cc_needs_belf=yes
7635 lt_cv_cc_needs_belf=no
7637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7638 conftest$ac_exeext conftest.$ac_ext
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7647 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7648 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7650 CFLAGS="$SAVE_CFLAGS"
7654 # Find out which ABI we are using.
7655 echo 'int i;' > conftest.$ac_ext
7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657 (eval $ac_compile) 2>&5
7659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 case `/usr/bin/file conftest.o` in
7663 case $lt_cv_prog_gnu_ld in
7667 LD="${LD-ld} -m elf_x86_64"
7670 LD="${LD-ld} -m elf64_sparc"
7673 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7674 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7679 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7691 need_locks="$enable_libtool_lock"
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}mt; ac_word=$2
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 printf %s "checking for $ac_word... " >&6; }
7698 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7700 printf %s "(cached) " >&6
7702 if test -n "$MANIFEST_TOOL"; then
7703 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 case $as_dir in #(((
7712 *) as_dir=$as_dir/ ;;
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7726 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7727 if test -n "$MANIFEST_TOOL"; then
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7729 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 printf "%s\n" "no" >&6; }
7737 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7738 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7739 # Extract the first word of "mt", so it can be a program name with args.
7740 set dummy mt; ac_word=$2
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 printf %s "checking for $ac_word... " >&6; }
7743 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7745 printf %s "(cached) " >&6
7747 if test -n "$ac_ct_MANIFEST_TOOL"; then
7748 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 case $as_dir in #(((
7757 *) as_dir=$as_dir/ ;;
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7771 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7772 if test -n "$ac_ct_MANIFEST_TOOL"; then
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7774 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 printf "%s\n" "no" >&6; }
7780 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7789 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7792 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7795 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7797 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7798 if test ${lt_cv_path_mainfest_tool+y}
7800 printf %s "(cached) " >&6
7802 lt_cv_path_mainfest_tool=no
7803 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7804 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7805 cat conftest.err >&5
7806 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7807 lt_cv_path_mainfest_tool=yes
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7812 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7813 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7823 rhapsody* | darwin*)
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 printf %s "checking for $ac_word... " >&6; }
7829 if test ${ac_cv_prog_DSYMUTIL+y}
7831 printf %s "(cached) " >&6
7833 if test -n "$DSYMUTIL"; then
7834 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 case $as_dir in #(((
7843 *) as_dir=$as_dir/ ;;
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7858 if test -n "$DSYMUTIL"; then
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7860 printf "%s\n" "$DSYMUTIL" >&6; }
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 printf "%s\n" "no" >&6; }
7868 if test -z "$ac_cv_prog_DSYMUTIL"; then
7869 ac_ct_DSYMUTIL=$DSYMUTIL
7870 # Extract the first word of "dsymutil", so it can be a program name with args.
7871 set dummy dsymutil; ac_word=$2
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 printf %s "checking for $ac_word... " >&6; }
7874 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7876 printf %s "(cached) " >&6
7878 if test -n "$ac_ct_DSYMUTIL"; then
7879 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 case $as_dir in #(((
7888 *) as_dir=$as_dir/ ;;
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7902 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7903 if test -n "$ac_ct_DSYMUTIL"; then
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7905 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 printf "%s\n" "no" >&6; }
7911 if test "x$ac_ct_DSYMUTIL" = x; then
7914 case $cross_compiling:$ac_tool_warned in
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7920 DSYMUTIL=$ac_ct_DSYMUTIL
7923 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 printf %s "checking for $ac_word... " >&6; }
7931 if test ${ac_cv_prog_NMEDIT+y}
7933 printf %s "(cached) " >&6
7935 if test -n "$NMEDIT"; then
7936 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 case $as_dir in #(((
7945 *) as_dir=$as_dir/ ;;
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7959 NMEDIT=$ac_cv_prog_NMEDIT
7960 if test -n "$NMEDIT"; then
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7962 printf "%s\n" "$NMEDIT" >&6; }
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 printf "%s\n" "no" >&6; }
7970 if test -z "$ac_cv_prog_NMEDIT"; then
7971 ac_ct_NMEDIT=$NMEDIT
7972 # Extract the first word of "nmedit", so it can be a program name with args.
7973 set dummy nmedit; ac_word=$2
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 printf %s "checking for $ac_word... " >&6; }
7976 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7978 printf %s "(cached) " >&6
7980 if test -n "$ac_ct_NMEDIT"; then
7981 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 case $as_dir in #(((
7990 *) as_dir=$as_dir/ ;;
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8004 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8005 if test -n "$ac_ct_NMEDIT"; then
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8007 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 printf "%s\n" "no" >&6; }
8013 if test "x$ac_ct_NMEDIT" = x; then
8016 case $cross_compiling:$ac_tool_warned in
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8022 NMEDIT=$ac_ct_NMEDIT
8025 NMEDIT="$ac_cv_prog_NMEDIT"
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 printf %s "checking for $ac_word... " >&6; }
8033 if test ${ac_cv_prog_LIPO+y}
8035 printf %s "(cached) " >&6
8037 if test -n "$LIPO"; then
8038 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 case $as_dir in #(((
8047 *) 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_LIPO="${ac_tool_prefix}lipo"
8052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8061 LIPO=$ac_cv_prog_LIPO
8062 if test -n "$LIPO"; then
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8064 printf "%s\n" "$LIPO" >&6; }
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 printf "%s\n" "no" >&6; }
8072 if test -z "$ac_cv_prog_LIPO"; then
8074 # Extract the first word of "lipo", so it can be a program name with args.
8075 set dummy lipo; ac_word=$2
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 printf %s "checking for $ac_word... " >&6; }
8078 if test ${ac_cv_prog_ac_ct_LIPO+y}
8080 printf %s "(cached) " >&6
8082 if test -n "$ac_ct_LIPO"; then
8083 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 case $as_dir in #(((
8092 *) as_dir=$as_dir/ ;;
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_ac_ct_LIPO="lipo"
8097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8106 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8107 if test -n "$ac_ct_LIPO"; then
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8109 printf "%s\n" "$ac_ct_LIPO" >&6; }
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 printf "%s\n" "no" >&6; }
8115 if test "x$ac_ct_LIPO" = x; then
8118 case $cross_compiling:$ac_tool_warned in
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8127 LIPO="$ac_cv_prog_LIPO"
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}otool; ac_word=$2
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 printf %s "checking for $ac_word... " >&6; }
8135 if test ${ac_cv_prog_OTOOL+y}
8137 printf %s "(cached) " >&6
8139 if test -n "$OTOOL"; then
8140 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 case $as_dir in #(((
8149 *) as_dir=$as_dir/ ;;
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8163 OTOOL=$ac_cv_prog_OTOOL
8164 if test -n "$OTOOL"; then
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8166 printf "%s\n" "$OTOOL" >&6; }
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 printf "%s\n" "no" >&6; }
8174 if test -z "$ac_cv_prog_OTOOL"; then
8176 # Extract the first word of "otool", so it can be a program name with args.
8177 set dummy otool; ac_word=$2
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 printf %s "checking for $ac_word... " >&6; }
8180 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8182 printf %s "(cached) " >&6
8184 if test -n "$ac_ct_OTOOL"; then
8185 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 case $as_dir in #(((
8194 *) as_dir=$as_dir/ ;;
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_ac_ct_OTOOL="otool"
8199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8208 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8209 if test -n "$ac_ct_OTOOL"; then
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8211 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 printf "%s\n" "no" >&6; }
8217 if test "x$ac_ct_OTOOL" = x; then
8220 case $cross_compiling:$ac_tool_warned in
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224 ac_tool_warned=yes ;;
8229 OTOOL="$ac_cv_prog_OTOOL"
8232 if test -n "$ac_tool_prefix"; then
8233 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 printf %s "checking for $ac_word... " >&6; }
8237 if test ${ac_cv_prog_OTOOL64+y}
8239 printf %s "(cached) " >&6
8241 if test -n "$OTOOL64"; then
8242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 case $as_dir in #(((
8251 *) as_dir=$as_dir/ ;;
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8265 OTOOL64=$ac_cv_prog_OTOOL64
8266 if test -n "$OTOOL64"; then
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8268 printf "%s\n" "$OTOOL64" >&6; }
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 printf "%s\n" "no" >&6; }
8276 if test -z "$ac_cv_prog_OTOOL64"; then
8277 ac_ct_OTOOL64=$OTOOL64
8278 # Extract the first word of "otool64", so it can be a program name with args.
8279 set dummy otool64; ac_word=$2
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 printf %s "checking for $ac_word... " >&6; }
8282 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8284 printf %s "(cached) " >&6
8286 if test -n "$ac_ct_OTOOL64"; then
8287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 case $as_dir in #(((
8296 *) as_dir=$as_dir/ ;;
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ac_ct_OTOOL64="otool64"
8301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8310 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8311 if test -n "$ac_ct_OTOOL64"; then
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8313 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 printf "%s\n" "no" >&6; }
8319 if test "x$ac_ct_OTOOL64" = x; then
8322 case $cross_compiling:$ac_tool_warned in
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326 ac_tool_warned=yes ;;
8328 OTOOL64=$ac_ct_OTOOL64
8331 OTOOL64="$ac_cv_prog_OTOOL64"
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8361 printf %s "checking for -single_module linker flag... " >&6; }
8362 if test ${lt_cv_apple_cc_single_mod+y}
8364 printf %s "(cached) " >&6
8366 lt_cv_apple_cc_single_mod=no
8367 if test -z "${LT_MULTI_MODULE}"; then
8368 # By default we will add the -single_module flag. You can override
8369 # by either setting the environment variable LT_MULTI_MODULE
8370 # non-empty at configure time, or by adding -multi_module to the
8372 rm -rf libconftest.dylib*
8373 echo "int foo(void){return 1;}" > conftest.c
8374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8375 -dynamiclib -Wl,-single_module conftest.c" >&5
8376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8379 # If there is a non-empty error log, and "single_module"
8380 # appears in it, assume the flag caused a linker warning
8381 if test -s conftest.err && $GREP single_module conftest.err; then
8382 cat conftest.err >&5
8383 # Otherwise, if the output was created with a 0 exit code from
8384 # the compiler, it worked.
8385 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8386 lt_cv_apple_cc_single_mod=yes
8388 cat conftest.err >&5
8390 rm -rf libconftest.dylib*
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8395 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8398 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8399 if test ${lt_cv_ld_exported_symbols_list+y}
8401 printf %s "(cached) " >&6
8403 lt_cv_ld_exported_symbols_list=no
8404 save_LDFLAGS=$LDFLAGS
8405 echo "_main" > conftest.sym
8406 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8418 if ac_fn_c_try_link "$LINENO"
8420 lt_cv_ld_exported_symbols_list=yes
8422 lt_cv_ld_exported_symbols_list=no
8424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8425 conftest$ac_exeext conftest.$ac_ext
8426 LDFLAGS="$save_LDFLAGS"
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8430 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8433 printf %s "checking for -force_load linker flag... " >&6; }
8434 if test ${lt_cv_ld_force_load+y}
8436 printf %s "(cached) " >&6
8438 lt_cv_ld_force_load=no
8439 cat > conftest.c << _LT_EOF
8440 int forced_loaded() { return 2;}
8442 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8443 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8444 echo "$AR cru libconftest.a conftest.o" >&5
8445 $AR cru libconftest.a conftest.o 2>&5
8446 echo "$RANLIB libconftest.a" >&5
8447 $RANLIB libconftest.a 2>&5
8448 cat > conftest.c << _LT_EOF
8449 int main() { return 0;}
8451 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8452 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8454 if test -s conftest.err && $GREP force_load conftest.err; then
8455 cat conftest.err >&5
8456 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8457 lt_cv_ld_force_load=yes
8459 cat conftest.err >&5
8461 rm -f conftest.err libconftest.a conftest conftest.c
8462 rm -rf conftest.dSYM
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8466 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8468 rhapsody* | darwin1.[012])
8469 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8471 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8473 case ${MACOSX_DEPLOYMENT_TARGET},$host in
8474 10.[012]*,*|,*powerpc*)
8475 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8477 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8481 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8482 _lt_dar_single_mod='$single_module'
8484 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8485 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8487 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8489 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8490 _lt_dsymutil='~$DSYMUTIL $lib || :'
8497 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8499 if test "x$ac_cv_header_dlfcn_h" = xyes
8501 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8510 enable_win32_dll=yes
8513 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8514 if test -n "$ac_tool_prefix"; then
8515 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8516 set dummy ${ac_tool_prefix}as; ac_word=$2
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 printf %s "checking for $ac_word... " >&6; }
8519 if test ${ac_cv_prog_AS+y}
8521 printf %s "(cached) " >&6
8523 if test -n "$AS"; then
8524 ac_cv_prog_AS="$AS" # Let the user override the test.
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 case $as_dir in #(((
8533 *) as_dir=$as_dir/ ;;
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_AS="${ac_tool_prefix}as"
8538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8548 if test -n "$AS"; then
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8550 printf "%s\n" "$AS" >&6; }
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 printf "%s\n" "no" >&6; }
8558 if test -z "$ac_cv_prog_AS"; then
8560 # Extract the first word of "as", so it can be a program name with args.
8561 set dummy as; ac_word=$2
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 printf %s "checking for $ac_word... " >&6; }
8564 if test ${ac_cv_prog_ac_ct_AS+y}
8566 printf %s "(cached) " >&6
8568 if test -n "$ac_ct_AS"; then
8569 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 case $as_dir in #(((
8578 *) as_dir=$as_dir/ ;;
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8582 ac_cv_prog_ac_ct_AS="as"
8583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8592 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8593 if test -n "$ac_ct_AS"; then
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8595 printf "%s\n" "$ac_ct_AS" >&6; }
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 printf "%s\n" "no" >&6; }
8601 if test "x$ac_ct_AS" = x; then
8604 case $cross_compiling:$ac_tool_warned in
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8608 ac_tool_warned=yes ;;
8616 if test -n "$ac_tool_prefix"; then
8617 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8618 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 printf %s "checking for $ac_word... " >&6; }
8621 if test ${ac_cv_prog_DLLTOOL+y}
8623 printf %s "(cached) " >&6
8625 if test -n "$DLLTOOL"; then
8626 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 case $as_dir in #(((
8635 *) as_dir=$as_dir/ ;;
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8639 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8649 DLLTOOL=$ac_cv_prog_DLLTOOL
8650 if test -n "$DLLTOOL"; then
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8652 printf "%s\n" "$DLLTOOL" >&6; }
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 printf "%s\n" "no" >&6; }
8660 if test -z "$ac_cv_prog_DLLTOOL"; then
8661 ac_ct_DLLTOOL=$DLLTOOL
8662 # Extract the first word of "dlltool", so it can be a program name with args.
8663 set dummy dlltool; ac_word=$2
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 printf %s "checking for $ac_word... " >&6; }
8666 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8668 printf %s "(cached) " >&6
8670 if test -n "$ac_ct_DLLTOOL"; then
8671 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 case $as_dir in #(((
8680 *) as_dir=$as_dir/ ;;
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8694 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8695 if test -n "$ac_ct_DLLTOOL"; then
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8697 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 printf "%s\n" "no" >&6; }
8703 if test "x$ac_ct_DLLTOOL" = x; then
8706 case $cross_compiling:$ac_tool_warned in
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710 ac_tool_warned=yes ;;
8712 DLLTOOL=$ac_ct_DLLTOOL
8715 DLLTOOL="$ac_cv_prog_DLLTOOL"
8718 if test -n "$ac_tool_prefix"; then
8719 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 printf %s "checking for $ac_word... " >&6; }
8723 if test ${ac_cv_prog_OBJDUMP+y}
8725 printf %s "(cached) " >&6
8727 if test -n "$OBJDUMP"; then
8728 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 case $as_dir in #(((
8737 *) as_dir=$as_dir/ ;;
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8751 OBJDUMP=$ac_cv_prog_OBJDUMP
8752 if test -n "$OBJDUMP"; then
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8754 printf "%s\n" "$OBJDUMP" >&6; }
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 printf "%s\n" "no" >&6; }
8762 if test -z "$ac_cv_prog_OBJDUMP"; then
8763 ac_ct_OBJDUMP=$OBJDUMP
8764 # Extract the first word of "objdump", so it can be a program name with args.
8765 set dummy objdump; ac_word=$2
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 printf %s "checking for $ac_word... " >&6; }
8768 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8770 printf %s "(cached) " >&6
8772 if test -n "$ac_ct_OBJDUMP"; then
8773 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 case $as_dir in #(((
8782 *) as_dir=$as_dir/ ;;
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8786 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8796 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8797 if test -n "$ac_ct_OBJDUMP"; then
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8799 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 printf "%s\n" "no" >&6; }
8805 if test "x$ac_ct_OBJDUMP" = x; then
8808 case $cross_compiling:$ac_tool_warned in
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8814 OBJDUMP=$ac_ct_OBJDUMP
8817 OBJDUMP="$ac_cv_prog_OBJDUMP"
8823 test -z "$AS" && AS=as
8829 test -z "$DLLTOOL" && DLLTOOL=dlltool
8835 test -z "$OBJDUMP" && OBJDUMP=objdump
8840 # Check whether --enable-static was given.
8841 if test ${enable_static+y}
8843 enableval=$enable_static; p=${PACKAGE-default}
8845 yes) enable_static=yes ;;
8846 no) enable_static=no ;;
8849 # Look at the argument we got. We use all the common list separators.
8850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8851 for pkg in $enableval; do
8853 if test "X$pkg" = "X$p"; then
8877 # Check whether --enable-shared was given.
8878 if test ${enable_shared+y}
8880 enableval=$enable_shared; p=${PACKAGE-default}
8882 yes) enable_shared=yes ;;
8883 no) enable_shared=no ;;
8886 # Look at the argument we got. We use all the common list separators.
8887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8888 for pkg in $enableval; do
8890 if test "X$pkg" = "X$p"; then
8911 # Check whether --with-pic was given.
8912 if test ${with_pic+y}
8914 withval=$with_pic; lt_p=${PACKAGE-default}
8916 yes|no) pic_mode=$withval ;;
8919 # Look at the argument we got. We use all the common list separators.
8920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8921 for lt_pkg in $withval; do
8923 if test "X$lt_pkg" = "X$lt_p"; then
8935 test -z "$pic_mode" && pic_mode=default
8943 # Check whether --enable-fast-install was given.
8944 if test ${enable_fast_install+y}
8946 enableval=$enable_fast_install; p=${PACKAGE-default}
8948 yes) enable_fast_install=yes ;;
8949 no) enable_fast_install=no ;;
8951 enable_fast_install=no
8952 # Look at the argument we got. We use all the common list separators.
8953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8954 for pkg in $enableval; do
8956 if test "X$pkg" = "X$p"; then
8957 enable_fast_install=yes
8964 enable_fast_install=yes
8977 # This can be used to rebuild libtool when needed
8978 LIBTOOL_DEPS="$ltmain"
8980 # Always use our own libtool.
8981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9012 test -z "$LN_S" && LN_S="ln -s"
9027 if test -n "${ZSH_VERSION+set}" ; then
9028 setopt NO_GLOB_SUBST
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9032 printf %s "checking for objdir... " >&6; }
9033 if test ${lt_cv_objdir+y}
9035 printf %s "(cached) " >&6
9037 rm -f .libs 2>/dev/null
9038 mkdir .libs 2>/dev/null
9039 if test -d .libs; then
9042 # MS-DOS does not allow filenames that begin with a dot.
9045 rmdir .libs 2>/dev/null
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9048 printf "%s\n" "$lt_cv_objdir" >&6; }
9049 objdir=$lt_cv_objdir
9055 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9062 # AIX sometimes has problems with the GCC collect2 program. For some
9063 # reason, if we set the COLLECT_NAMES environment variable, the problems
9064 # vanish in a puff of smoke.
9065 if test "X${COLLECT_NAMES+set}" != Xset; then
9067 export COLLECT_NAMES
9074 can_build_shared=yes
9076 # All known linkers require a `.a' archive for static linking (except MSVC,
9077 # which needs '.lib').
9080 with_gnu_ld="$lt_cv_prog_gnu_ld"
9083 old_CFLAGS="$CFLAGS"
9085 # Set sane defaults for various variables
9086 test -z "$CC" && CC=cc
9087 test -z "$LTCC" && LTCC=$CC
9088 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9089 test -z "$LD" && LD=ld
9090 test -z "$ac_objext" && ac_objext=o
9092 for cc_temp in $compiler""; do
9094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9100 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9103 # Only perform the check for file, if the check method requires it
9104 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9105 case $deplibs_check_method in
9107 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9109 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9110 if test ${lt_cv_path_MAGIC_CMD+y}
9112 printf %s "(cached) " >&6
9116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9119 lt_save_MAGIC_CMD="$MAGIC_CMD"
9120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9122 for ac_dir in $ac_dummy; do
9124 test -z "$ac_dir" && ac_dir=.
9125 if test -f $ac_dir/${ac_tool_prefix}file; then
9126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9127 if test -n "$file_magic_test_file"; then
9128 case $deplibs_check_method in
9130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9133 $EGREP "$file_magic_regex" > /dev/null; then
9138 *** Warning: the command libtool uses to detect shared libraries,
9139 *** $file_magic_cmd, produces output that libtool cannot recognize.
9140 *** The result is that libtool may fail to recognize shared libraries
9141 *** as such. This will affect the creation of libtool libraries that
9142 *** depend on shared libraries, but programs linked with such libtool
9143 *** libraries will work regardless of this problem. Nevertheless, you
9144 *** may want to report the problem to your system manager and/or to
9145 *** bug-libtool@gnu.org
9155 MAGIC_CMD="$lt_save_MAGIC_CMD"
9160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9161 if test -n "$MAGIC_CMD"; then
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9163 printf "%s\n" "$MAGIC_CMD" >&6; }
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf "%s\n" "no" >&6; }
9173 if test -z "$lt_cv_path_MAGIC_CMD"; then
9174 if test -n "$ac_tool_prefix"; then
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9176 printf %s "checking for file... " >&6; }
9177 if test ${lt_cv_path_MAGIC_CMD+y}
9179 printf %s "(cached) " >&6
9183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9186 lt_save_MAGIC_CMD="$MAGIC_CMD"
9187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9188 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9189 for ac_dir in $ac_dummy; do
9191 test -z "$ac_dir" && ac_dir=.
9192 if test -f $ac_dir/file; then
9193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9194 if test -n "$file_magic_test_file"; then
9195 case $deplibs_check_method in
9197 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9200 $EGREP "$file_magic_regex" > /dev/null; then
9205 *** Warning: the command libtool uses to detect shared libraries,
9206 *** $file_magic_cmd, produces output that libtool cannot recognize.
9207 *** The result is that libtool may fail to recognize shared libraries
9208 *** as such. This will affect the creation of libtool libraries that
9209 *** depend on shared libraries, but programs linked with such libtool
9210 *** libraries will work regardless of this problem. Nevertheless, you
9211 *** may want to report the problem to your system manager and/or to
9212 *** bug-libtool@gnu.org
9222 MAGIC_CMD="$lt_save_MAGIC_CMD"
9227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9228 if test -n "$MAGIC_CMD"; then
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9230 printf "%s\n" "$MAGIC_CMD" >&6; }
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 printf "%s\n" "no" >&6; }
9246 # Use C for the default configuration in the libtool script
9250 ac_cpp='$CPP $CPPFLAGS'
9251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9256 # Source file extension for C test sources.
9259 # Object file extension for compiled C test sources.
9263 # Code to be used in simple compile tests
9264 lt_simple_compile_test_code="int some_variable = 0;"
9266 # Code to be used in simple link tests
9267 lt_simple_link_test_code='int main(){return(0);}'
9275 # If no C compiler was specified, use CC.
9278 # If no C compiler flags were specified, use CFLAGS.
9279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9281 # Allow CC to be a program name with arguments.
9284 # Save the default compiler, since it gets overwritten when the other
9285 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9286 compiler_DEFAULT=$CC
9288 # save warnings/boilerplate of simple test code
9289 ac_outfile=conftest.$ac_objext
9290 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9292 _lt_compiler_boilerplate=`cat conftest.err`
9295 ac_outfile=conftest.$ac_objext
9296 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9298 _lt_linker_boilerplate=`cat conftest.err`
9303 ## There is no encapsulation within the following macros, do not change
9304 ## the running order or otherwise move them around unless you know exactly
9305 ## what you are doing...
9306 if test -n "$compiler"; then
9308 lt_prog_compiler_no_builtin_flag=
9310 if test "$GCC" = yes; then
9311 case $cc_basename in
9313 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9315 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9319 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9320 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9322 printf %s "(cached) " >&6
9324 lt_cv_prog_compiler_rtti_exceptions=no
9325 ac_outfile=conftest.$ac_objext
9326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9327 lt_compiler_flag="-fno-rtti -fno-exceptions"
9328 # Insert the option either (1) after the last *FLAGS variable, or
9329 # (2) before a word containing "conftest.", or (3) at the end.
9330 # Note that $ac_compile itself does not contain backslashes and begins
9331 # with a dollar sign (not a hyphen), so the echo should work correctly.
9332 # The option is referenced via a variable to avoid confusing sed.
9333 lt_compile=`echo "$ac_compile" | $SED \
9334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9336 -e 's:$: $lt_compiler_flag:'`
9337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9338 (eval "$lt_compile" 2>conftest.err)
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 if (exit $ac_status) && test -s "$ac_outfile"; then
9343 # The compiler can only warn and ignore the option if not recognized
9344 # So say no if there are warnings other than the usual output.
9345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9348 lt_cv_prog_compiler_rtti_exceptions=yes
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9355 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9357 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9358 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9370 lt_prog_compiler_wl=
9371 lt_prog_compiler_pic=
9372 lt_prog_compiler_static=
9375 if test "$GCC" = yes; then
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_static='-static'
9381 # All AIX code is PIC.
9382 if test "$host_cpu" = ia64; then
9383 # AIX 5 now supports IA64 processor
9384 lt_prog_compiler_static='-Bstatic'
9391 # see comment about AmigaOS4 .so support
9392 lt_prog_compiler_pic='-fPIC'
9395 # FIXME: we need at least 68020 code to build shared libraries, but
9396 # adding the `-m68020' flag to GCC prevents building anything better,
9398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9404 # PIC is the default for these OSes.
9407 mingw* | cygwin* | pw32* | os2* | cegcc*)
9408 # This hack is so that the source file can tell whether it is being
9409 # built for inclusion in a dll (and should export symbols for example).
9410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9411 # (--disable-auto-import) libraries
9412 lt_prog_compiler_pic='-DDLL_EXPORT'
9415 darwin* | rhapsody*)
9416 # PIC is the default on this platform
9417 # Common symbols not allowed in MH_DYLIB files
9418 lt_prog_compiler_pic='-fno-common'
9422 # PIC is the default for Haiku.
9423 # The "-static" flag exists, but is broken.
9424 lt_prog_compiler_static=
9428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9430 # sets the default TLS model and affects inlining.
9436 lt_prog_compiler_pic='-fPIC'
9442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9443 # Instead, we relocate shared libraries at runtime.
9447 # Just because we use GCC doesn't mean we suddenly get shared libraries
9448 # on systems that don't support them.
9449 lt_prog_compiler_can_build_shared=no
9454 # QNX uses GNU C++, but need to define -shared option too, otherwise
9456 lt_prog_compiler_pic='-fPIC -shared'
9460 if test -d /usr/nec; then
9461 lt_prog_compiler_pic=-Kconform_pic
9466 lt_prog_compiler_pic='-fPIC'
9470 case $cc_basename in
9471 nvcc*) # Cuda Compiler Driver 2.2
9472 lt_prog_compiler_wl='-Xlinker '
9473 if test -n "$lt_prog_compiler_pic"; then
9474 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9479 # PORTME Check for flag to pass linker flags through the system compiler.
9482 lt_prog_compiler_wl='-Wl,'
9483 if test "$host_cpu" = ia64; then
9484 # AIX 5 now supports IA64 processor
9485 lt_prog_compiler_static='-Bstatic'
9487 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9491 mingw* | cygwin* | pw32* | os2* | cegcc*)
9492 # This hack is so that the source file can tell whether it is being
9493 # built for inclusion in a dll (and should export symbols for example).
9494 lt_prog_compiler_pic='-DDLL_EXPORT'
9497 hpux9* | hpux10* | hpux11*)
9498 lt_prog_compiler_wl='-Wl,'
9499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9506 lt_prog_compiler_pic='+Z'
9509 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9510 lt_prog_compiler_static='${wl}-a ${wl}archive'
9513 irix5* | irix6* | nonstopux*)
9514 lt_prog_compiler_wl='-Wl,'
9515 # PIC (with -KPIC) is the default.
9516 lt_prog_compiler_static='-non_shared'
9519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9520 case $cc_basename in
9521 # old Intel for x86_64 which still supported -KPIC.
9523 lt_prog_compiler_wl='-Wl,'
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-static'
9527 # icc used to be incompatible with GCC.
9528 # ICC 10 doesn't accept -KPIC any more.
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-fPIC'
9532 lt_prog_compiler_static='-static'
9534 # Lahey Fortran 8.1.
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='--shared'
9538 lt_prog_compiler_static='--static'
9541 # NAG Fortran compiler
9542 lt_prog_compiler_wl='-Wl,-Wl,,'
9543 lt_prog_compiler_pic='-PIC'
9544 lt_prog_compiler_static='-Bstatic'
9546 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9547 # Portland Group compilers (*not* the Pentium gcc compiler,
9548 # which looks to be a dead project)
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-fpic'
9551 lt_prog_compiler_static='-Bstatic'
9554 lt_prog_compiler_wl='-Wl,'
9555 # All Alpha code is PIC.
9556 lt_prog_compiler_static='-non_shared'
9558 xl* | bgxl* | bgf* | mpixl*)
9559 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-qpic'
9562 lt_prog_compiler_static='-qstaticlink'
9565 case `$CC -V 2>&1 | sed 5q` in
9566 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9567 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9568 lt_prog_compiler_pic='-KPIC'
9569 lt_prog_compiler_static='-Bstatic'
9570 lt_prog_compiler_wl=''
9572 *Sun\ F* | *Sun*Fortran*)
9573 lt_prog_compiler_pic='-KPIC'
9574 lt_prog_compiler_static='-Bstatic'
9575 lt_prog_compiler_wl='-Qoption ld '
9579 lt_prog_compiler_pic='-KPIC'
9580 lt_prog_compiler_static='-Bstatic'
9581 lt_prog_compiler_wl='-Wl,'
9583 *Intel*\ [CF]*Compiler*)
9584 lt_prog_compiler_wl='-Wl,'
9585 lt_prog_compiler_pic='-fPIC'
9586 lt_prog_compiler_static='-static'
9589 lt_prog_compiler_wl='-Wl,'
9590 lt_prog_compiler_pic='-fpic'
9591 lt_prog_compiler_static='-Bstatic'
9599 lt_prog_compiler_pic='-KPIC'
9600 lt_prog_compiler_static='-Bstatic'
9604 # QNX uses GNU C++, but need to define -shared option too, otherwise
9606 lt_prog_compiler_pic='-fPIC -shared'
9609 osf3* | osf4* | osf5*)
9610 lt_prog_compiler_wl='-Wl,'
9611 # All OSF/1 code is PIC.
9612 lt_prog_compiler_static='-non_shared'
9616 lt_prog_compiler_static='-non_shared'
9620 lt_prog_compiler_pic='-KPIC'
9621 lt_prog_compiler_static='-Bstatic'
9622 case $cc_basename in
9623 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9624 lt_prog_compiler_wl='-Qoption ld ';;
9626 lt_prog_compiler_wl='-Wl,';;
9631 lt_prog_compiler_wl='-Qoption ld '
9632 lt_prog_compiler_pic='-PIC'
9633 lt_prog_compiler_static='-Bstatic'
9636 sysv4 | sysv4.2uw2* | sysv4.3*)
9637 lt_prog_compiler_wl='-Wl,'
9638 lt_prog_compiler_pic='-KPIC'
9639 lt_prog_compiler_static='-Bstatic'
9643 if test -d /usr/nec ;then
9644 lt_prog_compiler_pic='-Kconform_pic'
9645 lt_prog_compiler_static='-Bstatic'
9649 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9650 lt_prog_compiler_wl='-Wl,'
9651 lt_prog_compiler_pic='-KPIC'
9652 lt_prog_compiler_static='-Bstatic'
9656 lt_prog_compiler_wl='-Wl,'
9657 lt_prog_compiler_can_build_shared=no
9661 lt_prog_compiler_pic='-pic'
9662 lt_prog_compiler_static='-Bstatic'
9666 lt_prog_compiler_can_build_shared=no
9672 # For platforms which do not support PIC, -DPIC is meaningless:
9674 lt_prog_compiler_pic=
9677 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9682 printf %s "checking for $compiler option to produce PIC... " >&6; }
9683 if test ${lt_cv_prog_compiler_pic+y}
9685 printf %s "(cached) " >&6
9687 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9690 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9691 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9694 # Check to make sure the PIC flag actually works.
9696 if test -n "$lt_prog_compiler_pic"; then
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9699 if test ${lt_cv_prog_compiler_pic_works+y}
9701 printf %s "(cached) " >&6
9703 lt_cv_prog_compiler_pic_works=no
9704 ac_outfile=conftest.$ac_objext
9705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9706 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9707 # Insert the option either (1) after the last *FLAGS variable, or
9708 # (2) before a word containing "conftest.", or (3) at the end.
9709 # Note that $ac_compile itself does not contain backslashes and begins
9710 # with a dollar sign (not a hyphen), so the echo should work correctly.
9711 # The option is referenced via a variable to avoid confusing sed.
9712 lt_compile=`echo "$ac_compile" | $SED \
9713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9715 -e 's:$: $lt_compiler_flag:'`
9716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9717 (eval "$lt_compile" 2>conftest.err)
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 if (exit $ac_status) && test -s "$ac_outfile"; then
9722 # The compiler can only warn and ignore the option if not recognized
9723 # So say no if there are warnings other than the usual output.
9724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9727 lt_cv_prog_compiler_pic_works=yes
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9734 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9736 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9737 case $lt_prog_compiler_pic in
9739 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9742 lt_prog_compiler_pic=
9743 lt_prog_compiler_can_build_shared=no
9759 # Check to make sure the static flag actually works.
9761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9763 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9764 if test ${lt_cv_prog_compiler_static_works+y}
9766 printf %s "(cached) " >&6
9768 lt_cv_prog_compiler_static_works=no
9769 save_LDFLAGS="$LDFLAGS"
9770 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9771 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9773 # The linker can only warn and ignore the option if not recognized
9774 # So say no if there are warnings
9775 if test -s conftest.err; then
9776 # Append any errors to the config.log.
9777 cat conftest.err 1>&5
9778 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9780 if diff conftest.exp conftest.er2 >/dev/null; then
9781 lt_cv_prog_compiler_static_works=yes
9784 lt_cv_prog_compiler_static_works=yes
9788 LDFLAGS="$save_LDFLAGS"
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9792 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9794 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9797 lt_prog_compiler_static=
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9807 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9808 if test ${lt_cv_prog_compiler_c_o+y}
9810 printf %s "(cached) " >&6
9812 lt_cv_prog_compiler_c_o=no
9813 $RM -r conftest 2>/dev/null
9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9819 lt_compiler_flag="-o out/conftest2.$ac_objext"
9820 # Insert the option either (1) after the last *FLAGS variable, or
9821 # (2) before a word containing "conftest.", or (3) at the end.
9822 # Note that $ac_compile itself does not contain backslashes and begins
9823 # with a dollar sign (not a hyphen), so the echo should work correctly.
9824 lt_compile=`echo "$ac_compile" | $SED \
9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9827 -e 's:$: $lt_compiler_flag:'`
9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9829 (eval "$lt_compile" 2>out/conftest.err)
9831 cat out/conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9835 # The compiler can only warn and ignore the option if not recognized
9836 # So say no if there are warnings
9837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9840 lt_cv_prog_compiler_c_o=yes
9845 # SGI C++ compiler will create directory out/ii_files/ for
9846 # template instantiation
9847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9848 $RM out/* && rmdir out
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9855 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9863 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9864 if test ${lt_cv_prog_compiler_c_o+y}
9866 printf %s "(cached) " >&6
9868 lt_cv_prog_compiler_c_o=no
9869 $RM -r conftest 2>/dev/null
9873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9875 lt_compiler_flag="-o out/conftest2.$ac_objext"
9876 # Insert the option either (1) after the last *FLAGS variable, or
9877 # (2) before a word containing "conftest.", or (3) at the end.
9878 # Note that $ac_compile itself does not contain backslashes and begins
9879 # with a dollar sign (not a hyphen), so the echo should work correctly.
9880 lt_compile=`echo "$ac_compile" | $SED \
9881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883 -e 's:$: $lt_compiler_flag:'`
9884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9885 (eval "$lt_compile" 2>out/conftest.err)
9887 cat out/conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9891 # The compiler can only warn and ignore the option if not recognized
9892 # So say no if there are warnings
9893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9896 lt_cv_prog_compiler_c_o=yes
9901 # SGI C++ compiler will create directory out/ii_files/ for
9902 # template instantiation
9903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9904 $RM out/* && rmdir out
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9911 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9916 hard_links="nottested"
9917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9918 # do not overwrite the value of need_locks provided by the user
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9920 printf %s "checking if we can lock with hard links... " >&6; }
9923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9925 ln conftest.a conftest.b 2>&5 || hard_links=no
9926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9928 printf "%s\n" "$hard_links" >&6; }
9929 if test "$hard_links" = no; then
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9931 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9944 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9947 allow_undefined_flag=
9948 always_export_symbols=no
9950 archive_expsym_cmds=
9951 compiler_needs_object=no
9952 enable_shared_with_static_runtimes=no
9953 export_dynamic_flag_spec=
9954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9955 hardcode_automatic=no
9957 hardcode_direct_absolute=no
9958 hardcode_libdir_flag_spec=
9959 hardcode_libdir_separator=
9961 hardcode_shlibpath_var=unsupported
9963 link_all_deplibs=unknown
9966 old_archive_from_new_cmds=
9967 old_archive_from_expsyms_cmds=
9968 thread_safe_flag_spec=
9969 whole_archive_flag_spec=
9970 # include_expsyms should be a list of space-separated symbols to be *always*
9971 # included in the symbol list
9973 # exclude_expsyms can be an extended regexp of symbols to exclude
9974 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9975 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9976 # as well as any symbol that contains `d'.
9977 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9978 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9979 # platforms (ab)use it in PIC code, but their linkers get confused if
9980 # the symbol is explicitly referenced. Since portable code cannot
9981 # rely on this symbol name, it's probably fine to never include it in
9982 # preloaded symbol tables.
9983 # Exclude shared library initialization/finalization symbols.
9984 extract_expsyms_cmds=
9987 cygwin* | mingw* | pw32* | cegcc*)
9988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9989 # When not using gcc, we currently assume that we are using
9990 # Microsoft Visual C++.
9991 if test "$GCC" != yes; then
9996 # we just hope/assume this is gcc and not c89 (= MSVC++)
10002 linux* | k*bsd*-gnu | gnu*)
10003 link_all_deplibs=no
10009 # On some targets, GNU ld is compatible enough with the native linker
10010 # that we're better off using the native interface for both.
10011 lt_use_gnu_ld_interface=no
10012 if test "$with_gnu_ld" = yes; then
10015 # The AIX port of GNU ld has always aspired to compatibility
10016 # with the native linker. However, as the warning in the GNU ld
10017 # block says, versions before 2.19.5* couldn't really create working
10018 # shared libraries, regardless of the interface used.
10019 case `$LD -v 2>&1` in
10020 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10021 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10022 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10024 lt_use_gnu_ld_interface=yes
10029 lt_use_gnu_ld_interface=yes
10034 if test "$lt_use_gnu_ld_interface" = yes; then
10035 # If archive_cmds runs LD, not CC, wlarc should be empty
10038 # Set some defaults for GNU ld with shared library support. These
10039 # are reset later if shared libraries are not supported. Putting them
10040 # here allows them to be overridden if necessary.
10041 runpath_var=LD_RUN_PATH
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 export_dynamic_flag_spec='${wl}--export-dynamic'
10044 # ancient GNU ld didn't support --whole-archive et. al.
10045 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10046 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10048 whole_archive_flag_spec=
10050 supports_anon_versioning=no
10051 case `$LD -v 2>&1` in
10052 *GNU\ gold*) supports_anon_versioning=yes ;;
10053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10056 *\ 2.11.*) ;; # other 2.11 versions
10057 *) supports_anon_versioning=yes ;;
10060 # See if GNU ld supports shared libraries.
10063 # On AIX/PPC, the GNU linker is very broken
10064 if test "$host_cpu" != ia64; then
10068 *** Warning: the GNU linker, at least up to release 2.19, is reported
10069 *** to be unable to reliably create shared libraries on AIX.
10070 *** Therefore, libtool is disabling shared libraries support. If you
10071 *** really care for shared libraries, you may want to install binutils
10072 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10073 *** You will then need to restart the configuration process.
10082 # see comment about AmigaOS4 .so support
10083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084 archive_expsym_cmds=''
10087 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)'
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_minus_L=yes
10095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10096 allow_undefined_flag=unsupported
10097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10098 # support --undefined. This deserves some investigation. FIXME
10099 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 cygwin* | mingw* | pw32* | cegcc*)
10106 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10107 # as there is no search path for DLLs.
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 export_dynamic_flag_spec='${wl}--export-all-symbols'
10110 allow_undefined_flag=unsupported
10111 always_export_symbols=no
10112 enable_shared_with_static_runtimes=yes
10113 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'
10114 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10116 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10118 # If the export-symbols file already is a .def file (1st line
10119 # is EXPORTS), use it as is; otherwise, prepend...
10120 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10121 cp $export_symbols $output_objdir/$soname.def;
10123 echo EXPORTS > $output_objdir/$soname.def;
10124 cat $export_symbols >> $output_objdir/$soname.def;
10126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134 link_all_deplibs=yes
10139 hardcode_shlibpath_var=no
10140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10141 export_dynamic_flag_spec='${wl}-E'
10142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10143 # Instead, shared libraries are loaded at an image base (0x10000000 by
10144 # default) and relocated if they conflict, which is a slow very memory
10145 # consuming and fragmenting process. To avoid this, we pick a random,
10146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10149 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'
10152 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10154 if test "$host_os" = linux-dietlibc; then
10155 case $cc_basename in
10156 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10159 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10160 && test "$tmp_diet" = no
10162 tmp_addflag=' $pic_flag'
10163 tmp_sharedflag='-shared'
10164 case $cc_basename,$host_cpu in
10165 pgcc*) # Portland Group C compiler
10166 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'
10167 tmp_addflag=' $pic_flag'
10169 pgf77* | pgf90* | pgf95* | pgfortran*)
10170 # Portland Group f77 and f90 compilers
10171 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'
10172 tmp_addflag=' $pic_flag -Mnomain' ;;
10173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10174 tmp_addflag=' -i_dynamic' ;;
10175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10176 tmp_addflag=' -i_dynamic -nofor_main' ;;
10177 ifc* | ifort*) # Intel Fortran compiler
10178 tmp_addflag=' -nofor_main' ;;
10179 lf95*) # Lahey Fortran 8.1
10180 whole_archive_flag_spec=
10181 tmp_sharedflag='--shared' ;;
10182 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10183 tmp_sharedflag='-qmkshrobj'
10185 nvcc*) # Cuda Compiler Driver 2.2
10186 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'
10187 compiler_needs_object=yes
10190 case `$CC -V 2>&1 | sed 5q` in
10191 *Sun\ C*) # Sun C 5.9
10192 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'
10193 compiler_needs_object=yes
10194 tmp_sharedflag='-G' ;;
10195 *Sun\ F*) # Sun Fortran 8.3
10196 tmp_sharedflag='-G' ;;
10198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200 if test "x$supports_anon_versioning" = xyes; then
10201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10203 echo "local: *; };" >> $output_objdir/$libname.ver~
10204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10207 case $cc_basename in
10208 xlf* | bgf* | bgxlf* | mpixlf*)
10209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10210 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10212 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10213 if test "x$supports_anon_versioning" = xyes; then
10214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216 echo "local: *; };" >> $output_objdir/$libname.ver~
10217 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10226 netbsd* | netbsdelf*-gnu)
10227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10228 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10237 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10242 *** create shared libraries on Solaris systems. Therefore, libtool
10243 *** is disabling shared libraries support. We urge you to upgrade GNU
10244 *** binutils to release 2.9.1 or newer. Another option is to modify
10245 *** your PATH or compiler configuration so that the native linker is
10246 *** used, and then restart.
10249 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10258 case `$LD -v 2>&1` in
10259 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10264 *** reliably create shared libraries on SCO systems. Therefore, libtool
10265 *** is disabling shared libraries support. We urge you to upgrade GNU
10266 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10267 *** your PATH or compiler configuration so that the native linker is
10268 *** used, and then restart.
10273 # For security reasons, it is highly recommended that you always
10274 # use absolute paths for naming shared libraries, and exclude the
10275 # DT_RUNPATH tag from executables and libraries. But doing so
10276 # requires that you compile everything twice, which is a pain.
10277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10289 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_direct=yes
10292 hardcode_shlibpath_var=no
10296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10305 if test "$ld_shlibs" = no; then
10307 hardcode_libdir_flag_spec=
10308 export_dynamic_flag_spec=
10309 whole_archive_flag_spec=
10312 # PORTME fill in a description of your system's linker (not GNU ld)
10315 allow_undefined_flag=unsupported
10316 always_export_symbols=yes
10317 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'
10318 # Note: this linker hardcodes the directories in LIBPATH if there
10319 # are no directories specified by -L.
10320 hardcode_minus_L=yes
10321 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10322 # Neither direct hardcoding nor static linking is supported with a
10324 hardcode_direct=unsupported
10329 if test "$host_cpu" = ia64; then
10330 # On IA64, the linker does run time linking by default, so we don't
10331 # have to do anything special.
10332 aix_use_runtimelinking=no
10333 exp_sym_flag='-Bexport'
10336 # If we're using GNU nm, then we don't want the "-C" option.
10337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10338 # Also, AIX nm treats weak defined symbols like other global
10339 # defined symbols, whereas GNU nm marks them as "W".
10340 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10341 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'
10343 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'
10345 aix_use_runtimelinking=no
10347 # Test if we are trying to use run time linking or normal
10348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10349 # need to do runtime linking.
10350 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10351 for ld_flag in $LDFLAGS; do
10352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10353 aix_use_runtimelinking=yes
10360 exp_sym_flag='-bexport'
10361 no_entry_flag='-bnoentry'
10364 # When large executables or shared objects are built, AIX ld can
10365 # have problems creating the table of contents. If linking a library
10366 # or program results in "error TOC overflow" add -mminimal-toc to
10367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10371 hardcode_direct=yes
10372 hardcode_direct_absolute=yes
10373 hardcode_libdir_separator=':'
10374 link_all_deplibs=yes
10375 file_list_spec='${wl}-f,'
10377 if test "$GCC" = yes; then
10378 case $host_os in aix4.[012]|aix4.[012].*)
10379 # We only want to do this on AIX 4.2 and lower, the check
10380 # below for broken collect2 doesn't work under 4.3+
10381 collect2name=`${CC} -print-prog-name=collect2`
10382 if test -f "$collect2name" &&
10383 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10385 # We have reworked collect2
10388 # We have old collect2
10389 hardcode_direct=unsupported
10390 # It fails to find uninstalled libraries when the uninstalled
10391 # path is not listed in the libpath. Setting hardcode_minus_L
10392 # to unsupported forces relinking
10393 hardcode_minus_L=yes
10394 hardcode_libdir_flag_spec='-L$libdir'
10395 hardcode_libdir_separator=
10399 shared_flag='-shared'
10400 if test "$aix_use_runtimelinking" = yes; then
10401 shared_flag="$shared_flag "'${wl}-G'
10403 link_all_deplibs=no
10406 if test "$host_cpu" = ia64; then
10407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408 # chokes on -Wl,-G. The following line is correct:
10411 if test "$aix_use_runtimelinking" = yes; then
10412 shared_flag='${wl}-G'
10414 shared_flag='${wl}-bM:SRE'
10419 export_dynamic_flag_spec='${wl}-bexpall'
10420 # It seems that -bexpall does not export symbols beginning with
10421 # underscore (_), so it is better to generate a list of symbols to export.
10422 always_export_symbols=yes
10423 if test "$aix_use_runtimelinking" = yes; then
10424 # Warning - without using the other runtime loading flags (-brtl),
10425 # -berok will link without error, but may produce a broken library.
10426 allow_undefined_flag='-berok'
10427 # Determine the default libpath from the value encoded in an
10428 # empty executable.
10429 if test "${lt_cv_aix_libpath+set}" = set; then
10430 aix_libpath=$lt_cv_aix_libpath
10432 if test ${lt_cv_aix_libpath_+y}
10434 printf %s "(cached) " >&6
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10447 if ac_fn_c_try_link "$LINENO"
10450 lt_aix_libpath_sed='
10451 /Import File Strings/,/^$/ {
10453 s/^0 *\([^ ]*\) *$/\1/
10457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458 # Check for a 64-bit object if we didn't find anything.
10459 if test -z "$lt_cv_aix_libpath_"; then
10460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test -z "$lt_cv_aix_libpath_"; then
10466 lt_cv_aix_libpath_="/usr/lib:/lib"
10471 aix_libpath=$lt_cv_aix_libpath_
10474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10475 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"
10477 if test "$host_cpu" = ia64; then
10478 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10479 allow_undefined_flag="-z nodefs"
10480 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"
10482 # Determine the default libpath from the value encoded in an
10483 # empty executable.
10484 if test "${lt_cv_aix_libpath+set}" = set; then
10485 aix_libpath=$lt_cv_aix_libpath
10487 if test ${lt_cv_aix_libpath_+y}
10489 printf %s "(cached) " >&6
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10502 if ac_fn_c_try_link "$LINENO"
10505 lt_aix_libpath_sed='
10506 /Import File Strings/,/^$/ {
10508 s/^0 *\([^ ]*\) *$/\1/
10512 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10513 # Check for a 64-bit object if we didn't find anything.
10514 if test -z "$lt_cv_aix_libpath_"; then
10515 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10519 conftest$ac_exeext conftest.$ac_ext
10520 if test -z "$lt_cv_aix_libpath_"; then
10521 lt_cv_aix_libpath_="/usr/lib:/lib"
10526 aix_libpath=$lt_cv_aix_libpath_
10529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10530 # Warning - without using the other run time loading flags,
10531 # -berok will link without error, but may produce a broken library.
10532 no_undefined_flag=' ${wl}-bernotok'
10533 allow_undefined_flag=' ${wl}-berok'
10534 if test "$with_gnu_ld" = yes; then
10535 # We only use this code for GNU lds that support --whole-archive.
10536 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10538 # Exported symbols can be pulled into shared objects from archives
10539 whole_archive_flag_spec='$convenience'
10541 archive_cmds_need_lc=yes
10542 # This is similar to how AIX traditionally builds its shared libraries.
10543 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'
10551 # see comment about AmigaOS4 .so support
10552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553 archive_expsym_cmds=''
10556 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)'
10557 hardcode_libdir_flag_spec='-L$libdir'
10558 hardcode_minus_L=yes
10564 export_dynamic_flag_spec=-rdynamic
10567 cygwin* | mingw* | pw32* | cegcc*)
10568 # When not using gcc, we currently assume that we are using
10569 # Microsoft Visual C++.
10570 # hardcode_libdir_flag_spec is actually meaningless, as there is
10571 # no search path for DLLs.
10572 case $cc_basename in
10575 hardcode_libdir_flag_spec=' '
10576 allow_undefined_flag=unsupported
10577 always_export_symbols=yes
10579 # Tell ltmain to make .lib files, not .a files.
10581 # Tell ltmain to make .dll files, not .so files.
10583 # FIXME: Setting linknames here is a bad hack.
10584 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10585 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10586 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10588 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10590 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10592 # The linker will not automatically build a static lib if we build a DLL.
10593 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10594 enable_shared_with_static_runtimes=yes
10595 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10598 old_postinstall_cmds='chmod 644 $oldlib'
10599 postlink_cmds='lt_outputfile="@OUTPUT@"~
10600 lt_tool_outputfile="@TOOL_OUTPUT@"~
10601 case $lt_outputfile in
10604 lt_outputfile="$lt_outputfile.exe"
10605 lt_tool_outputfile="$lt_tool_outputfile.exe"
10608 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10609 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10610 $RM "$lt_outputfile.manifest";
10614 # Assume MSVC wrapper
10615 hardcode_libdir_flag_spec=' '
10616 allow_undefined_flag=unsupported
10617 # Tell ltmain to make .lib files, not .a files.
10619 # Tell ltmain to make .dll files, not .so files.
10621 # FIXME: Setting linknames here is a bad hack.
10622 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10623 # The linker will automatically build a .lib file if we build a DLL.
10624 old_archive_from_new_cmds='true'
10625 # FIXME: Should let the user specify the lib program.
10626 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10627 enable_shared_with_static_runtimes=yes
10632 darwin* | rhapsody*)
10635 archive_cmds_need_lc=no
10637 hardcode_automatic=yes
10638 hardcode_shlibpath_var=unsupported
10639 if test "$lt_cv_ld_force_load" = "yes"; then
10640 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\"`'
10643 whole_archive_flag_spec=''
10645 link_all_deplibs=yes
10646 allow_undefined_flag="$_lt_dar_allow_undefined"
10647 case $cc_basename in
10648 ifort*) _lt_dar_can_shared=yes ;;
10649 *) _lt_dar_can_shared=$GCC ;;
10651 if test "$_lt_dar_can_shared" = "yes"; then
10652 output_verbose_link_cmd=func_echo_all
10653 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10654 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10655 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}"
10656 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}"
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_libdir_flag_spec='-L$libdir'
10667 hardcode_shlibpath_var=no
10670 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10671 # support. Future versions do this automatically, but an explicit c++rt0.o
10672 # does not break anything, and helps significantly (at the cost of a little
10675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10676 hardcode_libdir_flag_spec='-R$libdir'
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10681 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10684 hardcode_direct=yes
10685 hardcode_minus_L=yes
10686 hardcode_shlibpath_var=no
10689 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10690 freebsd* | dragonfly*)
10691 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10692 hardcode_libdir_flag_spec='-R$libdir'
10693 hardcode_direct=yes
10694 hardcode_shlibpath_var=no
10698 if test "$GCC" = yes; then
10699 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'
10701 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'
10703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10704 hardcode_libdir_separator=:
10705 hardcode_direct=yes
10707 # hardcode_minus_L: Not really in the search PATH,
10708 # but as the default location of the library.
10709 hardcode_minus_L=yes
10710 export_dynamic_flag_spec='${wl}-E'
10714 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10715 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10719 if test "$with_gnu_ld" = no; then
10720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10721 hardcode_libdir_separator=:
10722 hardcode_direct=yes
10723 hardcode_direct_absolute=yes
10724 export_dynamic_flag_spec='${wl}-E'
10725 # hardcode_minus_L: Not really in the search PATH,
10726 # but as the default location of the library.
10727 hardcode_minus_L=yes
10732 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10735 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10754 # Older versions of the 11.00 compiler do not understand -b yet
10755 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10757 printf %s "checking if $CC understands -b... " >&6; }
10758 if test ${lt_cv_prog_compiler__b+y}
10760 printf %s "(cached) " >&6
10762 lt_cv_prog_compiler__b=no
10763 save_LDFLAGS="$LDFLAGS"
10764 LDFLAGS="$LDFLAGS -b"
10765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10767 # The linker can only warn and ignore the option if not recognized
10768 # So say no if there are warnings
10769 if test -s conftest.err; then
10770 # Append any errors to the config.log.
10771 cat conftest.err 1>&5
10772 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10774 if diff conftest.exp conftest.er2 >/dev/null; then
10775 lt_cv_prog_compiler__b=yes
10778 lt_cv_prog_compiler__b=yes
10782 LDFLAGS="$save_LDFLAGS"
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10786 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10788 if test x"$lt_cv_prog_compiler__b" = xyes; then
10789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10797 if test "$with_gnu_ld" = no; then
10798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10799 hardcode_libdir_separator=:
10804 hardcode_shlibpath_var=no
10807 hardcode_direct=yes
10808 hardcode_direct_absolute=yes
10809 export_dynamic_flag_spec='${wl}-E'
10811 # hardcode_minus_L: Not really in the search PATH,
10812 # but as the default location of the library.
10813 hardcode_minus_L=yes
10819 irix5* | irix6* | nonstopux*)
10820 if test "$GCC" = yes; then
10821 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'
10822 # Try to use the -exported_symbol ld option, if it does not
10823 # work, assume that -exports_file does not work either and
10824 # implicitly export all symbols.
10825 # This should be the same for all languages, so no per-tag cache variable.
10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10827 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10828 if test ${lt_cv_irix_exported_symbol+y}
10830 printf %s "(cached) " >&6
10832 save_LDFLAGS="$LDFLAGS"
10833 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 int foo (void) { return 0; }
10838 if ac_fn_c_try_link "$LINENO"
10840 lt_cv_irix_exported_symbol=yes
10842 lt_cv_irix_exported_symbol=no
10844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LDFLAGS="$save_LDFLAGS"
10848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10849 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10850 if test "$lt_cv_irix_exported_symbol" = yes; then
10851 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'
10854 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'
10855 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'
10857 archive_cmds_need_lc='no'
10858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10859 hardcode_libdir_separator=:
10861 link_all_deplibs=yes
10864 netbsd* | netbsdelf*-gnu)
10865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10870 hardcode_libdir_flag_spec='-R$libdir'
10871 hardcode_direct=yes
10872 hardcode_shlibpath_var=no
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=yes
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator=:
10880 hardcode_shlibpath_var=no
10887 if test -f /usr/libexec/ld.so; then
10888 hardcode_direct=yes
10889 hardcode_shlibpath_var=no
10890 hardcode_direct_absolute=yes
10891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10895 export_dynamic_flag_spec='${wl}-E'
10898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_libdir_flag_spec='-R$libdir'
10903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10914 hardcode_libdir_flag_spec='-L$libdir'
10915 hardcode_minus_L=yes
10916 allow_undefined_flag=unsupported
10917 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'
10918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10922 if test "$GCC" = yes; then
10923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10924 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'
10926 allow_undefined_flag=' -expect_unresolved \*'
10927 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'
10929 archive_cmds_need_lc='no'
10930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931 hardcode_libdir_separator=:
10934 osf4* | osf5*) # as osf3* with the addition of -msym flag
10935 if test "$GCC" = yes; then
10936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10937 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'
10938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10940 allow_undefined_flag=' -expect_unresolved \*'
10941 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'
10942 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~
10943 $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'
10945 # Both c and cxx compiler support -rpath directly
10946 hardcode_libdir_flag_spec='-rpath $libdir'
10948 archive_cmds_need_lc='no'
10949 hardcode_libdir_separator=:
10953 no_undefined_flag=' -z defs'
10954 if test "$GCC" = yes; then
10956 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10958 $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'
10960 case `$CC -V 2>&1` in
10963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10969 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10971 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10975 hardcode_libdir_flag_spec='-R$libdir'
10976 hardcode_shlibpath_var=no
10978 solaris2.[0-5] | solaris2.[0-5].*) ;;
10980 # The compiler driver will combine and reorder linker options,
10981 # but understands `-z linker_flag'. GCC discards it without `$wl',
10982 # but is careful enough not to reorder.
10983 # Supported since Solaris 2.6 (maybe 2.5.1?)
10984 if test "$GCC" = yes; then
10985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10991 link_all_deplibs=yes
10995 if test "x$host_vendor" = xsequent; then
10996 # Use $CC to link under sequent, because it throws in some extra .o
10997 # files that make .init and .fini sections work.
10998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_libdir_flag_spec='-L$libdir'
11003 hardcode_direct=yes
11004 hardcode_minus_L=yes
11005 hardcode_shlibpath_var=no
11009 case $host_vendor in
11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012 hardcode_direct=yes # is this really true???
11015 ## LD is ld it makes a PLAMLIB
11016 ## CC just makes a GrossModule.
11017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11018 reload_cmds='$CC -r -o $output$reload_objs'
11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11026 runpath_var='LD_RUN_PATH'
11027 hardcode_shlibpath_var=no
11031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 hardcode_shlibpath_var=no
11033 export_dynamic_flag_spec='-Bexport'
11037 if test -d /usr/nec; then
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_shlibpath_var=no
11040 runpath_var=LD_RUN_PATH
11041 hardcode_runpath_var=yes
11046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11047 no_undefined_flag='${wl}-z,text'
11048 archive_cmds_need_lc=no
11049 hardcode_shlibpath_var=no
11050 runpath_var='LD_RUN_PATH'
11052 if test "$GCC" = yes; then
11053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 sysv5* | sco3.2v5* | sco5v6*)
11062 # Note: We can NOT use -z defs as we might desire, because we do not
11063 # link with -lc, and that would cause any symbols used from libc to
11064 # always be unresolved, which means just about no library would
11065 # ever link correctly. If we're not using GNU ld we use -z text
11066 # though, which does catch some bad symbols but isn't as heavy-handed
11068 no_undefined_flag='${wl}-z,text'
11069 allow_undefined_flag='${wl}-z,nodefs'
11070 archive_cmds_need_lc=no
11071 hardcode_shlibpath_var=no
11072 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11073 hardcode_libdir_separator=':'
11074 link_all_deplibs=yes
11075 export_dynamic_flag_spec='${wl}-Bexport'
11076 runpath_var='LD_RUN_PATH'
11078 if test "$GCC" = yes; then
11079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089 hardcode_libdir_flag_spec='-L$libdir'
11090 hardcode_shlibpath_var=no
11098 if test x$host_vendor = xsni; then
11100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11101 export_dynamic_flag_spec='${wl}-Blargedynsym'
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11108 printf "%s\n" "$ld_shlibs" >&6; }
11109 test "$ld_shlibs" = no && can_build_shared=no
11111 with_gnu_ld=$with_gnu_ld
11128 # Do we need to explicitly link libc?
11130 case "x$archive_cmds_need_lc" in
11132 # Assume -lc should be added
11133 archive_cmds_need_lc=yes
11135 if test "$enable_shared" = yes && test "$GCC" = yes; then
11136 case $archive_cmds in
11138 # FIXME: we may have to deal with multi-command sequences.
11141 # Test whether the compiler implicitly links with -lc since on some
11142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11143 # to ld, don't add -lc before -lgcc.
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11145 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11146 if test ${lt_cv_archive_cmds_need_lc+y}
11148 printf %s "(cached) " >&6
11151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11154 (eval $ac_compile) 2>&5
11156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157 test $ac_status = 0; } 2>conftest.err; then
11160 libobjs=conftest.$ac_objext
11162 wl=$lt_prog_compiler_wl
11163 pic_flag=$lt_prog_compiler_pic
11169 lt_save_allow_undefined_flag=$allow_undefined_flag
11170 allow_undefined_flag=
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; }
11177 lt_cv_archive_cmds_need_lc=no
11179 lt_cv_archive_cmds_need_lc=yes
11181 allow_undefined_flag=$lt_save_allow_undefined_flag
11183 cat conftest.err 1>&5
11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11189 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11349 printf %s "checking dynamic linker characteristics... " >&6; }
11351 if test "$GCC" = yes; then
11353 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11354 *) lt_awk_arg="/^libraries:/" ;;
11357 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11358 *) lt_sed_strip_eq="s,=/,/,g" ;;
11360 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11361 case $lt_search_path_spec in
11363 # if the path contains ";" then we assume it to be the separator
11364 # otherwise default to the standard path separator (i.e. ":") - it is
11365 # assumed that no part of a normal pathname contains ";" but that should
11366 # okay in the real world where ";" in dirpaths is itself problematic.
11367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11370 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11373 # Ok, now we have the path, separated by spaces, we can step through it
11374 # and add multilib dir if necessary.
11375 lt_tmp_lt_search_path_spec=
11376 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11377 for lt_sys_path in $lt_search_path_spec; do
11378 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11381 test -d "$lt_sys_path" && \
11382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11385 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11386 BEGIN {RS=" "; FS="/|\n";} {
11389 for (lt_i = NF; lt_i > 0; lt_i--) {
11390 if ($lt_i != "" && $lt_i != ".") {
11391 if ($lt_i == "..") {
11394 if (lt_count == 0) {
11395 lt_foo="/" $lt_i lt_foo;
11402 if (lt_foo != "") { lt_freq[lt_foo]++; }
11403 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11405 # AWK program above erroneously prepends '/' to C:/dos/paths
11408 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11409 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11411 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11415 library_names_spec=
11416 libname_spec='lib$name'
11420 postuninstall_cmds=
11424 shlibpath_overrides_runpath=unknown
11426 dynamic_linker="$host_os ld.so"
11427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11428 need_lib_prefix=unknown
11429 hardcode_into_libs=no
11431 # when you set need_version to no, make sure it does not cause -set_version
11432 # flags to be left without arguments
11433 need_version=unknown
11437 version_type=linux # correct to gnu/linux during the next big refactor
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11439 shlibpath_var=LIBPATH
11441 # AIX 3 has no versioning support, so we append a major version to the name.
11442 soname_spec='${libname}${release}${shared_ext}$major'
11446 version_type=linux # correct to gnu/linux during the next big refactor
11449 hardcode_into_libs=yes
11450 if test "$host_cpu" = ia64; then
11451 # AIX 5 supports IA64
11452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11453 shlibpath_var=LD_LIBRARY_PATH
11455 # With GCC up to 2.95.x, collect2 would create an import file
11456 # for dependence libraries. The import file would start with
11457 # the line `#! .'. This would cause the generated library to
11458 # depend on `.', always an invalid library. This was fixed in
11459 # development snapshots of GCC prior to 3.0.
11461 aix4 | aix4.[01] | aix4.[01].*)
11462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11464 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11467 can_build_shared=no
11471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11472 # soname into executable. Probably we can add versioning support to
11473 # collect2, so additional links can be useful in future.
11474 if test "$aix_use_runtimelinking" = yes; then
11475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11476 # instead of lib<name>.a to let people know that these are not
11477 # typical AIX shared libraries.
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 # We preserve .a as extension for shared libraries through AIX4.2
11481 # and later when we are not doing run time linking.
11482 library_names_spec='${libname}${release}.a $libname.a'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11485 shlibpath_var=LIBPATH
11492 # Since July 2007 AmigaOS4 officially supports .so libraries.
11493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 library_names_spec='$libname.ixlibrary $libname.a'
11498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11499 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'
11505 library_names_spec='${libname}${shared_ext}'
11506 dynamic_linker="$host_os ld.so"
11507 shlibpath_var=LIBRARY_PATH
11511 version_type=linux # correct to gnu/linux during the next big refactor
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11519 # the default ld.so.conf also contains /usr/contrib/lib and
11520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11521 # libtool to hard-code these into programs
11524 cygwin* | mingw* | pw32* | cegcc*)
11525 version_type=windows
11530 case $GCC,$cc_basename in
11533 library_names_spec='$libname.dll.a'
11534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11535 postinstall_cmds='base_file=`basename \${file}`~
11536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11537 dldir=$destdir/`dirname \$dlpath`~
11538 test -d \$dldir || mkdir -p \$dldir~
11539 $install_prog $dir/$dlname \$dldir/$dlname~
11540 chmod a+x \$dldir/$dlname~
11541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11545 dlpath=$dir/\$dldll~
11547 shlibpath_overrides_runpath=yes
11551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11552 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11557 # MinGW DLLs use traditional 'lib' prefix
11558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11561 # pw32 DLLs use 'pw' prefix rather than 'lib'
11562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11565 dynamic_linker='Win32 ld.exe'
11570 libname_spec='$name'
11571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11572 library_names_spec='${libname}.dll.lib'
11576 sys_lib_search_path_spec=
11579 for lt_path in $LIB
11582 # Let DOS variable expansion print the short 8.3 style file name.
11583 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11584 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11587 # Convert to MSYS style.
11588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11591 # Convert to unix form, then to dos form, then back to unix form
11592 # but this time dos style (no spaces!) so that the unix form looks
11593 # like /cygdrive/c/PROGRA~1:/cygdr...
11594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11599 sys_lib_search_path_spec="$LIB"
11600 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11601 # It is most probably a Windows format PATH.
11602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11606 # FIXME: find the short name or the path components, as spaces are
11607 # common. (e.g. "Program Files" -> "PROGRA~1")
11611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11612 postinstall_cmds='base_file=`basename \${file}`~
11613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11614 dldir=$destdir/`dirname \$dlpath`~
11615 test -d \$dldir || mkdir -p \$dldir~
11616 $install_prog $dir/$dlname \$dldir/$dlname'
11617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11618 dlpath=$dir/\$dldll~
11620 shlibpath_overrides_runpath=yes
11621 dynamic_linker='Win32 link.exe'
11625 # Assume MSVC wrapper
11626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11627 dynamic_linker='Win32 ld.exe'
11630 # FIXME: first we should search . and the directory the executable is in
11634 darwin* | rhapsody*)
11635 dynamic_linker="$host_os dyld"
11636 version_type=darwin
11639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11640 soname_spec='${libname}${release}${major}$shared_ext'
11641 shlibpath_overrides_runpath=yes
11642 shlibpath_var=DYLD_LIBRARY_PATH
11643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11650 version_type=linux # correct to gnu/linux during the next big refactor
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11658 freebsd* | dragonfly*)
11659 # DragonFly does not have aout. When/if they implement a new
11660 # versioning mechanism, adjust this.
11661 if test -x /usr/bin/objformat; then
11662 objformat=`/usr/bin/objformat`
11665 freebsd[23].*) objformat=aout ;;
11666 *) objformat=elf ;;
11669 version_type=freebsd-$objformat
11670 case $version_type in
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11681 shlibpath_var=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath=yes
11686 freebsd3.[01]* | freebsdelf3.[01]*)
11687 shlibpath_overrides_runpath=yes
11688 hardcode_into_libs=yes
11690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11692 shlibpath_overrides_runpath=no
11693 hardcode_into_libs=yes
11695 *) # from 4.6 on, and DragonFly
11696 shlibpath_overrides_runpath=yes
11697 hardcode_into_libs=yes
11703 version_type=linux # correct to gnu/linux during the next big refactor
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=no
11710 hardcode_into_libs=yes
11714 version_type=linux # correct to gnu/linux during the next big refactor
11717 dynamic_linker="$host_os runtime_loader"
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 shlibpath_var=LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11723 hardcode_into_libs=yes
11726 hpux9* | hpux10* | hpux11*)
11727 # Give a soname corresponding to the major version so that dld.sl refuses to
11728 # link against other versions.
11735 hardcode_into_libs=yes
11736 dynamic_linker="$host_os dld.so"
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 if test "X$HPUX_IA64_MODE" = X32; then
11742 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11744 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11750 hardcode_into_libs=yes
11751 dynamic_linker="$host_os dld.sl"
11752 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11761 dynamic_linker="$host_os dld.sl"
11762 shlibpath_var=SHLIB_PATH
11763 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11768 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11769 postinstall_cmds='chmod 555 $lib'
11770 # or fails outright, so override atomically:
11771 install_override_mode=555
11775 version_type=linux # correct to gnu/linux during the next big refactor
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=no
11783 hardcode_into_libs=yes
11786 irix5* | irix6* | nonstopux*)
11788 nonstopux*) version_type=nonstopux ;;
11790 if test "$lt_cv_prog_gnu_ld" = yes; then
11791 version_type=linux # correct to gnu/linux during the next big refactor
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11801 irix5* | nonstopux*)
11802 libsuff= shlibsuff=
11805 case $LD in # libtool.m4 will add one of these switches to LD
11806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11807 libsuff= shlibsuff= libmagic=32-bit;;
11808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11809 libsuff=32 shlibsuff=N32 libmagic=N32;;
11810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11812 *) libsuff= shlibsuff= libmagic=never-match;;
11816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11817 shlibpath_overrides_runpath=no
11818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11820 hardcode_into_libs=yes
11823 # No shared lib support for Linux oldld, aout, or coff.
11824 linux*oldld* | linux*aout* | linux*coff*)
11829 version_type=none # Android doesn't support versioned libraries.
11832 library_names_spec='$libname$release$shared_ext'
11833 soname_spec='$libname$release$shared_ext'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=yes
11838 # This implies no fast_install, which is unacceptable.
11839 # Some rework will be needed to allow for fast_install
11840 # before this can be enabled.
11841 hardcode_into_libs=yes
11843 dynamic_linker='Android linker'
11844 # Don't embed -rpath directories since the linker doesn't support them.
11845 hardcode_libdir_flag_spec='-L$libdir'
11848 # This must be glibc/ELF.
11849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11850 version_type=linux # correct to gnu/linux during the next big refactor
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 soname_spec='${libname}${release}${shared_ext}$major'
11855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=no
11859 # Some binutils ld are patched to set DT_RUNPATH
11860 if test ${lt_cv_shlibpath_overrides_runpath+y}
11862 printf %s "(cached) " >&6
11864 lt_cv_shlibpath_overrides_runpath=no
11865 save_LDFLAGS=$LDFLAGS
11866 save_libdir=$libdir
11867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11880 if ac_fn_c_try_link "$LINENO"
11882 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11884 lt_cv_shlibpath_overrides_runpath=yes
11887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11888 conftest$ac_exeext conftest.$ac_ext
11889 LDFLAGS=$save_LDFLAGS
11890 libdir=$save_libdir
11894 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11896 # This implies no fast_install, which is unacceptable.
11897 # Some rework will be needed to allow for fast_install
11898 # before this can be enabled.
11899 hardcode_into_libs=yes
11901 # Append ld.so.conf contents to the search path
11902 if test -f /etc/ld.so.conf; then
11903 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' ' '`
11904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11907 # We used to test for /lib/ld.so.1 and disable shared libraries on
11908 # powerpc, because MkLinux only supported shared libraries with the
11909 # GNU dynamic linker. Since this was broken with cross compilers,
11910 # most powerpc-linux boxes support dynamic linking these days and
11911 # people can always --disable-shared, the test was removed, and we
11912 # assume the GNU/Linux dynamic linker is in use.
11913 dynamic_linker='GNU/Linux ld.so'
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=no
11924 hardcode_into_libs=yes
11925 dynamic_linker='NetBSD ld.elf_so'
11932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11935 dynamic_linker='NetBSD (a.out) ld.so'
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 dynamic_linker='NetBSD ld.elf_so'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 shlibpath_overrides_runpath=yes
11943 hardcode_into_libs=yes
11947 version_type=linux # correct to gnu/linux during the next big refactor
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958 soname_spec='${libname}${release}${shared_ext}$major'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=no
11961 hardcode_into_libs=yes
11962 dynamic_linker='ldqnx.so'
11967 sys_lib_dlsearch_path_spec="/usr/lib"
11969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11972 *) need_version=no ;;
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11979 openbsd2.[89] | openbsd2.[89].*)
11980 shlibpath_overrides_runpath=no
11983 shlibpath_overrides_runpath=yes
11987 shlibpath_overrides_runpath=yes
11992 libname_spec='$name'
11995 library_names_spec='$libname${shared_ext} $libname.a'
11996 dynamic_linker='OS/2 ld.exe'
11997 shlibpath_var=LIBPATH
12000 osf3* | osf4* | osf5*)
12004 soname_spec='${libname}${release}${shared_ext}$major'
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12016 version_type=linux # correct to gnu/linux during the next big refactor
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 shlibpath_var=LD_LIBRARY_PATH
12022 shlibpath_overrides_runpath=yes
12023 hardcode_into_libs=yes
12024 # ldd complains unless libraries are executable
12025 postinstall_cmds='chmod +x $lib'
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=yes
12034 if test "$with_gnu_ld" = yes; then
12041 version_type=linux # correct to gnu/linux during the next big refactor
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043 soname_spec='${libname}${release}${shared_ext}$major'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 case $host_vendor in
12047 shlibpath_overrides_runpath=no
12049 runpath_var=LD_RUN_PATH
12057 shlibpath_overrides_runpath=no
12058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12064 if test -d /usr/nec ;then
12065 version_type=linux # correct to gnu/linux during the next big refactor
12066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12067 soname_spec='$libname${shared_ext}.$major'
12068 shlibpath_var=LD_LIBRARY_PATH
12072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12073 version_type=freebsd-elf
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 shlibpath_overrides_runpath=yes
12080 hardcode_into_libs=yes
12081 if test "$with_gnu_ld" = yes; then
12082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12091 sys_lib_dlsearch_path_spec='/usr/lib'
12095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12096 version_type=linux # correct to gnu/linux during the next big refactor
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=no
12102 hardcode_into_libs=yes
12106 version_type=linux # correct to gnu/linux during the next big refactor
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 shlibpath_var=LD_LIBRARY_PATH
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12117 printf "%s\n" "$dynamic_linker" >&6; }
12118 test "$dynamic_linker" = no && can_build_shared=no
12120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12121 if test "$GCC" = yes; then
12122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12125 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12126 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12129 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12224 printf %s "checking how to hardcode library paths into programs... " >&6; }
12226 if test -n "$hardcode_libdir_flag_spec" ||
12227 test -n "$runpath_var" ||
12228 test "X$hardcode_automatic" = "Xyes" ; then
12230 # We can hardcode non-existent directories.
12231 if test "$hardcode_direct" != no &&
12232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12233 # have to relink, otherwise we might link with an installed library
12234 # when we should be linking with a yet-to-be-installed one
12235 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12236 test "$hardcode_minus_L" != no; then
12237 # Linking always hardcodes the temporary library directory.
12238 hardcode_action=relink
12240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12241 hardcode_action=immediate
12244 # We cannot hardcode anything, or else we can only hardcode existing
12246 hardcode_action=unsupported
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12249 printf "%s\n" "$hardcode_action" >&6; }
12251 if test "$hardcode_action" = relink ||
12252 test "$inherit_rpath" = yes; then
12253 # Fast installation is not supported
12254 enable_fast_install=no
12255 elif test "$shlibpath_overrides_runpath" = yes ||
12256 test "$enable_shared" = no; then
12257 # Fast installation is not necessary
12258 enable_fast_install=needless
12266 if test "x$enable_dlopen" != xyes; then
12267 enable_dlopen=unknown
12268 enable_dlopen_self=unknown
12269 enable_dlopen_self_static=unknown
12276 lt_cv_dlopen="load_add_on"
12278 lt_cv_dlopen_self=yes
12281 mingw* | pw32* | cegcc*)
12282 lt_cv_dlopen="LoadLibrary"
12287 lt_cv_dlopen="dlopen"
12292 # if libdl is installed we need to link against it
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12294 printf %s "checking for dlopen in -ldl... " >&6; }
12295 if test ${ac_cv_lib_dl_dlopen+y}
12297 printf %s "(cached) " >&6
12299 ac_check_lib_save_LIBS=$LIBS
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12316 if ac_fn_c_try_link "$LINENO"
12318 ac_cv_lib_dl_dlopen=yes
12320 ac_cv_lib_dl_dlopen=no
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12327 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12328 if test "x$ac_cv_lib_dl_dlopen" = xyes
12330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12333 lt_cv_dlopen="dyld"
12335 lt_cv_dlopen_self=yes
12342 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12343 if test "x$ac_cv_func_shl_load" = xyes
12345 lt_cv_dlopen="shl_load"
12347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12348 printf %s "checking for shl_load in -ldld... " >&6; }
12349 if test ${ac_cv_lib_dld_shl_load+y}
12351 printf %s "(cached) " >&6
12353 ac_check_lib_save_LIBS=$LIBS
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12365 return shl_load ();
12370 if ac_fn_c_try_link "$LINENO"
12372 ac_cv_lib_dld_shl_load=yes
12374 ac_cv_lib_dld_shl_load=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12381 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12382 if test "x$ac_cv_lib_dld_shl_load" = xyes
12384 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12386 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12387 if test "x$ac_cv_func_dlopen" = xyes
12389 lt_cv_dlopen="dlopen"
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12392 printf %s "checking for dlopen in -ldl... " >&6; }
12393 if test ${ac_cv_lib_dl_dlopen+y}
12395 printf %s "(cached) " >&6
12397 ac_check_lib_save_LIBS=$LIBS
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12414 if ac_fn_c_try_link "$LINENO"
12416 ac_cv_lib_dl_dlopen=yes
12418 ac_cv_lib_dl_dlopen=no
12420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12425 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12426 if test "x$ac_cv_lib_dl_dlopen" = xyes
12428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12431 printf %s "checking for dlopen in -lsvld... " >&6; }
12432 if test ${ac_cv_lib_svld_dlopen+y}
12434 printf %s "(cached) " >&6
12436 ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-lsvld $LIBS"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12453 if ac_fn_c_try_link "$LINENO"
12455 ac_cv_lib_svld_dlopen=yes
12457 ac_cv_lib_svld_dlopen=no
12459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12464 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12465 if test "x$ac_cv_lib_svld_dlopen" = xyes
12467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12470 printf %s "checking for dld_link in -ldld... " >&6; }
12471 if test ${ac_cv_lib_dld_dld_link+y}
12473 printf %s "(cached) " >&6
12475 ac_check_lib_save_LIBS=$LIBS
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12487 return dld_link ();
12492 if ac_fn_c_try_link "$LINENO"
12494 ac_cv_lib_dld_dld_link=yes
12496 ac_cv_lib_dld_dld_link=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12499 conftest$ac_exeext conftest.$ac_ext
12500 LIBS=$ac_check_lib_save_LIBS
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12503 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12504 if test "x$ac_cv_lib_dld_dld_link" = xyes
12506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12527 if test "x$lt_cv_dlopen" != xno; then
12533 case $lt_cv_dlopen in
12535 save_CPPFLAGS="$CPPFLAGS"
12536 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12538 save_LDFLAGS="$LDFLAGS"
12539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12542 LIBS="$lt_cv_dlopen_libs $LIBS"
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12545 printf %s "checking whether a program can dlopen itself... " >&6; }
12546 if test ${lt_cv_dlopen_self+y}
12548 printf %s "(cached) " >&6
12550 if test "$cross_compiling" = yes; then :
12551 lt_cv_dlopen_self=cross
12553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12554 lt_status=$lt_dlunknown
12555 cat > conftest.$ac_ext <<_LT_EOF
12556 #line $LINENO "configure"
12557 #include "confdefs.h"
12566 # define LT_DLGLOBAL RTLD_GLOBAL
12569 # define LT_DLGLOBAL DL_GLOBAL
12571 # define LT_DLGLOBAL 0
12575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12576 find out it does not work in some platform. */
12577 #ifndef LT_DLLAZY_OR_NOW
12579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12582 # define LT_DLLAZY_OR_NOW DL_LAZY
12585 # define LT_DLLAZY_OR_NOW RTLD_NOW
12588 # define LT_DLLAZY_OR_NOW DL_NOW
12590 # define LT_DLLAZY_OR_NOW 0
12597 /* When -fvisbility=hidden is used, assume the code has been annotated
12598 correspondingly for the symbols needed. */
12599 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12600 int fnord () __attribute__((visibility("default")));
12603 int fnord () { return 42; }
12606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12607 int status = $lt_dlunknown;
12611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12615 else puts (dlerror ());
12617 /* dlclose (self); */
12625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12626 (eval $ac_link) 2>&5
12628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12630 (./conftest; exit; ) >&5 2>/dev/null
12632 case x$lt_status in
12633 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12634 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12635 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12638 # compilation failed
12639 lt_cv_dlopen_self=no
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12647 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12649 if test "x$lt_cv_dlopen_self" = xyes; then
12650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12652 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12653 if test ${lt_cv_dlopen_self_static+y}
12655 printf %s "(cached) " >&6
12657 if test "$cross_compiling" = yes; then :
12658 lt_cv_dlopen_self_static=cross
12660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12661 lt_status=$lt_dlunknown
12662 cat > conftest.$ac_ext <<_LT_EOF
12663 #line $LINENO "configure"
12664 #include "confdefs.h"
12673 # define LT_DLGLOBAL RTLD_GLOBAL
12676 # define LT_DLGLOBAL DL_GLOBAL
12678 # define LT_DLGLOBAL 0
12682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12683 find out it does not work in some platform. */
12684 #ifndef LT_DLLAZY_OR_NOW
12686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12689 # define LT_DLLAZY_OR_NOW DL_LAZY
12692 # define LT_DLLAZY_OR_NOW RTLD_NOW
12695 # define LT_DLLAZY_OR_NOW DL_NOW
12697 # define LT_DLLAZY_OR_NOW 0
12704 /* When -fvisbility=hidden is used, assume the code has been annotated
12705 correspondingly for the symbols needed. */
12706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12707 int fnord () __attribute__((visibility("default")));
12710 int fnord () { return 42; }
12713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12714 int status = $lt_dlunknown;
12718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12721 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12722 else puts (dlerror ());
12724 /* dlclose (self); */
12732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12733 (eval $ac_link) 2>&5
12735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12737 (./conftest; exit; ) >&5 2>/dev/null
12739 case x$lt_status in
12740 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12741 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12742 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12745 # compilation failed
12746 lt_cv_dlopen_self_static=no
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12754 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12757 CPPFLAGS="$save_CPPFLAGS"
12758 LDFLAGS="$save_LDFLAGS"
12763 case $lt_cv_dlopen_self in
12764 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12765 *) enable_dlopen_self=unknown ;;
12768 case $lt_cv_dlopen_self_static in
12769 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12770 *) enable_dlopen_self_static=unknown ;;
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12793 printf %s "checking whether stripping libraries is possible... " >&6; }
12794 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12795 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12796 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 printf "%s\n" "yes" >&6; }
12800 # FIXME - insert some real tests, host_os isn't really good enough
12803 if test -n "$STRIP" ; then
12804 striplib="$STRIP -x"
12805 old_striplib="$STRIP -S"
12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12807 printf "%s\n" "yes" >&6; }
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 printf "%s\n" "no" >&6; }
12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 printf "%s\n" "no" >&6; }
12831 # Report which library types will actually be built
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12833 printf %s "checking if libtool supports shared libraries... " >&6; }
12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12835 printf "%s\n" "$can_build_shared" >&6; }
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12838 printf %s "checking whether to build shared libraries... " >&6; }
12839 test "$can_build_shared" = "no" && enable_shared=no
12841 # On AIX, shared libraries and static libraries use the same namespace, and
12842 # are all built from PIC.
12845 test "$enable_shared" = yes && enable_static=no
12846 if test -n "$RANLIB"; then
12847 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12848 postinstall_cmds='$RANLIB $lib'
12853 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12854 test "$enable_shared" = yes && enable_static=no
12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12859 printf "%s\n" "$enable_shared" >&6; }
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12862 printf %s "checking whether to build static libraries... " >&6; }
12863 # Make sure either enable_shared or enable_static is yes.
12864 test "$enable_shared" = yes || enable_static=yes
12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12866 printf "%s\n" "$enable_static" >&6; }
12873 ac_cpp='$CPP $CPPFLAGS'
12874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12894 ac_config_commands="$ac_config_commands libtool"
12899 # Only expand once:
12902 if test -n "$ac_tool_prefix"; then
12903 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12904 set dummy ${ac_tool_prefix}windres; ac_word=$2
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 printf %s "checking for $ac_word... " >&6; }
12907 if test ${ac_cv_prog_RC+y}
12909 printf %s "(cached) " >&6
12911 if test -n "$RC"; then
12912 ac_cv_prog_RC="$RC" # Let the user override the test.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12918 case $as_dir in #(((
12921 *) as_dir=$as_dir/ ;;
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12925 ac_cv_prog_RC="${ac_tool_prefix}windres"
12926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12936 if test -n "$RC"; then
12937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12938 printf "%s\n" "$RC" >&6; }
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 printf "%s\n" "no" >&6; }
12946 if test -z "$ac_cv_prog_RC"; then
12948 # Extract the first word of "windres", so it can be a program name with args.
12949 set dummy windres; ac_word=$2
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951 printf %s "checking for $ac_word... " >&6; }
12952 if test ${ac_cv_prog_ac_ct_RC+y}
12954 printf %s "(cached) " >&6
12956 if test -n "$ac_ct_RC"; then
12957 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12963 case $as_dir in #(((
12966 *) as_dir=$as_dir/ ;;
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12970 ac_cv_prog_ac_ct_RC="windres"
12971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12980 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12981 if test -n "$ac_ct_RC"; then
12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12983 printf "%s\n" "$ac_ct_RC" >&6; }
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 printf "%s\n" "no" >&6; }
12989 if test "x$ac_ct_RC" = x; then
12992 case $cross_compiling:$ac_tool_warned in
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12996 ac_tool_warned=yes ;;
13001 RC="$ac_cv_prog_RC"
13007 # Source file extension for RC test sources.
13010 # Object file extension for compiled RC test sources.
13014 # Code to be used in simple compile tests
13015 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13017 # Code to be used in simple link tests
13018 lt_simple_link_test_code="$lt_simple_compile_test_code"
13020 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13027 # If no C compiler was specified, use CC.
13030 # If no C compiler flags were specified, use CFLAGS.
13031 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13033 # Allow CC to be a program name with arguments.
13037 # save warnings/boilerplate of simple test code
13038 ac_outfile=conftest.$ac_objext
13039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13041 _lt_compiler_boilerplate=`cat conftest.err`
13044 ac_outfile=conftest.$ac_objext
13045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13047 _lt_linker_boilerplate=`cat conftest.err`
13051 # Allow CC to be a program name with arguments.
13053 lt_save_CFLAGS=$CFLAGS
13060 for cc_temp in $compiler""; do
13062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13068 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13070 lt_cv_prog_compiler_c_o_RC=yes
13072 if test -n "$compiler"; then
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13087 CFLAGS=$lt_save_CFLAGS
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13092 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13093 # Check whether --enable-maintainer-mode was given.
13094 if test ${enable_maintainer_mode+y}
13096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13098 USE_MAINTAINER_MODE=no
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13102 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
13103 if test $USE_MAINTAINER_MODE = yes; then
13104 MAINTAINER_MODE_TRUE=
13105 MAINTAINER_MODE_FALSE='#'
13107 MAINTAINER_MODE_TRUE='#'
13108 MAINTAINER_MODE_FALSE=
13111 MAINT=$MAINTAINER_MODE_TRUE
13115 # We need to compile and run a program on the build machine.
13116 # Put a plausible default for CC_FOR_BUILD in Makefile.
13117 if test -z "$CC_FOR_BUILD"; then
13118 if test "x$cross_compiling" = "xno"; then
13119 CC_FOR_BUILD='$(CC)'
13125 # Also set EXEEXT_FOR_BUILD.
13126 if test "x$cross_compiling" = "xno"; then
13127 EXEEXT_FOR_BUILD='$(EXEEXT)'
13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13130 printf %s "checking for build system executable suffix... " >&6; }
13131 if test ${bfd_cv_build_exeext+y}
13133 printf %s "(cached) " >&6
13136 echo 'int main () { return 0; }' > conftest.c
13137 bfd_cv_build_exeext=
13138 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13139 for file in conftest.*; do
13141 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13142 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13146 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13149 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
13150 EXEEXT_FOR_BUILD=""
13151 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13159 VERSION_NUMBER=0x010605
13169 # Checks for programs.
13170 missing_dir=`cd $ac_aux_dir && pwd`
13172 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
13175 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13178 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
13181 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13184 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13186 # Check whether --enable-silent-rules was given.
13187 if test ${enable_silent_rules+y}
13189 enableval=$enable_silent_rules;
13192 case $enable_silent_rules in # (((
13193 yes) AM_DEFAULT_VERBOSITY=0;;
13194 no) AM_DEFAULT_VERBOSITY=1;;
13195 *) AM_DEFAULT_VERBOSITY=1;;
13197 am_make=${MAKE-make}
13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13199 printf %s "checking whether $am_make supports nested variables... " >&6; }
13200 if test ${am_cv_make_support_nested_variables+y}
13202 printf %s "(cached) " >&6
13204 if printf "%s\n" 'TRUE=$(BAR$(V))
13210 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13211 am_cv_make_support_nested_variables=yes
13213 am_cv_make_support_nested_variables=no
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13217 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13218 if test $am_cv_make_support_nested_variables = yes; then
13220 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13222 AM_V=$AM_DEFAULT_VERBOSITY
13223 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13227 for ac_prog in gawk mawk nawk awk
13229 # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 printf %s "checking for $ac_word... " >&6; }
13233 if test ${ac_cv_prog_AWK+y}
13235 printf %s "(cached) " >&6
13237 if test -n "$AWK"; then
13238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13244 case $as_dir in #(((
13247 *) as_dir=$as_dir/ ;;
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13251 ac_cv_prog_AWK="$ac_prog"
13252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13261 AWK=$ac_cv_prog_AWK
13262 if test -n "$AWK"; then
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13264 printf "%s\n" "$AWK" >&6; }
13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 printf "%s\n" "no" >&6; }
13271 test -n "$AWK" && break
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13279 if test -n "$ac_tool_prefix"; then
13280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283 printf %s "checking for $ac_word... " >&6; }
13284 if test ${ac_cv_prog_CC+y}
13286 printf %s "(cached) " >&6
13288 if test -n "$CC"; then
13289 ac_cv_prog_CC="$CC" # Let the user override the test.
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13295 case $as_dir in #(((
13298 *) as_dir=$as_dir/ ;;
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13313 if test -n "$CC"; then
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13315 printf "%s\n" "$CC" >&6; }
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 printf "%s\n" "no" >&6; }
13323 if test -z "$ac_cv_prog_CC"; then
13325 # Extract the first word of "gcc", so it can be a program name with args.
13326 set dummy gcc; ac_word=$2
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 printf %s "checking for $ac_word... " >&6; }
13329 if test ${ac_cv_prog_ac_ct_CC+y}
13331 printf %s "(cached) " >&6
13333 if test -n "$ac_ct_CC"; then
13334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 case $as_dir in #(((
13343 *) as_dir=$as_dir/ ;;
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13347 ac_cv_prog_ac_ct_CC="gcc"
13348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13358 if test -n "$ac_ct_CC"; then
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13360 printf "%s\n" "$ac_ct_CC" >&6; }
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 printf "%s\n" "no" >&6; }
13366 if test "x$ac_ct_CC" = x; then
13369 case $cross_compiling:$ac_tool_warned in
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13373 ac_tool_warned=yes ;;
13378 CC="$ac_cv_prog_CC"
13381 if test -z "$CC"; then
13382 if test -n "$ac_tool_prefix"; then
13383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13384 set dummy ${ac_tool_prefix}cc; ac_word=$2
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 printf %s "checking for $ac_word... " >&6; }
13387 if test ${ac_cv_prog_CC+y}
13389 printf %s "(cached) " >&6
13391 if test -n "$CC"; then
13392 ac_cv_prog_CC="$CC" # Let the user override the test.
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13398 case $as_dir in #(((
13401 *) as_dir=$as_dir/ ;;
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13405 ac_cv_prog_CC="${ac_tool_prefix}cc"
13406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13416 if test -n "$CC"; then
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13418 printf "%s\n" "$CC" >&6; }
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 printf "%s\n" "no" >&6; }
13427 if test -z "$CC"; then
13428 # Extract the first word of "cc", so it can be a program name with args.
13429 set dummy cc; ac_word=$2
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 printf %s "checking for $ac_word... " >&6; }
13432 if test ${ac_cv_prog_CC+y}
13434 printf %s "(cached) " >&6
13436 if test -n "$CC"; then
13437 ac_cv_prog_CC="$CC" # Let the user override the test.
13439 ac_prog_rejected=no
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $PATH
13444 case $as_dir in #(((
13447 *) as_dir=$as_dir/ ;;
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13451 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13452 ac_prog_rejected=yes
13456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13463 if test $ac_prog_rejected = yes; then
13464 # We found a bogon in the path, so make sure we never use it.
13465 set dummy $ac_cv_prog_CC
13467 if test $# != 0; then
13468 # We chose a different compiler from the bogus one.
13469 # However, it has the same basename, so the bogon will be chosen
13470 # first if we set CC to just the basename; use the full file name.
13472 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13478 if test -n "$CC"; then
13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13480 printf "%s\n" "$CC" >&6; }
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 printf "%s\n" "no" >&6; }
13488 if test -z "$CC"; then
13489 if test -n "$ac_tool_prefix"; then
13490 for ac_prog in cl.exe
13492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 printf %s "checking for $ac_word... " >&6; }
13496 if test ${ac_cv_prog_CC+y}
13498 printf %s "(cached) " >&6
13500 if test -n "$CC"; then
13501 ac_cv_prog_CC="$CC" # Let the user override the test.
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13507 case $as_dir in #(((
13510 *) as_dir=$as_dir/ ;;
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13525 if test -n "$CC"; then
13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13527 printf "%s\n" "$CC" >&6; }
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 printf "%s\n" "no" >&6; }
13534 test -n "$CC" && break
13537 if test -z "$CC"; then
13539 for ac_prog in cl.exe
13541 # Extract the first word of "$ac_prog", so it can be a program name with args.
13542 set dummy $ac_prog; ac_word=$2
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 printf %s "checking for $ac_word... " >&6; }
13545 if test ${ac_cv_prog_ac_ct_CC+y}
13547 printf %s "(cached) " >&6
13549 if test -n "$ac_ct_CC"; then
13550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13556 case $as_dir in #(((
13559 *) as_dir=$as_dir/ ;;
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13563 ac_cv_prog_ac_ct_CC="$ac_prog"
13564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13574 if test -n "$ac_ct_CC"; then
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13576 printf "%s\n" "$ac_ct_CC" >&6; }
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 printf "%s\n" "no" >&6; }
13583 test -n "$ac_ct_CC" && break
13586 if test "x$ac_ct_CC" = x; then
13589 case $cross_compiling:$ac_tool_warned in
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13592 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13593 ac_tool_warned=yes ;;
13600 if test -z "$CC"; then
13601 if test -n "$ac_tool_prefix"; then
13602 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13603 set dummy ${ac_tool_prefix}clang; ac_word=$2
13604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 printf %s "checking for $ac_word... " >&6; }
13606 if test ${ac_cv_prog_CC+y}
13608 printf %s "(cached) " >&6
13610 if test -n "$CC"; then
13611 ac_cv_prog_CC="$CC" # Let the user override the test.
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13617 case $as_dir in #(((
13620 *) as_dir=$as_dir/ ;;
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13624 ac_cv_prog_CC="${ac_tool_prefix}clang"
13625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13635 if test -n "$CC"; then
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13637 printf "%s\n" "$CC" >&6; }
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 printf "%s\n" "no" >&6; }
13645 if test -z "$ac_cv_prog_CC"; then
13647 # Extract the first word of "clang", so it can be a program name with args.
13648 set dummy clang; ac_word=$2
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13650 printf %s "checking for $ac_word... " >&6; }
13651 if test ${ac_cv_prog_ac_ct_CC+y}
13653 printf %s "(cached) " >&6
13655 if test -n "$ac_ct_CC"; then
13656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13662 case $as_dir in #(((
13665 *) as_dir=$as_dir/ ;;
13667 for ac_exec_ext in '' $ac_executable_extensions; do
13668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13669 ac_cv_prog_ac_ct_CC="clang"
13670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13680 if test -n "$ac_ct_CC"; then
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13682 printf "%s\n" "$ac_ct_CC" >&6; }
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 printf "%s\n" "no" >&6; }
13688 if test "x$ac_ct_CC" = x; then
13691 case $cross_compiling:$ac_tool_warned in
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13695 ac_tool_warned=yes ;;
13700 CC="$ac_cv_prog_CC"
13706 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13707 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13708 as_fn_error $? "no acceptable C compiler found in \$PATH
13709 See \`config.log' for more details" "$LINENO" 5; }
13711 # Provide some information about the compiler.
13712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13715 for ac_option in --version -v -V -qversion -version; do
13716 { { ac_try="$ac_compiler $ac_option >&5"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13722 printf "%s\n" "$ac_try_echo"; } >&5
13723 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13725 if test -s conftest.err; then
13727 ... rest of stderr output deleted ...
13728 10q' conftest.err >conftest.er1
13729 cat conftest.er1 >&5
13731 rm -f conftest.er1 conftest.err
13732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733 test $ac_status = 0; }
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13737 printf %s "checking whether the compiler supports GNU C... " >&6; }
13738 if test ${ac_cv_c_compiler_gnu+y}
13740 printf %s "(cached) " >&6
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13756 if ac_fn_c_try_compile "$LINENO"
13758 ac_compiler_gnu=yes
13762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13767 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13770 if test $ac_compiler_gnu = yes; then
13775 ac_test_CFLAGS=${CFLAGS+y}
13776 ac_save_CFLAGS=$CFLAGS
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13778 printf %s "checking whether $CC accepts -g... " >&6; }
13779 if test ${ac_cv_prog_cc_g+y}
13781 printf %s "(cached) " >&6
13783 ac_save_c_werror_flag=$ac_c_werror_flag
13784 ac_c_werror_flag=yes
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13798 if ac_fn_c_try_compile "$LINENO"
13800 ac_cv_prog_cc_g=yes
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13814 if ac_fn_c_try_compile "$LINENO"
13818 ac_c_werror_flag=$ac_save_c_werror_flag
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13831 if ac_fn_c_try_compile "$LINENO"
13833 ac_cv_prog_cc_g=yes
13835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13840 ac_c_werror_flag=$ac_save_c_werror_flag
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13843 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13844 if test $ac_test_CFLAGS; then
13845 CFLAGS=$ac_save_CFLAGS
13846 elif test $ac_cv_prog_cc_g = yes; then
13847 if test "$GCC" = yes; then
13853 if test "$GCC" = yes; then
13860 if test x$ac_prog_cc_stdc = xno
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13863 printf %s "checking for $CC option to enable C11 features... " >&6; }
13864 if test ${ac_cv_prog_cc_c11+y}
13866 printf %s "(cached) " >&6
13868 ac_cv_prog_cc_c11=no
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 $ac_c_conftest_c11_program
13874 for ac_arg in '' -std=gnu11
13876 CC="$ac_save_CC $ac_arg"
13877 if ac_fn_c_try_compile "$LINENO"
13879 ac_cv_prog_cc_c11=$ac_arg
13881 rm -f core conftest.err conftest.$ac_objext conftest.beam
13882 test "x$ac_cv_prog_cc_c11" != "xno" && break
13884 rm -f conftest.$ac_ext
13888 if test "x$ac_cv_prog_cc_c11" = xno
13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13891 printf "%s\n" "unsupported" >&6; }
13893 if test "x$ac_cv_prog_cc_c11" = x
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13896 printf "%s\n" "none needed" >&6; }
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13899 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13900 CC="$CC $ac_cv_prog_cc_c11"
13902 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13903 ac_prog_cc_stdc=c11
13906 if test x$ac_prog_cc_stdc = xno
13908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13909 printf %s "checking for $CC option to enable C99 features... " >&6; }
13910 if test ${ac_cv_prog_cc_c99+y}
13912 printf %s "(cached) " >&6
13914 ac_cv_prog_cc_c99=no
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 $ac_c_conftest_c99_program
13920 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13922 CC="$ac_save_CC $ac_arg"
13923 if ac_fn_c_try_compile "$LINENO"
13925 ac_cv_prog_cc_c99=$ac_arg
13927 rm -f core conftest.err conftest.$ac_objext conftest.beam
13928 test "x$ac_cv_prog_cc_c99" != "xno" && break
13930 rm -f conftest.$ac_ext
13934 if test "x$ac_cv_prog_cc_c99" = xno
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13937 printf "%s\n" "unsupported" >&6; }
13939 if test "x$ac_cv_prog_cc_c99" = x
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13942 printf "%s\n" "none needed" >&6; }
13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13945 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13946 CC="$CC $ac_cv_prog_cc_c99"
13948 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13949 ac_prog_cc_stdc=c99
13952 if test x$ac_prog_cc_stdc = xno
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13955 printf %s "checking for $CC option to enable C89 features... " >&6; }
13956 if test ${ac_cv_prog_cc_c89+y}
13958 printf %s "(cached) " >&6
13960 ac_cv_prog_cc_c89=no
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 $ac_c_conftest_c89_program
13966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13968 CC="$ac_save_CC $ac_arg"
13969 if ac_fn_c_try_compile "$LINENO"
13971 ac_cv_prog_cc_c89=$ac_arg
13973 rm -f core conftest.err conftest.$ac_objext conftest.beam
13974 test "x$ac_cv_prog_cc_c89" != "xno" && break
13976 rm -f conftest.$ac_ext
13980 if test "x$ac_cv_prog_cc_c89" = xno
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13983 printf "%s\n" "unsupported" >&6; }
13985 if test "x$ac_cv_prog_cc_c89" = x
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13988 printf "%s\n" "none needed" >&6; }
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13991 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13992 CC="$CC $ac_cv_prog_cc_c89"
13994 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13995 ac_prog_cc_stdc=c89
14000 ac_cpp='$CPP $CPPFLAGS'
14001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14012 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14013 if test ${am_cv_prog_cc_c_o+y}
14015 printf %s "(cached) " >&6
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14028 # Make sure it works both with $CC and with simple cc.
14029 # Following AC_PROG_CC_C_O, we do the test twice because some
14030 # compilers refuse to overwrite an existing .o file with -o,
14031 # though they will create one.
14032 am_cv_prog_cc_c_o=yes
14033 for am_i in 1 2; do
14034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } \
14039 && test -f conftest2.$ac_objext; then
14042 am_cv_prog_cc_c_o=no
14046 rm -f core conftest*
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14050 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14051 if test "$am_cv_prog_cc_c_o" != yes; then
14052 # Losing compiler, so override with the script.
14053 # FIXME: It is wrong to rewrite CC.
14054 # But if we don't then we get into trouble of one sort or another.
14055 # A longer-term fix would be to have automake use am__CC in this case,
14056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14057 CC="$am_aux_dir/compile $CC"
14060 ac_cpp='$CPP $CPPFLAGS'
14061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14066 depcc="$CC" am_compiler_list=
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14069 printf %s "checking dependency style of $depcc... " >&6; }
14070 if test ${am_cv_CC_dependencies_compiler_type+y}
14072 printf %s "(cached) " >&6
14074 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14075 # We make a subdir and do the tests there. Otherwise we can end up
14076 # making bogus files that we don't know about and never remove. For
14077 # instance it was reported that on HP-UX the gcc test will end up
14078 # making a dummy file named 'D' -- because '-MD' means "put the output
14080 rm -rf conftest.dir
14082 # Copy depcomp to subdir because otherwise we won't find it if we're
14083 # using a relative directory.
14084 cp "$am_depcomp" conftest.dir
14086 # We will build objects and dependencies in a subdirectory because
14087 # it helps to detect inapplicable dependency modes. For instance
14088 # both Tru64's cc and ICC support -MD to output dependencies as a
14089 # side effect of compilation, but ICC will put the dependencies in
14090 # the current directory while Tru64 will put them in the object
14094 am_cv_CC_dependencies_compiler_type=none
14095 if test "$am_compiler_list" = ""; then
14096 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14098 am__universal=false
14099 case " $depcc " in #(
14100 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14103 for depmode in $am_compiler_list; do
14104 # Setup a source with many dependencies, because some compilers
14105 # like to wrap large dependency lists on column 80 (with \), and
14106 # we should not choose a depcomp mode which is confused by this.
14108 # We need to recreate these files for each test, as the compiler may
14109 # overwrite some of them when testing with obscure command lines.
14110 # This happens at least with the AIX C compiler.
14112 for i in 1 2 3 4 5 6; do
14113 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14114 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14115 # Solaris 10 /bin/sh.
14116 echo '/* dummy */' > sub/conftst$i.h
14118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14120 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14121 # mode. It turns out that the SunPro C++ compiler does not properly
14122 # handle '-M -o', and we need to detect this. Also, some Intel
14123 # versions had trouble with output in subdirs.
14124 am__obj=sub/conftest.${OBJEXT-o}
14125 am__minus_obj="-o $am__obj"
14128 # This depmode causes a compiler race in universal mode.
14129 test "$am__universal" = false || continue
14132 # After this tag, mechanisms are not by side-effect, so they'll
14133 # only be used when explicitly requested.
14134 if test "x$enable_dependency_tracking" = xyes; then
14140 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14141 # This compiler won't grok '-c -o', but also, the minuso test has
14142 # not run yet. These depmodes are late enough in the game, and
14143 # so weak that their functioning should not be impacted.
14144 am__obj=conftest.${OBJEXT-o}
14149 if depmode=$depmode \
14150 source=sub/conftest.c object=$am__obj \
14151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14152 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14153 >/dev/null 2>conftest.err &&
14154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14156 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14158 # icc doesn't choke on unknown options, it will just issue warnings
14159 # or remarks (even with -Werror). So we grep stderr for any message
14160 # that says an option was ignored or not supported.
14161 # When given -MP, icc 7.0 and 7.1 complain thusly:
14162 # icc: Command line warning: ignoring option '-M'; no argument required
14163 # The diagnosis changed in icc 8.0:
14164 # icc: Command line remark: option '-MP' not supported
14165 if (grep 'ignoring option' conftest.err ||
14166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14167 am_cv_CC_dependencies_compiler_type=$depmode
14174 rm -rf conftest.dir
14176 am_cv_CC_dependencies_compiler_type=none
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14181 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14182 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14185 test "x$enable_dependency_tracking" != xno \
14186 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14187 am__fastdepCC_TRUE=
14188 am__fastdepCC_FALSE='#'
14190 am__fastdepCC_TRUE='#'
14191 am__fastdepCC_FALSE=
14196 ac_cpp='$CPP $CPPFLAGS'
14197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14201 printf %s "checking how to run the C preprocessor... " >&6; }
14202 # On Suns, sometimes $CPP names a directory.
14203 if test -n "$CPP" && test -d "$CPP"; then
14206 if test -z "$CPP"; then
14207 if test ${ac_cv_prog_CPP+y}
14209 printf %s "(cached) " >&6
14211 # Double quotes because $CC needs to be expanded
14212 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14214 ac_preproc_ok=false
14215 for ac_c_preproc_warn_flag in '' yes
14217 # Use a header file that comes with gcc, so configuring glibc
14218 # with a fresh cross-compiler works.
14219 # On the NeXT, cc -E runs the code through the compiler's parser,
14220 # not just through cpp. "Syntax error" is here to catch this case.
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223 #include <limits.h>
14226 if ac_fn_c_try_cpp "$LINENO"
14230 # Broken: fails on valid input.
14233 rm -f conftest.err conftest.i conftest.$ac_ext
14235 # OK, works on sane cases. Now check whether nonexistent headers
14236 # can be detected and how.
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239 #include <ac_nonexistent.h>
14241 if ac_fn_c_try_cpp "$LINENO"
14243 # Broken: success on invalid input.
14246 # Passes both tests.
14250 rm -f conftest.err conftest.i conftest.$ac_ext
14253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14254 rm -f conftest.i conftest.err conftest.$ac_ext
14261 ac_cv_prog_CPP=$CPP
14264 CPP=$ac_cv_prog_CPP
14266 ac_cv_prog_CPP=$CPP
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14269 printf "%s\n" "$CPP" >&6; }
14270 ac_preproc_ok=false
14271 for ac_c_preproc_warn_flag in '' yes
14273 # Use a header file that comes with gcc, so configuring glibc
14274 # with a fresh cross-compiler works.
14275 # On the NeXT, cc -E runs the code through the compiler's parser,
14276 # not just through cpp. "Syntax error" is here to catch this case.
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #include <limits.h>
14282 if ac_fn_c_try_cpp "$LINENO"
14286 # Broken: fails on valid input.
14289 rm -f conftest.err conftest.i conftest.$ac_ext
14291 # OK, works on sane cases. Now check whether nonexistent headers
14292 # can be detected and how.
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 #include <ac_nonexistent.h>
14297 if ac_fn_c_try_cpp "$LINENO"
14299 # Broken: success on invalid input.
14302 # Passes both tests.
14306 rm -f conftest.err conftest.i conftest.$ac_ext
14309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14310 rm -f conftest.i conftest.err conftest.$ac_ext
14315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14316 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14317 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14318 See \`config.log' for more details" "$LINENO" 5; }
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
14329 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14333 printf %s "checking whether ln -s works... " >&6; }
14335 if test "$LN_S" = "ln -s"; then
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 printf "%s\n" "yes" >&6; }
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14340 printf "%s\n" "no, using $LN_S" >&6; }
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14344 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14346 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14347 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
14349 printf %s "(cached) " >&6
14351 cat >conftest.make <<\_ACEOF
14354 @echo '@@@%%%=$(MAKE)=@@@%%%'
14356 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14358 *@@@%%%=?*=@@@%%%*)
14359 eval ac_cv_prog_make_${ac_make}_set=yes;;
14361 eval ac_cv_prog_make_${ac_make}_set=no;;
14363 rm -f conftest.make
14365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14367 printf "%s\n" "yes" >&6; }
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 printf "%s\n" "no" >&6; }
14372 SET_MAKE="MAKE=${MAKE-make}"
14378 for ac_prog in 'bison -y' byacc
14380 # Extract the first word of "$ac_prog", so it can be a program name with args.
14381 set dummy $ac_prog; ac_word=$2
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383 printf %s "checking for $ac_word... " >&6; }
14384 if test ${ac_cv_prog_YACC+y}
14386 printf %s "(cached) " >&6
14388 if test -n "$YACC"; then
14389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14395 case $as_dir in #(((
14398 *) as_dir=$as_dir/ ;;
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14402 ac_cv_prog_YACC="$ac_prog"
14403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14412 YACC=$ac_cv_prog_YACC
14413 if test -n "$YACC"; then
14414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14415 printf "%s\n" "$YACC" >&6; }
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418 printf "%s\n" "no" >&6; }
14422 test -n "$YACC" && break
14424 test -n "$YACC" || YACC="yacc"
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
14431 printf %s "checking if bison is the parser generator... " >&6; }
14432 if test ${ax_cv_prog_bison+y}
14434 printf %s "(cached) " >&6
14437 if $YACC --version 2>/dev/null | $EGREP -q '^bison '
14439 ax_cv_prog_bison=yes
14441 ax_cv_prog_bison=no
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
14446 printf "%s\n" "$ax_cv_prog_bison" >&6; }
14447 if test "$ax_cv_prog_bison" = "yes"
14450 YACC="${YACC% -y} -o y.tab.c"
14458 if test "$USE_MAINTAINER_MODE" = "yes"; then
14459 for ac_prog in gcov
14461 # Extract the first word of "$ac_prog", so it can be a program name with args.
14462 set dummy $ac_prog; ac_word=$2
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14464 printf %s "checking for $ac_word... " >&6; }
14465 if test ${ac_cv_prog_GCOV+y}
14467 printf %s "(cached) " >&6
14469 if test -n "$GCOV"; then
14470 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473 for as_dir in $PATH
14476 case $as_dir in #(((
14479 *) as_dir=$as_dir/ ;;
14481 for ac_exec_ext in '' $ac_executable_extensions; do
14482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14483 ac_cv_prog_GCOV="$ac_prog"
14484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14493 GCOV=$ac_cv_prog_GCOV
14494 if test -n "$GCOV"; then
14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14496 printf "%s\n" "$GCOV" >&6; }
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499 printf "%s\n" "no" >&6; }
14503 test -n "$GCOV" && break
14505 test -n "$GCOV" || GCOV="gcov"
14507 # gcov coverage reporting
14509 # Check whether --enable-gcov was given.
14510 if test ${enable_gcov+y}
14512 enableval=$enable_gcov; use_gcov=yes
14518 if test "x$use_gcov" = "xyes"; then
14520 HAVE_GCOV_FALSE='#'
14527 if test "x$use_gcov" = "xyes"; then
14529 if test "$GCC" != "yes"; then
14530 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
14533 # Check if ccache is being used
14534 # Extract the first word of "shtool", so it can be a program name with args.
14535 set dummy shtool; ac_word=$2
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537 printf %s "checking for $ac_word... " >&6; }
14538 if test ${ac_cv_prog_SHTOOL+y}
14540 printf %s "(cached) " >&6
14542 if test -n "$SHTOOL"; then
14543 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14549 case $as_dir in #(((
14552 *) as_dir=$as_dir/ ;;
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14556 ac_cv_prog_SHTOOL="shtool"
14557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14566 SHTOOL=$ac_cv_prog_SHTOOL
14567 if test -n "$SHTOOL"; then
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
14569 printf "%s\n" "$SHTOOL" >&6; }
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 printf "%s\n" "no" >&6; }
14576 if test "$SHTOOL"; then
14577 case `$SHTOOL path $CC` in #(
14579 gcc_ccache=yes ;; #(
14585 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
14586 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
14589 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13"
14590 # Extract the first word of "lcov", so it can be a program name with args.
14591 set dummy lcov; ac_word=$2
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14593 printf %s "checking for $ac_word... " >&6; }
14594 if test ${ac_cv_prog_LCOV+y}
14596 printf %s "(cached) " >&6
14598 if test -n "$LCOV"; then
14599 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14605 case $as_dir in #(((
14608 *) as_dir=$as_dir/ ;;
14610 for ac_exec_ext in '' $ac_executable_extensions; do
14611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14612 ac_cv_prog_LCOV="lcov"
14613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14622 LCOV=$ac_cv_prog_LCOV
14623 if test -n "$LCOV"; then
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14625 printf "%s\n" "$LCOV" >&6; }
14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 printf "%s\n" "no" >&6; }
14632 # Extract the first word of "genhtml", so it can be a program name with args.
14633 set dummy genhtml; ac_word=$2
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14635 printf %s "checking for $ac_word... " >&6; }
14636 if test ${ac_cv_prog_GENHTML+y}
14638 printf %s "(cached) " >&6
14640 if test -n "$GENHTML"; then
14641 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14647 case $as_dir in #(((
14650 *) as_dir=$as_dir/ ;;
14652 for ac_exec_ext in '' $ac_executable_extensions; do
14653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14654 ac_cv_prog_GENHTML="genhtml"
14655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14664 GENHTML=$ac_cv_prog_GENHTML
14665 if test -n "$GENHTML"; then
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14667 printf "%s\n" "$GENHTML" >&6; }
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 printf "%s\n" "no" >&6; }
14675 if test "$LCOV"; then
14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14677 printf %s "checking for lcov version... " >&6; }
14678 if test ${glib_cv_lcov_version+y}
14680 printf %s "(cached) " >&6
14683 glib_cv_lcov_version=invalid
14684 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14685 for lcov_check_version in $lcov_version_list; do
14686 if test "$lcov_version" = "$lcov_check_version"; then
14687 glib_cv_lcov_version="$lcov_check_version (ok)"
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glib_cv_lcov_version" >&5
14693 printf "%s\n" "$glib_cv_lcov_version" >&6; }
14695 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14696 as_fn_error $? "$lcov_msg" "$LINENO" 5
14699 case $glib_cv_lcov_version in
14701 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14702 as_fn_error $? "$lcov_msg" "$LINENO" 5
14707 if test -z "$GENHTML"; then
14708 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14711 # Remove all optimization flags from CFLAGS
14713 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
14714 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-O[0-9]*//g'`
14717 # Add the special gcc flags
14718 COVERAGE_CFLAGS="--coverage -DDEBUG"
14719 COVERAGE_CXXFLAGS="--coverage -DDEBUG"
14720 COVERAGE_LDFLAGS="--coverage -lgcov"
14729 HAVE_GCOV_FALSE='#'
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14738 printf %s "checking for inline... " >&6; }
14739 if test ${ac_cv_c_inline+y}
14741 printf %s "(cached) " >&6
14744 for ac_kw in inline __inline__ __inline; do
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14747 #ifndef __cplusplus
14749 static $ac_kw foo_t static_foo (void) {return 0; }
14750 $ac_kw foo_t foo (void) {return 0; }
14754 if ac_fn_c_try_compile "$LINENO"
14756 ac_cv_c_inline=$ac_kw
14758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14759 test "$ac_cv_c_inline" != no && break
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14764 printf "%s\n" "$ac_cv_c_inline" >&6; }
14766 case $ac_cv_c_inline in
14769 case $ac_cv_c_inline in
14771 *) ac_val=$ac_cv_c_inline;;
14773 cat >>confdefs.h <<_ACEOF
14774 #ifndef __cplusplus
14775 #define inline $ac_val
14782 # We need to compile and run a program on the build machine.
14783 # The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
14786 printf %s "checking for cc for build... " >&6; }
14787 if test "$cross_compiling" = "yes"; then
14788 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
14790 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14793 printf "%s\n" "$CC_FOR_BUILD" >&6; }
14797 # This is handy for debugging so the compiler doesn't rearrange
14798 # things and eliminate variables.
14799 # Check whether --enable-optimization was given.
14800 if test ${enable_optimization+y}
14802 enableval=$enable_optimization; if test $enableval = no ; then
14803 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
14808 if test "$GCC" = yes; then
14809 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
14811 if test "$USE_MAINTAINER_MODE" = "yes"; then
14812 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
14814 # We use -W only if -Wno-missing-field-initializers is supported.
14815 # -W is important because it detects errors like "if (foo);"
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
14817 printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
14818 _gcc_cflags_save=$CFLAGS
14819 CFLAGS="-Wno-missing-field-initializers"
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14831 if ac_fn_c_try_compile "$LINENO"
14837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14839 printf "%s\n" "$_gcc_wopt" >&6; }
14840 CFLAGS=$_gcc_cflags_save;
14841 if test x"$_gcc_wopt" = xyes ; then
14842 CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
14846 printf %s "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
14847 _gcc_cflags_save=$CFLAGS
14848 CFLAGS="-Wdeclaration-after-statement"
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14860 if ac_fn_c_try_compile "$LINENO"
14866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14868 printf "%s\n" "$_gcc_wopt" >&6; }
14869 CFLAGS=$_gcc_cflags_save;
14870 if test x"$_gcc_wopt" = xyes ; then
14871 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
14876 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
14877 _gcc_cflags_save=$CFLAGS
14878 CFLAGS="-Wpointer-arith"
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14890 if ac_fn_c_try_compile "$LINENO"
14896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
14898 printf "%s\n" "$_gcc_wopt" >&6; }
14899 CFLAGS=$_gcc_cflags_save;
14900 if test x"$_gcc_wopt" = xyes ; then
14901 CFLAGS="$CFLAGS -Wpointer-arith"
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
14905 printf %s "checking if gcc supports -Wno-pointer-sign... " >&6; }
14906 _gcc_cflags_save=$CFLAGS
14907 CFLAGS="-Wno-pointer-sign"
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14919 if ac_fn_c_try_compile "$LINENO"
14925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
14927 printf "%s\n" "$_gcc_psign" >&6; }
14928 CFLAGS=$_gcc_cflags_save;
14929 if test x"$_gcc_psign" = xyes ; then
14930 CFLAGS="$CFLAGS -Wno-pointer-sign"
14935 # Setup some stuff depending on host.
14937 have_w32ce_system=no
14940 have_w32_system=yes
14941 have_w32ce_system=yes
14944 have_w32_system=yes
14948 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
14954 if test "$have_w32_system" = yes; then
14956 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
14959 if test "$have_w32_system" = yes; then
14960 HAVE_W32_SYSTEM_TRUE=
14961 HAVE_W32_SYSTEM_FALSE='#'
14963 HAVE_W32_SYSTEM_TRUE='#'
14964 HAVE_W32_SYSTEM_FALSE=
14969 # For some systems we know that we have ld_version scripts.
14970 # Use it then as default.
14971 have_ld_version_script=no
14974 have_ld_version_script=yes
14977 have_ld_version_script=yes
14980 # Check whether --enable-ld-version-script was given.
14981 if test ${enable_ld_version_script+y}
14983 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
14988 if test "$have_ld_version_script" = "yes"; then
14989 HAVE_LD_VERSION_SCRIPT_TRUE=
14990 HAVE_LD_VERSION_SCRIPT_FALSE='#'
14992 HAVE_LD_VERSION_SCRIPT_TRUE='#'
14993 HAVE_LD_VERSION_SCRIPT_FALSE=
14998 # Specify how we support our local modification of libtool for Windows
14999 # 64-bit. Options are:
15001 # (1) apply: when appying patch fails, it results failure of entire build
15002 # (2) never: never apply the patch (no try)
15003 # (3) try: use patched if it goes well, use original if fails
15006 # Check whether --with-libtool-modification was given.
15007 if test ${with_libtool_modification+y}
15009 withval=$with_libtool_modification; build_libtool_modification=$withval
15011 build_libtool_modification=never
15016 # Apply a patch (locally maintained one of ours) to libtool
15020 ac_config_commands="$ac_config_commands libtool-patch"
15028 # Check for ELF visibility support.
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
15031 printf %s "checking whether the visibility attribute is supported... " >&6; }
15032 if test ${ksba_cv_visibility_attribute+y}
15034 printf %s "(cached) " >&6
15036 ksba_cv_visibility_attribute=no
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039 int foo __attribute__ ((visibility ("hidden"))) = 1;
15040 int bar __attribute__ ((visibility ("protected"))) = 1;
15044 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15046 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
15047 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
15048 ksba_cv_visibility_attribute=yes
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
15055 printf "%s\n" "$ksba_cv_visibility_attribute" >&6; }
15056 if test "$ksba_cv_visibility_attribute" = "yes"; then
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
15058 printf %s "checking for broken visibility attribute... " >&6; }
15059 if test ${ksba_cv_broken_visibility_attribute+y}
15061 printf %s "(cached) " >&6
15063 ksba_cv_broken_visibility_attribute=yes
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15067 int bar (int x) __asm__ ("foo")
15068 __attribute__ ((visibility ("hidden")));
15069 int bar (int x) { return x; }
15073 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15075 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
15077 ksba_cv_broken_visibility_attribute=no
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
15083 printf "%s\n" "$ksba_cv_broken_visibility_attribute" >&6; }
15085 if test "$ksba_cv_visibility_attribute" = "yes"; then
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
15087 printf %s "checking for broken alias attribute... " >&6; }
15088 if test ${ksba_cv_broken_alias_attribute+y}
15090 printf %s "(cached) " >&6
15092 ksba_cv_broken_alias_attribute=yes
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 extern int foo (int x) __asm ("xyzzy");
15096 int bar (int x) { return x; }
15097 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
15099 extern __typeof (dfoo) dfoo __asm ("abccb");
15104 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15106 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
15107 grep 'abccb' conftest.s >/dev/null 2>&1; then
15108 ksba_cv_broken_alias_attribute=no
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
15114 printf "%s\n" "$ksba_cv_broken_alias_attribute" >&6; }
15116 if test "$ksba_cv_visibility_attribute" = "yes"; then
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
15118 printf %s "checking if gcc supports -fvisibility=hidden... " >&6; }
15119 if test ${ksba_cv_gcc_has_f_visibility+y}
15121 printf %s "(cached) " >&6
15123 ksba_cv_gcc_has_f_visibility=no
15124 _gcc_cflags_save=$CFLAGS
15125 CFLAGS="-fvisibility=hidden"
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15137 if ac_fn_c_try_compile "$LINENO"
15139 ksba_cv_gcc_has_f_visibility=yes
15141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15142 CFLAGS=$_gcc_cflags_save;
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
15146 printf "%s\n" "$ksba_cv_gcc_has_f_visibility" >&6; }
15148 if test "$ksba_cv_visibility_attribute" = "yes" \
15149 && test "$ksba_cv_broken_visibility_attribute" != "yes" \
15150 && test "$ksba_cv_broken_alias_attribute" != "yes" \
15151 && test "$ksba_cv_gcc_has_f_visibility" = "yes"
15154 printf "%s\n" "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
15156 CFLAGS="$CFLAGS -fvisibility=hidden"
15161 # Checks for libraries.
15163 gpg_error_config_prefix=""
15165 # Check whether --with-libgpg-error-prefix was given.
15166 if test ${with_libgpg_error_prefix+y}
15168 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
15173 # Check whether --with-gpg-error-prefix was given.
15174 if test ${with_gpg_error_prefix+y}
15176 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
15180 if test x"${GPG_ERROR_CONFIG}" = x ; then
15181 if test x"${gpg_error_config_prefix}" != x ; then
15182 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
15184 case "${SYSROOT}" in
15186 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
15187 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
15194 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
15200 # Extract the first word of "gpg-error-config", so it can be a program name with args.
15201 set dummy gpg-error-config; ac_word=$2
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15203 printf %s "checking for $ac_word... " >&6; }
15204 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
15206 printf %s "(cached) " >&6
15208 case $GPG_ERROR_CONFIG in
15210 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
15213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15214 for as_dir in $PATH
15217 case $as_dir in #(((
15220 *) as_dir=$as_dir/ ;;
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15224 ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
15225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15232 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
15236 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
15237 if test -n "$GPG_ERROR_CONFIG"; then
15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
15239 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 printf "%s\n" "no" >&6; }
15247 # Extract the first word of "gpgrt-config", so it can be a program name with args.
15248 set dummy gpgrt-config; ac_word=$2
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15250 printf %s "checking for $ac_word... " >&6; }
15251 if test ${ac_cv_path_GPGRT_CONFIG+y}
15253 printf %s "(cached) " >&6
15255 case $GPGRT_CONFIG in
15257 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
15260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261 as_dummy="$prefix/bin:$PATH"
15262 for as_dir in $as_dummy
15265 case $as_dir in #(((
15268 *) as_dir=$as_dir/ ;;
15270 for ac_exec_ext in '' $ac_executable_extensions; do
15271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15272 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15280 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
15284 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
15285 if test -n "$GPGRT_CONFIG"; then
15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
15287 printf "%s\n" "$GPGRT_CONFIG" >&6; }
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 printf "%s\n" "no" >&6; }
15294 if test "$GPGRT_CONFIG" != "no"; then
15295 # Determine gpgrt_libdir
15297 # Get the prefix of gpgrt-config assuming it's something like:
15298 # <PREFIX>/bin/gpgrt-config
15299 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
15300 possible_libdir1=${gpgrt_prefix}/lib
15301 # Determine by using system libdir-format with CC, it's like:
15302 # Normal style: /usr/lib
15303 # GNU cross style: /usr/<triplet>/lib
15304 # Debian style: /usr/lib/<multiarch-name>
15305 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
15306 # It is assumed that CC is specified to the one of host on cross build.
15307 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
15308 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
15310 # From the output of -print-search-dirs, select valid pkgconfig dirs.
15311 libdir_candidates=$(for dir in $libdir_candidates; do
15312 if p=$(cd $dir 2>/dev/null && pwd); then
15313 test -d "$p/pkgconfig" && echo $p;
15317 for possible_libdir0 in $libdir_candidates; do
15318 # possible_libdir0:
15319 # Fallback candidate, the one of system-installed (by $CC)
15320 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
15321 # possible_libdir1:
15322 # Another candidate, user-locally-installed
15323 # (<gpgrt_prefix>/lib)
15326 # (<gpgrt_prefix>/<triplet>/lib,
15327 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
15328 if test "${possible_libdir0##*/}" = "lib"; then
15329 possible_prefix0=${possible_libdir0%/lib}
15330 possible_prefix0_triplet=${possible_prefix0##*/}
15331 if test -z "$possible_prefix0_triplet"; then
15334 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
15336 possible_prefix0=${possible_libdir0%%/lib*}
15337 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
15339 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
15340 gpgrt_libdir=${possible_libdir2}
15341 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
15342 gpgrt_libdir=${possible_libdir1}
15343 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
15344 gpgrt_libdir=${possible_libdir0}
15346 if test -n "$gpgrt_libdir"; then break; fi
15349 if test -z "$gpgrt_libdir"; then
15350 # No valid pkgconfig dir in any of the system directories, fallback
15351 gpgrt_libdir=${possible_libdir1}
15357 if test -n "$gpgrt_libdir"; then
15358 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
15359 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
15360 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
15362 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
15363 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
15365 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
15368 elif test "$GPG_ERROR_CONFIG" != "no"; then
15369 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
15373 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
15375 if test "$GPG_ERROR_CONFIG" != "no"; then
15376 req_major=`echo $min_gpg_error_version | \
15377 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
15378 req_minor=`echo $min_gpg_error_version | \
15379 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
15380 major=`echo $gpg_error_config_version | \
15381 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
15382 minor=`echo $gpg_error_config_version | \
15383 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
15384 if test "$major" -gt "$req_major"; then
15387 if test "$major" -eq "$req_major"; then
15388 if test "$minor" -ge "$req_minor"; then
15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
15395 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
15396 if test $ok = yes; then
15397 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
15398 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
15399 if test -z "$GPGRT_CONFIG"; then
15400 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
15401 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
15403 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
15404 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
15405 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
15406 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
15409 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
15411 if test -z "$GPGRT_CONFIG"; then
15412 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
15414 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
15416 if test x"$gpg_error_config_host" != xnone ; then
15417 if test x"$gpg_error_config_host" != x"$host" ; then
15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15420 *** The config script \"$GPG_ERROR_CONFIG\" was
15421 *** built for $gpg_error_config_host and thus may not match the
15422 *** used host $host.
15423 *** You may want to use the configure option --with-libgpg-error-prefix
15424 *** to specify a matching config script or use \$SYSROOT.
15426 printf "%s\n" "$as_me: WARNING:
15428 *** The config script \"$GPG_ERROR_CONFIG\" was
15429 *** built for $gpg_error_config_host and thus may not match the
15430 *** used host $host.
15431 *** You may want to use the configure option --with-libgpg-error-prefix
15432 *** to specify a matching config script or use \$SYSROOT.
15434 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
15438 GPG_ERROR_CFLAGS=""
15440 GPG_ERROR_MT_CFLAGS=""
15441 GPG_ERROR_MT_LIBS=""
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 printf "%s\n" "no" >&6; }
15451 if test "x$GPG_ERROR_LIBS" = "x"; then
15452 as_fn_error $? "libgpg-error is needed.
15453 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
15457 printf "%s\n" "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
15460 if test -n "$GPGRT_CONFIG" \
15461 -a "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
15462 USE_GPGRT_CONFIG_TRUE=
15463 USE_GPGRT_CONFIG_FALSE='#'
15465 USE_GPGRT_CONFIG_TRUE='#'
15466 USE_GPGRT_CONFIG_FALSE=
15470 # Checks for header files.
15472 # Checks for typedefs, structures, and compiler characteristics.
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15474 printf %s "checking for an ANSI C-conforming const... " >&6; }
15475 if test ${ac_cv_c_const+y}
15477 printf %s "(cached) " >&6
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h. */
15486 #ifndef __cplusplus
15487 /* Ultrix mips cc rejects this sort of thing. */
15488 typedef int charset[2];
15489 const charset cs = { 0, 0 };
15490 /* SunOS 4.1.1 cc rejects this. */
15491 char const *const *pcpcc;
15493 /* NEC SVR4.0.2 mips cc rejects this. */
15494 struct point {int x, y;};
15495 static struct point const zero = {0,0};
15496 /* IBM XL C 1.02.0.0 rejects this.
15497 It does not let you subtract one const X* pointer from another in
15498 an arm of an if-expression whose if-part is not a constant
15500 const char *g = "string";
15501 pcpcc = &g + (g ? g-g : 0);
15502 /* HPUX 7.0 cc rejects these. */
15504 ppc = (char**) pcpcc;
15505 pcpcc = (char const *const *) ppc;
15506 { /* SCO 3.2v4 cc rejects this sort of thing. */
15509 char const *s = 0 ? (char *) 0 : (char const *) 0;
15514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15515 int x[] = {25, 17};
15516 const int *foo = &x[0];
15519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15520 typedef const int *iptr;
15524 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15526 struct s { int j; const int *ap[3]; } bx;
15527 struct s *b = &bx; b->j = 5;
15529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15530 const int foo = 10;
15531 if (!foo) return 0;
15533 return !cs[0] && !zero.x;
15540 if ac_fn_c_try_compile "$LINENO"
15546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15549 printf "%s\n" "$ac_cv_c_const" >&6; }
15550 if test $ac_cv_c_const = no; then
15552 printf "%s\n" "#define const /**/" >>confdefs.h
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15558 printf %s "checking whether byte ordering is bigendian... " >&6; }
15559 if test ${ac_cv_c_bigendian+y}
15561 printf %s "(cached) " >&6
15563 ac_cv_c_bigendian=unknown
15564 # See if we're dealing with a universal compiler.
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15567 #ifndef __APPLE_CC__
15568 not a universal capable compiler
15573 if ac_fn_c_try_compile "$LINENO"
15576 # Check for potential -arch flags. It is not universal unless
15577 # there are at least two -arch flags with different values.
15580 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15581 if test -n "$ac_prev"; then
15583 i?86 | x86_64 | ppc | ppc64)
15584 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15587 ac_cv_c_bigendian=universal
15593 elif test "x$ac_word" = "x-arch"; then
15598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15599 if test $ac_cv_c_bigendian = unknown; then
15600 # See if sys/param.h defines the BYTE_ORDER macro.
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #include <sys/types.h>
15604 #include <sys/param.h>
15609 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15610 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15612 bogus endian macros
15619 if ac_fn_c_try_compile "$LINENO"
15621 # It does; now see whether it defined to BIG_ENDIAN or not.
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <sys/types.h>
15625 #include <sys/param.h>
15630 #if BYTE_ORDER != BIG_ENDIAN
15638 if ac_fn_c_try_compile "$LINENO"
15640 ac_cv_c_bigendian=yes
15642 ac_cv_c_bigendian=no
15644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15648 if test $ac_cv_c_bigendian = unknown; then
15649 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652 #include <limits.h>
15657 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15658 bogus endian macros
15665 if ac_fn_c_try_compile "$LINENO"
15667 # It does; now see whether it defined to _BIG_ENDIAN or not.
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 #include <limits.h>
15675 #ifndef _BIG_ENDIAN
15683 if ac_fn_c_try_compile "$LINENO"
15685 ac_cv_c_bigendian=yes
15687 ac_cv_c_bigendian=no
15689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15693 if test $ac_cv_c_bigendian = unknown; then
15694 # Compile a test program.
15695 if test "$cross_compiling" = yes
15697 # Try to guess by grepping values from an object file.
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700 unsigned short int ascii_mm[] =
15701 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15702 unsigned short int ascii_ii[] =
15703 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15704 int use_ascii (int i) {
15705 return ascii_mm[i] + ascii_ii[i];
15707 unsigned short int ebcdic_ii[] =
15708 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15709 unsigned short int ebcdic_mm[] =
15710 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15711 int use_ebcdic (int i) {
15712 return ebcdic_mm[i] + ebcdic_ii[i];
15719 return use_ascii (foo) == use_ebcdic (foo);
15724 if ac_fn_c_try_compile "$LINENO"
15726 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15727 ac_cv_c_bigendian=yes
15729 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15730 if test "$ac_cv_c_bigendian" = unknown; then
15731 ac_cv_c_bigendian=no
15733 # finding both strings is unlikely to happen, but who knows?
15734 ac_cv_c_bigendian=unknown
15738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15742 $ac_includes_default
15747 /* Are we little or big endian? From Harbison&Steele. */
15751 char c[sizeof (long int)];
15754 return u.c[sizeof (long int) - 1] == 1;
15760 if ac_fn_c_try_run "$LINENO"
15762 ac_cv_c_bigendian=no
15764 ac_cv_c_bigendian=yes
15766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15767 conftest.$ac_objext conftest.beam conftest.$ac_ext
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15773 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
15774 case $ac_cv_c_bigendian in #(
15776 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
15782 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15786 as_fn_error $? "unknown endianness
15787 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15791 # The cast to long int works around a bug in the HP C Compiler
15792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15794 # This bug is HP SR number 8606223364.
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15796 printf %s "checking size of unsigned int... " >&6; }
15797 if test ${ac_cv_sizeof_unsigned_int+y}
15799 printf %s "(cached) " >&6
15801 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
15805 if test "$ac_cv_type_unsigned_int" = yes; then
15806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15808 as_fn_error 77 "cannot compute sizeof (unsigned int)
15809 See \`config.log' for more details" "$LINENO" 5; }
15811 ac_cv_sizeof_unsigned_int=0
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15817 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
15821 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
15824 # The cast to long int works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15829 printf %s "checking size of unsigned long... " >&6; }
15830 if test ${ac_cv_sizeof_unsigned_long+y}
15832 printf %s "(cached) " >&6
15834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
15838 if test "$ac_cv_type_unsigned_long" = yes; then
15839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15840 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15841 as_fn_error 77 "cannot compute sizeof (unsigned long)
15842 See \`config.log' for more details" "$LINENO" 5; }
15844 ac_cv_sizeof_unsigned_long=0
15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15850 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
15854 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
15857 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
15858 if test "x$ac_cv_type_u32" = xyes
15861 printf "%s\n" "#define HAVE_U32 1" >>confdefs.h
15868 # Checks for library functions.
15869 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
15870 if test "x$ac_cv_func_stpcpy" = xyes
15872 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
15875 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15876 if test "x$ac_cv_func_gmtime_r" = xyes
15878 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15881 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
15882 if test "x$ac_cv_func_getenv" = xyes
15884 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
15894 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15895 if test "x$ac_cv_type_size_t" = xyes
15900 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15904 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15905 # for constant arguments. Useless!
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15907 printf %s "checking for working alloca.h... " >&6; }
15908 if test ${ac_cv_working_alloca_h+y}
15910 printf %s "(cached) " >&6
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 #include <alloca.h>
15918 char *p = (char *) alloca (2 * sizeof (int));
15924 if ac_fn_c_try_link "$LINENO"
15926 ac_cv_working_alloca_h=yes
15928 ac_cv_working_alloca_h=no
15930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15931 conftest$ac_exeext conftest.$ac_ext
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15934 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
15935 if test $ac_cv_working_alloca_h = yes; then
15937 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15942 printf %s "checking for alloca... " >&6; }
15943 if test ${ac_cv_func_alloca_works+y}
15945 printf %s "(cached) " >&6
15947 if test $ac_cv_working_alloca_h = yes; then
15948 ac_cv_func_alloca_works=yes
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 #include <stdlib.h>
15953 #include <stddef.h>
15956 # define alloca __builtin_alloca
15957 # elif defined _MSC_VER
15958 # include <malloc.h>
15959 # define alloca _alloca
15961 # ifdef __cplusplus
15964 void *alloca (size_t);
15971 char *p = (char *) alloca (1);
15977 if ac_fn_c_try_link "$LINENO"
15979 ac_cv_func_alloca_works=yes
15981 ac_cv_func_alloca_works=no
15983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15984 conftest$ac_exeext conftest.$ac_ext
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15987 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
15990 if test $ac_cv_func_alloca_works = yes; then
15992 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15996 # that cause trouble. Some versions do not even contain alloca or
15997 # contain a buggy version. If you still want to use their alloca,
15998 # use ar to extract alloca.o from them instead of compiling alloca.c.
16000 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16002 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16006 printf %s "checking stack direction for C alloca... " >&6; }
16007 if test ${ac_cv_c_stack_direction+y}
16009 printf %s "(cached) " >&6
16011 if test "$cross_compiling" = yes
16013 ac_cv_c_stack_direction=0
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 $ac_includes_default
16019 find_stack_direction (int *addr, int depth)
16021 int dir, dummy = 0;
16024 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16025 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16026 return dir + dummy;
16030 main (int argc, char **argv)
16032 return find_stack_direction (0, argc + !argv + 20) < 0;
16035 if ac_fn_c_try_run "$LINENO"
16037 ac_cv_c_stack_direction=1
16039 ac_cv_c_stack_direction=-1
16041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16042 conftest.$ac_objext conftest.beam conftest.$ac_ext
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16047 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16048 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16055 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
16062 if test $ac_cv_func_alloca_works = no; then
16066 # Define an additional variable used in the Makefile substitution.
16067 if test $ac_cv_working_alloca_h = yes; then
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16071 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16077 $EGREP "Need own alloca" >/dev/null 2>&1
16080 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16094 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16098 # Check whether --enable-valgrind-tests was given.
16099 if test ${enable_valgrind_tests+y}
16101 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
16103 opt_valgrind_tests=yes
16107 # Run self-tests under valgrind?
16108 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
16109 for ac_prog in valgrind
16111 # Extract the first word of "$ac_prog", so it can be a program name with args.
16112 set dummy $ac_prog; ac_word=$2
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 printf %s "checking for $ac_word... " >&6; }
16115 if test ${ac_cv_prog_VALGRIND+y}
16117 printf %s "(cached) " >&6
16119 if test -n "$VALGRIND"; then
16120 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16126 case $as_dir in #(((
16129 *) as_dir=$as_dir/ ;;
16131 for ac_exec_ext in '' $ac_executable_extensions; do
16132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16133 ac_cv_prog_VALGRIND="$ac_prog"
16134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16143 VALGRIND=$ac_cv_prog_VALGRIND
16144 if test -n "$VALGRIND"; then
16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
16146 printf "%s\n" "$VALGRIND" >&6; }
16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 printf "%s\n" "no" >&6; }
16153 test -n "$VALGRIND" && break
16158 OPTS="-q --error-exitcode=1 --leak-check=full"
16160 if test -n "$VALGRIND" \
16161 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
16162 opt_valgrind_tests=yes
16163 VALGRIND="$VALGRIND $OPTS"
16165 opt_valgrind_tests=no
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
16170 printf %s "checking whether self tests are run under valgrind... " >&6; }
16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
16172 printf "%s\n" "$opt_valgrind_tests" >&6; }
16176 # To be used in ksba-config
16177 KSBA_CONFIG_LIBS="-lksba"
16178 KSBA_CONFIG_CFLAGS=""
16179 KSBA_CONFIG_HOST="$host"
16185 # The Makefiles need to know about cross compiling
16186 if test x$cross_compiling != xno; then
16187 CROSS_COMPILING_TRUE=
16188 CROSS_COMPILING_FALSE='#'
16190 CROSS_COMPILING_TRUE='#'
16191 CROSS_COMPILING_FALSE=
16196 # Generate extended version information for W32.
16197 if test "$have_w32_system" = yes; then
16198 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
16199 BUILD_FILEVERSION="${BUILD_FILEVERSION}31550"
16203 BUILD_REVISION="7b3e478"
16206 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
16209 # Check whether --enable-build-timestamp was given.
16210 if test ${enable_build_timestamp+y}
16212 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16213 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16215 BUILD_TIMESTAMP="$enableval"
16218 BUILD_TIMESTAMP="<none>"
16223 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
16227 # Check whether --enable-doc was given.
16228 if test ${enable_doc+y}
16230 enableval=$enable_doc; build_doc=$enableval
16235 if test "x$build_doc" != xno; then
16237 BUILD_DOC_FALSE='#'
16245 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"
16247 cat >confcache <<\_ACEOF
16248 # This file is a shell script that caches the results of configure
16249 # tests run on this system so they can be shared between configure
16250 # scripts and configure runs, see configure's option --config-cache.
16251 # It is not useful on other systems. If it contains results you don't
16252 # want to keep, you may remove or edit it.
16254 # config.status only pays attention to the cache file if you give it
16255 # the --recheck option to rerun configure.
16257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16259 # following values.
16263 # The following way of writing the cache mishandles newlines in values,
16264 # but we know of no workaround that is simple, portable, and efficient.
16265 # So, we kill variables containing newlines.
16266 # Ultrix sh set writes to stderr and can't be redirected directly,
16267 # and sets the high bit in the cache file unless we assign to the vars.
16269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16270 eval ac_val=\$$ac_var
16274 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16275 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16278 _ | IFS | as_nl) ;; #(
16279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16280 *) { eval $ac_var=; unset $ac_var;} ;;
16286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16287 *${as_nl}ac_space=\ *)
16288 # `set' does not quote correctly, so add quotes: double-quote
16289 # substitution turns \\\\ into \\, and sed turns \\ into \.
16292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16295 # `set' quotes correctly as required by POSIX, so do not add quotes.
16296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16305 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16310 if test -w "$cache_file"; then
16311 if test "x$cache_file" != "x/dev/null"; then
16312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16313 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16314 if test ! -f "$cache_file" || test -h "$cache_file"; then
16315 cat confcache >"$cache_file"
16317 case $cache_file in #(
16319 mv -f confcache "$cache_file"$$ &&
16320 mv -f "$cache_file"$$ "$cache_file" ;; #(
16322 mv -f confcache "$cache_file" ;;
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16328 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16334 # Let make expand exec_prefix.
16335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16337 DEFS=-DHAVE_CONFIG_H
16342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16343 # 1. Remove the extension, and $U if already installed.
16344 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16345 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16346 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16347 # will be set to the directory where LIBOBJS objects are built.
16348 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16349 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16351 LIBOBJS=$ac_libobjs
16353 LTLIBOBJS=$ac_ltlibobjs
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16357 printf %s "checking that generated files are newer than configure... " >&6; }
16358 if test -n "$am_sleep_pid"; then
16359 # Hide warnings about reused PIDs.
16360 wait $am_sleep_pid 2>/dev/null
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16363 printf "%s\n" "done" >&6; }
16364 if test -n "$EXEEXT"; then
16366 am__EXEEXT_FALSE='#'
16368 am__EXEEXT_TRUE='#'
16372 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16373 as_fn_error $? "conditional \"AMDEP\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16380 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16381 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16384 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16385 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16388 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
16389 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
16393 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16397 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16401 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
16405 as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16409 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16410 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16413 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16414 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16418 : "${CONFIG_STATUS=./config.status}"
16420 ac_clean_files_save=$ac_clean_files
16421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16423 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16427 # Generated by $as_me.
16428 # Run this file to recreate the current configuration.
16429 # Compiler output produced by configure, useful for debugging
16430 # configure, is in config.log if it exists.
16433 ac_cs_recheck=false
16436 SHELL=\${CONFIG_SHELL-$SHELL}
16439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16440 ## -------------------- ##
16441 ## M4sh Initialization. ##
16442 ## -------------------- ##
16444 # Be more Bourne compatible
16445 DUALCASE=1; export DUALCASE # for MKS sh
16447 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16451 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16452 # is contrary to our usage. Disable this feature.
16453 alias -g '${1+"$@"}'='"$@"'
16454 setopt NO_GLOB_SUBST
16456 case `(set -o) 2>/dev/null` in #(
16466 # Reset variables that may have inherited troublesome values from
16469 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16470 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16471 # side effect of setting IFS to empty, thus disabling word splitting.)
16472 # Quoting is to prevent editors from complaining about space-tab.
16482 # Ensure predictable behavior from utilities with locale-dependent output.
16488 # We cannot yet rely on "unset" to work, but we need these variables
16489 # to be unset--not just set to an empty or harmless value--now, to
16490 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16491 # also avoids known problems related to "unset" and subshell syntax
16492 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16493 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16494 do eval test \${$as_var+y} \
16495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16498 # Ensure that fds 0, 1, and 2 are open.
16499 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16500 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16501 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16503 # The user is always right.
16504 if ${PATH_SEPARATOR+false} :; then
16506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16507 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16513 # Find who we are. Look in the path if we contain no directory separator.
16516 *[\\/]* ) as_myself=$0 ;;
16517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16518 for as_dir in $PATH
16521 case $as_dir in #(((
16524 *) as_dir=$as_dir/ ;;
16526 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16532 # We did not find ourselves, most probably we were run as `sh COMMAND'
16533 # in which case we are not to be found in the path.
16534 if test "x$as_myself" = x; then
16537 if test ! -f "$as_myself"; then
16538 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16544 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16545 # ----------------------------------------
16546 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16547 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16548 # script with STATUS, using 1 if that was 0.
16551 as_status=$1; test $as_status -eq 0 && as_status=1
16553 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16556 printf "%s\n" "$as_me: error: $2" >&2
16557 as_fn_exit $as_status
16562 # as_fn_set_status STATUS
16563 # -----------------------
16564 # Set $? to STATUS, without forking.
16565 as_fn_set_status ()
16568 } # as_fn_set_status
16570 # as_fn_exit STATUS
16571 # -----------------
16572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16576 as_fn_set_status $1
16582 # Portably unset VAR.
16585 { eval $1=; unset $1;}
16587 as_unset=as_fn_unset
16589 # as_fn_append VAR VALUE
16590 # ----------------------
16591 # Append the text in VALUE to the end of the definition contained in VAR. Take
16592 # advantage of any shell optimizations that allow amortized linear growth over
16593 # repeated appends, instead of the typical quadratic growth present in naive
16595 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16597 eval 'as_fn_append ()
16608 # as_fn_arith ARG...
16609 # ------------------
16610 # Perform arithmetic evaluation on the ARGs, and store the result in the
16611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16612 # must be portable across $(()) and expr.
16613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16615 eval 'as_fn_arith ()
16622 as_val=`expr "$@" || test $? -eq 1`
16627 if expr a : '\(a\)' >/dev/null 2>&1 &&
16628 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16634 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16635 as_basename=basename
16640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16646 as_me=`$as_basename -- "$0" ||
16647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16648 X"$0" : 'X\(//\)$' \| \
16649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16650 printf "%s\n" X/"$0" |
16651 sed '/^.*\/\([^/][^/]*\)\/*$/{
16665 # Avoid depending upon Character Ranges.
16666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16669 as_cr_digits='0123456789'
16670 as_cr_alnum=$as_cr_Letters$as_cr_digits
16673 # Determine whether it's possible to make 'echo' print without a newline.
16674 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16675 # for compatibility with existing Makefiles.
16676 ECHO_C= ECHO_N= ECHO_T=
16677 case `echo -n x` in #(((((
16679 case `echo 'xy\c'` in
16680 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16682 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16689 # For backward compatibility with old third-party macros, we provide
16690 # the shell variables $as_echo and $as_echo_n. New code should use
16691 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16692 as_echo='printf %s\n'
16693 as_echo_n='printf %s'
16695 rm -f conf$$ conf$$.exe conf$$.file
16696 if test -d conf$$.dir; then
16697 rm -f conf$$.dir/conf$$.file
16700 mkdir conf$$.dir 2>/dev/null
16702 if (echo >conf$$.file) 2>/dev/null; then
16703 if ln -s conf$$.file conf$$ 2>/dev/null; then
16705 # ... but there are two gotchas:
16706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16708 # In both cases, we have to default to `cp -pR'.
16709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16711 elif ln conf$$.file conf$$ 2>/dev/null; then
16719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16720 rmdir conf$$.dir 2>/dev/null
16725 # Create "$as_dir" as a directory, including parents if necessary.
16730 -*) as_dir=./$as_dir;;
16732 test -d "$as_dir" || eval $as_mkdir_p || {
16736 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16737 *) as_qdir=$as_dir;;
16739 as_dirs="'$as_qdir' $as_dirs"
16740 as_dir=`$as_dirname -- "$as_dir" ||
16741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16742 X"$as_dir" : 'X\(//\)[^/]' \| \
16743 X"$as_dir" : 'X\(//\)$' \| \
16744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16745 printf "%s\n" X"$as_dir" |
16746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16750 /^X\(\/\/\)[^/].*/{
16763 test -d "$as_dir" && break
16765 test -z "$as_dirs" || eval "mkdir $as_dirs"
16766 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16770 if mkdir -p . 2>/dev/null; then
16771 as_mkdir_p='mkdir -p "$as_dir"'
16773 test -d ./-p && rmdir ./-p
16778 # as_fn_executable_p FILE
16779 # -----------------------
16780 # Test if FILE is an executable regular file.
16781 as_fn_executable_p ()
16783 test -f "$1" && test -x "$1"
16784 } # as_fn_executable_p
16785 as_test_x='test -x'
16786 as_executable_p=as_fn_executable_p
16788 # Sed expression to map a string onto a valid CPP name.
16789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16791 # Sed expression to map a string onto a valid variable name.
16792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16796 ## ----------------------------------- ##
16797 ## Main body of $CONFIG_STATUS script. ##
16798 ## ----------------------------------- ##
16800 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803 # Save the log message, to keep $0 and so on meaningful, and to
16804 # report actual input values of CONFIG_FILES etc. instead of their
16805 # values after options handling.
16807 This file was extended by libksba $as_me 1.6.5, which was
16808 generated by GNU Autoconf 2.71. Invocation command line was
16810 CONFIG_FILES = $CONFIG_FILES
16811 CONFIG_HEADERS = $CONFIG_HEADERS
16812 CONFIG_LINKS = $CONFIG_LINKS
16813 CONFIG_COMMANDS = $CONFIG_COMMANDS
16816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16821 case $ac_config_files in *"
16822 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16825 case $ac_config_headers in *"
16826 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 # Files that config.status was made for.
16832 config_files="$ac_config_files"
16833 config_headers="$ac_config_headers"
16834 config_commands="$ac_config_commands"
16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16840 \`$as_me' instantiates files and other configuration actions
16841 from templates according to the current configuration. Unless the files
16842 and actions are specified as TAGs, all are instantiated by default.
16844 Usage: $0 [OPTION]... [TAG]...
16846 -h, --help print this help, then exit
16847 -V, --version print version number and configuration settings, then exit
16848 --config print configuration, then exit
16849 -q, --quiet, --silent
16850 do not print progress messages
16851 -d, --debug don't remove temporary files
16852 --recheck update $as_me by reconfiguring in the same conditions
16853 --file=FILE[:TEMPLATE]
16854 instantiate the configuration file FILE
16855 --header=FILE[:TEMPLATE]
16856 instantiate the configuration header FILE
16858 Configuration files:
16861 Configuration headers:
16864 Configuration commands:
16867 Report bugs to <https://bugs.gnupg.org>."
16870 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16871 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873 ac_cs_config='$ac_cs_config_escaped'
16875 libksba config.status 1.6.5
16876 configured by $0, generated by GNU Autoconf 2.71,
16877 with options \\"\$ac_cs_config\\"
16879 Copyright (C) 2021 Free Software Foundation, Inc.
16880 This config.status script is free software; the Free Software Foundation
16881 gives unlimited permission to copy, distribute and modify it."
16888 test -n "\$AWK" || AWK=awk
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892 # The default lists apply if the user does not specify any file.
16898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16915 # Handling of the options.
16916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16919 printf "%s\n" "$ac_cs_version"; exit ;;
16920 --config | --confi | --conf | --con | --co | --c )
16921 printf "%s\n" "$ac_cs_config"; exit ;;
16922 --debug | --debu | --deb | --de | --d | -d )
16924 --file | --fil | --fi | --f )
16927 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16928 '') as_fn_error $? "missing file argument" ;;
16930 as_fn_append CONFIG_FILES " '$ac_optarg'"
16931 ac_need_defaults=false;;
16932 --header | --heade | --head | --hea )
16935 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16937 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16938 ac_need_defaults=false;;
16940 # Conflict between --help and --header
16941 as_fn_error $? "ambiguous option: \`$1'
16942 Try \`$0 --help' for more information.";;
16943 --help | --hel | -h )
16944 printf "%s\n" "$ac_cs_usage"; exit ;;
16945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16949 # This is an error.
16950 -*) as_fn_error $? "unrecognized option: \`$1'
16951 Try \`$0 --help' for more information." ;;
16953 *) as_fn_append ac_config_targets " $1"
16954 ac_need_defaults=false ;;
16960 ac_configure_extra_args=
16962 if $ac_cs_silent; then
16964 ac_configure_extra_args="$ac_configure_extra_args --silent"
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 if \$ac_cs_recheck; then
16970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16972 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16973 CONFIG_SHELL='$SHELL'
16974 export CONFIG_SHELL
16979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16984 ## Running $as_me. ##
16986 printf "%s\n" "$ac_log"
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16994 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16997 # The HP-UX ksh and POSIX shell print the target directory to stdout
16998 # if CDPATH is set.
16999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17001 sed_quote_subst='$sed_quote_subst'
17002 double_quote_subst='$double_quote_subst'
17003 delay_variable_subst='$delay_variable_subst'
17004 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17005 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17006 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17007 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17008 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17009 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17010 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17011 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17012 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17013 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17014 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17015 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17016 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17017 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17018 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17019 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17020 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17021 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17022 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17023 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17024 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17025 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17026 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17027 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17028 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17029 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17030 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17031 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17032 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17033 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17034 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17035 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17036 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17037 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17038 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17039 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17040 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17041 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17042 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17043 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17046 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17047 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17061 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"`'
17062 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17063 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17128 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17129 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17130 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17131 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17132 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17133 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17134 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17135 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17136 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17137 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17138 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17139 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17140 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17141 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17142 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17143 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17144 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17145 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17146 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17147 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17148 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17149 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17150 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17151 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17152 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17153 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17154 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17155 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17156 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17157 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17158 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17159 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17160 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17161 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17162 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17163 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17164 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17165 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17166 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17167 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17168 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17169 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17170 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17171 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17172 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17173 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17174 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17175 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17176 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17179 LTCFLAGS='$LTCFLAGS'
17180 compiler='$compiler_DEFAULT'
17182 # A function that is used when there is no print builtin or printf.
17183 func_fallback_echo ()
17185 eval 'cat <<_LTECHO_EOF
17190 # Quote evaled strings.
17207 deplibs_check_method \
17211 sharedlib_from_linklib_cmd \
17214 archiver_list_spec \
17220 lt_cv_sys_global_symbol_pipe \
17221 lt_cv_sys_global_symbol_to_cdecl \
17222 lt_cv_sys_global_symbol_to_c_name_address \
17223 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17224 nm_file_list_spec \
17225 lt_prog_compiler_no_builtin_flag \
17226 lt_prog_compiler_pic \
17227 lt_prog_compiler_wl \
17228 lt_prog_compiler_static \
17229 lt_cv_prog_compiler_c_o \
17238 export_dynamic_flag_spec \
17239 whole_archive_flag_spec \
17240 compiler_needs_object \
17242 allow_undefined_flag \
17243 no_undefined_flag \
17244 hardcode_libdir_flag_spec \
17245 hardcode_libdir_separator \
17249 variables_saved_for_relink \
17251 library_names_spec \
17253 install_override_mode \
17260 lt_prog_compiler_no_builtin_flag_RC \
17261 lt_prog_compiler_pic_RC \
17262 lt_prog_compiler_wl_RC \
17263 lt_prog_compiler_static_RC \
17264 lt_cv_prog_compiler_c_o_RC \
17265 export_dynamic_flag_spec_RC \
17266 whole_archive_flag_spec_RC \
17267 compiler_needs_object_RC \
17269 allow_undefined_flag_RC \
17270 no_undefined_flag_RC \
17271 hardcode_libdir_flag_spec_RC \
17272 hardcode_libdir_separator_RC \
17273 exclude_expsyms_RC \
17274 include_expsyms_RC \
17275 file_list_spec_RC; do
17276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17277 *[\\\\\\\`\\"\\\$]*)
17278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17286 # Double-quote double-evaled strings.
17287 for var in reload_cmds \
17288 old_postinstall_cmds \
17289 old_postuninstall_cmds \
17291 extract_expsyms_cmds \
17292 old_archive_from_new_cmds \
17293 old_archive_from_expsyms_cmds \
17295 archive_expsym_cmds \
17297 module_expsym_cmds \
17298 export_symbols_cmds \
17302 postuninstall_cmds \
17304 sys_lib_search_path_spec \
17305 sys_lib_dlsearch_path_spec \
17307 old_archive_cmds_RC \
17308 old_archive_from_new_cmds_RC \
17309 old_archive_from_expsyms_cmds_RC \
17311 archive_expsym_cmds_RC \
17313 module_expsym_cmds_RC \
17314 export_symbols_cmds_RC \
17316 postlink_cmds_RC; do
17317 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17318 *[\\\\\\\`\\"\\\$]*)
17319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17327 ac_aux_dir='$ac_aux_dir'
17328 xsi_shell='$xsi_shell'
17329 lt_shell_append='$lt_shell_append'
17331 # See if we are running on zsh, and set the options which allow our
17332 # commands through without removal of \ escapes INIT.
17333 if test -n "\${ZSH_VERSION+set}" ; then
17334 setopt NO_GLOB_SUBST
17340 TIMESTAMP='$TIMESTAMP'
17348 build_selection=$build_libtool_modification
17352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17354 # Handling of arguments.
17355 for ac_config_target in $ac_config_targets
17357 case $ac_config_target in
17358 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17359 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17360 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17361 "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;;
17362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17363 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17364 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
17365 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17366 "src/ksba.h") CONFIG_FILES="$CONFIG_FILES src/ksba.h" ;;
17367 "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
17368 "src/ksba.pc") CONFIG_FILES="$CONFIG_FILES src/ksba.pc" ;;
17369 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
17370 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17371 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17373 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17378 # If the user did not use the arguments to specify the items to instantiate,
17379 # then the envvar interface is used. Set only those that are not.
17380 # We use the long form for the default assignment because of an extremely
17381 # bizarre bug on SunOS 4.1.3.
17382 if $ac_need_defaults; then
17383 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17384 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17385 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17388 # Have a temporary directory for convenience. Make it in the build tree
17389 # simply because there is no reason against having it here, and in addition,
17390 # creating and moving files from /tmp can sometimes cause problems.
17391 # Hook for its removal unless debugging.
17392 # Note that there is a small window in which the directory will not be cleaned:
17393 # after its creation but before its name has been assigned to `$tmp'.
17397 trap 'exit_status=$?
17398 : "${ac_tmp:=$tmp}"
17399 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17401 trap 'as_fn_exit 1' 1 2 13 15
17403 # Create a (secure) tmp directory for tmp files.
17406 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17410 tmp=./conf$$-$RANDOM
17411 (umask 077 && mkdir "$tmp")
17412 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17415 # Set up the scripts for CONFIG_FILES section.
17416 # No need to generate them if there are no CONFIG_FILES.
17417 # This happens for instance with `./config.status config.h'.
17418 if test -n "$CONFIG_FILES"; then
17421 ac_cr=`echo X | tr X '\015'`
17422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17423 # But we know of no other shell where ac_cr would be empty at this
17424 # point, so we can use a bashism as a fallback.
17425 if test "x$ac_cr" = x; then
17426 eval ac_cr=\$\'\\r\'
17428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17432 ac_cs_awk_cr=$ac_cr
17435 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17440 echo "cat >conf$$subs.awk <<_ACEOF" &&
17441 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17443 } >conf$$subs.sh ||
17444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17445 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17447 for ac_last_try in false false false false false :; do
17448 . ./conf$$subs.sh ||
17449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17451 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17452 if test $ac_delim_n = $ac_delim_num; then
17454 elif $ac_last_try; then
17455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17460 rm -f conf$$subs.sh
17462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17463 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17467 s/^/S["/; s/!.*/"]=/
17477 s/\(.\{148\}\)..*/\1/
17479 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17491 s/\(.\{148\}\)..*/\1/
17493 s/["\\]/\\&/g; s/^/"/; s/$/"/
17497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17502 ' <conf$$subs.awk | sed '
17507 ' >>$CONFIG_STATUS || ac_write_fail=1
17508 rm -f conf$$subs.awk
17509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17511 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17512 for (key in S) S_is_set[key] = 1
17518 nfields = split(line, field, "@")
17520 len = length(field[1])
17521 for (i = 2; i < nfields; i++) {
17523 keylen = length(key)
17524 if (S_is_set[key]) {
17526 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17527 len += length(value) + length(field[++i])
17538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17539 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17540 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17543 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17544 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17547 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17548 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17549 # trailing colons and then remove the whole line if VPATH becomes empty
17550 # (actually we leave an empty line to preserve line numbers).
17551 if test "x$srcdir" = x.; then
17552 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17571 fi # test -n "$CONFIG_FILES"
17573 # Set up the scripts for CONFIG_HEADERS section.
17574 # No need to generate them if there are no CONFIG_HEADERS.
17575 # This happens for instance with `./config.status Makefile'.
17576 if test -n "$CONFIG_HEADERS"; then
17577 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17581 # Transform confdefs.h into an awk script `defines.awk', embedded as
17582 # here-document in config.status, that substitutes the proper values into
17583 # config.h.in to produce config.h.
17585 # Create a delimiter string that does not exist in confdefs.h, to ease
17586 # handling of long lines.
17588 for ac_last_try in false false :; do
17589 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17590 if test -z "$ac_tt"; then
17592 elif $ac_last_try; then
17593 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17599 # For the awk script, D is an array of macro values keyed by name,
17600 # likewise P contains macro parameters if any. Preserve backslash
17601 # newline sequences.
17603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17605 s/.\{148\}/&'"$ac_delim"'/g
17608 s/^[ ]*#[ ]*define[ ][ ]*/ /
17615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17617 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17622 D["\1"]=" \3\\\\\\n"\\/p
17624 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17629 s/.\{148\}/&'"$ac_delim"'/g
17634 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17637 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17639 ' <confdefs.h | sed '
17640 s/'"$ac_delim"'/"\\\
17641 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17644 for (key in D) D_is_set[key] = 1
17647 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17649 split(line, arg, " ")
17650 if (arg[1] == "#") {
17654 defundef = substr(arg[1], 2)
17657 split(mac1, mac2, "(") #)
17659 prefix = substr(line, 1, index(line, defundef) - 1)
17660 if (D_is_set[macro]) {
17661 # Preserve the white space surrounding the "#".
17662 print prefix "define", macro P[macro] D[macro]
17665 # Replace #undef with comments. This is necessary, for example,
17666 # in the case of _POSIX_SOURCE, which is predefined and required
17667 # on some systems where configure will not decide to define it.
17668 if (defundef == "undef") {
17669 print "/*", prefix defundef, macro, "*/"
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17679 fi # test -n "$CONFIG_HEADERS"
17682 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17687 :[FHLC]) ac_mode=$ac_tag; continue;;
17689 case $ac_mode$ac_tag in
17691 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17692 :[FH]-) ac_tag=-:-;;
17693 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17710 -) ac_f="$ac_tmp/stdin";;
17711 *) # Look for the file first in the build tree, then in the source tree
17712 # (if the path is not absolute). The absolute path cannot be DOS-style,
17713 # because $ac_f cannot contain `:'.
17717 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17719 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17721 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17722 as_fn_append ac_file_inputs " '$ac_f'"
17725 # Let's still pretend it is `configure' which instantiates (i.e., don't
17726 # use $as_me), people would be surprised to read:
17727 # /* config.h. Generated by config.status. */
17728 configure_input='Generated from '`
17729 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17731 if test x"$ac_file" != x-; then
17732 configure_input="$ac_file. $configure_input"
17733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17734 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17736 # Neutralize special characters interpreted by sed in replacement strings.
17737 case $configure_input in #(
17738 *\&* | *\|* | *\\* )
17739 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17740 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17741 *) ac_sed_conf_input=$configure_input;;
17745 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17751 ac_dir=`$as_dirname -- "$ac_file" ||
17752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753 X"$ac_file" : 'X\(//\)[^/]' \| \
17754 X"$ac_file" : 'X\(//\)$' \| \
17755 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17756 printf "%s\n" X"$ac_file" |
17757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17761 /^X\(\/\/\)[^/].*/{
17774 as_dir="$ac_dir"; as_fn_mkdir_p
17778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17780 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17781 # A ".." for each directory in $ac_dir_suffix.
17782 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17783 case $ac_top_builddir_sub in
17784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17788 ac_abs_top_builddir=$ac_pwd
17789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17790 # for backward compatibility:
17791 ac_top_builddir=$ac_top_build_prefix
17794 .) # We are building in place.
17796 ac_top_srcdir=$ac_top_builddir_sub
17797 ac_abs_top_srcdir=$ac_pwd ;;
17798 [\\/]* | ?:[\\/]* ) # Absolute name.
17799 ac_srcdir=$srcdir$ac_dir_suffix;
17800 ac_top_srcdir=$srcdir
17801 ac_abs_top_srcdir=$srcdir ;;
17802 *) # Relative name.
17803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17804 ac_top_srcdir=$ac_top_build_prefix$srcdir
17805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17820 ac_MKDIR_P=$MKDIR_P
17822 [\\/$]* | ?:[\\/]* ) ;;
17823 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 # If the template does not know about datarootdir, expand it.
17829 # FIXME: This hack should be removed a few years after 2.60.
17830 ac_datarootdir_hack=; ac_datarootdir_seen=
17841 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17842 *datarootdir*) ac_datarootdir_seen=yes;;
17843 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17845 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848 ac_datarootdir_hack='
17849 s&@datadir@&$datadir&g
17850 s&@docdir@&$docdir&g
17851 s&@infodir@&$infodir&g
17852 s&@localedir@&$localedir&g
17853 s&@mandir@&$mandir&g
17854 s&\\\${datarootdir}&$datarootdir&g' ;;
17858 # Neutralize VPATH when `$srcdir' = `.'.
17859 # Shell code in configure.ac might set extrasub.
17860 # FIXME: do we really want to maintain this feature?
17861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862 ac_sed_extra="$ac_vpsub
17865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17868 s|@configure_input@|$ac_sed_conf_input|;t t
17869 s&@top_builddir@&$ac_top_builddir_sub&;t t
17870 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17871 s&@srcdir@&$ac_srcdir&;t t
17872 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17873 s&@top_srcdir@&$ac_top_srcdir&;t t
17874 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17875 s&@builddir@&$ac_builddir&;t t
17876 s&@abs_builddir@&$ac_abs_builddir&;t t
17877 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17878 s&@INSTALL@&$ac_INSTALL&;t t
17879 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17880 $ac_datarootdir_hack
17882 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17883 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17885 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17886 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17887 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17888 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17890 which seems to be undefined. Please make sure it is defined" >&5
17891 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17892 which seems to be undefined. Please make sure it is defined" >&2;}
17894 rm -f "$ac_tmp/stdin"
17896 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17897 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17905 if test x"$ac_file" != x-; then
17907 printf "%s\n" "/* $configure_input */" >&1 \
17908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17909 } >"$ac_tmp/config.h" \
17910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17911 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17913 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17916 mv "$ac_tmp/config.h" "$ac_file" \
17917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17920 printf "%s\n" "/* $configure_input */" >&1 \
17921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17922 || as_fn_error $? "could not create -" "$LINENO" 5
17924 # Compute "$ac_file"'s index in $config_headers.
17927 for _am_header in $config_headers :; do
17928 case $_am_header in
17929 $_am_arg | $_am_arg:* )
17932 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17935 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17936 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17937 X"$_am_arg" : 'X\(//\)[^/]' \| \
17938 X"$_am_arg" : 'X\(//\)$' \| \
17939 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17940 printf "%s\n" X"$_am_arg" |
17941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17945 /^X\(\/\/\)[^/].*/{
17957 s/.*/./; q'`/stamp-h$_am_stamp_count
17960 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17961 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17966 case $ac_file$ac_mode in
17967 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17968 # Older Autoconf quotes --file arguments for eval, but not when files
17969 # are listed without --file. Let's play safe and only enable the eval
17970 # if we detect the quoting.
17971 # TODO: see whether this extra hack can be removed once we start
17972 # requiring Autoconf 2.70 or later.
17973 case $CONFIG_FILES in #(
17975 eval set x "$CONFIG_FILES" ;; #(
17977 set x $CONFIG_FILES ;; #(
17982 # Used to flag and report bootstrapping failures.
17986 # Strip MF so we end up with the name of the file.
17987 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17988 # Check whether this is an Automake generated Makefile which includes
17989 # dependency-tracking related rules and includes.
17990 # Grep'ing the whole file directly is not great: AIX grep has a line
17991 # limit of 2048, but all sed's we know have understand at least 4000.
17992 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17994 am_dirpart=`$as_dirname -- "$am_mf" ||
17995 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17996 X"$am_mf" : 'X\(//\)[^/]' \| \
17997 X"$am_mf" : 'X\(//\)$' \| \
17998 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17999 printf "%s\n" X"$am_mf" |
18000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18004 /^X\(\/\/\)[^/].*/{
18017 am_filepart=`$as_basename -- "$am_mf" ||
18018 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18019 X"$am_mf" : 'X\(//\)$' \| \
18020 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18021 printf "%s\n" X/"$am_mf" |
18022 sed '/^.*\/\([^/][^/]*\)\/*$/{
18035 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18036 && sed -e '/# am--include-marker/d' "$am_filepart" \
18037 | $MAKE -f - am--depfiles" >&5
18038 (cd "$am_dirpart" \
18039 && sed -e '/# am--include-marker/d' "$am_filepart" \
18040 | $MAKE -f - am--depfiles) >&5 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } || am_rc=$?
18045 if test $am_rc -ne 0; then
18046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18048 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18049 for automatic dependency tracking. If GNU make was not used, consider
18050 re-running the configure script with MAKE=\"gmake\" (or whatever is
18051 necessary). You can also try re-running configure with the
18052 '--disable-dependency-tracking' option to at least be able to build
18053 the package (albeit without support for automatic dependency tracking).
18054 See \`config.log' for more details" "$LINENO" 5; }
18056 { am_dirpart=; unset am_dirpart;}
18057 { am_filepart=; unset am_filepart;}
18058 { am_mf=; unset am_mf;}
18059 { am_rc=; unset am_rc;}
18060 rm -f conftest-deps.mk
18065 # See if we are running on zsh, and set the options which allow our
18066 # commands through without removal of \ escapes.
18067 if test -n "${ZSH_VERSION+set}" ; then
18068 setopt NO_GLOB_SUBST
18071 cfgfile="${ofile}T"
18072 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18075 cat <<_LT_EOF >> "$cfgfile"
18078 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18079 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18084 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18086 # Written by Gordon Matzigkeit, 1996
18088 # This file is part of GNU Libtool.
18090 # GNU Libtool is free software; you can redistribute it and/or
18091 # modify it under the terms of the GNU General Public License as
18092 # published by the Free Software Foundation; either version 2 of
18093 # the License, or (at your option) any later version.
18095 # As a special exception to the GNU General Public License,
18096 # if you distribute this file as part of a program or library that
18097 # is built using GNU Libtool, you may include this file under the
18098 # same distribution terms that you use for the rest of that program.
18100 # GNU Libtool is distributed in the hope that it will be useful,
18101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18103 # GNU General Public License for more details.
18105 # You should have received a copy of the GNU General Public License
18106 # along with GNU Libtool; see the file COPYING. If not, a copy
18107 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
18108 # obtained by writing to the Free Software Foundation, Inc.,
18109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18112 # The names of the tagged configurations supported by this script.
18113 available_tags="RC "
18115 # ### BEGIN LIBTOOL CONFIG
18117 # Which release of libtool.m4 was used?
18118 macro_version=$macro_version
18119 macro_revision=$macro_revision
18121 # Assembler program.
18124 # DLL creation program.
18125 DLLTOOL=$lt_DLLTOOL
18127 # Object dumper program.
18128 OBJDUMP=$lt_OBJDUMP
18130 # Whether or not to build static libraries.
18131 build_old_libs=$enable_static
18133 # Whether or not to build shared libraries.
18134 build_libtool_libs=$enable_shared
18136 # What type of objects to build.
18139 # Whether or not to optimize for fast installation.
18140 fast_install=$enable_fast_install
18142 # Shell to use when invoking shell scripts.
18145 # An echo program that protects backslashes.
18148 # The PATH separator for the build system.
18149 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18152 host_alias=$host_alias
18156 # The build system.
18157 build_alias=$build_alias
18161 # A sed program that does not truncate output.
18164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18165 Xsed="\$SED -e 1s/^X//"
18167 # A grep program that handles long lines.
18173 # A literal string matcher.
18176 # A BSD- or MS-compatible name lister.
18179 # Whether we need soft or hard links.
18182 # What is the maximum length of a command?
18183 max_cmd_len=$max_cmd_len
18185 # Object file suffix (normally "o").
18188 # Executable file suffix (normally "").
18191 # whether the shell understands "unset".
18194 # turn spaces into newlines.
18197 # turn newlines into spaces.
18200 # convert \$build file names to \$host format.
18201 to_host_file_cmd=$lt_cv_to_host_file_cmd
18203 # convert \$build files to toolchain format.
18204 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18206 # Method to check whether dependent libraries are shared objects.
18207 deplibs_check_method=$lt_deplibs_check_method
18209 # Command to use when deplibs_check_method = "file_magic".
18210 file_magic_cmd=$lt_file_magic_cmd
18212 # How to find potential files when deplibs_check_method = "file_magic".
18213 file_magic_glob=$lt_file_magic_glob
18215 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18216 want_nocaseglob=$lt_want_nocaseglob
18218 # Command to associate shared and link libraries.
18219 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18224 # Flags to create an archive.
18225 AR_FLAGS=$lt_AR_FLAGS
18227 # How to feed a file listing to the archiver.
18228 archiver_list_spec=$lt_archiver_list_spec
18230 # A symbol stripping program.
18233 # Commands used to install an old-style archive.
18235 old_postinstall_cmds=$lt_old_postinstall_cmds
18236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18238 # Whether to use a lock for old archive extraction.
18239 lock_old_archive_extraction=$lock_old_archive_extraction
18244 # LTCC compiler flags.
18245 LTCFLAGS=$lt_CFLAGS
18247 # Take the output of nm and produce a listing of raw symbols and C names.
18248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18250 # Transform the output of nm in a proper C declaration.
18251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18253 # Transform the output of nm in a C name address pair.
18254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18256 # Transform the output of nm in a C name address pair when lib prefix is needed.
18257 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18259 # Specify filename containing input files for \$NM.
18260 nm_file_list_spec=$lt_nm_file_list_spec
18262 # The root where to search for dependent libraries,and in which our libraries should be installed.
18263 lt_sysroot=$lt_sysroot
18265 # The name of the directory that contains temporary libtool files.
18268 # Used to examine libraries when file_magic_cmd begins with "file".
18269 MAGIC_CMD=$MAGIC_CMD
18271 # Must we lock files when doing compilation?
18272 need_locks=$lt_need_locks
18275 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18277 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18278 DSYMUTIL=$lt_DSYMUTIL
18280 # Tool to change global to local symbols on Mac OS X.
18283 # Tool to manipulate fat objects and archives on Mac OS X.
18286 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18289 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18290 OTOOL64=$lt_OTOOL64
18292 # Old archive suffix (normally "a").
18295 # Shared library suffix (normally ".so").
18296 shrext_cmds=$lt_shrext_cmds
18298 # The commands to extract the exported symbol list from a shared archive.
18299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18301 # Variables whose values should be saved in libtool wrapper scripts and
18302 # restored at link time.
18303 variables_saved_for_relink=$lt_variables_saved_for_relink
18305 # Do we need the "lib" prefix for modules?
18306 need_lib_prefix=$need_lib_prefix
18308 # Do we need a version for libraries?
18309 need_version=$need_version
18311 # Library versioning type.
18312 version_type=$version_type
18314 # Shared library runtime path variable.
18315 runpath_var=$runpath_var
18317 # Shared library path variable.
18318 shlibpath_var=$shlibpath_var
18320 # Is shlibpath searched before the hard-coded library search path?
18321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323 # Format of library name prefix.
18324 libname_spec=$lt_libname_spec
18326 # List of archive names. First name is the real one, the rest are links.
18327 # The last name is the one that the linker finds with -lNAME
18328 library_names_spec=$lt_library_names_spec
18330 # The coded name of the library, if different from the real name.
18331 soname_spec=$lt_soname_spec
18333 # Permission mode override for installation of shared libraries.
18334 install_override_mode=$lt_install_override_mode
18336 # Command to use after installation of a shared archive.
18337 postinstall_cmds=$lt_postinstall_cmds
18339 # Command to use after uninstallation of a shared archive.
18340 postuninstall_cmds=$lt_postuninstall_cmds
18342 # Commands used to finish a libtool library installation in a directory.
18343 finish_cmds=$lt_finish_cmds
18345 # As "finish_cmds", except a single script fragment to be evaled but
18347 finish_eval=$lt_finish_eval
18349 # Whether we should hardcode library paths into libraries.
18350 hardcode_into_libs=$hardcode_into_libs
18352 # Compile-time system search path for libraries.
18353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18355 # Run-time system search path for libraries.
18356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18358 # Whether dlopen is supported.
18359 dlopen_support=$enable_dlopen
18361 # Whether dlopen of programs is supported.
18362 dlopen_self=$enable_dlopen_self
18364 # Whether dlopen of statically linked programs is supported.
18365 dlopen_self_static=$enable_dlopen_self_static
18367 # Commands to strip libraries.
18368 old_striplib=$lt_old_striplib
18369 striplib=$lt_striplib
18372 # The linker used to build libraries.
18375 # How to create reloadable object files.
18376 reload_flag=$lt_reload_flag
18377 reload_cmds=$lt_reload_cmds
18379 # Commands used to build an old-style archive.
18380 old_archive_cmds=$lt_old_archive_cmds
18382 # A language specific compiler.
18385 # Is the compiler the GNU compiler?
18388 # Compiler flag to turn off builtin functions.
18389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18391 # Additional compiler flags for building library objects.
18392 pic_flag=$lt_lt_prog_compiler_pic
18394 # How to pass a linker flag through the compiler.
18395 wl=$lt_lt_prog_compiler_wl
18397 # Compiler flag to prevent dynamic linking.
18398 link_static_flag=$lt_lt_prog_compiler_static
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18403 # Whether or not to add -lc for building shared libraries.
18404 build_libtool_need_lc=$archive_cmds_need_lc
18406 # Whether or not to disallow shared libs when runtime libs are static.
18407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18409 # Compiler flag to allow reflexive dlopens.
18410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18412 # Compiler flag to generate shared objects directly from archives.
18413 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18415 # Whether the compiler copes with passing no objects directly.
18416 compiler_needs_object=$lt_compiler_needs_object
18418 # Create an old-style archive from a shared archive.
18419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18421 # Create a temporary old-style archive to link instead of a shared archive.
18422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18424 # Commands used to build a shared archive.
18425 archive_cmds=$lt_archive_cmds
18426 archive_expsym_cmds=$lt_archive_expsym_cmds
18428 # Commands used to build a loadable module if different from building
18429 # a shared archive.
18430 module_cmds=$lt_module_cmds
18431 module_expsym_cmds=$lt_module_expsym_cmds
18433 # Whether we are building with GNU ld or not.
18434 with_gnu_ld=$lt_with_gnu_ld
18436 # Flag that allows shared libraries with undefined symbols to be built.
18437 allow_undefined_flag=$lt_allow_undefined_flag
18439 # Flag that enforces no undefined symbols.
18440 no_undefined_flag=$lt_no_undefined_flag
18442 # Flag to hardcode \$libdir into a binary during linking.
18443 # This must work even if \$libdir does not exist
18444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18446 # Whether we need a single "-rpath" flag with a separated argument.
18447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18450 # DIR into the resulting binary.
18451 hardcode_direct=$hardcode_direct
18453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18454 # DIR into the resulting binary and the resulting library dependency is
18455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18456 # library is relocated.
18457 hardcode_direct_absolute=$hardcode_direct_absolute
18459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18460 # into the resulting binary.
18461 hardcode_minus_L=$hardcode_minus_L
18463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18464 # into the resulting binary.
18465 hardcode_shlibpath_var=$hardcode_shlibpath_var
18467 # Set to "yes" if building a shared library automatically hardcodes DIR
18468 # into the library and all subsequent libraries and executables linked
18470 hardcode_automatic=$hardcode_automatic
18472 # Set to yes if linker adds runtime paths of dependent libraries
18473 # to runtime path list.
18474 inherit_rpath=$inherit_rpath
18476 # Whether libtool must link a program against all its dependency libraries.
18477 link_all_deplibs=$link_all_deplibs
18479 # Set to "yes" if exported symbols are required.
18480 always_export_symbols=$always_export_symbols
18482 # The commands to list exported symbols.
18483 export_symbols_cmds=$lt_export_symbols_cmds
18485 # Symbols that should not be listed in the preloaded symbols.
18486 exclude_expsyms=$lt_exclude_expsyms
18488 # Symbols that must always be exported.
18489 include_expsyms=$lt_include_expsyms
18491 # Commands necessary for linking programs (against libraries) with templates.
18492 prelink_cmds=$lt_prelink_cmds
18494 # Commands necessary for finishing linking programs.
18495 postlink_cmds=$lt_postlink_cmds
18497 # Specify filename containing input files.
18498 file_list_spec=$lt_file_list_spec
18500 # How to hardcode a shared library path into an executable.
18501 hardcode_action=$hardcode_action
18503 # ### END LIBTOOL CONFIG
18509 cat <<\_LT_EOF >> "$cfgfile"
18510 # AIX sometimes has problems with the GCC collect2 program. For some
18511 # reason, if we set the COLLECT_NAMES environment variable, the problems
18512 # vanish in a puff of smoke.
18513 if test "X${COLLECT_NAMES+set}" != Xset; then
18515 export COLLECT_NAMES
18523 ltmain="$ac_aux_dir/ltmain.sh"
18526 # We use sed instead of cat because bash on DJGPP gets confused if
18527 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18528 # text mode, it properly converts lines to CR/LF. This bash problem
18529 # is reportedly fixed, but why not run on old versions too?
18530 sed '$q' "$ltmain" >> "$cfgfile" \
18531 || (rm -f "$cfgfile"; exit 1)
18533 if test x"$xsi_shell" = xyes; then
18534 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18538 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18539 \ * ) func_dirname_result="${3}" ;;\
18541 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18542 && mv -f "$cfgfile.tmp" "$cfgfile" \
18543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18544 test 0 -eq $? || _lt_function_replace_fail=:
18547 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18550 \ func_basename_result="${1##*/}"\
18551 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18552 && mv -f "$cfgfile.tmp" "$cfgfile" \
18553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18554 test 0 -eq $? || _lt_function_replace_fail=:
18557 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18558 func_dirname_and_basename ()\
18561 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18562 \ * ) func_dirname_result="${3}" ;;\
18564 \ func_basename_result="${1##*/}"\
18565 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18566 && mv -f "$cfgfile.tmp" "$cfgfile" \
18567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18568 test 0 -eq $? || _lt_function_replace_fail=:
18571 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18574 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18575 \ # positional parameters, so assign one to ordinary parameter first.\
18576 \ func_stripname_result=${3}\
18577 \ func_stripname_result=${func_stripname_result#"${1}"}\
18578 \ func_stripname_result=${func_stripname_result%"${2}"}\
18579 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18580 && mv -f "$cfgfile.tmp" "$cfgfile" \
18581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18582 test 0 -eq $? || _lt_function_replace_fail=:
18585 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18586 func_split_long_opt ()\
18588 \ func_split_long_opt_name=${1%%=*}\
18589 \ func_split_long_opt_arg=${1#*=}\
18590 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18591 && mv -f "$cfgfile.tmp" "$cfgfile" \
18592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18593 test 0 -eq $? || _lt_function_replace_fail=:
18596 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18597 func_split_short_opt ()\
18599 \ func_split_short_opt_arg=${1#??}\
18600 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18601 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18602 && mv -f "$cfgfile.tmp" "$cfgfile" \
18603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18604 test 0 -eq $? || _lt_function_replace_fail=:
18607 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18611 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18612 \ *) func_lo2o_result=${1} ;;\
18614 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18615 && mv -f "$cfgfile.tmp" "$cfgfile" \
18616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18617 test 0 -eq $? || _lt_function_replace_fail=:
18620 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18623 func_xform_result=${1%.*}.lo\
18624 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18625 && mv -f "$cfgfile.tmp" "$cfgfile" \
18626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18627 test 0 -eq $? || _lt_function_replace_fail=:
18630 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18633 func_arith_result=$(( $* ))\
18634 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18635 && mv -f "$cfgfile.tmp" "$cfgfile" \
18636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18637 test 0 -eq $? || _lt_function_replace_fail=:
18640 sed -e '/^func_len ()$/,/^} # func_len /c\
18643 func_len_result=${#1}\
18644 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18645 && mv -f "$cfgfile.tmp" "$cfgfile" \
18646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18647 test 0 -eq $? || _lt_function_replace_fail=:
18651 if test x"$lt_shell_append" = xyes; then
18652 sed -e '/^func_append ()$/,/^} # func_append /c\
18655 eval "${1}+=\\${2}"\
18656 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18657 && mv -f "$cfgfile.tmp" "$cfgfile" \
18658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18659 test 0 -eq $? || _lt_function_replace_fail=:
18662 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18663 func_append_quoted ()\
18665 \ func_quote_for_eval "${2}"\
18666 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18667 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18668 && mv -f "$cfgfile.tmp" "$cfgfile" \
18669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18670 test 0 -eq $? || _lt_function_replace_fail=:
18673 # Save a `func_append' function call where possible by direct use of '+='
18674 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18675 && mv -f "$cfgfile.tmp" "$cfgfile" \
18676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18677 test 0 -eq $? || _lt_function_replace_fail=:
18679 # Save a `func_append' function call even when '+=' is not available
18680 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18681 && mv -f "$cfgfile.tmp" "$cfgfile" \
18682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18683 test 0 -eq $? || _lt_function_replace_fail=:
18686 if test x"$_lt_function_replace_fail" = x":"; then
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18688 printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18692 mv -f "$cfgfile" "$ofile" ||
18693 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18697 cat <<_LT_EOF >> "$ofile"
18699 # ### BEGIN LIBTOOL TAG CONFIG: RC
18701 # The linker used to build libraries.
18704 # How to create reloadable object files.
18705 reload_flag=$lt_reload_flag_RC
18706 reload_cmds=$lt_reload_cmds_RC
18708 # Commands used to build an old-style archive.
18709 old_archive_cmds=$lt_old_archive_cmds_RC
18711 # A language specific compiler.
18714 # Is the compiler the GNU compiler?
18717 # Compiler flag to turn off builtin functions.
18718 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18720 # Additional compiler flags for building library objects.
18721 pic_flag=$lt_lt_prog_compiler_pic_RC
18723 # How to pass a linker flag through the compiler.
18724 wl=$lt_lt_prog_compiler_wl_RC
18726 # Compiler flag to prevent dynamic linking.
18727 link_static_flag=$lt_lt_prog_compiler_static_RC
18729 # Does compiler simultaneously support -c and -o options?
18730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18732 # Whether or not to add -lc for building shared libraries.
18733 build_libtool_need_lc=$archive_cmds_need_lc_RC
18735 # Whether or not to disallow shared libs when runtime libs are static.
18736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18738 # Compiler flag to allow reflexive dlopens.
18739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18741 # Compiler flag to generate shared objects directly from archives.
18742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18744 # Whether the compiler copes with passing no objects directly.
18745 compiler_needs_object=$lt_compiler_needs_object_RC
18747 # Create an old-style archive from a shared archive.
18748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18750 # Create a temporary old-style archive to link instead of a shared archive.
18751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18753 # Commands used to build a shared archive.
18754 archive_cmds=$lt_archive_cmds_RC
18755 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18757 # Commands used to build a loadable module if different from building
18758 # a shared archive.
18759 module_cmds=$lt_module_cmds_RC
18760 module_expsym_cmds=$lt_module_expsym_cmds_RC
18762 # Whether we are building with GNU ld or not.
18763 with_gnu_ld=$lt_with_gnu_ld_RC
18765 # Flag that allows shared libraries with undefined symbols to be built.
18766 allow_undefined_flag=$lt_allow_undefined_flag_RC
18768 # Flag that enforces no undefined symbols.
18769 no_undefined_flag=$lt_no_undefined_flag_RC
18771 # Flag to hardcode \$libdir into a binary during linking.
18772 # This must work even if \$libdir does not exist
18773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18775 # Whether we need a single "-rpath" flag with a separated argument.
18776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18779 # DIR into the resulting binary.
18780 hardcode_direct=$hardcode_direct_RC
18782 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18783 # DIR into the resulting binary and the resulting library dependency is
18784 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18785 # library is relocated.
18786 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18788 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18789 # into the resulting binary.
18790 hardcode_minus_L=$hardcode_minus_L_RC
18792 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18793 # into the resulting binary.
18794 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18796 # Set to "yes" if building a shared library automatically hardcodes DIR
18797 # into the library and all subsequent libraries and executables linked
18799 hardcode_automatic=$hardcode_automatic_RC
18801 # Set to yes if linker adds runtime paths of dependent libraries
18802 # to runtime path list.
18803 inherit_rpath=$inherit_rpath_RC
18805 # Whether libtool must link a program against all its dependency libraries.
18806 link_all_deplibs=$link_all_deplibs_RC
18808 # Set to "yes" if exported symbols are required.
18809 always_export_symbols=$always_export_symbols_RC
18811 # The commands to list exported symbols.
18812 export_symbols_cmds=$lt_export_symbols_cmds_RC
18814 # Symbols that should not be listed in the preloaded symbols.
18815 exclude_expsyms=$lt_exclude_expsyms_RC
18817 # Symbols that must always be exported.
18818 include_expsyms=$lt_include_expsyms_RC
18820 # Commands necessary for linking programs (against libraries) with templates.
18821 prelink_cmds=$lt_prelink_cmds_RC
18823 # Commands necessary for finishing linking programs.
18824 postlink_cmds=$lt_postlink_cmds_RC
18826 # Specify filename containing input files.
18827 file_list_spec=$lt_file_list_spec_RC
18829 # How to hardcode a shared library path into an executable.
18830 hardcode_action=$hardcode_action_RC
18832 # ### END LIBTOOL TAG CONFIG: RC
18837 if test "$build_selection" = never; then
18838 echo "patch not applied"
18839 elif (mv -f libtool libtool.orig; \
18840 sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then
18841 echo "applied successfully"
18842 elif test "$build_selection" = try; then
18843 mv -f libtool.orig libtool
18844 echo "patch failed, thus, using original"
18846 echo "patch failed"
18857 ac_clean_files=$ac_clean_files_save
18859 test $ac_write_fail = 0 ||
18860 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18863 # configure is writing to config.log, and then calls config.status.
18864 # config.status does its own redirection, appending to config.log.
18865 # Unfortunately, on DOS this fails, as config.log is still kept open
18866 # by configure, so config.status won't be able to write to it; its
18867 # output is simply discarded. So we exec the FD to /dev/null,
18868 # effectively closing config.log, so it can be properly (re)opened and
18869 # appended to by config.status. When coming back to configure, we
18870 # need to make the FD available again.
18871 if test "$no_create" != yes; then
18873 ac_config_status_args=
18874 test "$silent" = yes &&
18875 ac_config_status_args="$ac_config_status_args --quiet"
18877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18880 # would make configure fail if this is the last instruction.
18881 $ac_cs_success || as_fn_exit 1
18883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18885 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18889 if test x"$have_bison" = xno; then
18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
18892 *** Note: The installed yacc version is not GNU Bison. You need
18893 *** to install Bison if you want to change any grammar (.y) file.
18895 printf "%s\n" "$as_me:
18897 *** Note: The installed yacc version is not GNU Bison. You need
18898 *** to install Bison if you want to change any grammar (.y) file.
18903 Libksba v${VERSION} has been configured as follows:
18905 Revision: 7b3e478 (31550)