2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.5.5.
5 # Report bugs to <http://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='gpgme'
593 PACKAGE_VERSION='1.5.5'
594 PACKAGE_STRING='gpgme 1.5.5'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
598 ac_unique_file="src/gpgme.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
639 emacs_local_vars_read_only
640 emacs_local_vars_begin
645 GPGME_CONFIG_API_VERSION
648 USE_DESCRIPTOR_PASSING_FALSE
649 USE_DESCRIPTOR_PASSING_TRUE
662 INSERT__TYPEDEFS_FOR_GPGME_H
663 NEED__FILE_OFFSET_BITS
666 RUN_GPGSM_TESTS_FALSE
670 RUN_GPGCONF_TESTS_FALSE
671 RUN_GPGCONF_TESTS_TRUE
681 HAVE_ANDROID_SYSTEM_FALSE
682 HAVE_ANDROID_SYSTEM_TRUE
683 HAVE_W32CE_SYSTEM_FALSE
684 HAVE_W32CE_SYSTEM_TRUE
685 HAVE_W64_SYSTEM_FALSE
687 HAVE_W32_SYSTEM_FALSE
689 HAVE_DOSISH_SYSTEM_FALSE
690 HAVE_DOSISH_SYSTEM_TRUE
699 HAVE_LD_VERSION_SCRIPT_FALSE
700 HAVE_LD_VERSION_SCRIPT_TRUE
764 MAINTAINER_MODE_FALSE
778 INSTALL_STRIP_PROGRAM
820 program_transform_name
833 enable_option_checking
835 enable_maintainer_mode
836 enable_dependency_tracking
853 with_libgpg_error_prefix
854 with_gpg_error_prefix
855 with_libassuan_prefix
858 ac_precious_vars='build_alias
874 # Initialize some variables set by options.
876 ac_init_version=false
877 ac_unrecognized_opts=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
888 program_transform_name=s,x,x,
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures gpgme 1.5.5 to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/gpgme]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of gpgme 1.5.5:";;
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful (and
1494 sometimes confusing) to the casual installer
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 --disable-glibtest do not try to compile and run a test GLIB program
1505 --enable-w32-glib build GPGME Glib for W32
1506 --enable-w32-qt build GPGME Qt for W32
1507 --enable-fixed-path=PATH
1508 locate binaries only via this PATH
1509 --disable-gpgconf-test disable GPGCONF regression test
1510 --disable-gpg-test disable GPG regression test
1511 --disable-gpgsm-test disable GPGSM regression test
1512 --disable-g13-test disable G13 regression test
1513 --disable-largefile omit support for large files
1514 --disable-fd-passing do not use FD passing
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot=DIR Search for dependent libraries within DIR
1523 (or the compiler's sysroot if not specified).
1524 --with-libgpg-error-prefix=PFX
1525 prefix where GPG Error is installed (optional)
1527 --with-libassuan-prefix=PFX
1528 prefix where LIBASSUAN is installed (optional)
1530 Some influential environment variables:
1531 SYSROOT locate config scripts also below that directory
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to <http://bugs.gnupg.org>.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1610 gpgme configure 1.5.5
1611 generated by GNU Autoconf 2.69
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_cpp LINENO
1663 # ----------------------
1664 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } > conftest.i && {
1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1699 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1702 # the include files in INCLUDES and setting the cache variable VAR
1704 ac_fn_c_check_header_mongrel ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if eval \${$3+:} false; then :
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1717 # Is the header compilable?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1719 $as_echo_n "checking $2 usability... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 ac_header_compiler=yes
1728 ac_header_compiler=no
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1732 $as_echo "$ac_header_compiler" >&6; }
1734 # Is the header present?
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1736 $as_echo_n "checking $2 presence... " >&6; }
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1741 if ac_fn_c_try_cpp "$LINENO"; then :
1742 ac_header_preproc=yes
1744 ac_header_preproc=no
1746 rm -f conftest.err conftest.i conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1748 $as_echo "$ac_header_preproc" >&6; }
1750 # So? What about this header?
1751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1754 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1760 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1762 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1764 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1766 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ( $as_echo "## ------------------------------------ ##
1770 ## Report this to http://bugs.gnupg.org ##
1771 ## ------------------------------------ ##"
1772 ) | sed "s/^/$as_me: WARNING: /" >&2
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1780 eval "$3=\$ac_header_compiler"
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 } # ac_fn_c_check_header_mongrel
1790 # ac_fn_c_try_run LINENO
1791 # ----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793 # that executables *can* be run.
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_link"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>&5
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808 { { case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_try") 2>&5
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }; then :
1820 $as_echo "$as_me: program exited with status $ac_status" >&5
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=$ac_status
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_header_compile
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_cxx_try_compile
1901 # ac_fn_c_try_link LINENO
1902 # -----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext conftest$ac_exeext
1908 if { { ac_try="$ac_link"
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>conftest.err
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest$ac_exeext && {
1927 test "$cross_compiling" = yes ||
1928 test -x conftest$ac_exeext
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1937 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939 # interfere with the next link command; also delete a directory that is
1940 # left behind by Apple's compiler. We do this before executing the actions.
1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1945 } # ac_fn_c_try_link
1947 # ac_fn_c_check_func LINENO FUNC VAR
1948 # ----------------------------------
1949 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1950 ac_fn_c_check_func ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1962 #define $2 innocuous_$2
1964 /* System header to define __stub macros and hopefully few prototypes,
1965 which can conflict with char $2 (); below.
1966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1967 <limits.h> exists even on freestanding compilers. */
1970 # include <limits.h>
1972 # include <assert.h>
1977 /* Override any GCC internal prototype to avoid an error.
1978 Use char because int might match the return type of a GCC
1979 builtin and then its argument prototype would still apply. */
1984 /* The GNU C library defines this for functions which it implements
1985 to always fail with ENOSYS. Some functions are actually named
1986 something starting with __ and the normal name is an alias. */
1987 #if defined __stub_$2 || defined __stub___$2
1999 if ac_fn_c_try_link "$LINENO"; then :
2004 rm -f core conftest.err conftest.$ac_objext \
2005 conftest$ac_exeext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_func
2014 # ac_fn_cxx_try_cpp LINENO
2015 # ------------------------
2016 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_cxx_try_cpp ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if { { ac_try="$ac_cpp conftest.$ac_ext"
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2029 if test -s conftest.err; then
2030 grep -v '^ *+' conftest.err >conftest.er1
2031 cat conftest.er1 >&5
2032 mv -f conftest.er1 conftest.err
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } > conftest.i && {
2036 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2037 test ! -s conftest.err
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
2049 } # ac_fn_cxx_try_cpp
2051 # ac_fn_cxx_try_link LINENO
2052 # -------------------------
2053 # Try to link conftest.$ac_ext, and return whether this succeeded.
2054 ac_fn_cxx_try_link ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 rm -f conftest.$ac_objext conftest$ac_exeext
2058 if { { ac_try="$ac_link"
2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061 *) ac_try_echo=$ac_try;;
2063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064 $as_echo "$ac_try_echo"; } >&5
2065 (eval "$ac_link") 2>conftest.err
2067 if test -s conftest.err; then
2068 grep -v '^ *+' conftest.err >conftest.er1
2069 cat conftest.er1 >&5
2070 mv -f conftest.er1 conftest.err
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; } && {
2074 test -z "$ac_cxx_werror_flag" ||
2075 test ! -s conftest.err
2076 } && test -s conftest$ac_exeext && {
2077 test "$cross_compiling" = yes ||
2078 test -x conftest$ac_exeext
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2087 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2088 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2089 # interfere with the next link command; also delete a directory that is
2090 # left behind by Apple's compiler. We do this before executing the actions.
2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2095 } # ac_fn_cxx_try_link
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2102 ac_fn_c_compute_int ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2115 return test_array [0];
2121 if ac_fn_c_try_compile "$LINENO"; then :
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2132 return test_array [0];
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=$ac_mid; break
2141 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142 if test $ac_lo -le $ac_mid; then
2146 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) < 0)];
2159 return test_array [0];
2165 if ac_fn_c_try_compile "$LINENO"; then :
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2176 return test_array [0];
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_lo=$ac_mid; break
2185 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2186 if test $ac_mid -le $ac_hi; then
2190 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 # Binary search between lo and hi bounds.
2201 while test "x$ac_lo" != "x$ac_hi"; do
2202 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211 return test_array [0];
2217 if ac_fn_c_try_compile "$LINENO"; then :
2220 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2232 static long int longval () { return $2; }
2233 static unsigned long int ulongval () { return $2; }
2240 FILE *f = fopen ("conftest.val", "w");
2245 long int i = longval ();
2248 fprintf (f, "%ld", i);
2252 unsigned long int i = ulongval ();
2255 fprintf (f, "%lu", i);
2257 /* Do not output a trailing newline, as this causes \r\n confusion
2258 on some platforms. */
2259 return ferror (f) || fclose (f) != 0;
2265 if ac_fn_c_try_run "$LINENO"; then :
2266 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271 conftest.$ac_objext conftest.beam conftest.$ac_ext
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 as_fn_set_status $ac_retval
2278 } # ac_fn_c_compute_int
2280 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2281 # -------------------------------------------
2282 # Tests whether TYPE exists after having included INCLUDES, setting cache
2283 # variable VAR accordingly.
2284 ac_fn_c_check_type ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290 $as_echo_n "(cached) " >&6
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2318 if ac_fn_c_try_compile "$LINENO"; then :
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332 } # ac_fn_c_check_type
2334 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2335 # ---------------------------------------------
2336 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2338 ac_fn_c_check_decl ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 as_decl_name=`echo $2|sed 's/ *(.*//'`
2342 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2344 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2345 if eval \${$3+:} false; then :
2346 $as_echo_n "(cached) " >&6
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2354 #ifndef $as_decl_name
2356 (void) $as_decl_use;
2358 (void) $as_decl_name;
2366 if ac_fn_c_try_compile "$LINENO"; then :
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 } # ac_fn_c_check_decl
2380 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2381 # ----------------------------------------------------
2382 # Tries to find if the field MEMBER exists in type AGGR, after including
2383 # INCLUDES, setting cache variable VAR accordingly.
2384 ac_fn_c_check_member ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2388 $as_echo_n "checking for $2.$3... " >&6; }
2389 if eval \${$4+:} false; then :
2390 $as_echo_n "(cached) " >&6
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2405 if ac_fn_c_try_compile "$LINENO"; then :
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2415 if (sizeof ac_aggr.$3)
2421 if ac_fn_c_try_compile "$LINENO"; then :
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 } # ac_fn_c_check_member
2436 cat >config.log <<_ACEOF
2437 This file contains any messages produced by compilers while
2438 running configure, to aid debugging if configure makes a mistake.
2440 It was created by gpgme $as_me 1.5.5, which was
2441 generated by GNU Autoconf 2.69. Invocation command line was
2453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2460 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2462 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2463 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2465 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2466 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2467 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2468 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 $as_echo "PATH: $as_dir"
2493 # Keep a trace of the command line.
2494 # Strip out --no-create and --no-recursion so they do not pile up.
2495 # Strip out --silent because we don't want to record it for future runs.
2496 # Also quote any args containing shell meta-characters.
2497 # Make two passes to allow for proper duplicate-argument suppression.
2501 ac_must_keep_next=false
2507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2509 | -silent | --silent | --silen | --sile | --sil)
2512 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2517 as_fn_append ac_configure_args1 " '$ac_arg'"
2518 if test $ac_must_keep_next = true; then
2519 ac_must_keep_next=false # Got value, back to normal.
2522 *=* | --config-cache | -C | -disable-* | --disable-* \
2523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2525 | -with-* | --with-* | -without-* | --without-* | --x)
2526 case "$ac_configure_args0 " in
2527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2530 -* ) ac_must_keep_next=true ;;
2533 as_fn_append ac_configure_args " '$ac_arg'"
2538 { ac_configure_args0=; unset ac_configure_args0;}
2539 { ac_configure_args1=; unset ac_configure_args1;}
2541 # When interrupted or exit'd, cleanup temporary files, and complete
2542 # config.log. We remove comments because anyway the quotes in there
2543 # would cause problems or look ugly.
2544 # WARNING: Use '\'' to represent an apostrophe within the trap.
2545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2546 trap 'exit_status=$?
2547 # Save into config.log some information that might help in debugging.
2551 $as_echo "## ---------------- ##
2552 ## Cache variables. ##
2553 ## ---------------- ##"
2555 # The following way of writing the cache mishandles newlines in values,
2557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2558 eval ac_val=\$$ac_var
2562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2566 _ | IFS | as_nl) ;; #(
2567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2568 *) { eval $ac_var=; unset $ac_var;} ;;
2573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2574 *${as_nl}ac_space=\ *)
2576 "s/'\''/'\''\\\\'\'''\''/g;
2577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2587 $as_echo "## ----------------- ##
2588 ## Output variables. ##
2589 ## ----------------- ##"
2591 for ac_var in $ac_subst_vars
2593 eval ac_val=\$$ac_var
2595 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597 $as_echo "$ac_var='\''$ac_val'\''"
2601 if test -n "$ac_subst_files"; then
2602 $as_echo "## ------------------- ##
2603 ## File substitutions. ##
2604 ## ------------------- ##"
2606 for ac_var in $ac_subst_files
2608 eval ac_val=\$$ac_var
2610 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2612 $as_echo "$ac_var='\''$ac_val'\''"
2617 if test -s confdefs.h; then
2618 $as_echo "## ----------- ##
2625 test "$ac_signal" != 0 &&
2626 $as_echo "$as_me: caught signal $ac_signal"
2627 $as_echo "$as_me: exit $exit_status"
2629 rm -f core *.core core.conftest.* &&
2630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2633 for ac_signal in 1 2 13 15; do
2634 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2638 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2639 rm -f -r conftest* confdefs.h
2641 $as_echo "/* confdefs.h */" > confdefs.h
2643 # Predefined preprocessor variables.
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_NAME "$PACKAGE_NAME"
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_STRING "$PACKAGE_STRING"
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_URL "$PACKAGE_URL"
2670 # Let the site file select an alternate cache file if it wants to.
2671 # Prefer an explicitly selected file to automatically selected ones.
2674 if test -n "$CONFIG_SITE"; then
2675 # We do not want a PATH search for config.site.
2676 case $CONFIG_SITE in #((
2677 -*) ac_site_file1=./$CONFIG_SITE;;
2678 */*) ac_site_file1=$CONFIG_SITE;;
2679 *) ac_site_file1=./$CONFIG_SITE;;
2681 elif test "x$prefix" != xNONE; then
2682 ac_site_file1=$prefix/share/config.site
2683 ac_site_file2=$prefix/etc/config.site
2685 ac_site_file1=$ac_default_prefix/share/config.site
2686 ac_site_file2=$ac_default_prefix/etc/config.site
2688 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2690 test "x$ac_site_file" = xNONE && continue
2691 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2693 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2694 sed 's/^/| /' "$ac_site_file" >&5
2696 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 as_fn_error $? "failed to load site script $ac_site_file
2699 See \`config.log' for more details" "$LINENO" 5; }
2703 if test -r "$cache_file"; then
2704 # Some versions of bash will fail to source /dev/null (special files
2705 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2706 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2708 $as_echo "$as_me: loading cache $cache_file" >&6;}
2710 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2711 *) . "./$cache_file";;
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2716 $as_echo "$as_me: creating cache $cache_file" >&6;}
2720 as_fn_append ac_header_list " locale.h"
2721 as_fn_append ac_header_list " sys/select.h"
2722 as_fn_append ac_header_list " sys/uio.h"
2723 as_fn_append ac_header_list " argp.h"
2724 as_fn_append ac_header_list " unistd.h"
2725 as_fn_append ac_header_list " sys/time.h"
2726 as_fn_append ac_header_list " sys/types.h"
2727 as_fn_append ac_header_list " sys/stat.h"
2728 # Check that the precious variables saved in the cache have kept the same
2730 ac_cache_corrupted=false
2731 for ac_var in $ac_precious_vars; do
2732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733 eval ac_new_set=\$ac_env_${ac_var}_set
2734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735 eval ac_new_val=\$ac_env_${ac_var}_value
2736 case $ac_old_set,$ac_new_set in
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2739 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2747 if test "x$ac_old_val" != "x$ac_new_val"; then
2748 # differences in whitespace do not lead to failure.
2749 ac_old_val_w=`echo x $ac_old_val`
2750 ac_new_val_w=`echo x $ac_new_val`
2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2754 ac_cache_corrupted=:
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2757 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758 eval $ac_var=\$ac_old_val
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2761 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2763 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2766 # Pass precious variables to config.status.
2767 if test "$ac_new_set" = set; then
2769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 *) ac_arg=$ac_var=$ac_new_val ;;
2772 case " $ac_configure_args " in
2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2774 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2778 if $ac_cache_corrupted; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2783 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2785 ## -------------------- ##
2786 ## Main body of script. ##
2787 ## -------------------- ##
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 # LT Version numbers, remember to change them just *before* a release.
2798 # (Code changed: REVISION++)
2799 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2800 # (Interfaces added: AGE++)
2801 # (Interfaces removed/changed: AGE=0)
2803 LIBGPGME_LT_CURRENT=24
2804 # Subtract 2 from this value if you want to make the LFS transition an
2805 # ABI break. [Note to self: Remove this comment with the next regular break.]
2807 LIBGPGME_LT_REVISION=4
2809 # If the API is changed in an incompatible way: increment the next counter.
2810 GPGME_CONFIG_API_VERSION=1
2811 ##############################################
2813 NEED_GPG_ERROR_VERSION=1.11
2814 NEED_LIBASSUAN_API=2
2815 NEED_LIBASSUAN_VERSION=2.0.2
2818 PACKAGE=$PACKAGE_NAME
2819 VERSION=$PACKAGE_VERSION
2822 for ac_dir in build-aux "$srcdir"/build-aux; do
2823 if test -f "$ac_dir/install-sh"; then
2825 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 elif test -f "$ac_dir/install.sh"; then
2829 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 elif test -f "$ac_dir/shtool"; then
2833 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 if test -z "$ac_aux_dir"; then
2838 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2841 # These three variables are undocumented and unsupported,
2842 # and are intended to be withdrawn in a future Autoconf release.
2843 # They can cause serious problems if a builder's source tree is in a directory
2844 # whose full name contains unusual characters.
2845 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2846 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2847 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2852 ac_config_headers="$ac_config_headers config.h"
2854 am__api_version='1.14'
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if ${ac_cv_path_install+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883 ./ | .// | /[cC]/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2903 rm -rf conftest.one conftest.two conftest.dir
2904 echo one > conftest.one
2905 echo two > conftest.two
2907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2908 test -s conftest.one && test -s conftest.two &&
2909 test -s conftest.dir/conftest.one &&
2910 test -s conftest.dir/conftest.two
2912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2925 rm -rf conftest.one conftest.two conftest.dir
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 INSTALL=$ac_install_sh
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Reject unsafe characters in $srcdir or the absolute working directory
2952 # name. Accept space and tab only in the latter.
2956 *[\\\"\#\$\&\'\`$am_lf]*)
2957 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2960 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2961 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2964 # Do 'set' in a subshell so we don't clobber the current shell's
2965 # arguments. Must try -L first in case configure is actually a
2966 # symlink; some systems play weird games with the mod time of symlinks
2967 # (eg FreeBSD returns the mod time of the symlink's containing
2971 for am_try in 1 2; do
2972 echo "timestamp, slept: $am_has_slept" > conftest.file
2973 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974 if test "$*" = "X"; then
2976 set X `ls -t "$srcdir/configure" conftest.file`
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2988 if test "$2" = conftest.file || test $am_try -eq 2; then
2995 test "$2" = conftest.file
3001 as_fn_error $? "newly created file is older than distributed files!
3002 Check your system clock" "$LINENO" 5
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 # If we didn't sleep, we still need to ensure time stamps of config.status and
3007 # generated files are strictly newer.
3009 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3016 test "$program_prefix" != NONE &&
3017 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3018 # Use a double $ so make ignores it.
3019 test "$program_suffix" != NONE &&
3020 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3021 # Double any \ or $.
3022 # By default was `s,x,x', remove it if useless.
3023 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3024 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3026 # Expand $ac_aux_dir to an absolute path.
3027 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3029 if test x"${MISSING+set}" != xset; then
3032 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3034 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3037 # Use eval to expand $SHELL
3038 if eval "$MISSING --is-lightweight"; then
3039 am_missing_run="$MISSING "
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3043 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3046 if test x"${install_sh}" != xset; then
3049 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3051 install_sh="\${SHELL} $am_aux_dir/install-sh"
3055 # Installed binaries are usually stripped using 'strip' when the user
3056 # run "make install-strip". However 'strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the 'STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_STRIP+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3091 $as_echo "$STRIP" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$ac_cv_prog_STRIP"; then
3101 # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$ac_ct_STRIP"; then
3109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_STRIP="strip"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3129 if test -n "$ac_ct_STRIP"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3131 $as_echo "$ac_ct_STRIP" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3137 if test "x$ac_ct_STRIP" = x; then
3140 case $cross_compiling:$ac_tool_warned in
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3149 STRIP="$ac_cv_prog_STRIP"
3153 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3157 if test -z "$MKDIR_P"; then
3158 if ${ac_cv_path_mkdir+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3165 test -z "$as_dir" && as_dir=.
3166 for ac_prog in mkdir gmkdir; do
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3170 'mkdir (GNU coreutils) '* | \
3171 'mkdir (coreutils) '* | \
3172 'mkdir (fileutils) '4.1*)
3173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3183 test -d ./--version && rmdir ./--version
3184 if test "${ac_cv_path_mkdir+set}" = set; then
3185 MKDIR_P="$ac_cv_path_mkdir -p"
3187 # As a last resort, use the slow shell script. Don't cache a
3188 # value for MKDIR_P within a source directory, because that will
3189 # break other packages using the cache if that directory is
3190 # removed, or if the value is a relative name.
3191 MKDIR_P="$ac_install_sh -d"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3195 $as_echo "$MKDIR_P" >&6; }
3197 for ac_prog in gawk mawk nawk awk
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_AWK+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$AWK"; then
3207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$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_AWK="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 if test -n "$AWK"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$AWK" && break
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 cat >conftest.make <<\_ACEOF
3249 @echo '@@@%%%=$(MAKE)=@@@%%%'
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3254 eval ac_cv_prog_make_${ac_make}_set=yes;;
3256 eval ac_cv_prog_make_${ac_make}_set=no;;
3260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 SET_MAKE="MAKE=${MAKE-make}"
3270 rm -rf .tst 2>/dev/null
3271 mkdir .tst 2>/dev/null
3272 if test -d .tst; then
3277 rmdir .tst 2>/dev/null
3279 # Check whether --enable-silent-rules was given.
3280 if test "${enable_silent_rules+set}" = set; then :
3281 enableval=$enable_silent_rules;
3284 case $enable_silent_rules in # (((
3285 yes) AM_DEFAULT_VERBOSITY=0;;
3286 no) AM_DEFAULT_VERBOSITY=1;;
3287 *) AM_DEFAULT_VERBOSITY=1;;
3289 am_make=${MAKE-make}
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3291 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3292 if ${am_cv_make_support_nested_variables+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 if $as_echo 'TRUE=$(BAR$(V))
3301 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3302 am_cv_make_support_nested_variables=yes
3304 am_cv_make_support_nested_variables=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3308 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3309 if test $am_cv_make_support_nested_variables = yes; then
3311 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3313 AM_V=$AM_DEFAULT_VERBOSITY
3314 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3318 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3319 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3320 # is not polluted with repeated "-I."
3321 am__isrc=' -I$(srcdir)'
3322 # test to see if srcdir already configured
3323 if test -f $srcdir/config.status; then
3324 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3328 # test whether we have cygpath
3329 if test -z "$CYGPATH_W"; then
3330 if (cygpath --version) >/dev/null 2>/dev/null; then
3331 CYGPATH_W='cygpath -w'
3338 # Define the identity of the package.
3343 cat >>confdefs.h <<_ACEOF
3344 #define PACKAGE "$PACKAGE"
3348 cat >>confdefs.h <<_ACEOF
3349 #define VERSION "$VERSION"
3352 # Some tools Automake needs.
3354 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3357 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3360 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3363 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3366 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3368 # For better backward compatibility. To be removed once Automake 1.9.x
3369 # dies out for good. For more background, see:
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3371 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3372 mkdir_p='$(MKDIR_P)'
3374 # We need awk for the "check" target. The system "awk" is bad on
3376 # Always define AMTAR for backward compatibility. Yes, it's still used
3377 # in the wild :-( We should find a proper way to deprecate it ...
3381 # We'll loop over all known methods to create a tar archive until one works.
3382 _am_tools='gnutar pax cpio none'
3384 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3391 # POSIX will say in a future version that running "rm -f" with no argument
3392 # is OK; and we want to be able to make that assumption in our Makefile
3393 # recipes. So use an aggressive probe to check that the usage we want is
3394 # actually supported "in the wild" to an acceptable degree.
3395 # See automake bug#10828.
3396 # To make any issue more visible, cause the running configure to be aborted
3397 # by default if the 'rm' program in use doesn't match our expectations; the
3398 # user can still override this though.
3399 if rm -f && rm -fr && rm -rf; then : OK; else
3403 Your 'rm' program seems unable to run without file operands specified
3404 on the command line, even when the '-f' option is present. This is contrary
3405 to the behaviour of most rm programs out there, and not conforming with
3406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3408 Please tell bug-automake@gnu.org about your system, including the value
3409 of your $PATH and any error possibly output before this message. This
3410 can help us improve future automake versions.
3413 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3414 echo 'Configuration will proceed anyway, since you have set the' >&2
3415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3419 Aborting the configuration process, to ensure you take notice of the issue.
3421 You can download and install GNU coreutils to get an 'rm' implementation
3422 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3424 If you want to complete the configuration process using your problematic
3425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3426 to "yes", and re-run configure.
3429 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3435 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3436 # Check whether --enable-maintainer-mode was given.
3437 if test "${enable_maintainer_mode+set}" = set; then :
3438 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3440 USE_MAINTAINER_MODE=no
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3444 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3445 if test $USE_MAINTAINER_MODE = yes; then
3446 MAINTAINER_MODE_TRUE=
3447 MAINTAINER_MODE_FALSE='#'
3449 MAINTAINER_MODE_TRUE='#'
3450 MAINTAINER_MODE_FALSE=
3453 MAINT=$MAINTAINER_MODE_TRUE
3456 # Make sure we can run config.sub.
3457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3458 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3461 $as_echo_n "checking build system type... " >&6; }
3462 if ${ac_cv_build+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 ac_build_alias=$build_alias
3466 test "x$ac_build_alias" = x &&
3467 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3468 test "x$ac_build_alias" = x &&
3469 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3475 $as_echo "$ac_cv_build" >&6; }
3476 case $ac_cv_build in
3478 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3481 ac_save_IFS=$IFS; IFS='-'
3487 # Remember, the first character of IFS is used to create $*,
3488 # except with old shells:
3491 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3495 $as_echo_n "checking host system type... " >&6; }
3496 if ${ac_cv_host+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 if test "x$host_alias" = x; then
3500 ac_cv_host=$ac_cv_build
3502 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3508 $as_echo "$ac_cv_host" >&6; }
3511 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3514 ac_save_IFS=$IFS; IFS='-'
3520 # Remember, the first character of IFS is used to create $*,
3521 # except with old shells:
3524 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3527 # Check whether --enable-silent-rules was given.
3528 if test "${enable_silent_rules+set}" = set; then :
3529 enableval=$enable_silent_rules;
3532 case $enable_silent_rules in # (((
3533 yes) AM_DEFAULT_VERBOSITY=0;;
3534 no) AM_DEFAULT_VERBOSITY=1;;
3535 *) AM_DEFAULT_VERBOSITY=1;;
3537 am_make=${MAKE-make}
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3539 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3540 if ${am_cv_make_support_nested_variables+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 if $as_echo 'TRUE=$(BAR$(V))
3549 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3550 am_cv_make_support_nested_variables=yes
3552 am_cv_make_support_nested_variables=no
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3556 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3557 if test $am_cv_make_support_nested_variables = yes; then
3559 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3561 AM_V=$AM_DEFAULT_VERBOSITY
3562 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3568 # Enable GNU extensions on systems that have them.
3569 DEPDIR="${am__leading_dot}deps"
3571 ac_config_commands="$ac_config_commands depfiles"
3574 am_make=${MAKE-make}
3575 cat > confinc << 'END'
3577 @echo this is the am__doit target
3580 # If we don't find an include directive, just comment out the code.
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3582 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3586 # First try GNU make style include.
3587 echo "include confinc" > confmf
3588 # Ignore all kinds of additional output from 'make'.
3589 case `$am_make -s -f confmf 2> /dev/null` in #(
3590 *the\ am__doit\ target*)
3596 # Now try BSD make style include.
3597 if test "$am__include" = "#"; then
3598 echo '.include "confinc"' > confmf
3599 case `$am_make -s -f confmf 2> /dev/null` in #(
3600 *the\ am__doit\ target*)
3601 am__include=.include
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3610 $as_echo "$_am_result" >&6; }
3611 rm -f confinc confmf
3613 # Check whether --enable-dependency-tracking was given.
3614 if test "${enable_dependency_tracking+set}" = set; then :
3615 enableval=$enable_dependency_tracking;
3618 if test "x$enable_dependency_tracking" != xno; then
3619 am_depcomp="$ac_aux_dir/depcomp"
3623 if test "x$enable_dependency_tracking" != xno; then
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_CC+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3676 if test -z "$ac_cv_prog_CC"; then
3678 # Extract the first word of "gcc", so it can be a program name with args.
3679 set dummy gcc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$ac_ct_CC"; then
3686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_ac_ct_CC="gcc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3708 $as_echo "$ac_ct_CC" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3714 if test "x$ac_ct_CC" = x; then
3717 case $cross_compiling:$ac_tool_warned in
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3721 ac_tool_warned=yes ;;
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}cc; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="${ac_tool_prefix}cc"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 if test -n "$CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 $as_echo "$CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3770 if test -z "$CC"; then
3771 # Extract the first word of "cc", so it can be a program name with args.
3772 set dummy cc; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3778 if test -n "$CC"; then
3779 ac_cv_prog_CC="$CC" # Let the user override the test.
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3790 ac_prog_rejected=yes
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 if test $ac_prog_rejected = yes; then
3802 # We found a bogon in the path, so make sure we never use it.
3803 set dummy $ac_cv_prog_CC
3805 if test $# != 0; then
3806 # We chose a different compiler from the bogus one.
3807 # However, it has the same basename, so the bogon will be chosen
3808 # first if we set CC to just the basename; use the full file name.
3810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3816 if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 $as_echo "$CC" >&6; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3826 if test -z "$CC"; then
3827 if test -n "$ac_tool_prefix"; then
3828 for ac_prog in cl.exe
3830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 if test -n "$CC"; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860 $as_echo "$CC" >&6; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3867 test -n "$CC" && break
3870 if test -z "$CC"; then
3872 for ac_prog in cl.exe
3874 # Extract the first word of "$ac_prog", so it can be a program name with args.
3875 set dummy $ac_prog; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3879 $as_echo_n "(cached) " >&6
3881 if test -n "$ac_ct_CC"; then
3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_ac_ct_CC="$ac_prog"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902 if test -n "$ac_ct_CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904 $as_echo "$ac_ct_CC" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3911 test -n "$ac_ct_CC" && break
3914 if test "x$ac_ct_CC" = x; then
3917 case $cross_compiling:$ac_tool_warned in
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3921 ac_tool_warned=yes ;;
3930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "no acceptable C compiler found in \$PATH
3933 See \`config.log' for more details" "$LINENO" 5; }
3935 # Provide some information about the compiler.
3936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3939 for ac_option in --version -v -V -qversion; do
3940 { { ac_try="$ac_compiler $ac_option >&5"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3949 if test -s conftest.err; then
3951 ... rest of stderr output deleted ...
3952 10q' conftest.err >conftest.er1
3953 cat conftest.er1 >&5
3955 rm -f conftest.er1 conftest.err
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3971 ac_clean_files_save=$ac_clean_files
3972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3973 # Try to create an executable without -o first, disregard a.out.
3974 # It will help us diagnose broken compilers, and finding out an intuition
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3977 $as_echo_n "checking whether the C compiler works... " >&6; }
3978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3980 # The possible output files:
3981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3984 for ac_file in $ac_files
3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3993 if { { ac_try="$ac_link_default"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_link_default") 2>&5
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }; then :
4004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4007 # so that the user can short-circuit this test for compilers unknown to
4009 for ac_file in $ac_files ''
4011 test -f "$ac_file" || continue
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4016 # We found the default executable, but exeext='' is most
4020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4024 # We set ac_cv_exeext here because the later test for it is not
4025 # safe: cross compilers may not add the suffix if given an `-o'
4026 # argument, so we may need to know it at that point already.
4027 # Even if this section looks crufty: it has the advantage of
4034 test "$ac_cv_exeext" = no && ac_cv_exeext=
4039 if test -z "$ac_file"; then :
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error 77 "C compiler cannot create executables
4048 See \`config.log' for more details" "$LINENO" 5; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051 $as_echo "yes" >&6; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4054 $as_echo_n "checking for C compiler default output file name... " >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4056 $as_echo "$ac_file" >&6; }
4057 ac_exeext=$ac_cv_exeext
4059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4060 ac_clean_files=$ac_clean_files_save
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4062 $as_echo_n "checking for suffix of executables... " >&6; }
4063 if { { ac_try="$ac_link"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_link") 2>&5
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }; then :
4074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4076 # work properly (i.e., refer to `conftest.exe'), while it won't with
4078 for ac_file in conftest.exe conftest conftest.*; do
4079 test -f "$ac_file" || continue
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4091 See \`config.log' for more details" "$LINENO" 5; }
4093 rm -f conftest conftest$ac_cv_exeext
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4095 $as_echo "$ac_cv_exeext" >&6; }
4097 rm -f conftest.$ac_ext
4098 EXEEXT=$ac_cv_exeext
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4106 FILE *f = fopen ("conftest.out", "w");
4107 return ferror (f) || fclose (f) != 0;
4113 ac_clean_files="$ac_clean_files conftest.out"
4114 # Check that the compiler produces executables we can run. If not, either
4115 # the compiler is broken, or we cross compile.
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4117 $as_echo_n "checking whether we are cross compiling... " >&6; }
4118 if test "$cross_compiling" != yes; then
4119 { { ac_try="$ac_link"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125 $as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_link") 2>&5
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }
4130 if { ac_try='./conftest$ac_cv_exeext'
4131 { { case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136 $as_echo "$ac_try_echo"; } >&5
4137 (eval "$ac_try") 2>&5
4139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140 test $ac_status = 0; }; }; then
4143 if test "$cross_compiling" = maybe; then
4146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 as_fn_error $? "cannot run C compiled programs.
4149 If you meant to cross compile, use \`--host'.
4150 See \`config.log' for more details" "$LINENO" 5; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4155 $as_echo "$cross_compiling" >&6; }
4157 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4158 ac_clean_files=$ac_clean_files_save
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4160 $as_echo_n "checking for suffix of object files... " >&6; }
4161 if ${ac_cv_objext+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4175 rm -f conftest.o conftest.obj
4176 if { { ac_try="$ac_compile"
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_compile") 2>&5
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; then :
4187 for ac_file in conftest.o conftest.obj conftest.*; do
4188 test -f "$ac_file" || continue;
4190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4196 $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "cannot compute suffix of object files: cannot compile
4202 See \`config.log' for more details" "$LINENO" 5; }
4204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4207 $as_echo "$ac_cv_objext" >&6; }
4208 OBJEXT=$ac_cv_objext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4212 if ${ac_cv_c_compiler_gnu+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4229 if ac_fn_c_try_compile "$LINENO"; then :
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4240 if test $ac_compiler_gnu = yes; then
4245 ac_test_CFLAGS=${CFLAGS+set}
4246 ac_save_CFLAGS=$CFLAGS
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4249 if ${ac_cv_prog_cc_g+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 ac_save_c_werror_flag=$ac_c_werror_flag
4253 ac_c_werror_flag=yes
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 if ac_fn_c_try_compile "$LINENO"; then :
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4282 if ac_fn_c_try_compile "$LINENO"; then :
4285 ac_c_werror_flag=$ac_save_c_werror_flag
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4298 if ac_fn_c_try_compile "$LINENO"; then :
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_c_werror_flag=$ac_save_c_werror_flag
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4309 $as_echo "$ac_cv_prog_cc_g" >&6; }
4310 if test "$ac_test_CFLAGS" = set; then
4311 CFLAGS=$ac_save_CFLAGS
4312 elif test $ac_cv_prog_cc_g = yes; then
4313 if test "$GCC" = yes; then
4319 if test "$GCC" = yes; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4327 if ${ac_cv_prog_cc_c89+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 ac_cv_prog_cc_c89=no
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4338 struct buf { int x; };
4339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4340 static char *e (p, i)
4346 static char *f (char * (*g) (char **, int), char **p, ...)
4351 s = g (p, va_arg (v,int));
4356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4357 function prototypes and stuff, but not '\xHH' hex character constants.
4358 These don't provoke an error unfortunately, instead are silently treated
4359 as 'x'. The following induces an error, until -std is added to get
4360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4361 array size at least. It's necessary to write '\x00'==0 to get something
4362 that's true only with -std. */
4363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4366 inside strings and character constants. */
4368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4370 int test (int i, double x);
4371 struct s1 {int (*f) (int a);};
4372 struct s2 {int (*f) (double a);};
4373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4387 CC="$ac_save_CC $ac_arg"
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389 ac_cv_prog_cc_c89=$ac_arg
4391 rm -f core conftest.err conftest.$ac_objext
4392 test "x$ac_cv_prog_cc_c89" != "xno" && break
4394 rm -f conftest.$ac_ext
4399 case "x$ac_cv_prog_cc_c89" in
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4402 $as_echo "none needed" >&6; } ;;
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4405 $as_echo "unsupported" >&6; } ;;
4407 CC="$CC $ac_cv_prog_cc_c89"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4411 if test "x$ac_cv_prog_cc_c89" != xno; then :
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4427 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4428 if ${am_cv_prog_cc_c_o+:} false; then :
4429 $as_echo_n "(cached) " >&6
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4442 # Make sure it works both with $CC and with simple cc.
4443 # Following AC_PROG_CC_C_O, we do the test twice because some
4444 # compilers refuse to overwrite an existing .o file with -o,
4445 # though they will create one.
4446 am_cv_prog_cc_c_o=yes
4448 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4449 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } \
4453 && test -f conftest2.$ac_objext; then
4456 am_cv_prog_cc_c_o=no
4460 rm -f core conftest*
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4464 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4465 if test "$am_cv_prog_cc_c_o" != yes; then
4466 # Losing compiler, so override with the script.
4467 # FIXME: It is wrong to rewrite CC.
4468 # But if we don't then we get into trouble of one sort or another.
4469 # A longer-term fix would be to have automake use am__CC in this case,
4470 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4471 CC="$am_aux_dir/compile $CC"
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480 depcc="$CC" am_compiler_list=
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4483 $as_echo_n "checking dependency style of $depcc... " >&6; }
4484 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4488 # We make a subdir and do the tests there. Otherwise we can end up
4489 # making bogus files that we don't know about and never remove. For
4490 # instance it was reported that on HP-UX the gcc test will end up
4491 # making a dummy file named 'D' -- because '-MD' means "put the output
4495 # Copy depcomp to subdir because otherwise we won't find it if we're
4496 # using a relative directory.
4497 cp "$am_depcomp" conftest.dir
4499 # We will build objects and dependencies in a subdirectory because
4500 # it helps to detect inapplicable dependency modes. For instance
4501 # both Tru64's cc and ICC support -MD to output dependencies as a
4502 # side effect of compilation, but ICC will put the dependencies in
4503 # the current directory while Tru64 will put them in the object
4507 am_cv_CC_dependencies_compiler_type=none
4508 if test "$am_compiler_list" = ""; then
4509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4512 case " $depcc " in #(
4513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4516 for depmode in $am_compiler_list; do
4517 # Setup a source with many dependencies, because some compilers
4518 # like to wrap large dependency lists on column 80 (with \), and
4519 # we should not choose a depcomp mode which is confused by this.
4521 # We need to recreate these files for each test, as the compiler may
4522 # overwrite some of them when testing with obscure command lines.
4523 # This happens at least with the AIX C compiler.
4525 for i in 1 2 3 4 5 6; do
4526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4528 # Solaris 10 /bin/sh.
4529 echo '/* dummy */' > sub/conftst$i.h
4531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4533 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4534 # mode. It turns out that the SunPro C++ compiler does not properly
4535 # handle '-M -o', and we need to detect this. Also, some Intel
4536 # versions had trouble with output in subdirs.
4537 am__obj=sub/conftest.${OBJEXT-o}
4538 am__minus_obj="-o $am__obj"
4541 # This depmode causes a compiler race in universal mode.
4542 test "$am__universal" = false || continue
4545 # After this tag, mechanisms are not by side-effect, so they'll
4546 # only be used when explicitly requested.
4547 if test "x$enable_dependency_tracking" = xyes; then
4553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4554 # This compiler won't grok '-c -o', but also, the minuso test has
4555 # not run yet. These depmodes are late enough in the game, and
4556 # so weak that their functioning should not be impacted.
4557 am__obj=conftest.${OBJEXT-o}
4562 if depmode=$depmode \
4563 source=sub/conftest.c object=$am__obj \
4564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566 >/dev/null 2>conftest.err &&
4567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571 # icc doesn't choke on unknown options, it will just issue warnings
4572 # or remarks (even with -Werror). So we grep stderr for any message
4573 # that says an option was ignored or not supported.
4574 # When given -MP, icc 7.0 and 7.1 complain thusly:
4575 # icc: Command line warning: ignoring option '-M'; no argument required
4576 # The diagnosis changed in icc 8.0:
4577 # icc: Command line remark: option '-MP' not supported
4578 if (grep 'ignoring option' conftest.err ||
4579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580 am_cv_CC_dependencies_compiler_type=$depmode
4589 am_cv_CC_dependencies_compiler_type=none
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4598 test "x$enable_dependency_tracking" != xno \
4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4601 am__fastdepCC_FALSE='#'
4603 am__fastdepCC_TRUE='#'
4604 am__fastdepCC_FALSE=
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4615 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4616 # On Suns, sometimes $CPP names a directory.
4617 if test -n "$CPP" && test -d "$CPP"; then
4620 if test -z "$CPP"; then
4621 if ${ac_cv_prog_CPP+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 # Double quotes because CPP needs to be expanded
4625 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4628 for ac_c_preproc_warn_flag in '' yes
4630 # Use a header file that comes with gcc, so configuring glibc
4631 # with a fresh cross-compiler works.
4632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 # <limits.h> exists even on freestanding compilers.
4634 # On the NeXT, cc -E runs the code through the compiler's parser,
4635 # not just through cpp. "Syntax error" is here to catch this case.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 # include <limits.h>
4641 # include <assert.h>
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4648 # Broken: fails on valid input.
4651 rm -f conftest.err conftest.i conftest.$ac_ext
4653 # OK, works on sane cases. Now check whether nonexistent headers
4654 # can be detected and how.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <ac_nonexistent.h>
4659 if ac_fn_c_try_cpp "$LINENO"; then :
4660 # Broken: success on invalid input.
4663 # Passes both tests.
4667 rm -f conftest.err conftest.i conftest.$ac_ext
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.i conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then :
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4685 $as_echo "$CPP" >&6; }
4687 for ac_c_preproc_warn_flag in '' yes
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4698 # include <limits.h>
4700 # include <assert.h>
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4707 # Broken: fails on valid input.
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719 # Broken: success on invalid input.
4722 # Passes both tests.
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4736 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details" "$LINENO" 5; }
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4748 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4749 if ${ac_cv_path_GREP+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 if test -z "$GREP"; then
4753 ac_path_GREP_found=false
4754 # Loop through the user's path and test for each of PROGNAME-LIST
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 test -z "$as_dir" && as_dir=.
4760 for ac_prog in grep ggrep; do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4763 as_fn_executable_p "$ac_path_GREP" || continue
4764 # Check for GNU ac_path_GREP and select it if it is found.
4765 # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4771 $as_echo_n 0123456789 >"conftest.in"
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 $as_echo 'GREP' >> "conftest.nl"
4778 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780 as_fn_arith $ac_count + 1 && ac_count=$as_val
4781 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_GREP="$ac_path_GREP"
4784 ac_path_GREP_max=$ac_count
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 $ac_path_GREP_found && break 3
4797 if test -z "$ac_cv_path_GREP"; then
4798 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801 ac_cv_path_GREP=$GREP
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4806 $as_echo "$ac_cv_path_GREP" >&6; }
4807 GREP="$ac_cv_path_GREP"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4811 $as_echo_n "checking for egrep... " >&6; }
4812 if ${ac_cv_path_EGREP+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4816 then ac_cv_path_EGREP="$GREP -E"
4818 if test -z "$EGREP"; then
4819 ac_path_EGREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 test -z "$as_dir" && as_dir=.
4826 for ac_prog in egrep; do
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4829 as_fn_executable_p "$ac_path_EGREP" || continue
4830 # Check for GNU ac_path_EGREP and select it if it is found.
4831 # Check for GNU $ac_path_EGREP
4832 case `"$ac_path_EGREP" --version 2>&1` in
4834 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4837 $as_echo_n 0123456789 >"conftest.in"
4840 cat "conftest.in" "conftest.in" >"conftest.tmp"
4841 mv "conftest.tmp" "conftest.in"
4842 cp "conftest.in" "conftest.nl"
4843 $as_echo 'EGREP' >> "conftest.nl"
4844 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846 as_fn_arith $ac_count + 1 && ac_count=$as_val
4847 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4848 # Best one so far, save it but keep looking for a better one
4849 ac_cv_path_EGREP="$ac_path_EGREP"
4850 ac_path_EGREP_max=$ac_count
4852 # 10*(2^10) chars as input seems more than enough
4853 test $ac_count -gt 10 && break
4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858 $ac_path_EGREP_found && break 3
4863 if test -z "$ac_cv_path_EGREP"; then
4864 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867 ac_cv_path_EGREP=$EGREP
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4873 $as_echo "$ac_cv_path_EGREP" >&6; }
4874 EGREP="$ac_cv_path_EGREP"
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4878 $as_echo_n "checking for ANSI C header files... " >&6; }
4879 if ${ac_cv_header_stdc+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898 ac_cv_header_stdc=yes
4900 ac_cv_header_stdc=no
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 if test $ac_cv_header_stdc = yes; then
4905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912 $EGREP "memchr" >/dev/null 2>&1; then :
4915 ac_cv_header_stdc=no
4921 if test $ac_cv_header_stdc = yes; then
4922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "free" >/dev/null 2>&1; then :
4932 ac_cv_header_stdc=no
4938 if test $ac_cv_header_stdc = yes; then
4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940 if test "$cross_compiling" = yes; then :
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4947 #if ((' ' & 0x0FF) == 0x020)
4948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951 # define ISLOWER(c) \
4952 (('a' <= (c) && (c) <= 'i') \
4953 || ('j' <= (c) && (c) <= 'r') \
4954 || ('s' <= (c) && (c) <= 'z'))
4955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4963 for (i = 0; i < 256; i++)
4964 if (XOR (islower (i), ISLOWER (i))
4965 || toupper (i) != TOUPPER (i))
4970 if ac_fn_c_try_run "$LINENO"; then :
4973 ac_cv_header_stdc=no
4975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4976 conftest.$ac_objext conftest.beam conftest.$ac_ext
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4982 $as_echo "$ac_cv_header_stdc" >&6; }
4983 if test $ac_cv_header_stdc = yes; then
4985 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4991 inttypes.h stdint.h unistd.h
4993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4997 cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5008 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5015 if test "$MINIX" = yes; then
5017 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5020 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5023 $as_echo "#define _MINIX 1" >>confdefs.h
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5029 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5030 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5036 # define __EXTENSIONS__ 1
5037 $ac_includes_default
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 ac_cv_safe_to_define___extensions__=yes
5049 ac_cv_safe_to_define___extensions__=no
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5054 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5055 test $ac_cv_safe_to_define___extensions__ = yes &&
5056 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5058 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5060 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5062 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5064 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_CC+:} false; then :
5082 $as_echo_n "(cached) " >&6
5084 if test -n "$CC"; then
5085 ac_cv_prog_CC="$CC" # Let the user override the test.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 if test -n "$CC"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5107 $as_echo "$CC" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5115 if test -z "$ac_cv_prog_CC"; then
5117 # Extract the first word of "gcc", so it can be a program name with args.
5118 set dummy gcc; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5122 $as_echo_n "(cached) " >&6
5124 if test -n "$ac_ct_CC"; then
5125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_ac_ct_CC="gcc"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5145 if test -n "$ac_ct_CC"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5147 $as_echo "$ac_ct_CC" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5153 if test "x$ac_ct_CC" = x; then
5156 case $cross_compiling:$ac_tool_warned in
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5168 if test -z "$CC"; then
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}cc; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_CC+:} false; then :
5175 $as_echo_n "(cached) " >&6
5177 if test -n "$CC"; then
5178 ac_cv_prog_CC="$CC" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_CC="${ac_tool_prefix}cc"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 if test -n "$CC"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5209 if test -z "$CC"; then
5210 # Extract the first word of "cc", so it can be a program name with args.
5211 set dummy cc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_CC+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$CC"; then
5218 ac_cv_prog_CC="$CC" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5229 ac_prog_rejected=yes
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 if test $ac_prog_rejected = yes; then
5241 # We found a bogon in the path, so make sure we never use it.
5242 set dummy $ac_cv_prog_CC
5244 if test $# != 0; then
5245 # We chose a different compiler from the bogus one.
5246 # However, it has the same basename, so the bogon will be chosen
5247 # first if we set CC to just the basename; use the full file name.
5249 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5255 if test -n "$CC"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5257 $as_echo "$CC" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5265 if test -z "$CC"; then
5266 if test -n "$ac_tool_prefix"; then
5267 for ac_prog in cl.exe
5269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_CC+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 if test -n "$CC"; then
5277 ac_cv_prog_CC="$CC" # Let the user override the test.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 if test -n "$CC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5299 $as_echo "$CC" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5306 test -n "$CC" && break
5309 if test -z "$CC"; then
5311 for ac_prog in cl.exe
5313 # Extract the first word of "$ac_prog", so it can be a program name with args.
5314 set dummy $ac_prog; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$ac_ct_CC"; then
5321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_CC="$ac_prog"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5341 if test -n "$ac_ct_CC"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5343 $as_echo "$ac_ct_CC" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5350 test -n "$ac_ct_CC" && break
5353 if test "x$ac_ct_CC" = x; then
5356 case $cross_compiling:$ac_tool_warned in
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5360 ac_tool_warned=yes ;;
5369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5371 as_fn_error $? "no acceptable C compiler found in \$PATH
5372 See \`config.log' for more details" "$LINENO" 5; }
5374 # Provide some information about the compiler.
5375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5378 for ac_option in --version -v -V -qversion; do
5379 { { ac_try="$ac_compiler $ac_option >&5"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5385 $as_echo "$ac_try_echo"; } >&5
5386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5388 if test -s conftest.err; then
5390 ... rest of stderr output deleted ...
5391 10q' conftest.err >conftest.er1
5392 cat conftest.er1 >&5
5394 rm -f conftest.er1 conftest.err
5395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5396 test $ac_status = 0; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5401 if ${ac_cv_c_compiler_gnu+:} false; then :
5402 $as_echo_n "(cached) " >&6
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5418 if ac_fn_c_try_compile "$LINENO"; then :
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5429 if test $ac_compiler_gnu = yes; then
5434 ac_test_CFLAGS=${CFLAGS+set}
5435 ac_save_CFLAGS=$CFLAGS
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5438 if ${ac_cv_prog_cc_g+:} false; then :
5439 $as_echo_n "(cached) " >&6
5441 ac_save_c_werror_flag=$ac_c_werror_flag
5442 ac_c_werror_flag=yes
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5456 if ac_fn_c_try_compile "$LINENO"; then :
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5471 if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_c_werror_flag=$ac_save_c_werror_flag
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5487 if ac_fn_c_try_compile "$LINENO"; then :
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 ac_c_werror_flag=$ac_save_c_werror_flag
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5498 $as_echo "$ac_cv_prog_cc_g" >&6; }
5499 if test "$ac_test_CFLAGS" = set; then
5500 CFLAGS=$ac_save_CFLAGS
5501 elif test $ac_cv_prog_cc_g = yes; then
5502 if test "$GCC" = yes; then
5508 if test "$GCC" = yes; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5516 if ${ac_cv_prog_cc_c89+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 ac_cv_prog_cc_c89=no
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5527 struct buf { int x; };
5528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5529 static char *e (p, i)
5535 static char *f (char * (*g) (char **, int), char **p, ...)
5540 s = g (p, va_arg (v,int));
5545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5546 function prototypes and stuff, but not '\xHH' hex character constants.
5547 These don't provoke an error unfortunately, instead are silently treated
5548 as 'x'. The following induces an error, until -std is added to get
5549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5550 array size at least. It's necessary to write '\x00'==0 to get something
5551 that's true only with -std. */
5552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5555 inside strings and character constants. */
5557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5559 int test (int i, double x);
5560 struct s1 {int (*f) (int a);};
5561 struct s2 {int (*f) (double a);};
5562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5576 CC="$ac_save_CC $ac_arg"
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 ac_cv_prog_cc_c89=$ac_arg
5580 rm -f core conftest.err conftest.$ac_objext
5581 test "x$ac_cv_prog_cc_c89" != "xno" && break
5583 rm -f conftest.$ac_ext
5588 case "x$ac_cv_prog_cc_c89" in
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5591 $as_echo "none needed" >&6; } ;;
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5594 $as_echo "unsupported" >&6; } ;;
5596 CC="$CC $ac_cv_prog_cc_c89"
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5600 if test "x$ac_cv_prog_cc_c89" != xno; then :
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5616 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5617 if ${am_cv_prog_cc_c_o+:} false; then :
5618 $as_echo_n "(cached) " >&6
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5631 # Make sure it works both with $CC and with simple cc.
5632 # Following AC_PROG_CC_C_O, we do the test twice because some
5633 # compilers refuse to overwrite an existing .o file with -o,
5634 # though they will create one.
5635 am_cv_prog_cc_c_o=yes
5637 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5638 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } \
5642 && test -f conftest2.$ac_objext; then
5645 am_cv_prog_cc_c_o=no
5649 rm -f core conftest*
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5653 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5654 if test "$am_cv_prog_cc_c_o" != yes; then
5655 # Losing compiler, so override with the script.
5656 # FIXME: It is wrong to rewrite CC.
5657 # But if we don't then we get into trouble of one sort or another.
5658 # A longer-term fix would be to have automake use am__CC in this case,
5659 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5660 CC="$am_aux_dir/compile $CC"
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669 depcc="$CC" am_compiler_list=
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5672 $as_echo_n "checking dependency style of $depcc... " >&6; }
5673 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5674 $as_echo_n "(cached) " >&6
5676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5677 # We make a subdir and do the tests there. Otherwise we can end up
5678 # making bogus files that we don't know about and never remove. For
5679 # instance it was reported that on HP-UX the gcc test will end up
5680 # making a dummy file named 'D' -- because '-MD' means "put the output
5684 # Copy depcomp to subdir because otherwise we won't find it if we're
5685 # using a relative directory.
5686 cp "$am_depcomp" conftest.dir
5688 # We will build objects and dependencies in a subdirectory because
5689 # it helps to detect inapplicable dependency modes. For instance
5690 # both Tru64's cc and ICC support -MD to output dependencies as a
5691 # side effect of compilation, but ICC will put the dependencies in
5692 # the current directory while Tru64 will put them in the object
5696 am_cv_CC_dependencies_compiler_type=none
5697 if test "$am_compiler_list" = ""; then
5698 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5701 case " $depcc " in #(
5702 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5705 for depmode in $am_compiler_list; do
5706 # Setup a source with many dependencies, because some compilers
5707 # like to wrap large dependency lists on column 80 (with \), and
5708 # we should not choose a depcomp mode which is confused by this.
5710 # We need to recreate these files for each test, as the compiler may
5711 # overwrite some of them when testing with obscure command lines.
5712 # This happens at least with the AIX C compiler.
5714 for i in 1 2 3 4 5 6; do
5715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5716 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5717 # Solaris 10 /bin/sh.
5718 echo '/* dummy */' > sub/conftst$i.h
5720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5722 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5723 # mode. It turns out that the SunPro C++ compiler does not properly
5724 # handle '-M -o', and we need to detect this. Also, some Intel
5725 # versions had trouble with output in subdirs.
5726 am__obj=sub/conftest.${OBJEXT-o}
5727 am__minus_obj="-o $am__obj"
5730 # This depmode causes a compiler race in universal mode.
5731 test "$am__universal" = false || continue
5734 # After this tag, mechanisms are not by side-effect, so they'll
5735 # only be used when explicitly requested.
5736 if test "x$enable_dependency_tracking" = xyes; then
5742 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5743 # This compiler won't grok '-c -o', but also, the minuso test has
5744 # not run yet. These depmodes are late enough in the game, and
5745 # so weak that their functioning should not be impacted.
5746 am__obj=conftest.${OBJEXT-o}
5751 if depmode=$depmode \
5752 source=sub/conftest.c object=$am__obj \
5753 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5754 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5755 >/dev/null 2>conftest.err &&
5756 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5757 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5758 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5759 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5760 # icc doesn't choke on unknown options, it will just issue warnings
5761 # or remarks (even with -Werror). So we grep stderr for any message
5762 # that says an option was ignored or not supported.
5763 # When given -MP, icc 7.0 and 7.1 complain thusly:
5764 # icc: Command line warning: ignoring option '-M'; no argument required
5765 # The diagnosis changed in icc 8.0:
5766 # icc: Command line remark: option '-MP' not supported
5767 if (grep 'ignoring option' conftest.err ||
5768 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5769 am_cv_CC_dependencies_compiler_type=$depmode
5778 am_cv_CC_dependencies_compiler_type=none
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5783 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5784 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5787 test "x$enable_dependency_tracking" != xno \
5788 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5790 am__fastdepCC_FALSE='#'
5792 am__fastdepCC_TRUE='#'
5793 am__fastdepCC_FALSE=
5798 ac_cpp='$CXXCPP $CPPFLAGS'
5799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5802 if test -z "$CXX"; then
5803 if test -n "$CCC"; then
5806 if test -n "$ac_tool_prefix"; then
5807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_CXX+:} false; then :
5814 $as_echo_n "(cached) " >&6
5816 if test -n "$CXX"; then
5817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 if test -n "$CXX"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5839 $as_echo "$CXX" >&6; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5846 test -n "$CXX" && break
5849 if test -z "$CXX"; then
5851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5853 # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy $ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$ac_ct_CXX"; then
5861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_ac_ct_CXX="$ac_prog"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5881 if test -n "$ac_ct_CXX"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5883 $as_echo "$ac_ct_CXX" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5890 test -n "$ac_ct_CXX" && break
5893 if test "x$ac_ct_CXX" = x; then
5896 case $cross_compiling:$ac_tool_warned in
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900 ac_tool_warned=yes ;;
5908 # Provide some information about the compiler.
5909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5912 for ac_option in --version -v -V -qversion; do
5913 { { ac_try="$ac_compiler $ac_option >&5"
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5922 if test -s conftest.err; then
5924 ... rest of stderr output deleted ...
5925 10q' conftest.err >conftest.er1
5926 cat conftest.er1 >&5
5928 rm -f conftest.er1 conftest.err
5929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5930 test $ac_status = 0; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5934 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5935 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5936 $as_echo_n "(cached) " >&6
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5952 if ac_fn_cxx_try_compile "$LINENO"; then :
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5962 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5963 if test $ac_compiler_gnu = yes; then
5968 ac_test_CXXFLAGS=${CXXFLAGS+set}
5969 ac_save_CXXFLAGS=$CXXFLAGS
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5971 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5972 if ${ac_cv_prog_cxx_g+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5976 ac_cxx_werror_flag=yes
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5990 if ac_fn_cxx_try_compile "$LINENO"; then :
5991 ac_cv_prog_cxx_g=yes
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
6005 if ac_fn_cxx_try_compile "$LINENO"; then :
6008 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6021 if ac_fn_cxx_try_compile "$LINENO"; then :
6022 ac_cv_prog_cxx_g=yes
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6032 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6033 if test "$ac_test_CXXFLAGS" = set; then
6034 CXXFLAGS=$ac_save_CXXFLAGS
6035 elif test $ac_cv_prog_cxx_g = yes; then
6036 if test "$GXX" = yes; then
6042 if test "$GXX" = yes; then
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6054 depcc="$CXX" am_compiler_list=
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6057 $as_echo_n "checking dependency style of $depcc... " >&6; }
6058 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6059 $as_echo_n "(cached) " >&6
6061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6062 # We make a subdir and do the tests there. Otherwise we can end up
6063 # making bogus files that we don't know about and never remove. For
6064 # instance it was reported that on HP-UX the gcc test will end up
6065 # making a dummy file named 'D' -- because '-MD' means "put the output
6069 # Copy depcomp to subdir because otherwise we won't find it if we're
6070 # using a relative directory.
6071 cp "$am_depcomp" conftest.dir
6073 # We will build objects and dependencies in a subdirectory because
6074 # it helps to detect inapplicable dependency modes. For instance
6075 # both Tru64's cc and ICC support -MD to output dependencies as a
6076 # side effect of compilation, but ICC will put the dependencies in
6077 # the current directory while Tru64 will put them in the object
6081 am_cv_CXX_dependencies_compiler_type=none
6082 if test "$am_compiler_list" = ""; then
6083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6086 case " $depcc " in #(
6087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6090 for depmode in $am_compiler_list; do
6091 # Setup a source with many dependencies, because some compilers
6092 # like to wrap large dependency lists on column 80 (with \), and
6093 # we should not choose a depcomp mode which is confused by this.
6095 # We need to recreate these files for each test, as the compiler may
6096 # overwrite some of them when testing with obscure command lines.
6097 # This happens at least with the AIX C compiler.
6099 for i in 1 2 3 4 5 6; do
6100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6101 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6102 # Solaris 10 /bin/sh.
6103 echo '/* dummy */' > sub/conftst$i.h
6105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6107 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6108 # mode. It turns out that the SunPro C++ compiler does not properly
6109 # handle '-M -o', and we need to detect this. Also, some Intel
6110 # versions had trouble with output in subdirs.
6111 am__obj=sub/conftest.${OBJEXT-o}
6112 am__minus_obj="-o $am__obj"
6115 # This depmode causes a compiler race in universal mode.
6116 test "$am__universal" = false || continue
6119 # After this tag, mechanisms are not by side-effect, so they'll
6120 # only be used when explicitly requested.
6121 if test "x$enable_dependency_tracking" = xyes; then
6127 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6128 # This compiler won't grok '-c -o', but also, the minuso test has
6129 # not run yet. These depmodes are late enough in the game, and
6130 # so weak that their functioning should not be impacted.
6131 am__obj=conftest.${OBJEXT-o}
6136 if depmode=$depmode \
6137 source=sub/conftest.c object=$am__obj \
6138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6140 >/dev/null 2>conftest.err &&
6141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6145 # icc doesn't choke on unknown options, it will just issue warnings
6146 # or remarks (even with -Werror). So we grep stderr for any message
6147 # that says an option was ignored or not supported.
6148 # When given -MP, icc 7.0 and 7.1 complain thusly:
6149 # icc: Command line warning: ignoring option '-M'; no argument required
6150 # The diagnosis changed in icc 8.0:
6151 # icc: Command line remark: option '-MP' not supported
6152 if (grep 'ignoring option' conftest.err ||
6153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6154 am_cv_CXX_dependencies_compiler_type=$depmode
6163 am_cv_CXX_dependencies_compiler_type=none
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6168 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6172 test "x$enable_dependency_tracking" != xno \
6173 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6174 am__fastdepCXX_TRUE=
6175 am__fastdepCXX_FALSE='#'
6177 am__fastdepCXX_TRUE='#'
6178 am__fastdepCXX_FALSE=
6183 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6184 for ac_prog in gitlog-to-changelog
6186 # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$GITLOG_TO_CHANGELOG"; then
6194 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6214 if test -n "$GITLOG_TO_CHANGELOG"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6216 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6223 test -n "$GITLOG_TO_CHANGELOG" && break
6225 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6235 cat >>confdefs.h <<_ACEOF
6236 #define PACKAGE "$PACKAGE"
6240 cat >>confdefs.h <<_ACEOF
6241 #define VERSION "$VERSION"
6244 VERSION_NUMBER=0x010505
6247 # Don't default to build static libs.
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6252 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6257 macro_version='2.4.2'
6258 macro_revision='1.3337'
6272 ltmain="$ac_aux_dir/ltmain.sh"
6274 # Backslashify metacharacters that are still active within
6275 # double-quoted strings.
6276 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6278 # Same as above, but do not quote variable references.
6279 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6281 # Sed substitution to delay expansion of an escaped shell variable in a
6282 # double_quote_subst'ed string.
6283 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6285 # Sed substitution to delay expansion of an escaped single quote.
6286 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6288 # Sed substitution to avoid accidental globbing in evaled expressions
6289 no_glob_subst='s/\*/\\\*/g'
6291 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6292 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6293 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6296 $as_echo_n "checking how to print strings... " >&6; }
6297 # Test print first, because it will be a builtin if present.
6298 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6299 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6301 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6304 # Use this function as a fallback that always works.
6305 func_fallback_echo ()
6307 eval 'cat <<_LTECHO_EOF
6311 ECHO='func_fallback_echo'
6314 # func_echo_all arg...
6315 # Invoke $ECHO with all args, space-separated.
6322 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6323 $as_echo "printf" >&6; } ;;
6324 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6325 $as_echo "print -r" >&6; } ;;
6326 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6327 $as_echo "cat" >&6; } ;;
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6344 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6345 if ${ac_cv_path_SED+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6349 for ac_i in 1 2 3 4 5 6 7; do
6350 ac_script="$ac_script$as_nl$ac_script"
6352 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6353 { ac_script=; unset ac_script;}
6354 if test -z "$SED"; then
6355 ac_path_SED_found=false
6356 # Loop through the user's path and test for each of PROGNAME-LIST
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_prog in sed gsed; do
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6365 as_fn_executable_p "$ac_path_SED" || continue
6366 # Check for GNU ac_path_SED and select it if it is found.
6367 # Check for GNU $ac_path_SED
6368 case `"$ac_path_SED" --version 2>&1` in
6370 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6373 $as_echo_n 0123456789 >"conftest.in"
6376 cat "conftest.in" "conftest.in" >"conftest.tmp"
6377 mv "conftest.tmp" "conftest.in"
6378 cp "conftest.in" "conftest.nl"
6379 $as_echo '' >> "conftest.nl"
6380 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6382 as_fn_arith $ac_count + 1 && ac_count=$as_val
6383 if test $ac_count -gt ${ac_path_SED_max-0}; then
6384 # Best one so far, save it but keep looking for a better one
6385 ac_cv_path_SED="$ac_path_SED"
6386 ac_path_SED_max=$ac_count
6388 # 10*(2^10) chars as input seems more than enough
6389 test $ac_count -gt 10 && break
6391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6394 $ac_path_SED_found && break 3
6399 if test -z "$ac_cv_path_SED"; then
6400 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6408 $as_echo "$ac_cv_path_SED" >&6; }
6409 SED="$ac_cv_path_SED"
6412 test -z "$SED" && SED=sed
6413 Xsed="$SED -e 1s/^X//"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6426 $as_echo_n "checking for fgrep... " >&6; }
6427 if ${ac_cv_path_FGREP+:} false; then :
6428 $as_echo_n "(cached) " >&6
6430 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6431 then ac_cv_path_FGREP="$GREP -F"
6433 if test -z "$FGREP"; then
6434 ac_path_FGREP_found=false
6435 # Loop through the user's path and test for each of PROGNAME-LIST
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6440 test -z "$as_dir" && as_dir=.
6441 for ac_prog in fgrep; do
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6444 as_fn_executable_p "$ac_path_FGREP" || continue
6445 # Check for GNU ac_path_FGREP and select it if it is found.
6446 # Check for GNU $ac_path_FGREP
6447 case `"$ac_path_FGREP" --version 2>&1` in
6449 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6452 $as_echo_n 0123456789 >"conftest.in"
6455 cat "conftest.in" "conftest.in" >"conftest.tmp"
6456 mv "conftest.tmp" "conftest.in"
6457 cp "conftest.in" "conftest.nl"
6458 $as_echo 'FGREP' >> "conftest.nl"
6459 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6461 as_fn_arith $ac_count + 1 && ac_count=$as_val
6462 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6463 # Best one so far, save it but keep looking for a better one
6464 ac_cv_path_FGREP="$ac_path_FGREP"
6465 ac_path_FGREP_max=$ac_count
6467 # 10*(2^10) chars as input seems more than enough
6468 test $ac_count -gt 10 && break
6470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6473 $ac_path_FGREP_found && break 3
6478 if test -z "$ac_cv_path_FGREP"; then
6479 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6482 ac_cv_path_FGREP=$FGREP
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6488 $as_echo "$ac_cv_path_FGREP" >&6; }
6489 FGREP="$ac_cv_path_FGREP"
6492 test -z "$GREP" && GREP=grep
6512 # Check whether --with-gnu-ld was given.
6513 if test "${with_gnu_ld+set}" = set; then :
6514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6520 if test "$GCC" = yes; then
6521 # Check if gcc -print-prog-name=ld gives a path.
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6523 $as_echo_n "checking for ld used by $CC... " >&6; }
6526 # gcc leaves a trailing carriage return which upsets mingw
6527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6532 # Accept absolute paths.
6534 re_direlt='/[^/][^/]*/\.\./'
6535 # Canonicalize the pathname of ld
6536 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6537 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6538 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6540 test -z "$LD" && LD="$ac_prog"
6543 # If it fails, then pretend we aren't using GCC.
6547 # If it is relative, then search for the first ld in PATH.
6551 elif test "$with_gnu_ld" = yes; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6553 $as_echo_n "checking for GNU ld... " >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6556 $as_echo_n "checking for non-GNU ld... " >&6; }
6558 if ${lt_cv_path_LD+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -z "$LD"; then
6562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563 for ac_dir in $PATH; do
6565 test -z "$ac_dir" && ac_dir=.
6566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6567 lt_cv_path_LD="$ac_dir/$ac_prog"
6568 # Check to see if the program is GNU ld. I'd rather use --version,
6569 # but apparently some variants of GNU ld only accept -v.
6570 # Break only if it was the GNU/non-GNU ld that we prefer.
6571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6572 *GNU* | *'with BFD'*)
6573 test "$with_gnu_ld" != no && break
6576 test "$with_gnu_ld" != yes && break
6583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6588 if test -n "$LD"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6590 $as_echo "$LD" >&6; }
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6595 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6597 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6598 if ${lt_cv_prog_gnu_ld+:} false; then :
6599 $as_echo_n "(cached) " >&6
6601 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6602 case `$LD -v 2>&1 </dev/null` in
6603 *GNU* | *'with BFD'*)
6604 lt_cv_prog_gnu_ld=yes
6607 lt_cv_prog_gnu_ld=no
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6612 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6613 with_gnu_ld=$lt_cv_prog_gnu_ld
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6624 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6625 if ${lt_cv_path_NM+:} false; then :
6626 $as_echo_n "(cached) " >&6
6628 if test -n "$NM"; then
6629 # Let the user override the test.
6632 lt_nm_to_check="${ac_tool_prefix}nm"
6633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6634 lt_nm_to_check="$lt_nm_to_check nm"
6636 for lt_tmp_nm in $lt_nm_to_check; do
6637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6638 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6640 test -z "$ac_dir" && ac_dir=.
6641 tmp_nm="$ac_dir/$lt_tmp_nm"
6642 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6643 # Check to see if the nm accepts a BSD-compat flag.
6644 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6645 # nm: unknown option "B" ignored
6646 # Tru64's nm complains that /dev/null is an invalid object file
6647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6648 */dev/null* | *'Invalid file or object type'*)
6649 lt_cv_path_NM="$tmp_nm -B"
6653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6655 lt_cv_path_NM="$tmp_nm -p"
6659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6660 continue # so that we can try to find one that supports BSD flags
6669 : ${lt_cv_path_NM=no}
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6673 $as_echo "$lt_cv_path_NM" >&6; }
6674 if test "$lt_cv_path_NM" != "no"; then
6677 # Didn't find any BSD compatible name lister, look for dumpbin.
6678 if test -n "$DUMPBIN"; then :
6679 # Let the user override the test.
6681 if test -n "$ac_tool_prefix"; then
6682 for ac_prog in dumpbin "link -dump"
6684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if ${ac_cv_prog_DUMPBIN+:} false; then :
6689 $as_echo_n "(cached) " >&6
6691 if test -n "$DUMPBIN"; then
6692 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 DUMPBIN=$ac_cv_prog_DUMPBIN
6712 if test -n "$DUMPBIN"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6714 $as_echo "$DUMPBIN" >&6; }
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6721 test -n "$DUMPBIN" && break
6724 if test -z "$DUMPBIN"; then
6725 ac_ct_DUMPBIN=$DUMPBIN
6726 for ac_prog in dumpbin "link -dump"
6728 # Extract the first word of "$ac_prog", so it can be a program name with args.
6729 set dummy $ac_prog; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 if test -n "$ac_ct_DUMPBIN"; then
6736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6756 if test -n "$ac_ct_DUMPBIN"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6758 $as_echo "$ac_ct_DUMPBIN" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 test -n "$ac_ct_DUMPBIN" && break
6768 if test "x$ac_ct_DUMPBIN" = x; then
6771 case $cross_compiling:$ac_tool_warned in
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6777 DUMPBIN=$ac_ct_DUMPBIN
6781 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6783 DUMPBIN="$DUMPBIN -symbols"
6791 if test "$DUMPBIN" != ":"; then
6795 test -z "$NM" && NM=nm
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6803 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6804 if ${lt_cv_nm_interface+:} false; then :
6805 $as_echo_n "(cached) " >&6
6807 lt_cv_nm_interface="BSD nm"
6808 echo "int some_variable = 0;" > conftest.$ac_ext
6809 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6810 (eval "$ac_compile" 2>conftest.err)
6811 cat conftest.err >&5
6812 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6813 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6814 cat conftest.err >&5
6815 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6816 cat conftest.out >&5
6817 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6818 lt_cv_nm_interface="MS dumpbin"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6823 $as_echo "$lt_cv_nm_interface" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6826 $as_echo_n "checking whether ln -s works... " >&6; }
6828 if test "$LN_S" = "ln -s"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6830 $as_echo "yes" >&6; }
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6833 $as_echo "no, using $LN_S" >&6; }
6836 # find the maximum length of command line arguments
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6838 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6839 if ${lt_cv_sys_max_cmd_len+:} false; then :
6840 $as_echo_n "(cached) " >&6
6847 # On DJGPP, this test can blow up pretty badly due to problems in libc
6848 # (any single argument exceeding 2000 bytes causes a buffer overrun
6849 # during glob expansion). Even if it were fixed, the result of this
6850 # check would be larger than it should be.
6851 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6855 # Under GNU Hurd, this test is not required because there is
6856 # no limit to the length of command line arguments.
6857 # Libtool will interpret -1 as no limit whatsoever
6858 lt_cv_sys_max_cmd_len=-1;
6861 cygwin* | mingw* | cegcc*)
6862 # On Win9x/ME, this test blows up -- it succeeds, but takes
6863 # about 5 minutes as the teststring grows exponentially.
6864 # Worse, since 9x/ME are not pre-emptively multitasking,
6865 # you end up with a "frozen" computer, even though with patience
6866 # the test eventually succeeds (with a max line length of 256k).
6867 # Instead, let's just punt: use the minimum linelength reported by
6868 # all of the supported platforms: 8192 (on NT/2K/XP).
6869 lt_cv_sys_max_cmd_len=8192;
6873 # On MiNT this can take a long time and run out of memory.
6874 lt_cv_sys_max_cmd_len=8192;
6878 # On AmigaOS with pdksh, this test takes hours, literally.
6879 # So we just punt and use a minimum line length of 8192.
6880 lt_cv_sys_max_cmd_len=8192;
6883 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6884 # This has been around since 386BSD, at least. Likely further.
6885 if test -x /sbin/sysctl; then
6886 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6887 elif test -x /usr/sbin/sysctl; then
6888 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6890 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6892 # And add a safety zone
6893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6898 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6899 lt_cv_sys_max_cmd_len=196608
6903 # The test takes a long time on OS/2.
6904 lt_cv_sys_max_cmd_len=8192
6908 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6909 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6910 # nice to cause kernel panics so lets avoid the loop below.
6911 # First set a reasonable default.
6912 lt_cv_sys_max_cmd_len=16384
6914 if test -x /sbin/sysconfig; then
6915 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6916 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6921 lt_cv_sys_max_cmd_len=102400
6923 sysv5* | sco5v6* | sysv4.2uw2*)
6924 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6925 if test -n "$kargmax"; then
6926 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6928 lt_cv_sys_max_cmd_len=32768
6932 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6933 if test -n "$lt_cv_sys_max_cmd_len"; then
6934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6937 # Make teststring a little bigger before we do anything with it.
6938 # a 1K string should be a reasonable start.
6939 for i in 1 2 3 4 5 6 7 8 ; do
6940 teststring=$teststring$teststring
6942 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6943 # If test is not a shell built-in, we'll probably end up computing a
6944 # maximum length that is only half of the actual maximum length, but
6946 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6947 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6948 test $i != 17 # 1/2 MB should be enough
6951 teststring=$teststring$teststring
6953 # Only check the string length outside the loop.
6954 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6956 # Add a significant safety factor because C++ compilers can tack on
6957 # massive amounts of additional arguments before passing them to the
6958 # linker. It appears as though 1/2 is a usable value.
6959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6966 if test -n $lt_cv_sys_max_cmd_len ; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6968 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6971 $as_echo "none" >&6; }
6973 max_cmd_len=$lt_cv_sys_max_cmd_len
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6985 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6986 # Try some XSI features
6989 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6991 && eval 'test $(( 1 + 1 )) -eq 2 \
6992 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6995 $as_echo "$xsi_shell" >&6; }
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6999 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7001 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7003 && lt_shell_append=yes
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7005 $as_echo "$lt_shell_append" >&6; }
7008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7018 # test EBCDIC or ASCII
7019 case `echo X|tr X '\101'` in
7020 A) # ASCII based system
7021 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7022 lt_SP2NL='tr \040 \012'
7023 lt_NL2SP='tr \015\012 \040\040'
7025 *) # EBCDIC based system
7026 lt_SP2NL='tr \100 \n'
7027 lt_NL2SP='tr \r\n \100\100'
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7040 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7041 if ${lt_cv_to_host_file_cmd+:} false; then :
7042 $as_echo_n "(cached) " >&6
7047 *-*-mingw* ) # actually msys
7048 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7051 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7053 * ) # otherwise, assume *nix
7054 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7060 *-*-mingw* ) # actually msys
7061 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7064 lt_cv_to_host_file_cmd=func_convert_file_noop
7066 * ) # otherwise, assume *nix
7067 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7071 * ) # unhandled hosts (and "normal" native builds)
7072 lt_cv_to_host_file_cmd=func_convert_file_noop
7078 to_host_file_cmd=$lt_cv_to_host_file_cmd
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7080 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7087 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7088 if ${lt_cv_to_tool_file_cmd+:} false; then :
7089 $as_echo_n "(cached) " >&6
7091 #assume ordinary cross tools, or native build.
7092 lt_cv_to_tool_file_cmd=func_convert_file_noop
7096 *-*-mingw* ) # actually msys
7097 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7105 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7107 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7114 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7115 if ${lt_cv_ld_reload_flag+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 lt_cv_ld_reload_flag='-r'
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7121 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7122 reload_flag=$lt_cv_ld_reload_flag
7123 case $reload_flag in
7125 *) reload_flag=" $reload_flag" ;;
7127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7129 cygwin* | mingw* | pw32* | cegcc*)
7130 if test "$GCC" != yes; then
7135 if test "$GCC" = yes; then
7136 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_OBJDUMP+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 if test -n "$OBJDUMP"; then
7160 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 OBJDUMP=$ac_cv_prog_OBJDUMP
7180 if test -n "$OBJDUMP"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7182 $as_echo "$OBJDUMP" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7190 if test -z "$ac_cv_prog_OBJDUMP"; then
7191 ac_ct_OBJDUMP=$OBJDUMP
7192 # Extract the first word of "objdump", so it can be a program name with args.
7193 set dummy objdump; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 if test -n "$ac_ct_OBJDUMP"; then
7200 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7220 if test -n "$ac_ct_OBJDUMP"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7222 $as_echo "$ac_ct_OBJDUMP" >&6; }
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7228 if test "x$ac_ct_OBJDUMP" = x; then
7231 case $cross_compiling:$ac_tool_warned in
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7237 OBJDUMP=$ac_ct_OBJDUMP
7240 OBJDUMP="$ac_cv_prog_OBJDUMP"
7243 test -z "$OBJDUMP" && OBJDUMP=objdump
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7251 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7252 if ${lt_cv_deplibs_check_method+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 lt_cv_file_magic_cmd='$MAGIC_CMD'
7256 lt_cv_file_magic_test_file=
7257 lt_cv_deplibs_check_method='unknown'
7258 # Need to set the preceding variable on all platforms that support
7259 # interlibrary dependencies.
7260 # 'none' -- dependencies not supported.
7261 # `unknown' -- same as none, but documents that we really don't know.
7262 # 'pass_all' -- all dependencies passed with no checks.
7263 # 'test_compile' -- check by making test program.
7264 # 'file_magic [[regex]]' -- check by looking for files in library path
7265 # which responds to the $file_magic_cmd with a given extended regex.
7266 # If you have `file' or equivalent on your system and you're not sure
7267 # whether `pass_all' will *always* work, you probably want this one.
7271 lt_cv_deplibs_check_method=pass_all
7275 lt_cv_deplibs_check_method=pass_all
7279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7280 lt_cv_file_magic_cmd='/usr/bin/file -L'
7281 lt_cv_file_magic_test_file=/shlib/libc.so
7285 # func_win32_libid is a shell function defined in ltmain.sh
7286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7287 lt_cv_file_magic_cmd='func_win32_libid'
7291 # Base MSYS/MinGW do not provide the 'file' command needed by
7292 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7293 # unless we find 'file', for example because we are cross-compiling.
7294 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7295 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7297 lt_cv_file_magic_cmd='func_win32_libid'
7299 # Keep this pattern in sync with the one in func_win32_libid.
7300 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7301 lt_cv_file_magic_cmd='$OBJDUMP -f'
7306 # use the weaker test based on 'objdump'. See mingw*.
7307 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7308 lt_cv_file_magic_cmd='$OBJDUMP -f'
7311 darwin* | rhapsody*)
7312 lt_cv_deplibs_check_method=pass_all
7315 freebsd* | dragonfly*)
7316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7319 # Not sure whether the presence of OpenBSD here was a mistake.
7320 # Let's accept both of them until this is cleared up.
7321 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7322 lt_cv_file_magic_cmd=/usr/bin/file
7323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7327 lt_cv_deplibs_check_method=pass_all
7332 lt_cv_deplibs_check_method=pass_all
7336 lt_cv_deplibs_check_method=pass_all
7339 hpux10.20* | hpux11*)
7340 lt_cv_file_magic_cmd=/usr/bin/file
7343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7347 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]'
7348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7362 irix5* | irix6* | nonstopux*)
7364 *-32|*"-32 ") libmagic=32-bit;;
7365 *-n32|*"-n32 ") libmagic=N32;;
7366 *-64|*"-64 ") libmagic=64-bit;;
7367 *) libmagic=never-match;;
7369 lt_cv_deplibs_check_method=pass_all
7372 # This must be glibc/ELF.
7373 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7374 lt_cv_deplibs_check_method=pass_all
7377 netbsd* | netbsdelf*-gnu)
7378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7387 lt_cv_file_magic_cmd=/usr/bin/file
7388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7392 lt_cv_deplibs_check_method=pass_all
7396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7403 osf3* | osf4* | osf5*)
7404 lt_cv_deplibs_check_method=pass_all
7408 lt_cv_deplibs_check_method=pass_all
7412 lt_cv_deplibs_check_method=pass_all
7415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7416 lt_cv_deplibs_check_method=pass_all
7420 case $host_vendor in
7422 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]'
7423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7426 lt_cv_deplibs_check_method=pass_all
7429 lt_cv_file_magic_cmd='/bin/file'
7430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7433 lt_cv_file_magic_cmd='/bin/file'
7434 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7435 lt_cv_file_magic_test_file=/lib/libc.so
7438 lt_cv_deplibs_check_method=pass_all
7441 lt_cv_deplibs_check_method=pass_all
7447 lt_cv_deplibs_check_method=pass_all
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7453 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7457 if test "$build" = "$host"; then
7460 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7463 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7469 file_magic_cmd=$lt_cv_file_magic_cmd
7470 deplibs_check_method=$lt_cv_deplibs_check_method
7471 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7494 if test -n "$ac_tool_prefix"; then
7495 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_DLLTOOL+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 if test -n "$DLLTOOL"; then
7503 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 DLLTOOL=$ac_cv_prog_DLLTOOL
7523 if test -n "$DLLTOOL"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7525 $as_echo "$DLLTOOL" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7533 if test -z "$ac_cv_prog_DLLTOOL"; then
7534 ac_ct_DLLTOOL=$DLLTOOL
7535 # Extract the first word of "dlltool", so it can be a program name with args.
7536 set dummy dlltool; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$ac_ct_DLLTOOL"; then
7543 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7563 if test -n "$ac_ct_DLLTOOL"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7565 $as_echo "$ac_ct_DLLTOOL" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7571 if test "x$ac_ct_DLLTOOL" = x; then
7574 case $cross_compiling:$ac_tool_warned in
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7580 DLLTOOL=$ac_ct_DLLTOOL
7583 DLLTOOL="$ac_cv_prog_DLLTOOL"
7586 test -z "$DLLTOOL" && DLLTOOL=dlltool
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7595 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7596 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 lt_cv_sharedlib_from_linklib_cmd='unknown'
7602 cygwin* | mingw* | pw32* | cegcc*)
7603 # two different shell functions defined in ltmain.sh
7604 # decide which to use based on capabilities of $DLLTOOL
7605 case `$DLLTOOL --help 2>&1` in
7606 *--identify-strict*)
7607 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7610 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7615 # fallback: assume linklib IS sharedlib
7616 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7622 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7623 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7624 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7632 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_AR+:} false; then :
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$AR"; then
7643 ac_cv_prog_AR="$AR" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 if test -n "$AR"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7665 $as_echo "$AR" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7672 test -n "$AR" && break
7675 if test -z "$AR"; then
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 if test -n "$ac_ct_AR"; then
7687 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_ac_ct_AR="$ac_prog"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7707 if test -n "$ac_ct_AR"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7709 $as_echo "$ac_ct_AR" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7716 test -n "$ac_ct_AR" && break
7719 if test "x$ac_ct_AR" = x; then
7722 case $cross_compiling:$ac_tool_warned in
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 ac_tool_warned=yes ;;
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7746 $as_echo_n "checking for archiver @FILE support... " >&6; }
7747 if ${lt_cv_ar_at_file+:} false; then :
7748 $as_echo_n "(cached) " >&6
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763 echo conftest.$ac_objext > conftest.lst
7764 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7766 (eval $lt_ar_try) 2>&5
7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7769 test $ac_status = 0; }
7770 if test "$ac_status" -eq 0; then
7771 # Ensure the archiver fails upon bogus file names.
7772 rm -f conftest.$ac_objext libconftest.a
7773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7774 (eval $lt_ar_try) 2>&5
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; }
7778 if test "$ac_status" -ne 0; then
7782 rm -f conftest.* libconftest.a
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7789 $as_echo "$lt_cv_ar_at_file" >&6; }
7791 if test "x$lt_cv_ar_at_file" = xno; then
7794 archiver_list_spec=$lt_cv_ar_at_file
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7805 set dummy ${ac_tool_prefix}strip; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_STRIP+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$STRIP"; then
7812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 STRIP=$ac_cv_prog_STRIP
7832 if test -n "$STRIP"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7834 $as_echo "$STRIP" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7842 if test -z "$ac_cv_prog_STRIP"; then
7844 # Extract the first word of "strip", so it can be a program name with args.
7845 set dummy strip; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 if test -n "$ac_ct_STRIP"; then
7852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_ac_ct_STRIP="strip"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7872 if test -n "$ac_ct_STRIP"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7874 $as_echo "$ac_ct_STRIP" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7880 if test "x$ac_ct_STRIP" = x; then
7883 case $cross_compiling:$ac_tool_warned in
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887 ac_tool_warned=yes ;;
7892 STRIP="$ac_cv_prog_STRIP"
7895 test -z "$STRIP" && STRIP=:
7902 if test -n "$ac_tool_prefix"; then
7903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_RANLIB+:} false; then :
7908 $as_echo_n "(cached) " >&6
7910 if test -n "$RANLIB"; then
7911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 RANLIB=$ac_cv_prog_RANLIB
7931 if test -n "$RANLIB"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7933 $as_echo "$RANLIB" >&6; }
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7941 if test -z "$ac_cv_prog_RANLIB"; then
7942 ac_ct_RANLIB=$RANLIB
7943 # Extract the first word of "ranlib", so it can be a program name with args.
7944 set dummy ranlib; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$ac_ct_RANLIB"; then
7951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_ac_ct_RANLIB="ranlib"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7971 if test -n "$ac_ct_RANLIB"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7973 $as_echo "$ac_ct_RANLIB" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7979 if test "x$ac_ct_RANLIB" = x; then
7982 case $cross_compiling:$ac_tool_warned in
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7988 RANLIB=$ac_ct_RANLIB
7991 RANLIB="$ac_cv_prog_RANLIB"
7994 test -z "$RANLIB" && RANLIB=:
8001 # Determine commands to create old-style static archives.
8002 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8003 old_postinstall_cmds='chmod 644 $oldlib'
8004 old_postuninstall_cmds=
8006 if test -n "$RANLIB"; then
8009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8015 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8020 lock_old_archive_extraction=yes ;;
8022 lock_old_archive_extraction=no ;;
8063 # If no C compiler was specified, use CC.
8066 # If no C compiler flags were specified, use CFLAGS.
8067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8069 # Allow CC to be a program name with arguments.
8073 # Check for command to grab the raw symbol name followed by C symbol from nm.
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8075 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8076 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8077 $as_echo_n "(cached) " >&6
8080 # These are sane defaults that work on at least a few old systems.
8081 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8083 # Character class describing NM global symbol codes.
8084 symcode='[BCDEGRST]'
8086 # Regexp to match symbols that can be accessed directly from C.
8087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8089 # Define system-specific variables.
8094 cygwin* | mingw* | pw32* | cegcc*)
8095 symcode='[ABCDGISTW]'
8098 if test "$host_cpu" = ia64; then
8099 symcode='[ABCDEGRST]'
8103 symcode='[BCDEGRST]'
8106 symcode='[BCDEGQRST]'
8117 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8125 # If we're using GNU nm, then use its standard symbol codes.
8126 case `$NM -V 2>&1` in
8127 *GNU* | *'with BFD'*)
8128 symcode='[ABCDGIRSTW]' ;;
8131 # Transform an extracted symbol line into a proper C declaration.
8132 # Some systems (esp. on ia64) link data and code symbols differently,
8133 # so use this general approach.
8134 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8136 # Transform an extracted symbol line into symbol name and symbol address
8137 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8138 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'"
8140 # Handle CRLF in mingw tool chain
8144 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8148 # Try without a prefix underscore, then with it.
8149 for ac_symprfx in "" "_"; do
8151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8152 symxfrm="\\1 $ac_symprfx\\2 \\2"
8154 # Write the raw and C identifiers.
8155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8156 # Fake it for dumpbin and say T for any non-static function
8157 # and D for any global variable.
8158 # Also find C++ and __fastcall symbols from MSVC++,
8159 # which start with @ or ?.
8160 lt_cv_sys_global_symbol_pipe="$AWK '"\
8161 " {last_section=section; section=\$ 3};"\
8162 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8163 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8164 " \$ 0!~/External *\|/{next};"\
8165 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8166 " {if(hide[section]) next};"\
8167 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8168 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8169 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8170 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8171 " ' prfx=^$ac_symprfx"
8173 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8175 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8177 # Check to see that the pipe works correctly.
8181 cat > conftest.$ac_ext <<_LT_EOF
8186 void nm_test_func(void);
8187 void nm_test_func(void){}
8191 int main(){nm_test_var='a';nm_test_func();return(0);}
8194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195 (eval $ac_compile) 2>&5
8197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198 test $ac_status = 0; }; then
8199 # Now try to grab the symbols.
8201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8202 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205 test $ac_status = 0; } && test -s "$nlist"; then
8206 # Try sorting and uniquifying the output.
8207 if sort "$nlist" | uniq > "$nlist"T; then
8208 mv -f "$nlist"T "$nlist"
8213 # Make sure that we snagged all the symbols we need.
8214 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8215 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8216 cat <<_LT_EOF > conftest.$ac_ext
8217 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8218 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8219 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8220 relocations are performed -- see ld's documentation on pseudo-relocs. */
8221 # define LT_DLSYM_CONST
8222 #elif defined(__osf__)
8223 /* This system does not cope well with relocations in const data. */
8224 # define LT_DLSYM_CONST
8226 # define LT_DLSYM_CONST const
8234 # Now generate the symbol file.
8235 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8237 cat <<_LT_EOF >> conftest.$ac_ext
8239 /* The mapping between symbol names and symbols. */
8240 LT_DLSYM_CONST struct {
8244 lt__PROGRAM__LTX_preloaded_symbols[] =
8246 { "@PROGRAM@", (void *) 0 },
8248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8249 cat <<\_LT_EOF >> conftest.$ac_ext
8253 /* This works around a problem in FreeBSD linker */
8254 #ifdef FREEBSD_WORKAROUND
8255 static const void *lt_preloaded_setup() {
8256 return lt__PROGRAM__LTX_preloaded_symbols;
8264 # Now try linking the two files.
8265 mv conftest.$ac_objext conftstm.$ac_objext
8266 lt_globsym_save_LIBS=$LIBS
8267 lt_globsym_save_CFLAGS=$CFLAGS
8268 LIBS="conftstm.$ac_objext"
8269 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8271 (eval $ac_link) 2>&5
8273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8274 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8277 LIBS=$lt_globsym_save_LIBS
8278 CFLAGS=$lt_globsym_save_CFLAGS
8280 echo "cannot find nm_test_func in $nlist" >&5
8283 echo "cannot find nm_test_var in $nlist" >&5
8286 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8289 echo "$progname: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 rm -rf conftest* conftst*
8294 # Do not use the global_symbol_pipe unless it works.
8295 if test "$pipe_works" = yes; then
8298 lt_cv_sys_global_symbol_pipe=
8304 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8305 lt_cv_sys_global_symbol_to_cdecl=
8307 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8309 $as_echo "failed" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8312 $as_echo "ok" >&6; }
8315 # Response file support.
8316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8317 nm_file_list_spec='@'
8318 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8319 nm_file_list_spec='@'
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8349 $as_echo_n "checking for sysroot... " >&6; }
8351 # Check whether --with-sysroot was given.
8352 if test "${with_sysroot+set}" = set; then :
8353 withval=$with_sysroot;
8360 case ${with_sysroot} in #(
8362 if test "$GCC" = yes; then
8363 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8367 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8373 $as_echo "${with_sysroot}" >&6; }
8374 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8379 $as_echo "${lt_sysroot:-no}" >&6; }
8385 # Check whether --enable-libtool-lock was given.
8386 if test "${enable_libtool_lock+set}" = set; then :
8387 enableval=$enable_libtool_lock;
8390 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8392 # Some flags need to be propagated to the compiler or linker for good
8396 # Find out which ABI we are using.
8397 echo 'int i;' > conftest.$ac_ext
8398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8399 (eval $ac_compile) 2>&5
8401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8402 test $ac_status = 0; }; then
8403 case `/usr/bin/file conftest.$ac_objext` in
8415 # Find out which ABI we are using.
8416 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8418 (eval $ac_compile) 2>&5
8420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8421 test $ac_status = 0; }; then
8422 if test "$lt_cv_prog_gnu_ld" = yes; then
8423 case `/usr/bin/file conftest.$ac_objext` in
8425 LD="${LD-ld} -melf32bsmip"
8428 LD="${LD-ld} -melf32bmipn32"
8431 LD="${LD-ld} -melf64bmip"
8435 case `/usr/bin/file conftest.$ac_objext` in
8451 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8452 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8453 # Find out which ABI we are using.
8454 echo 'int i;' > conftest.$ac_ext
8455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8456 (eval $ac_compile) 2>&5
8458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8459 test $ac_status = 0; }; then
8460 case `/usr/bin/file conftest.o` in
8463 x86_64-*kfreebsd*-gnu)
8464 LD="${LD-ld} -m elf_i386_fbsd"
8467 LD="${LD-ld} -m elf_i386"
8469 ppc64-*linux*|powerpc64-*linux*)
8470 LD="${LD-ld} -m elf32ppclinux"
8473 LD="${LD-ld} -m elf_s390"
8476 LD="${LD-ld} -m elf32_sparc"
8482 x86_64-*kfreebsd*-gnu)
8483 LD="${LD-ld} -m elf_x86_64_fbsd"
8486 LD="${LD-ld} -m elf_x86_64"
8488 ppc*-*linux*|powerpc*-*linux*)
8489 LD="${LD-ld} -m elf64ppc"
8491 s390*-*linux*|s390*-*tpf*)
8492 LD="${LD-ld} -m elf64_s390"
8495 LD="${LD-ld} -m elf64_sparc"
8505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8506 SAVE_CFLAGS="$CFLAGS"
8507 CFLAGS="$CFLAGS -belf"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8509 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8510 if ${lt_cv_cc_needs_belf+:} false; then :
8511 $as_echo_n "(cached) " >&6
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8530 if ac_fn_c_try_link "$LINENO"; then :
8531 lt_cv_cc_needs_belf=yes
8533 lt_cv_cc_needs_belf=no
8535 rm -f core conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8546 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8548 CFLAGS="$SAVE_CFLAGS"
8552 # Find out which ABI we are using.
8553 echo 'int i;' > conftest.$ac_ext
8554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8555 (eval $ac_compile) 2>&5
8557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8558 test $ac_status = 0; }; then
8559 case `/usr/bin/file conftest.o` in
8561 case $lt_cv_prog_gnu_ld in
8565 LD="${LD-ld} -m elf_x86_64"
8568 LD="${LD-ld} -m elf64_sparc"
8571 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8572 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8577 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8589 need_locks="$enable_libtool_lock"
8591 if test -n "$ac_tool_prefix"; then
8592 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8593 set dummy ${ac_tool_prefix}mt; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 if test -n "$MANIFEST_TOOL"; then
8600 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8620 if test -n "$MANIFEST_TOOL"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8622 $as_echo "$MANIFEST_TOOL" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8630 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8631 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8632 # Extract the first word of "mt", so it can be a program name with args.
8633 set dummy mt; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 if test -n "$ac_ct_MANIFEST_TOOL"; then
8640 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8660 if test -n "$ac_ct_MANIFEST_TOOL"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8662 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8668 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8671 case $cross_compiling:$ac_tool_warned in
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8675 ac_tool_warned=yes ;;
8677 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8680 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8683 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8685 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8686 if ${lt_cv_path_mainfest_tool+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 lt_cv_path_mainfest_tool=no
8690 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8691 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8692 cat conftest.err >&5
8693 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8694 lt_cv_path_mainfest_tool=yes
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8699 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8700 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8710 rhapsody* | darwin*)
8711 if test -n "$ac_tool_prefix"; then
8712 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8713 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8717 $as_echo_n "(cached) " >&6
8719 if test -n "$DSYMUTIL"; then
8720 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8740 if test -n "$DSYMUTIL"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8742 $as_echo "$DSYMUTIL" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8750 if test -z "$ac_cv_prog_DSYMUTIL"; then
8751 ac_ct_DSYMUTIL=$DSYMUTIL
8752 # Extract the first word of "dsymutil", so it can be a program name with args.
8753 set dummy dsymutil; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8757 $as_echo_n "(cached) " >&6
8759 if test -n "$ac_ct_DSYMUTIL"; then
8760 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 test -z "$as_dir" && as_dir=.
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8780 if test -n "$ac_ct_DSYMUTIL"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8782 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8788 if test "x$ac_ct_DSYMUTIL" = x; then
8791 case $cross_compiling:$ac_tool_warned in
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8795 ac_tool_warned=yes ;;
8797 DSYMUTIL=$ac_ct_DSYMUTIL
8800 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8803 if test -n "$ac_tool_prefix"; then
8804 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8805 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_NMEDIT+:} false; then :
8809 $as_echo_n "(cached) " >&6
8811 if test -n "$NMEDIT"; then
8812 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 NMEDIT=$ac_cv_prog_NMEDIT
8832 if test -n "$NMEDIT"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8834 $as_echo "$NMEDIT" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8842 if test -z "$ac_cv_prog_NMEDIT"; then
8843 ac_ct_NMEDIT=$NMEDIT
8844 # Extract the first word of "nmedit", so it can be a program name with args.
8845 set dummy nmedit; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8849 $as_echo_n "(cached) " >&6
8851 if test -n "$ac_ct_NMEDIT"; then
8852 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8861 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8872 if test -n "$ac_ct_NMEDIT"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8874 $as_echo "$ac_ct_NMEDIT" >&6; }
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8880 if test "x$ac_ct_NMEDIT" = x; then
8883 case $cross_compiling:$ac_tool_warned in
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8887 ac_tool_warned=yes ;;
8889 NMEDIT=$ac_ct_NMEDIT
8892 NMEDIT="$ac_cv_prog_NMEDIT"
8895 if test -n "$ac_tool_prefix"; then
8896 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8897 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_LIPO+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 if test -n "$LIPO"; then
8904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 LIPO=$ac_cv_prog_LIPO
8924 if test -n "$LIPO"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8926 $as_echo "$LIPO" >&6; }
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8934 if test -z "$ac_cv_prog_LIPO"; then
8936 # Extract the first word of "lipo", so it can be a program name with args.
8937 set dummy lipo; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8941 $as_echo_n "(cached) " >&6
8943 if test -n "$ac_ct_LIPO"; then
8944 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_ac_ct_LIPO="lipo"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8964 if test -n "$ac_ct_LIPO"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8966 $as_echo "$ac_ct_LIPO" >&6; }
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8972 if test "x$ac_ct_LIPO" = x; then
8975 case $cross_compiling:$ac_tool_warned in
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8979 ac_tool_warned=yes ;;
8984 LIPO="$ac_cv_prog_LIPO"
8987 if test -n "$ac_tool_prefix"; then
8988 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8989 set dummy ${ac_tool_prefix}otool; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_OTOOL+:} false; then :
8993 $as_echo_n "(cached) " >&6
8995 if test -n "$OTOOL"; then
8996 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 OTOOL=$ac_cv_prog_OTOOL
9016 if test -n "$OTOOL"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9018 $as_echo "$OTOOL" >&6; }
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9026 if test -z "$ac_cv_prog_OTOOL"; then
9028 # Extract the first word of "otool", so it can be a program name with args.
9029 set dummy otool; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 if test -n "$ac_ct_OTOOL"; then
9036 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045 ac_cv_prog_ac_ct_OTOOL="otool"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9056 if test -n "$ac_ct_OTOOL"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9058 $as_echo "$ac_ct_OTOOL" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9064 if test "x$ac_ct_OTOOL" = x; then
9067 case $cross_compiling:$ac_tool_warned in
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9071 ac_tool_warned=yes ;;
9076 OTOOL="$ac_cv_prog_OTOOL"
9079 if test -n "$ac_tool_prefix"; then
9080 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9081 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_prog_OTOOL64+:} false; then :
9085 $as_echo_n "(cached) " >&6
9087 if test -n "$OTOOL64"; then
9088 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 OTOOL64=$ac_cv_prog_OTOOL64
9108 if test -n "$OTOOL64"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9110 $as_echo "$OTOOL64" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9118 if test -z "$ac_cv_prog_OTOOL64"; then
9119 ac_ct_OTOOL64=$OTOOL64
9120 # Extract the first word of "otool64", so it can be a program name with args.
9121 set dummy otool64; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9125 $as_echo_n "(cached) " >&6
9127 if test -n "$ac_ct_OTOOL64"; then
9128 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137 ac_cv_prog_ac_ct_OTOOL64="otool64"
9138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9148 if test -n "$ac_ct_OTOOL64"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9150 $as_echo "$ac_ct_OTOOL64" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9156 if test "x$ac_ct_OTOOL64" = x; then
9159 case $cross_compiling:$ac_tool_warned in
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9163 ac_tool_warned=yes ;;
9165 OTOOL64=$ac_ct_OTOOL64
9168 OTOOL64="$ac_cv_prog_OTOOL64"
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9198 $as_echo_n "checking for -single_module linker flag... " >&6; }
9199 if ${lt_cv_apple_cc_single_mod+:} false; then :
9200 $as_echo_n "(cached) " >&6
9202 lt_cv_apple_cc_single_mod=no
9203 if test -z "${LT_MULTI_MODULE}"; then
9204 # By default we will add the -single_module flag. You can override
9205 # by either setting the environment variable LT_MULTI_MODULE
9206 # non-empty at configure time, or by adding -multi_module to the
9208 rm -rf libconftest.dylib*
9209 echo "int foo(void){return 1;}" > conftest.c
9210 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9211 -dynamiclib -Wl,-single_module conftest.c" >&5
9212 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9213 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9215 # If there is a non-empty error log, and "single_module"
9216 # appears in it, assume the flag caused a linker warning
9217 if test -s conftest.err && $GREP single_module conftest.err; then
9218 cat conftest.err >&5
9219 # Otherwise, if the output was created with a 0 exit code from
9220 # the compiler, it worked.
9221 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9222 lt_cv_apple_cc_single_mod=yes
9224 cat conftest.err >&5
9226 rm -rf libconftest.dylib*
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9231 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9234 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9235 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9236 $as_echo_n "(cached) " >&6
9238 lt_cv_ld_exported_symbols_list=no
9239 save_LDFLAGS=$LDFLAGS
9240 echo "_main" > conftest.sym
9241 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9253 if ac_fn_c_try_link "$LINENO"; then :
9254 lt_cv_ld_exported_symbols_list=yes
9256 lt_cv_ld_exported_symbols_list=no
9258 rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260 LDFLAGS="$save_LDFLAGS"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9264 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9267 $as_echo_n "checking for -force_load linker flag... " >&6; }
9268 if ${lt_cv_ld_force_load+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 lt_cv_ld_force_load=no
9272 cat > conftest.c << _LT_EOF
9273 int forced_loaded() { return 2;}
9275 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9276 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9277 echo "$AR cru libconftest.a conftest.o" >&5
9278 $AR cru libconftest.a conftest.o 2>&5
9279 echo "$RANLIB libconftest.a" >&5
9280 $RANLIB libconftest.a 2>&5
9281 cat > conftest.c << _LT_EOF
9282 int main() { return 0;}
9284 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9285 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9287 if test -s conftest.err && $GREP force_load conftest.err; then
9288 cat conftest.err >&5
9289 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9290 lt_cv_ld_force_load=yes
9292 cat conftest.err >&5
9294 rm -f conftest.err libconftest.a conftest conftest.c
9295 rm -rf conftest.dSYM
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9299 $as_echo "$lt_cv_ld_force_load" >&6; }
9301 rhapsody* | darwin1.[012])
9302 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9305 darwin*) # darwin 5.x on
9306 # if running on 10.5 or later, the deployment target defaults
9307 # to the OS version, if on x86, and 10.4, the deployment
9308 # target defaults to 10.4. Don't you love it?
9309 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9310 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9313 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9319 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9320 _lt_dar_single_mod='$single_module'
9322 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9323 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9325 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9327 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9328 _lt_dsymutil='~$DSYMUTIL $lib || :'
9335 for ac_header in dlfcn.h
9337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9339 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DLFCN_H 1
9351 func_stripname_cnf ()
9354 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9355 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9357 } # func_stripname_cnf
9364 enable_win32_dll=yes
9367 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9368 if test -n "$ac_tool_prefix"; then
9369 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9370 set dummy ${ac_tool_prefix}as; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_prog_AS+:} false; then :
9374 $as_echo_n "(cached) " >&6
9376 if test -n "$AS"; then
9377 ac_cv_prog_AS="$AS" # Let the user override the test.
9379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 test -z "$as_dir" && as_dir=.
9384 for ac_exec_ext in '' $ac_executable_extensions; do
9385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9386 ac_cv_prog_AS="${ac_tool_prefix}as"
9387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 if test -n "$AS"; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9399 $as_echo "$AS" >&6; }
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 $as_echo "no" >&6; }
9407 if test -z "$ac_cv_prog_AS"; then
9409 # Extract the first word of "as", so it can be a program name with args.
9410 set dummy as; ac_word=$2
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 $as_echo_n "checking for $ac_word... " >&6; }
9413 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9414 $as_echo_n "(cached) " >&6
9416 if test -n "$ac_ct_AS"; then
9417 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 test -z "$as_dir" && as_dir=.
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9426 ac_cv_prog_ac_ct_AS="as"
9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9437 if test -n "$ac_ct_AS"; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9439 $as_echo "$ac_ct_AS" >&6; }
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442 $as_echo "no" >&6; }
9445 if test "x$ac_ct_AS" = x; then
9448 case $cross_compiling:$ac_tool_warned in
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9452 ac_tool_warned=yes ;;
9460 if test -n "$ac_tool_prefix"; then
9461 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9462 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_prog_DLLTOOL+:} false; then :
9466 $as_echo_n "(cached) " >&6
9468 if test -n "$DLLTOOL"; then
9469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 DLLTOOL=$ac_cv_prog_DLLTOOL
9489 if test -n "$DLLTOOL"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9491 $as_echo "$DLLTOOL" >&6; }
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9499 if test -z "$ac_cv_prog_DLLTOOL"; then
9500 ac_ct_DLLTOOL=$DLLTOOL
9501 # Extract the first word of "dlltool", so it can be a program name with args.
9502 set dummy dlltool; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9506 $as_echo_n "(cached) " >&6
9508 if test -n "$ac_ct_DLLTOOL"; then
9509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9529 if test -n "$ac_ct_DLLTOOL"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9531 $as_echo "$ac_ct_DLLTOOL" >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9537 if test "x$ac_ct_DLLTOOL" = x; then
9540 case $cross_compiling:$ac_tool_warned in
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9544 ac_tool_warned=yes ;;
9546 DLLTOOL=$ac_ct_DLLTOOL
9549 DLLTOOL="$ac_cv_prog_DLLTOOL"
9552 if test -n "$ac_tool_prefix"; then
9553 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9554 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if ${ac_cv_prog_OBJDUMP+:} false; then :
9558 $as_echo_n "(cached) " >&6
9560 if test -n "$OBJDUMP"; then
9561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9570 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 OBJDUMP=$ac_cv_prog_OBJDUMP
9581 if test -n "$OBJDUMP"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583 $as_echo "$OBJDUMP" >&6; }
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9591 if test -z "$ac_cv_prog_OBJDUMP"; then
9592 ac_ct_OBJDUMP=$OBJDUMP
9593 # Extract the first word of "objdump", so it can be a program name with args.
9594 set dummy objdump; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9598 $as_echo_n "(cached) " >&6
9600 if test -n "$ac_ct_OBJDUMP"; then
9601 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9610 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9621 if test -n "$ac_ct_OBJDUMP"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9623 $as_echo "$ac_ct_OBJDUMP" >&6; }
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9629 if test "x$ac_ct_OBJDUMP" = x; then
9632 case $cross_compiling:$ac_tool_warned in
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9636 ac_tool_warned=yes ;;
9638 OBJDUMP=$ac_ct_OBJDUMP
9641 OBJDUMP="$ac_cv_prog_OBJDUMP"
9647 test -z "$AS" && AS=as
9653 test -z "$DLLTOOL" && DLLTOOL=dlltool
9659 test -z "$OBJDUMP" && OBJDUMP=objdump
9664 # Check whether --enable-static was given.
9665 if test "${enable_static+set}" = set; then :
9666 enableval=$enable_static; p=${PACKAGE-default}
9668 yes) enable_static=yes ;;
9669 no) enable_static=no ;;
9672 # Look at the argument we got. We use all the common list separators.
9673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9674 for pkg in $enableval; do
9676 if test "X$pkg" = "X$p"; then
9700 # Check whether --enable-shared was given.
9701 if test "${enable_shared+set}" = set; then :
9702 enableval=$enable_shared; p=${PACKAGE-default}
9704 yes) enable_shared=yes ;;
9705 no) enable_shared=no ;;
9708 # Look at the argument we got. We use all the common list separators.
9709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9710 for pkg in $enableval; do
9712 if test "X$pkg" = "X$p"; then
9733 # Check whether --with-pic was given.
9734 if test "${with_pic+set}" = set; then :
9735 withval=$with_pic; lt_p=${PACKAGE-default}
9737 yes|no) pic_mode=$withval ;;
9740 # Look at the argument we got. We use all the common list separators.
9741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9742 for lt_pkg in $withval; do
9744 if test "X$lt_pkg" = "X$lt_p"; then
9756 test -z "$pic_mode" && pic_mode=default
9764 # Check whether --enable-fast-install was given.
9765 if test "${enable_fast_install+set}" = set; then :
9766 enableval=$enable_fast_install; p=${PACKAGE-default}
9768 yes) enable_fast_install=yes ;;
9769 no) enable_fast_install=no ;;
9771 enable_fast_install=no
9772 # Look at the argument we got. We use all the common list separators.
9773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9774 for pkg in $enableval; do
9776 if test "X$pkg" = "X$p"; then
9777 enable_fast_install=yes
9784 enable_fast_install=yes
9797 # This can be used to rebuild libtool when needed
9798 LIBTOOL_DEPS="$ltmain"
9800 # Always use our own libtool.
9801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9832 test -z "$LN_S" && LN_S="ln -s"
9847 if test -n "${ZSH_VERSION+set}" ; then
9848 setopt NO_GLOB_SUBST
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9852 $as_echo_n "checking for objdir... " >&6; }
9853 if ${lt_cv_objdir+:} false; then :
9854 $as_echo_n "(cached) " >&6
9856 rm -f .libs 2>/dev/null
9857 mkdir .libs 2>/dev/null
9858 if test -d .libs; then
9861 # MS-DOS does not allow filenames that begin with a dot.
9864 rmdir .libs 2>/dev/null
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9867 $as_echo "$lt_cv_objdir" >&6; }
9868 objdir=$lt_cv_objdir
9874 cat >>confdefs.h <<_ACEOF
9875 #define LT_OBJDIR "$lt_cv_objdir/"
9883 # AIX sometimes has problems with the GCC collect2 program. For some
9884 # reason, if we set the COLLECT_NAMES environment variable, the problems
9885 # vanish in a puff of smoke.
9886 if test "X${COLLECT_NAMES+set}" != Xset; then
9888 export COLLECT_NAMES
9895 can_build_shared=yes
9897 # All known linkers require a `.a' archive for static linking (except MSVC,
9898 # which needs '.lib').
9901 with_gnu_ld="$lt_cv_prog_gnu_ld"
9904 old_CFLAGS="$CFLAGS"
9906 # Set sane defaults for various variables
9907 test -z "$CC" && CC=cc
9908 test -z "$LTCC" && LTCC=$CC
9909 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9910 test -z "$LD" && LD=ld
9911 test -z "$ac_objext" && ac_objext=o
9913 for cc_temp in $compiler""; do
9915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9921 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9924 # Only perform the check for file, if the check method requires it
9925 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9926 case $deplibs_check_method in
9928 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9930 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9931 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9932 $as_echo_n "(cached) " >&6
9936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9939 lt_save_MAGIC_CMD="$MAGIC_CMD"
9940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9942 for ac_dir in $ac_dummy; do
9944 test -z "$ac_dir" && ac_dir=.
9945 if test -f $ac_dir/${ac_tool_prefix}file; then
9946 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9947 if test -n "$file_magic_test_file"; then
9948 case $deplibs_check_method in
9950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9953 $EGREP "$file_magic_regex" > /dev/null; then
9958 *** Warning: the command libtool uses to detect shared libraries,
9959 *** $file_magic_cmd, produces output that libtool cannot recognize.
9960 *** The result is that libtool may fail to recognize shared libraries
9961 *** as such. This will affect the creation of libtool libraries that
9962 *** depend on shared libraries, but programs linked with such libtool
9963 *** libraries will work regardless of this problem. Nevertheless, you
9964 *** may want to report the problem to your system manager and/or to
9965 *** bug-libtool@gnu.org
9975 MAGIC_CMD="$lt_save_MAGIC_CMD"
9980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9981 if test -n "$MAGIC_CMD"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9983 $as_echo "$MAGIC_CMD" >&6; }
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9993 if test -z "$lt_cv_path_MAGIC_CMD"; then
9994 if test -n "$ac_tool_prefix"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9996 $as_echo_n "checking for file... " >&6; }
9997 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9998 $as_echo_n "(cached) " >&6
10002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10005 lt_save_MAGIC_CMD="$MAGIC_CMD"
10006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10008 for ac_dir in $ac_dummy; do
10010 test -z "$ac_dir" && ac_dir=.
10011 if test -f $ac_dir/file; then
10012 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10013 if test -n "$file_magic_test_file"; then
10014 case $deplibs_check_method in
10016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10019 $EGREP "$file_magic_regex" > /dev/null; then
10024 *** Warning: the command libtool uses to detect shared libraries,
10025 *** $file_magic_cmd, produces output that libtool cannot recognize.
10026 *** The result is that libtool may fail to recognize shared libraries
10027 *** as such. This will affect the creation of libtool libraries that
10028 *** depend on shared libraries, but programs linked with such libtool
10029 *** libraries will work regardless of this problem. Nevertheless, you
10030 *** may want to report the problem to your system manager and/or to
10031 *** bug-libtool@gnu.org
10041 MAGIC_CMD="$lt_save_MAGIC_CMD"
10046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10047 if test -n "$MAGIC_CMD"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10049 $as_echo "$MAGIC_CMD" >&6; }
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10065 # Use C for the default configuration in the libtool script
10069 ac_cpp='$CPP $CPPFLAGS'
10070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10075 # Source file extension for C test sources.
10078 # Object file extension for compiled C test sources.
10082 # Code to be used in simple compile tests
10083 lt_simple_compile_test_code="int some_variable = 0;"
10085 # Code to be used in simple link tests
10086 lt_simple_link_test_code='int main(){return(0);}'
10094 # If no C compiler was specified, use CC.
10097 # If no C compiler flags were specified, use CFLAGS.
10098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10100 # Allow CC to be a program name with arguments.
10103 # Save the default compiler, since it gets overwritten when the other
10104 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10105 compiler_DEFAULT=$CC
10107 # save warnings/boilerplate of simple test code
10108 ac_outfile=conftest.$ac_objext
10109 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10111 _lt_compiler_boilerplate=`cat conftest.err`
10114 ac_outfile=conftest.$ac_objext
10115 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10117 _lt_linker_boilerplate=`cat conftest.err`
10122 ## There is no encapsulation within the following macros, do not change
10123 ## the running order or otherwise move them around unless you know exactly
10124 ## what you are doing...
10125 if test -n "$compiler"; then
10127 lt_prog_compiler_no_builtin_flag=
10129 if test "$GCC" = yes; then
10130 case $cc_basename in
10132 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10134 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10138 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10139 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10140 $as_echo_n "(cached) " >&6
10142 lt_cv_prog_compiler_rtti_exceptions=no
10143 ac_outfile=conftest.$ac_objext
10144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10145 lt_compiler_flag="-fno-rtti -fno-exceptions"
10146 # Insert the option either (1) after the last *FLAGS variable, or
10147 # (2) before a word containing "conftest.", or (3) at the end.
10148 # Note that $ac_compile itself does not contain backslashes and begins
10149 # with a dollar sign (not a hyphen), so the echo should work correctly.
10150 # The option is referenced via a variable to avoid confusing sed.
10151 lt_compile=`echo "$ac_compile" | $SED \
10152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10154 -e 's:$: $lt_compiler_flag:'`
10155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10156 (eval "$lt_compile" 2>conftest.err)
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 if (exit $ac_status) && test -s "$ac_outfile"; then
10161 # The compiler can only warn and ignore the option if not recognized
10162 # So say no if there are warnings other than the usual output.
10163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10166 lt_cv_prog_compiler_rtti_exceptions=yes
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10173 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10175 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10176 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10188 lt_prog_compiler_wl=
10189 lt_prog_compiler_pic=
10190 lt_prog_compiler_static=
10193 if test "$GCC" = yes; then
10194 lt_prog_compiler_wl='-Wl,'
10195 lt_prog_compiler_static='-static'
10199 # All AIX code is PIC.
10200 if test "$host_cpu" = ia64; then
10201 # AIX 5 now supports IA64 processor
10202 lt_prog_compiler_static='-Bstatic'
10209 # see comment about AmigaOS4 .so support
10210 lt_prog_compiler_pic='-fPIC'
10213 # FIXME: we need at least 68020 code to build shared libraries, but
10214 # adding the `-m68020' flag to GCC prevents building anything better,
10216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10222 # PIC is the default for these OSes.
10225 mingw* | cygwin* | pw32* | os2* | cegcc*)
10226 # This hack is so that the source file can tell whether it is being
10227 # built for inclusion in a dll (and should export symbols for example).
10228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10229 # (--disable-auto-import) libraries
10230 lt_prog_compiler_pic='-DDLL_EXPORT'
10233 darwin* | rhapsody*)
10234 # PIC is the default on this platform
10235 # Common symbols not allowed in MH_DYLIB files
10236 lt_prog_compiler_pic='-fno-common'
10240 # PIC is the default for Haiku.
10241 # The "-static" flag exists, but is broken.
10242 lt_prog_compiler_static=
10246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10248 # sets the default TLS model and affects inlining.
10254 lt_prog_compiler_pic='-fPIC'
10260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10261 # Instead, we relocate shared libraries at runtime.
10265 # Just because we use GCC doesn't mean we suddenly get shared libraries
10266 # on systems that don't support them.
10267 lt_prog_compiler_can_build_shared=no
10272 # QNX uses GNU C++, but need to define -shared option too, otherwise
10273 # it will coredump.
10274 lt_prog_compiler_pic='-fPIC -shared'
10278 if test -d /usr/nec; then
10279 lt_prog_compiler_pic=-Kconform_pic
10284 lt_prog_compiler_pic='-fPIC'
10288 case $cc_basename in
10289 nvcc*) # Cuda Compiler Driver 2.2
10290 lt_prog_compiler_wl='-Xlinker '
10291 if test -n "$lt_prog_compiler_pic"; then
10292 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10297 # PORTME Check for flag to pass linker flags through the system compiler.
10300 lt_prog_compiler_wl='-Wl,'
10301 if test "$host_cpu" = ia64; then
10302 # AIX 5 now supports IA64 processor
10303 lt_prog_compiler_static='-Bstatic'
10305 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10309 mingw* | cygwin* | pw32* | os2* | cegcc*)
10310 # This hack is so that the source file can tell whether it is being
10311 # built for inclusion in a dll (and should export symbols for example).
10312 lt_prog_compiler_pic='-DDLL_EXPORT'
10315 hpux9* | hpux10* | hpux11*)
10316 lt_prog_compiler_wl='-Wl,'
10317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10318 # not for PA HP-UX.
10324 lt_prog_compiler_pic='+Z'
10327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10328 lt_prog_compiler_static='${wl}-a ${wl}archive'
10331 irix5* | irix6* | nonstopux*)
10332 lt_prog_compiler_wl='-Wl,'
10333 # PIC (with -KPIC) is the default.
10334 lt_prog_compiler_static='-non_shared'
10337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10338 case $cc_basename in
10339 # old Intel for x86_64 which still supported -KPIC.
10341 lt_prog_compiler_wl='-Wl,'
10342 lt_prog_compiler_pic='-KPIC'
10343 lt_prog_compiler_static='-static'
10345 # icc used to be incompatible with GCC.
10346 # ICC 10 doesn't accept -KPIC any more.
10348 lt_prog_compiler_wl='-Wl,'
10349 lt_prog_compiler_pic='-fPIC'
10350 lt_prog_compiler_static='-static'
10352 # Lahey Fortran 8.1.
10354 lt_prog_compiler_wl='-Wl,'
10355 lt_prog_compiler_pic='--shared'
10356 lt_prog_compiler_static='--static'
10359 # NAG Fortran compiler
10360 lt_prog_compiler_wl='-Wl,-Wl,,'
10361 lt_prog_compiler_pic='-PIC'
10362 lt_prog_compiler_static='-Bstatic'
10364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10365 # Portland Group compilers (*not* the Pentium gcc compiler,
10366 # which looks to be a dead project)
10367 lt_prog_compiler_wl='-Wl,'
10368 lt_prog_compiler_pic='-fpic'
10369 lt_prog_compiler_static='-Bstatic'
10372 lt_prog_compiler_wl='-Wl,'
10373 # All Alpha code is PIC.
10374 lt_prog_compiler_static='-non_shared'
10376 xl* | bgxl* | bgf* | mpixl*)
10377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10378 lt_prog_compiler_wl='-Wl,'
10379 lt_prog_compiler_pic='-qpic'
10380 lt_prog_compiler_static='-qstaticlink'
10383 case `$CC -V 2>&1 | sed 5q` in
10384 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10386 lt_prog_compiler_pic='-KPIC'
10387 lt_prog_compiler_static='-Bstatic'
10388 lt_prog_compiler_wl=''
10390 *Sun\ F* | *Sun*Fortran*)
10391 lt_prog_compiler_pic='-KPIC'
10392 lt_prog_compiler_static='-Bstatic'
10393 lt_prog_compiler_wl='-Qoption ld '
10397 lt_prog_compiler_pic='-KPIC'
10398 lt_prog_compiler_static='-Bstatic'
10399 lt_prog_compiler_wl='-Wl,'
10401 *Intel*\ [CF]*Compiler*)
10402 lt_prog_compiler_wl='-Wl,'
10403 lt_prog_compiler_pic='-fPIC'
10404 lt_prog_compiler_static='-static'
10407 lt_prog_compiler_wl='-Wl,'
10408 lt_prog_compiler_pic='-fpic'
10409 lt_prog_compiler_static='-Bstatic'
10417 lt_prog_compiler_pic='-KPIC'
10418 lt_prog_compiler_static='-Bstatic'
10422 # QNX uses GNU C++, but need to define -shared option too, otherwise
10423 # it will coredump.
10424 lt_prog_compiler_pic='-fPIC -shared'
10427 osf3* | osf4* | osf5*)
10428 lt_prog_compiler_wl='-Wl,'
10429 # All OSF/1 code is PIC.
10430 lt_prog_compiler_static='-non_shared'
10434 lt_prog_compiler_static='-non_shared'
10438 lt_prog_compiler_pic='-KPIC'
10439 lt_prog_compiler_static='-Bstatic'
10440 case $cc_basename in
10441 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10442 lt_prog_compiler_wl='-Qoption ld ';;
10444 lt_prog_compiler_wl='-Wl,';;
10449 lt_prog_compiler_wl='-Qoption ld '
10450 lt_prog_compiler_pic='-PIC'
10451 lt_prog_compiler_static='-Bstatic'
10454 sysv4 | sysv4.2uw2* | sysv4.3*)
10455 lt_prog_compiler_wl='-Wl,'
10456 lt_prog_compiler_pic='-KPIC'
10457 lt_prog_compiler_static='-Bstatic'
10461 if test -d /usr/nec ;then
10462 lt_prog_compiler_pic='-Kconform_pic'
10463 lt_prog_compiler_static='-Bstatic'
10467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10468 lt_prog_compiler_wl='-Wl,'
10469 lt_prog_compiler_pic='-KPIC'
10470 lt_prog_compiler_static='-Bstatic'
10474 lt_prog_compiler_wl='-Wl,'
10475 lt_prog_compiler_can_build_shared=no
10479 lt_prog_compiler_pic='-pic'
10480 lt_prog_compiler_static='-Bstatic'
10484 lt_prog_compiler_can_build_shared=no
10490 # For platforms which do not support PIC, -DPIC is meaningless:
10492 lt_prog_compiler_pic=
10495 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10500 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10501 if ${lt_cv_prog_compiler_pic+:} false; then :
10502 $as_echo_n "(cached) " >&6
10504 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10507 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10508 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10511 # Check to make sure the PIC flag actually works.
10513 if test -n "$lt_prog_compiler_pic"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10516 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10517 $as_echo_n "(cached) " >&6
10519 lt_cv_prog_compiler_pic_works=no
10520 ac_outfile=conftest.$ac_objext
10521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10522 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10523 # Insert the option either (1) after the last *FLAGS variable, or
10524 # (2) before a word containing "conftest.", or (3) at the end.
10525 # Note that $ac_compile itself does not contain backslashes and begins
10526 # with a dollar sign (not a hyphen), so the echo should work correctly.
10527 # The option is referenced via a variable to avoid confusing sed.
10528 lt_compile=`echo "$ac_compile" | $SED \
10529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10531 -e 's:$: $lt_compiler_flag:'`
10532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10533 (eval "$lt_compile" 2>conftest.err)
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 if (exit $ac_status) && test -s "$ac_outfile"; then
10538 # The compiler can only warn and ignore the option if not recognized
10539 # So say no if there are warnings other than the usual output.
10540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10543 lt_cv_prog_compiler_pic_works=yes
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10552 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10553 case $lt_prog_compiler_pic in
10555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10558 lt_prog_compiler_pic=
10559 lt_prog_compiler_can_build_shared=no
10575 # Check to make sure the static flag actually works.
10577 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10579 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10580 if ${lt_cv_prog_compiler_static_works+:} false; then :
10581 $as_echo_n "(cached) " >&6
10583 lt_cv_prog_compiler_static_works=no
10584 save_LDFLAGS="$LDFLAGS"
10585 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10588 # The linker can only warn and ignore the option if not recognized
10589 # So say no if there are warnings
10590 if test -s conftest.err; then
10591 # Append any errors to the config.log.
10592 cat conftest.err 1>&5
10593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10595 if diff conftest.exp conftest.er2 >/dev/null; then
10596 lt_cv_prog_compiler_static_works=yes
10599 lt_cv_prog_compiler_static_works=yes
10603 LDFLAGS="$save_LDFLAGS"
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10607 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10609 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10612 lt_prog_compiler_static=
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10623 if ${lt_cv_prog_compiler_c_o+:} false; then :
10624 $as_echo_n "(cached) " >&6
10626 lt_cv_prog_compiler_c_o=no
10627 $RM -r conftest 2>/dev/null
10631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10633 lt_compiler_flag="-o out/conftest2.$ac_objext"
10634 # Insert the option either (1) after the last *FLAGS variable, or
10635 # (2) before a word containing "conftest.", or (3) at the end.
10636 # Note that $ac_compile itself does not contain backslashes and begins
10637 # with a dollar sign (not a hyphen), so the echo should work correctly.
10638 lt_compile=`echo "$ac_compile" | $SED \
10639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10641 -e 's:$: $lt_compiler_flag:'`
10642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10643 (eval "$lt_compile" 2>out/conftest.err)
10645 cat out/conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10649 # The compiler can only warn and ignore the option if not recognized
10650 # So say no if there are warnings
10651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10654 lt_cv_prog_compiler_c_o=yes
10659 # SGI C++ compiler will create directory out/ii_files/ for
10660 # template instantiation
10661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10662 $RM out/* && rmdir out
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10678 if ${lt_cv_prog_compiler_c_o+:} false; then :
10679 $as_echo_n "(cached) " >&6
10681 lt_cv_prog_compiler_c_o=no
10682 $RM -r conftest 2>/dev/null
10686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10688 lt_compiler_flag="-o out/conftest2.$ac_objext"
10689 # Insert the option either (1) after the last *FLAGS variable, or
10690 # (2) before a word containing "conftest.", or (3) at the end.
10691 # Note that $ac_compile itself does not contain backslashes and begins
10692 # with a dollar sign (not a hyphen), so the echo should work correctly.
10693 lt_compile=`echo "$ac_compile" | $SED \
10694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10696 -e 's:$: $lt_compiler_flag:'`
10697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10698 (eval "$lt_compile" 2>out/conftest.err)
10700 cat out/conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10704 # The compiler can only warn and ignore the option if not recognized
10705 # So say no if there are warnings
10706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10709 lt_cv_prog_compiler_c_o=yes
10714 # SGI C++ compiler will create directory out/ii_files/ for
10715 # template instantiation
10716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10717 $RM out/* && rmdir out
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10729 hard_links="nottested"
10730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10731 # do not overwrite the value of need_locks provided by the user
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10733 $as_echo_n "checking if we can lock with hard links... " >&6; }
10736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10738 ln conftest.a conftest.b 2>&5 || hard_links=no
10739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10741 $as_echo "$hard_links" >&6; }
10742 if test "$hard_links" = no; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10744 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10760 allow_undefined_flag=
10761 always_export_symbols=no
10763 archive_expsym_cmds=
10764 compiler_needs_object=no
10765 enable_shared_with_static_runtimes=no
10766 export_dynamic_flag_spec=
10767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10768 hardcode_automatic=no
10770 hardcode_direct_absolute=no
10771 hardcode_libdir_flag_spec=
10772 hardcode_libdir_separator=
10773 hardcode_minus_L=no
10774 hardcode_shlibpath_var=unsupported
10776 link_all_deplibs=unknown
10778 module_expsym_cmds=
10779 old_archive_from_new_cmds=
10780 old_archive_from_expsyms_cmds=
10781 thread_safe_flag_spec=
10782 whole_archive_flag_spec=
10783 # include_expsyms should be a list of space-separated symbols to be *always*
10784 # included in the symbol list
10786 # exclude_expsyms can be an extended regexp of symbols to exclude
10787 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10788 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10789 # as well as any symbol that contains `d'.
10790 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10792 # platforms (ab)use it in PIC code, but their linkers get confused if
10793 # the symbol is explicitly referenced. Since portable code cannot
10794 # rely on this symbol name, it's probably fine to never include it in
10795 # preloaded symbol tables.
10796 # Exclude shared library initialization/finalization symbols.
10797 extract_expsyms_cmds=
10800 cygwin* | mingw* | pw32* | cegcc*)
10801 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10802 # When not using gcc, we currently assume that we are using
10803 # Microsoft Visual C++.
10804 if test "$GCC" != yes; then
10809 # we just hope/assume this is gcc and not c89 (= MSVC++)
10815 linux* | k*bsd*-gnu | gnu*)
10816 link_all_deplibs=no
10822 # On some targets, GNU ld is compatible enough with the native linker
10823 # that we're better off using the native interface for both.
10824 lt_use_gnu_ld_interface=no
10825 if test "$with_gnu_ld" = yes; then
10828 # The AIX port of GNU ld has always aspired to compatibility
10829 # with the native linker. However, as the warning in the GNU ld
10830 # block says, versions before 2.19.5* couldn't really create working
10831 # shared libraries, regardless of the interface used.
10832 case `$LD -v 2>&1` in
10833 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10834 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10835 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10837 lt_use_gnu_ld_interface=yes
10842 lt_use_gnu_ld_interface=yes
10847 if test "$lt_use_gnu_ld_interface" = yes; then
10848 # If archive_cmds runs LD, not CC, wlarc should be empty
10851 # Set some defaults for GNU ld with shared library support. These
10852 # are reset later if shared libraries are not supported. Putting them
10853 # here allows them to be overridden if necessary.
10854 runpath_var=LD_RUN_PATH
10855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10856 export_dynamic_flag_spec='${wl}--export-dynamic'
10857 # ancient GNU ld didn't support --whole-archive et. al.
10858 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10859 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10861 whole_archive_flag_spec=
10863 supports_anon_versioning=no
10864 case `$LD -v 2>&1` in
10865 *GNU\ gold*) supports_anon_versioning=yes ;;
10866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10869 *\ 2.11.*) ;; # other 2.11 versions
10870 *) supports_anon_versioning=yes ;;
10873 # See if GNU ld supports shared libraries.
10876 # On AIX/PPC, the GNU linker is very broken
10877 if test "$host_cpu" != ia64; then
10881 *** Warning: the GNU linker, at least up to release 2.19, is reported
10882 *** to be unable to reliably create shared libraries on AIX.
10883 *** Therefore, libtool is disabling shared libraries support. If you
10884 *** really care for shared libraries, you may want to install binutils
10885 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10886 *** You will then need to restart the configuration process.
10895 # see comment about AmigaOS4 .so support
10896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10897 archive_expsym_cmds=''
10900 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)'
10901 hardcode_libdir_flag_spec='-L$libdir'
10902 hardcode_minus_L=yes
10908 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10909 allow_undefined_flag=unsupported
10910 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10911 # support --undefined. This deserves some investigation. FIXME
10912 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918 cygwin* | mingw* | pw32* | cegcc*)
10919 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10920 # as there is no search path for DLLs.
10921 hardcode_libdir_flag_spec='-L$libdir'
10922 export_dynamic_flag_spec='${wl}--export-all-symbols'
10923 allow_undefined_flag=unsupported
10924 always_export_symbols=no
10925 enable_shared_with_static_runtimes=yes
10926 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'
10927 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10929 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10931 # If the export-symbols file already is a .def file (1st line
10932 # is EXPORTS), use it as is; otherwise, prepend...
10933 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10934 cp $export_symbols $output_objdir/$soname.def;
10936 echo EXPORTS > $output_objdir/$soname.def;
10937 cat $export_symbols >> $output_objdir/$soname.def;
10939 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947 link_all_deplibs=yes
10952 hardcode_shlibpath_var=no
10953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10954 export_dynamic_flag_spec='${wl}-E'
10955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10956 # Instead, shared libraries are loaded at an image base (0x10000000 by
10957 # default) and relocated if they conflict, which is a slow very memory
10958 # consuming and fragmenting process. To avoid this, we pick a random,
10959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10960 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10962 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'
10965 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10967 if test "$host_os" = linux-dietlibc; then
10968 case $cc_basename in
10969 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10972 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10973 && test "$tmp_diet" = no
10975 tmp_addflag=' $pic_flag'
10976 tmp_sharedflag='-shared'
10977 case $cc_basename,$host_cpu in
10978 pgcc*) # Portland Group C compiler
10979 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'
10980 tmp_addflag=' $pic_flag'
10982 pgf77* | pgf90* | pgf95* | pgfortran*)
10983 # Portland Group f77 and f90 compilers
10984 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'
10985 tmp_addflag=' $pic_flag -Mnomain' ;;
10986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10987 tmp_addflag=' -i_dynamic' ;;
10988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10989 tmp_addflag=' -i_dynamic -nofor_main' ;;
10990 ifc* | ifort*) # Intel Fortran compiler
10991 tmp_addflag=' -nofor_main' ;;
10992 lf95*) # Lahey Fortran 8.1
10993 whole_archive_flag_spec=
10994 tmp_sharedflag='--shared' ;;
10995 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10996 tmp_sharedflag='-qmkshrobj'
10998 nvcc*) # Cuda Compiler Driver 2.2
10999 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'
11000 compiler_needs_object=yes
11003 case `$CC -V 2>&1 | sed 5q` in
11004 *Sun\ C*) # Sun C 5.9
11005 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'
11006 compiler_needs_object=yes
11007 tmp_sharedflag='-G' ;;
11008 *Sun\ F*) # Sun Fortran 8.3
11009 tmp_sharedflag='-G' ;;
11011 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11013 if test "x$supports_anon_versioning" = xyes; then
11014 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11016 echo "local: *; };" >> $output_objdir/$libname.ver~
11017 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11020 case $cc_basename in
11021 xlf* | bgf* | bgxlf* | mpixlf*)
11022 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11023 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11025 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11026 if test "x$supports_anon_versioning" = xyes; then
11027 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11029 echo "local: *; };" >> $output_objdir/$libname.ver~
11030 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11039 netbsd* | netbsdelf*-gnu)
11040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11041 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11050 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11055 *** create shared libraries on Solaris systems. Therefore, libtool
11056 *** is disabling shared libraries support. We urge you to upgrade GNU
11057 *** binutils to release 2.9.1 or newer. Another option is to modify
11058 *** your PATH or compiler configuration so that the native linker is
11059 *** used, and then restart.
11062 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11063 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11064 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11071 case `$LD -v 2>&1` in
11072 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11076 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11077 *** reliably create shared libraries on SCO systems. Therefore, libtool
11078 *** is disabling shared libraries support. We urge you to upgrade GNU
11079 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11080 *** your PATH or compiler configuration so that the native linker is
11081 *** used, and then restart.
11086 # For security reasons, it is highly recommended that you always
11087 # use absolute paths for naming shared libraries, and exclude the
11088 # DT_RUNPATH tag from executables and libraries. But doing so
11089 # requires that you compile everything twice, which is a pain.
11090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11102 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11104 hardcode_direct=yes
11105 hardcode_shlibpath_var=no
11109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11111 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11118 if test "$ld_shlibs" = no; then
11120 hardcode_libdir_flag_spec=
11121 export_dynamic_flag_spec=
11122 whole_archive_flag_spec=
11125 # PORTME fill in a description of your system's linker (not GNU ld)
11128 allow_undefined_flag=unsupported
11129 always_export_symbols=yes
11130 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'
11131 # Note: this linker hardcodes the directories in LIBPATH if there
11132 # are no directories specified by -L.
11133 hardcode_minus_L=yes
11134 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11135 # Neither direct hardcoding nor static linking is supported with a
11137 hardcode_direct=unsupported
11142 if test "$host_cpu" = ia64; then
11143 # On IA64, the linker does run time linking by default, so we don't
11144 # have to do anything special.
11145 aix_use_runtimelinking=no
11146 exp_sym_flag='-Bexport'
11149 # If we're using GNU nm, then we don't want the "-C" option.
11150 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11151 # Also, AIX nm treats weak defined symbols like other global
11152 # defined symbols, whereas GNU nm marks them as "W".
11153 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11154 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'
11156 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'
11158 aix_use_runtimelinking=no
11160 # Test if we are trying to use run time linking or normal
11161 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11162 # need to do runtime linking.
11163 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11164 for ld_flag in $LDFLAGS; do
11165 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11166 aix_use_runtimelinking=yes
11173 exp_sym_flag='-bexport'
11174 no_entry_flag='-bnoentry'
11177 # When large executables or shared objects are built, AIX ld can
11178 # have problems creating the table of contents. If linking a library
11179 # or program results in "error TOC overflow" add -mminimal-toc to
11180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11184 hardcode_direct=yes
11185 hardcode_direct_absolute=yes
11186 hardcode_libdir_separator=':'
11187 link_all_deplibs=yes
11188 file_list_spec='${wl}-f,'
11190 if test "$GCC" = yes; then
11191 case $host_os in aix4.[012]|aix4.[012].*)
11192 # We only want to do this on AIX 4.2 and lower, the check
11193 # below for broken collect2 doesn't work under 4.3+
11194 collect2name=`${CC} -print-prog-name=collect2`
11195 if test -f "$collect2name" &&
11196 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11198 # We have reworked collect2
11201 # We have old collect2
11202 hardcode_direct=unsupported
11203 # It fails to find uninstalled libraries when the uninstalled
11204 # path is not listed in the libpath. Setting hardcode_minus_L
11205 # to unsupported forces relinking
11206 hardcode_minus_L=yes
11207 hardcode_libdir_flag_spec='-L$libdir'
11208 hardcode_libdir_separator=
11212 shared_flag='-shared'
11213 if test "$aix_use_runtimelinking" = yes; then
11214 shared_flag="$shared_flag "'${wl}-G'
11216 link_all_deplibs=no
11219 if test "$host_cpu" = ia64; then
11220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11221 # chokes on -Wl,-G. The following line is correct:
11224 if test "$aix_use_runtimelinking" = yes; then
11225 shared_flag='${wl}-G'
11227 shared_flag='${wl}-bM:SRE'
11232 export_dynamic_flag_spec='${wl}-bexpall'
11233 # It seems that -bexpall does not export symbols beginning with
11234 # underscore (_), so it is better to generate a list of symbols to export.
11235 always_export_symbols=yes
11236 if test "$aix_use_runtimelinking" = yes; then
11237 # Warning - without using the other runtime loading flags (-brtl),
11238 # -berok will link without error, but may produce a broken library.
11239 allow_undefined_flag='-berok'
11240 # Determine the default libpath from the value encoded in an
11241 # empty executable.
11242 if test "${lt_cv_aix_libpath+set}" = set; then
11243 aix_libpath=$lt_cv_aix_libpath
11245 if ${lt_cv_aix_libpath_+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11259 if ac_fn_c_try_link "$LINENO"; then :
11261 lt_aix_libpath_sed='
11262 /Import File Strings/,/^$/ {
11264 s/^0 *\([^ ]*\) *$/\1/
11268 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11269 # Check for a 64-bit object if we didn't find anything.
11270 if test -z "$lt_cv_aix_libpath_"; then
11271 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 if test -z "$lt_cv_aix_libpath_"; then
11277 lt_cv_aix_libpath_="/usr/lib:/lib"
11282 aix_libpath=$lt_cv_aix_libpath_
11285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11286 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"
11288 if test "$host_cpu" = ia64; then
11289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11290 allow_undefined_flag="-z nodefs"
11291 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"
11293 # Determine the default libpath from the value encoded in an
11294 # empty executable.
11295 if test "${lt_cv_aix_libpath+set}" = set; then
11296 aix_libpath=$lt_cv_aix_libpath
11298 if ${lt_cv_aix_libpath_+:} false; then :
11299 $as_echo_n "(cached) " >&6
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11312 if ac_fn_c_try_link "$LINENO"; then :
11314 lt_aix_libpath_sed='
11315 /Import File Strings/,/^$/ {
11317 s/^0 *\([^ ]*\) *$/\1/
11321 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11322 # Check for a 64-bit object if we didn't find anything.
11323 if test -z "$lt_cv_aix_libpath_"; then
11324 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 if test -z "$lt_cv_aix_libpath_"; then
11330 lt_cv_aix_libpath_="/usr/lib:/lib"
11335 aix_libpath=$lt_cv_aix_libpath_
11338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11339 # Warning - without using the other run time loading flags,
11340 # -berok will link without error, but may produce a broken library.
11341 no_undefined_flag=' ${wl}-bernotok'
11342 allow_undefined_flag=' ${wl}-berok'
11343 if test "$with_gnu_ld" = yes; then
11344 # We only use this code for GNU lds that support --whole-archive.
11345 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11347 # Exported symbols can be pulled into shared objects from archives
11348 whole_archive_flag_spec='$convenience'
11350 archive_cmds_need_lc=yes
11351 # This is similar to how AIX traditionally builds its shared libraries.
11352 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'
11360 # see comment about AmigaOS4 .so support
11361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11362 archive_expsym_cmds=''
11365 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)'
11366 hardcode_libdir_flag_spec='-L$libdir'
11367 hardcode_minus_L=yes
11373 export_dynamic_flag_spec=-rdynamic
11376 cygwin* | mingw* | pw32* | cegcc*)
11377 # When not using gcc, we currently assume that we are using
11378 # Microsoft Visual C++.
11379 # hardcode_libdir_flag_spec is actually meaningless, as there is
11380 # no search path for DLLs.
11381 case $cc_basename in
11384 hardcode_libdir_flag_spec=' '
11385 allow_undefined_flag=unsupported
11386 always_export_symbols=yes
11388 # Tell ltmain to make .lib files, not .a files.
11390 # Tell ltmain to make .dll files, not .so files.
11392 # FIXME: Setting linknames here is a bad hack.
11393 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11394 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11395 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11397 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11399 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11401 # The linker will not automatically build a static lib if we build a DLL.
11402 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11403 enable_shared_with_static_runtimes=yes
11404 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11407 old_postinstall_cmds='chmod 644 $oldlib'
11408 postlink_cmds='lt_outputfile="@OUTPUT@"~
11409 lt_tool_outputfile="@TOOL_OUTPUT@"~
11410 case $lt_outputfile in
11413 lt_outputfile="$lt_outputfile.exe"
11414 lt_tool_outputfile="$lt_tool_outputfile.exe"
11417 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11418 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11419 $RM "$lt_outputfile.manifest";
11423 # Assume MSVC wrapper
11424 hardcode_libdir_flag_spec=' '
11425 allow_undefined_flag=unsupported
11426 # Tell ltmain to make .lib files, not .a files.
11428 # Tell ltmain to make .dll files, not .so files.
11430 # FIXME: Setting linknames here is a bad hack.
11431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11432 # The linker will automatically build a .lib file if we build a DLL.
11433 old_archive_from_new_cmds='true'
11434 # FIXME: Should let the user specify the lib program.
11435 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11436 enable_shared_with_static_runtimes=yes
11441 darwin* | rhapsody*)
11444 archive_cmds_need_lc=no
11446 hardcode_automatic=yes
11447 hardcode_shlibpath_var=unsupported
11448 if test "$lt_cv_ld_force_load" = "yes"; then
11449 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\"`'
11452 whole_archive_flag_spec=''
11454 link_all_deplibs=yes
11455 allow_undefined_flag="$_lt_dar_allow_undefined"
11456 case $cc_basename in
11457 ifort*) _lt_dar_can_shared=yes ;;
11458 *) _lt_dar_can_shared=$GCC ;;
11460 if test "$_lt_dar_can_shared" = "yes"; then
11461 output_verbose_link_cmd=func_echo_all
11462 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11463 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11464 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}"
11465 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}"
11474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475 hardcode_libdir_flag_spec='-L$libdir'
11476 hardcode_shlibpath_var=no
11479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11480 # support. Future versions do this automatically, but an explicit c++rt0.o
11481 # does not break anything, and helps significantly (at the cost of a little
11484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11485 hardcode_libdir_flag_spec='-R$libdir'
11486 hardcode_direct=yes
11487 hardcode_shlibpath_var=no
11490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11493 hardcode_direct=yes
11494 hardcode_minus_L=yes
11495 hardcode_shlibpath_var=no
11498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11499 freebsd* | dragonfly*)
11500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11501 hardcode_libdir_flag_spec='-R$libdir'
11502 hardcode_direct=yes
11503 hardcode_shlibpath_var=no
11507 if test "$GCC" = yes; then
11508 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'
11510 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'
11512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11513 hardcode_libdir_separator=:
11514 hardcode_direct=yes
11516 # hardcode_minus_L: Not really in the search PATH,
11517 # but as the default location of the library.
11518 hardcode_minus_L=yes
11519 export_dynamic_flag_spec='${wl}-E'
11523 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11528 if test "$with_gnu_ld" = no; then
11529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11530 hardcode_libdir_separator=:
11531 hardcode_direct=yes
11532 hardcode_direct_absolute=yes
11533 export_dynamic_flag_spec='${wl}-E'
11534 # hardcode_minus_L: Not really in the search PATH,
11535 # but as the default location of the library.
11536 hardcode_minus_L=yes
11541 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11547 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11563 # Older versions of the 11.00 compiler do not understand -b yet
11564 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11566 $as_echo_n "checking if $CC understands -b... " >&6; }
11567 if ${lt_cv_prog_compiler__b+:} false; then :
11568 $as_echo_n "(cached) " >&6
11570 lt_cv_prog_compiler__b=no
11571 save_LDFLAGS="$LDFLAGS"
11572 LDFLAGS="$LDFLAGS -b"
11573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575 # The linker can only warn and ignore the option if not recognized
11576 # So say no if there are warnings
11577 if test -s conftest.err; then
11578 # Append any errors to the config.log.
11579 cat conftest.err 1>&5
11580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582 if diff conftest.exp conftest.er2 >/dev/null; then
11583 lt_cv_prog_compiler__b=yes
11586 lt_cv_prog_compiler__b=yes
11590 LDFLAGS="$save_LDFLAGS"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11594 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11596 if test x"$lt_cv_prog_compiler__b" = xyes; then
11597 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11605 if test "$with_gnu_ld" = no; then
11606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11607 hardcode_libdir_separator=:
11612 hardcode_shlibpath_var=no
11615 hardcode_direct=yes
11616 hardcode_direct_absolute=yes
11617 export_dynamic_flag_spec='${wl}-E'
11619 # hardcode_minus_L: Not really in the search PATH,
11620 # but as the default location of the library.
11621 hardcode_minus_L=yes
11627 irix5* | irix6* | nonstopux*)
11628 if test "$GCC" = yes; then
11629 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'
11630 # Try to use the -exported_symbol ld option, if it does not
11631 # work, assume that -exports_file does not work either and
11632 # implicitly export all symbols.
11633 # This should be the same for all languages, so no per-tag cache variable.
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11635 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11636 if ${lt_cv_irix_exported_symbol+:} false; then :
11637 $as_echo_n "(cached) " >&6
11639 save_LDFLAGS="$LDFLAGS"
11640 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 int foo (void) { return 0; }
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 lt_cv_irix_exported_symbol=yes
11648 lt_cv_irix_exported_symbol=no
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LDFLAGS="$save_LDFLAGS"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11655 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11656 if test "$lt_cv_irix_exported_symbol" = yes; then
11657 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'
11660 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'
11661 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'
11663 archive_cmds_need_lc='no'
11664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11665 hardcode_libdir_separator=:
11667 link_all_deplibs=yes
11670 netbsd* | netbsdelf*-gnu)
11671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11674 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11676 hardcode_libdir_flag_spec='-R$libdir'
11677 hardcode_direct=yes
11678 hardcode_shlibpath_var=no
11682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11683 hardcode_direct=yes
11684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11685 hardcode_libdir_separator=:
11686 hardcode_shlibpath_var=no
11693 if test -f /usr/libexec/ld.so; then
11694 hardcode_direct=yes
11695 hardcode_shlibpath_var=no
11696 hardcode_direct_absolute=yes
11697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11699 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11701 export_dynamic_flag_spec='${wl}-E'
11704 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11706 hardcode_libdir_flag_spec='-R$libdir'
11709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11720 hardcode_libdir_flag_spec='-L$libdir'
11721 hardcode_minus_L=yes
11722 allow_undefined_flag=unsupported
11723 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'
11724 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11728 if test "$GCC" = yes; then
11729 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11730 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'
11732 allow_undefined_flag=' -expect_unresolved \*'
11733 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'
11735 archive_cmds_need_lc='no'
11736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11737 hardcode_libdir_separator=:
11740 osf4* | osf5*) # as osf3* with the addition of -msym flag
11741 if test "$GCC" = yes; then
11742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11743 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'
11744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11746 allow_undefined_flag=' -expect_unresolved \*'
11747 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'
11748 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~
11749 $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'
11751 # Both c and cxx compiler support -rpath directly
11752 hardcode_libdir_flag_spec='-rpath $libdir'
11754 archive_cmds_need_lc='no'
11755 hardcode_libdir_separator=:
11759 no_undefined_flag=' -z defs'
11760 if test "$GCC" = yes; then
11762 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11764 $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'
11766 case `$CC -V 2>&1` in
11769 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11775 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11777 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11781 hardcode_libdir_flag_spec='-R$libdir'
11782 hardcode_shlibpath_var=no
11784 solaris2.[0-5] | solaris2.[0-5].*) ;;
11786 # The compiler driver will combine and reorder linker options,
11787 # but understands `-z linker_flag'. GCC discards it without `$wl',
11788 # but is careful enough not to reorder.
11789 # Supported since Solaris 2.6 (maybe 2.5.1?)
11790 if test "$GCC" = yes; then
11791 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11797 link_all_deplibs=yes
11801 if test "x$host_vendor" = xsequent; then
11802 # Use $CC to link under sequent, because it throws in some extra .o
11803 # files that make .init and .fini sections work.
11804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11808 hardcode_libdir_flag_spec='-L$libdir'
11809 hardcode_direct=yes
11810 hardcode_minus_L=yes
11811 hardcode_shlibpath_var=no
11815 case $host_vendor in
11817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11818 hardcode_direct=yes # is this really true???
11821 ## LD is ld it makes a PLAMLIB
11822 ## CC just makes a GrossModule.
11823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11824 reload_cmds='$CC -r -o $output$reload_objs'
11828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11832 runpath_var='LD_RUN_PATH'
11833 hardcode_shlibpath_var=no
11837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838 hardcode_shlibpath_var=no
11839 export_dynamic_flag_spec='-Bexport'
11843 if test -d /usr/nec; then
11844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845 hardcode_shlibpath_var=no
11846 runpath_var=LD_RUN_PATH
11847 hardcode_runpath_var=yes
11852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853 no_undefined_flag='${wl}-z,text'
11854 archive_cmds_need_lc=no
11855 hardcode_shlibpath_var=no
11856 runpath_var='LD_RUN_PATH'
11858 if test "$GCC" = yes; then
11859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 sysv5* | sco3.2v5* | sco5v6*)
11868 # Note: We can NOT use -z defs as we might desire, because we do not
11869 # link with -lc, and that would cause any symbols used from libc to
11870 # always be unresolved, which means just about no library would
11871 # ever link correctly. If we're not using GNU ld we use -z text
11872 # though, which does catch some bad symbols but isn't as heavy-handed
11874 no_undefined_flag='${wl}-z,text'
11875 allow_undefined_flag='${wl}-z,nodefs'
11876 archive_cmds_need_lc=no
11877 hardcode_shlibpath_var=no
11878 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11879 hardcode_libdir_separator=':'
11880 link_all_deplibs=yes
11881 export_dynamic_flag_spec='${wl}-Bexport'
11882 runpath_var='LD_RUN_PATH'
11884 if test "$GCC" = yes; then
11885 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11888 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895 hardcode_libdir_flag_spec='-L$libdir'
11896 hardcode_shlibpath_var=no
11904 if test x$host_vendor = xsni; then
11906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11907 export_dynamic_flag_spec='${wl}-Blargedynsym'
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11914 $as_echo "$ld_shlibs" >&6; }
11915 test "$ld_shlibs" = no && can_build_shared=no
11917 with_gnu_ld=$with_gnu_ld
11934 # Do we need to explicitly link libc?
11936 case "x$archive_cmds_need_lc" in
11938 # Assume -lc should be added
11939 archive_cmds_need_lc=yes
11941 if test "$enable_shared" = yes && test "$GCC" = yes; then
11942 case $archive_cmds in
11944 # FIXME: we may have to deal with multi-command sequences.
11947 # Test whether the compiler implicitly links with -lc since on some
11948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11949 # to ld, don't add -lc before -lgcc.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11952 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11953 $as_echo_n "(cached) " >&6
11956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11959 (eval $ac_compile) 2>&5
11961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962 test $ac_status = 0; } 2>conftest.err; then
11965 libobjs=conftest.$ac_objext
11967 wl=$lt_prog_compiler_wl
11968 pic_flag=$lt_prog_compiler_pic
11974 lt_save_allow_undefined_flag=$allow_undefined_flag
11975 allow_undefined_flag=
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11977 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; }
11982 lt_cv_archive_cmds_need_lc=no
11984 lt_cv_archive_cmds_need_lc=yes
11986 allow_undefined_flag=$lt_save_allow_undefined_flag
11988 cat conftest.err 1>&5
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11994 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11995 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12154 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12156 if test "$GCC" = yes; then
12158 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12159 *) lt_awk_arg="/^libraries:/" ;;
12162 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12163 *) lt_sed_strip_eq="s,=/,/,g" ;;
12165 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12166 case $lt_search_path_spec in
12168 # if the path contains ";" then we assume it to be the separator
12169 # otherwise default to the standard path separator (i.e. ":") - it is
12170 # assumed that no part of a normal pathname contains ";" but that should
12171 # okay in the real world where ";" in dirpaths is itself problematic.
12172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12178 # Ok, now we have the path, separated by spaces, we can step through it
12179 # and add multilib dir if necessary.
12180 lt_tmp_lt_search_path_spec=
12181 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12182 for lt_sys_path in $lt_search_path_spec; do
12183 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12184 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12186 test -d "$lt_sys_path" && \
12187 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12190 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12191 BEGIN {RS=" "; FS="/|\n";} {
12194 for (lt_i = NF; lt_i > 0; lt_i--) {
12195 if ($lt_i != "" && $lt_i != ".") {
12196 if ($lt_i == "..") {
12199 if (lt_count == 0) {
12200 lt_foo="/" $lt_i lt_foo;
12207 if (lt_foo != "") { lt_freq[lt_foo]++; }
12208 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12210 # AWK program above erroneously prepends '/' to C:/dos/paths
12213 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12214 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12216 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12220 library_names_spec=
12221 libname_spec='lib$name'
12225 postuninstall_cmds=
12229 shlibpath_overrides_runpath=unknown
12231 dynamic_linker="$host_os ld.so"
12232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12233 need_lib_prefix=unknown
12234 hardcode_into_libs=no
12236 # when you set need_version to no, make sure it does not cause -set_version
12237 # flags to be left without arguments
12238 need_version=unknown
12242 version_type=linux # correct to gnu/linux during the next big refactor
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12244 shlibpath_var=LIBPATH
12246 # AIX 3 has no versioning support, so we append a major version to the name.
12247 soname_spec='${libname}${release}${shared_ext}$major'
12251 version_type=linux # correct to gnu/linux during the next big refactor
12254 hardcode_into_libs=yes
12255 if test "$host_cpu" = ia64; then
12256 # AIX 5 supports IA64
12257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12258 shlibpath_var=LD_LIBRARY_PATH
12260 # With GCC up to 2.95.x, collect2 would create an import file
12261 # for dependence libraries. The import file would start with
12262 # the line `#! .'. This would cause the generated library to
12263 # depend on `.', always an invalid library. This was fixed in
12264 # development snapshots of GCC prior to 3.0.
12266 aix4 | aix4.[01] | aix4.[01].*)
12267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12269 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12272 can_build_shared=no
12276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12277 # soname into executable. Probably we can add versioning support to
12278 # collect2, so additional links can be useful in future.
12279 if test "$aix_use_runtimelinking" = yes; then
12280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12281 # instead of lib<name>.a to let people know that these are not
12282 # typical AIX shared libraries.
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12285 # We preserve .a as extension for shared libraries through AIX4.2
12286 # and later when we are not doing run time linking.
12287 library_names_spec='${libname}${release}.a $libname.a'
12288 soname_spec='${libname}${release}${shared_ext}$major'
12290 shlibpath_var=LIBPATH
12297 # Since July 2007 AmigaOS4 officially supports .so libraries.
12298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 library_names_spec='$libname.ixlibrary $libname.a'
12303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12304 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'
12310 library_names_spec='${libname}${shared_ext}'
12311 dynamic_linker="$host_os ld.so"
12312 shlibpath_var=LIBRARY_PATH
12316 version_type=linux # correct to gnu/linux during the next big refactor
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12324 # the default ld.so.conf also contains /usr/contrib/lib and
12325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12326 # libtool to hard-code these into programs
12329 cygwin* | mingw* | pw32* | cegcc*)
12330 version_type=windows
12335 case $GCC,$cc_basename in
12338 library_names_spec='$libname.dll.a'
12339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12340 postinstall_cmds='base_file=`basename \${file}`~
12341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12342 dldir=$destdir/`dirname \$dlpath`~
12343 test -d \$dldir || mkdir -p \$dldir~
12344 $install_prog $dir/$dlname \$dldir/$dlname~
12345 chmod a+x \$dldir/$dlname~
12346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12350 dlpath=$dir/\$dldll~
12352 shlibpath_overrides_runpath=yes
12356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12362 # MinGW DLLs use traditional 'lib' prefix
12363 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12366 # pw32 DLLs use 'pw' prefix rather than 'lib'
12367 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12370 dynamic_linker='Win32 ld.exe'
12375 libname_spec='$name'
12376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12377 library_names_spec='${libname}.dll.lib'
12381 sys_lib_search_path_spec=
12384 for lt_path in $LIB
12387 # Let DOS variable expansion print the short 8.3 style file name.
12388 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12389 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12392 # Convert to MSYS style.
12393 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12396 # Convert to unix form, then to dos form, then back to unix form
12397 # but this time dos style (no spaces!) so that the unix form looks
12398 # like /cygdrive/c/PROGRA~1:/cygdr...
12399 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12400 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12401 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12404 sys_lib_search_path_spec="$LIB"
12405 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12406 # It is most probably a Windows format PATH.
12407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12411 # FIXME: find the short name or the path components, as spaces are
12412 # common. (e.g. "Program Files" -> "PROGRA~1")
12416 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417 postinstall_cmds='base_file=`basename \${file}`~
12418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12419 dldir=$destdir/`dirname \$dlpath`~
12420 test -d \$dldir || mkdir -p \$dldir~
12421 $install_prog $dir/$dlname \$dldir/$dlname'
12422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12423 dlpath=$dir/\$dldll~
12425 shlibpath_overrides_runpath=yes
12426 dynamic_linker='Win32 link.exe'
12430 # Assume MSVC wrapper
12431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12432 dynamic_linker='Win32 ld.exe'
12435 # FIXME: first we should search . and the directory the executable is in
12439 darwin* | rhapsody*)
12440 dynamic_linker="$host_os dyld"
12441 version_type=darwin
12444 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12445 soname_spec='${libname}${release}${major}$shared_ext'
12446 shlibpath_overrides_runpath=yes
12447 shlibpath_var=DYLD_LIBRARY_PATH
12448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12455 version_type=linux # correct to gnu/linux during the next big refactor
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12463 freebsd* | dragonfly*)
12464 # DragonFly does not have aout. When/if they implement a new
12465 # versioning mechanism, adjust this.
12466 if test -x /usr/bin/objformat; then
12467 objformat=`/usr/bin/objformat`
12470 freebsd[23].*) objformat=aout ;;
12471 *) objformat=elf ;;
12474 version_type=freebsd-$objformat
12475 case $version_type in
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12486 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=yes
12491 freebsd3.[01]* | freebsdelf3.[01]*)
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12500 *) # from 4.6 on, and DragonFly
12501 shlibpath_overrides_runpath=yes
12502 hardcode_into_libs=yes
12508 version_type=linux # correct to gnu/linux during the next big refactor
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=no
12515 hardcode_into_libs=yes
12519 version_type=linux # correct to gnu/linux during the next big refactor
12522 dynamic_linker="$host_os runtime_loader"
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LIBRARY_PATH
12526 shlibpath_overrides_runpath=yes
12527 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12528 hardcode_into_libs=yes
12531 hpux9* | hpux10* | hpux11*)
12532 # Give a soname corresponding to the major version so that dld.sl refuses to
12533 # link against other versions.
12540 hardcode_into_libs=yes
12541 dynamic_linker="$host_os dld.so"
12542 shlibpath_var=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 if test "X$HPUX_IA64_MODE" = X32; then
12547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12555 hardcode_into_libs=yes
12556 dynamic_linker="$host_os dld.sl"
12557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12566 dynamic_linker="$host_os dld.sl"
12567 shlibpath_var=SHLIB_PATH
12568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12573 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574 postinstall_cmds='chmod 555 $lib'
12575 # or fails outright, so override atomically:
12576 install_override_mode=555
12580 version_type=linux # correct to gnu/linux during the next big refactor
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=no
12588 hardcode_into_libs=yes
12591 irix5* | irix6* | nonstopux*)
12593 nonstopux*) version_type=nonstopux ;;
12595 if test "$lt_cv_prog_gnu_ld" = yes; then
12596 version_type=linux # correct to gnu/linux during the next big refactor
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12606 irix5* | nonstopux*)
12607 libsuff= shlibsuff=
12610 case $LD in # libtool.m4 will add one of these switches to LD
12611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612 libsuff= shlibsuff= libmagic=32-bit;;
12613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614 libsuff=32 shlibsuff=N32 libmagic=N32;;
12615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617 *) libsuff= shlibsuff= libmagic=never-match;;
12621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622 shlibpath_overrides_runpath=no
12623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625 hardcode_into_libs=yes
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12633 # This must be glibc/ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12635 version_type=linux # correct to gnu/linux during the next big refactor
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=no
12644 # Some binutils ld are patched to set DT_RUNPATH
12645 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12646 $as_echo_n "(cached) " >&6
12648 lt_cv_shlibpath_overrides_runpath=no
12649 save_LDFLAGS=$LDFLAGS
12650 save_libdir=$libdir
12651 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12666 lt_cv_shlibpath_overrides_runpath=yes
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LDFLAGS=$save_LDFLAGS
12672 libdir=$save_libdir
12676 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12678 # This implies no fast_install, which is unacceptable.
12679 # Some rework will be needed to allow for fast_install
12680 # before this can be enabled.
12681 hardcode_into_libs=yes
12683 # Append ld.so.conf contents to the search path
12684 if test -f /etc/ld.so.conf; then
12685 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' ' '`
12686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12689 # We used to test for /lib/ld.so.1 and disable shared libraries on
12690 # powerpc, because MkLinux only supported shared libraries with the
12691 # GNU dynamic linker. Since this was broken with cross compilers,
12692 # most powerpc-linux boxes support dynamic linking these days and
12693 # people can always --disable-shared, the test was removed, and we
12694 # assume the GNU/Linux dynamic linker is in use.
12695 dynamic_linker='GNU/Linux ld.so'
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12703 soname_spec='${libname}${release}${shared_ext}$major'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=no
12706 hardcode_into_libs=yes
12707 dynamic_linker='NetBSD ld.elf_so'
12714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12717 dynamic_linker='NetBSD (a.out) ld.so'
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 dynamic_linker='NetBSD ld.elf_so'
12723 shlibpath_var=LD_LIBRARY_PATH
12724 shlibpath_overrides_runpath=yes
12725 hardcode_into_libs=yes
12729 version_type=linux # correct to gnu/linux during the next big refactor
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 shlibpath_overrides_runpath=yes
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740 soname_spec='${libname}${release}${shared_ext}$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=no
12743 hardcode_into_libs=yes
12744 dynamic_linker='ldqnx.so'
12749 sys_lib_dlsearch_path_spec="/usr/lib"
12751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12754 *) need_version=no ;;
12756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12758 shlibpath_var=LD_LIBRARY_PATH
12759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12761 openbsd2.[89] | openbsd2.[89].*)
12762 shlibpath_overrides_runpath=no
12765 shlibpath_overrides_runpath=yes
12769 shlibpath_overrides_runpath=yes
12774 libname_spec='$name'
12777 library_names_spec='$libname${shared_ext} $libname.a'
12778 dynamic_linker='OS/2 ld.exe'
12779 shlibpath_var=LIBPATH
12782 osf3* | osf4* | osf5*)
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12798 version_type=linux # correct to gnu/linux during the next big refactor
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802 soname_spec='${libname}${release}${shared_ext}$major'
12803 shlibpath_var=LD_LIBRARY_PATH
12804 shlibpath_overrides_runpath=yes
12805 hardcode_into_libs=yes
12806 # ldd complains unless libraries are executable
12807 postinstall_cmds='chmod +x $lib'
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 shlibpath_overrides_runpath=yes
12816 if test "$with_gnu_ld" = yes; then
12823 version_type=linux # correct to gnu/linux during the next big refactor
12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12825 soname_spec='${libname}${release}${shared_ext}$major'
12826 shlibpath_var=LD_LIBRARY_PATH
12827 case $host_vendor in
12829 shlibpath_overrides_runpath=no
12831 runpath_var=LD_RUN_PATH
12839 shlibpath_overrides_runpath=no
12840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12846 if test -d /usr/nec ;then
12847 version_type=linux # correct to gnu/linux during the next big refactor
12848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12849 soname_spec='$libname${shared_ext}.$major'
12850 shlibpath_var=LD_LIBRARY_PATH
12854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12855 version_type=freebsd-elf
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12859 soname_spec='${libname}${release}${shared_ext}$major'
12860 shlibpath_var=LD_LIBRARY_PATH
12861 shlibpath_overrides_runpath=yes
12862 hardcode_into_libs=yes
12863 if test "$with_gnu_ld" = yes; then
12864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12873 sys_lib_dlsearch_path_spec='/usr/lib'
12877 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12878 version_type=linux # correct to gnu/linux during the next big refactor
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 shlibpath_overrides_runpath=no
12884 hardcode_into_libs=yes
12888 version_type=linux # correct to gnu/linux during the next big refactor
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890 soname_spec='${libname}${release}${shared_ext}$major'
12891 shlibpath_var=LD_LIBRARY_PATH
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12899 $as_echo "$dynamic_linker" >&6; }
12900 test "$dynamic_linker" = no && can_build_shared=no
12902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12903 if test "$GCC" = yes; then
12904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13006 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13008 if test -n "$hardcode_libdir_flag_spec" ||
13009 test -n "$runpath_var" ||
13010 test "X$hardcode_automatic" = "Xyes" ; then
13012 # We can hardcode non-existent directories.
13013 if test "$hardcode_direct" != no &&
13014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13015 # have to relink, otherwise we might link with an installed library
13016 # when we should be linking with a yet-to-be-installed one
13017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13018 test "$hardcode_minus_L" != no; then
13019 # Linking always hardcodes the temporary library directory.
13020 hardcode_action=relink
13022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13023 hardcode_action=immediate
13026 # We cannot hardcode anything, or else we can only hardcode existing
13028 hardcode_action=unsupported
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13031 $as_echo "$hardcode_action" >&6; }
13033 if test "$hardcode_action" = relink ||
13034 test "$inherit_rpath" = yes; then
13035 # Fast installation is not supported
13036 enable_fast_install=no
13037 elif test "$shlibpath_overrides_runpath" = yes ||
13038 test "$enable_shared" = no; then
13039 # Fast installation is not necessary
13040 enable_fast_install=needless
13048 if test "x$enable_dlopen" != xyes; then
13049 enable_dlopen=unknown
13050 enable_dlopen_self=unknown
13051 enable_dlopen_self_static=unknown
13058 lt_cv_dlopen="load_add_on"
13060 lt_cv_dlopen_self=yes
13063 mingw* | pw32* | cegcc*)
13064 lt_cv_dlopen="LoadLibrary"
13069 lt_cv_dlopen="dlopen"
13074 # if libdl is installed we need to link against it
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13077 if ${ac_cv_lib_dl_dlopen+:} false; then :
13078 $as_echo_n "(cached) " >&6
13080 ac_check_lib_save_LIBS=$LIBS
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13085 /* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13100 if ac_fn_c_try_link "$LINENO"; then :
13101 ac_cv_lib_dl_dlopen=yes
13103 ac_cv_lib_dl_dlopen=no
13105 rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13111 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13115 lt_cv_dlopen="dyld"
13117 lt_cv_dlopen_self=yes
13124 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13125 if test "x$ac_cv_func_shl_load" = xyes; then :
13126 lt_cv_dlopen="shl_load"
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13129 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13130 if ${ac_cv_lib_dld_shl_load+:} false; then :
13131 $as_echo_n "(cached) " >&6
13133 ac_check_lib_save_LIBS=$LIBS
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 /* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13148 return shl_load ();
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 ac_cv_lib_dld_shl_load=yes
13156 ac_cv_lib_dld_shl_load=no
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13163 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13164 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13165 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13168 if test "x$ac_cv_func_dlopen" = xyes; then :
13169 lt_cv_dlopen="dlopen"
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13173 if ${ac_cv_lib_dl_dlopen+:} false; then :
13174 $as_echo_n "(cached) " >&6
13176 ac_check_lib_save_LIBS=$LIBS
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_dl_dlopen=yes
13199 ac_cv_lib_dl_dlopen=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13207 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13211 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13212 if ${ac_cv_lib_svld_dlopen+:} false; then :
13213 $as_echo_n "(cached) " >&6
13215 ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-lsvld $LIBS"
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13220 /* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13235 if ac_fn_c_try_link "$LINENO"; then :
13236 ac_cv_lib_svld_dlopen=yes
13238 ac_cv_lib_svld_dlopen=no
13240 rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242 LIBS=$ac_check_lib_save_LIBS
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13245 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13246 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13250 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13251 if ${ac_cv_lib_dld_dld_link+:} false; then :
13252 $as_echo_n "(cached) " >&6
13254 ac_check_lib_save_LIBS=$LIBS
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13269 return dld_link ();
13274 if ac_fn_c_try_link "$LINENO"; then :
13275 ac_cv_lib_dld_dld_link=yes
13277 ac_cv_lib_dld_dld_link=no
13279 rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13284 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13285 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13286 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13307 if test "x$lt_cv_dlopen" != xno; then
13313 case $lt_cv_dlopen in
13315 save_CPPFLAGS="$CPPFLAGS"
13316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13318 save_LDFLAGS="$LDFLAGS"
13319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13322 LIBS="$lt_cv_dlopen_libs $LIBS"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13325 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13326 if ${lt_cv_dlopen_self+:} false; then :
13327 $as_echo_n "(cached) " >&6
13329 if test "$cross_compiling" = yes; then :
13330 lt_cv_dlopen_self=cross
13332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13333 lt_status=$lt_dlunknown
13334 cat > conftest.$ac_ext <<_LT_EOF
13335 #line $LINENO "configure"
13336 #include "confdefs.h"
13345 # define LT_DLGLOBAL RTLD_GLOBAL
13348 # define LT_DLGLOBAL DL_GLOBAL
13350 # define LT_DLGLOBAL 0
13354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13355 find out it does not work in some platform. */
13356 #ifndef LT_DLLAZY_OR_NOW
13358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13361 # define LT_DLLAZY_OR_NOW DL_LAZY
13364 # define LT_DLLAZY_OR_NOW RTLD_NOW
13367 # define LT_DLLAZY_OR_NOW DL_NOW
13369 # define LT_DLLAZY_OR_NOW 0
13376 /* When -fvisbility=hidden is used, assume the code has been annotated
13377 correspondingly for the symbols needed. */
13378 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13379 int fnord () __attribute__((visibility("default")));
13382 int fnord () { return 42; }
13385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13386 int status = $lt_dlunknown;
13390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13393 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13394 else puts (dlerror ());
13396 /* dlclose (self); */
13404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13405 (eval $ac_link) 2>&5
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13409 (./conftest; exit; ) >&5 2>/dev/null
13411 case x$lt_status in
13412 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13413 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13414 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13417 # compilation failed
13418 lt_cv_dlopen_self=no
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13426 $as_echo "$lt_cv_dlopen_self" >&6; }
13428 if test "x$lt_cv_dlopen_self" = xyes; then
13429 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13431 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13432 if ${lt_cv_dlopen_self_static+:} false; then :
13433 $as_echo_n "(cached) " >&6
13435 if test "$cross_compiling" = yes; then :
13436 lt_cv_dlopen_self_static=cross
13438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13439 lt_status=$lt_dlunknown
13440 cat > conftest.$ac_ext <<_LT_EOF
13441 #line $LINENO "configure"
13442 #include "confdefs.h"
13451 # define LT_DLGLOBAL RTLD_GLOBAL
13454 # define LT_DLGLOBAL DL_GLOBAL
13456 # define LT_DLGLOBAL 0
13460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13461 find out it does not work in some platform. */
13462 #ifndef LT_DLLAZY_OR_NOW
13464 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13467 # define LT_DLLAZY_OR_NOW DL_LAZY
13470 # define LT_DLLAZY_OR_NOW RTLD_NOW
13473 # define LT_DLLAZY_OR_NOW DL_NOW
13475 # define LT_DLLAZY_OR_NOW 0
13482 /* When -fvisbility=hidden is used, assume the code has been annotated
13483 correspondingly for the symbols needed. */
13484 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13485 int fnord () __attribute__((visibility("default")));
13488 int fnord () { return 42; }
13491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13492 int status = $lt_dlunknown;
13496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13499 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13500 else puts (dlerror ());
13502 /* dlclose (self); */
13510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13511 (eval $ac_link) 2>&5
13513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13514 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13515 (./conftest; exit; ) >&5 2>/dev/null
13517 case x$lt_status in
13518 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13519 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13520 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13523 # compilation failed
13524 lt_cv_dlopen_self_static=no
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13532 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13535 CPPFLAGS="$save_CPPFLAGS"
13536 LDFLAGS="$save_LDFLAGS"
13541 case $lt_cv_dlopen_self in
13542 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13543 *) enable_dlopen_self=unknown ;;
13546 case $lt_cv_dlopen_self_static in
13547 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13548 *) enable_dlopen_self_static=unknown ;;
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13571 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13572 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13573 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13574 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13576 $as_echo "yes" >&6; }
13578 # FIXME - insert some real tests, host_os isn't really good enough
13581 if test -n "$STRIP" ; then
13582 striplib="$STRIP -x"
13583 old_striplib="$STRIP -S"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13585 $as_echo "yes" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13609 # Report which library types will actually be built
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13611 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13613 $as_echo "$can_build_shared" >&6; }
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13616 $as_echo_n "checking whether to build shared libraries... " >&6; }
13617 test "$can_build_shared" = "no" && enable_shared=no
13619 # On AIX, shared libraries and static libraries use the same namespace, and
13620 # are all built from PIC.
13623 test "$enable_shared" = yes && enable_static=no
13624 if test -n "$RANLIB"; then
13625 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13626 postinstall_cmds='$RANLIB $lib'
13631 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13632 test "$enable_shared" = yes && enable_static=no
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13637 $as_echo "$enable_shared" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13640 $as_echo_n "checking whether to build static libraries... " >&6; }
13641 # Make sure either enable_shared or enable_static is yes.
13642 test "$enable_shared" = yes || enable_static=yes
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13644 $as_echo "$enable_static" >&6; }
13651 ac_cpp='$CPP $CPPFLAGS'
13652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13660 (test "X$CXX" != "Xg++"))) ; then
13662 ac_cpp='$CXXCPP $CPPFLAGS'
13663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13667 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13668 if test -z "$CXXCPP"; then
13669 if ${ac_cv_prog_CXXCPP+:} false; then :
13670 $as_echo_n "(cached) " >&6
13672 # Double quotes because CXXCPP needs to be expanded
13673 for CXXCPP in "$CXX -E" "/lib/cpp"
13675 ac_preproc_ok=false
13676 for ac_cxx_preproc_warn_flag in '' yes
13678 # Use a header file that comes with gcc, so configuring glibc
13679 # with a fresh cross-compiler works.
13680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681 # <limits.h> exists even on freestanding compilers.
13682 # On the NeXT, cc -E runs the code through the compiler's parser,
13683 # not just through cpp. "Syntax error" is here to catch this case.
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13687 # include <limits.h>
13689 # include <assert.h>
13693 if ac_fn_cxx_try_cpp "$LINENO"; then :
13696 # Broken: fails on valid input.
13699 rm -f conftest.err conftest.i conftest.$ac_ext
13701 # OK, works on sane cases. Now check whether nonexistent headers
13702 # can be detected and how.
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705 #include <ac_nonexistent.h>
13707 if ac_fn_cxx_try_cpp "$LINENO"; then :
13708 # Broken: success on invalid input.
13711 # Passes both tests.
13715 rm -f conftest.err conftest.i conftest.$ac_ext
13718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13719 rm -f conftest.i conftest.err conftest.$ac_ext
13720 if $ac_preproc_ok; then :
13725 ac_cv_prog_CXXCPP=$CXXCPP
13728 CXXCPP=$ac_cv_prog_CXXCPP
13730 ac_cv_prog_CXXCPP=$CXXCPP
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13733 $as_echo "$CXXCPP" >&6; }
13734 ac_preproc_ok=false
13735 for ac_cxx_preproc_warn_flag in '' yes
13737 # Use a header file that comes with gcc, so configuring glibc
13738 # with a fresh cross-compiler works.
13739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13740 # <limits.h> exists even on freestanding compilers.
13741 # On the NeXT, cc -E runs the code through the compiler's parser,
13742 # not just through cpp. "Syntax error" is here to catch this case.
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13746 # include <limits.h>
13748 # include <assert.h>
13752 if ac_fn_cxx_try_cpp "$LINENO"; then :
13755 # Broken: fails on valid input.
13758 rm -f conftest.err conftest.i conftest.$ac_ext
13760 # OK, works on sane cases. Now check whether nonexistent headers
13761 # can be detected and how.
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <ac_nonexistent.h>
13766 if ac_fn_cxx_try_cpp "$LINENO"; then :
13767 # Broken: success on invalid input.
13770 # Passes both tests.
13774 rm -f conftest.err conftest.i conftest.$ac_ext
13777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13778 rm -f conftest.i conftest.err conftest.$ac_ext
13779 if $ac_preproc_ok; then :
13782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13784 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13785 See \`config.log' for more details" "$LINENO" 5; }
13789 ac_cpp='$CPP $CPPFLAGS'
13790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13795 _lt_caught_CXX_error=yes
13799 ac_cpp='$CXXCPP $CPPFLAGS'
13800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13804 archive_cmds_need_lc_CXX=no
13805 allow_undefined_flag_CXX=
13806 always_export_symbols_CXX=no
13807 archive_expsym_cmds_CXX=
13808 compiler_needs_object_CXX=no
13809 export_dynamic_flag_spec_CXX=
13810 hardcode_direct_CXX=no
13811 hardcode_direct_absolute_CXX=no
13812 hardcode_libdir_flag_spec_CXX=
13813 hardcode_libdir_separator_CXX=
13814 hardcode_minus_L_CXX=no
13815 hardcode_shlibpath_var_CXX=unsupported
13816 hardcode_automatic_CXX=no
13817 inherit_rpath_CXX=no
13819 module_expsym_cmds_CXX=
13820 link_all_deplibs_CXX=unknown
13821 old_archive_cmds_CXX=$old_archive_cmds
13822 reload_flag_CXX=$reload_flag
13823 reload_cmds_CXX=$reload_cmds
13824 no_undefined_flag_CXX=
13825 whole_archive_flag_spec_CXX=
13826 enable_shared_with_static_runtimes_CXX=no
13828 # Source file extension for C++ test sources.
13831 # Object file extension for compiled C++ test sources.
13835 # No sense in running all these tests if we already determined that
13836 # the CXX compiler isn't working. Some variables (like enable_shared)
13837 # are currently assumed to apply to all compilers on this platform,
13838 # and will be corrupted by setting them based on a non-working compiler.
13839 if test "$_lt_caught_CXX_error" != yes; then
13840 # Code to be used in simple compile tests
13841 lt_simple_compile_test_code="int some_variable = 0;"
13843 # Code to be used in simple link tests
13844 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13853 # If no C compiler was specified, use CC.
13856 # If no C compiler flags were specified, use CFLAGS.
13857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13859 # Allow CC to be a program name with arguments.
13863 # save warnings/boilerplate of simple test code
13864 ac_outfile=conftest.$ac_objext
13865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13867 _lt_compiler_boilerplate=`cat conftest.err`
13870 ac_outfile=conftest.$ac_objext
13871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13873 _lt_linker_boilerplate=`cat conftest.err`
13877 # Allow CC to be a program name with arguments.
13879 lt_save_CFLAGS=$CFLAGS
13883 lt_save_with_gnu_ld=$with_gnu_ld
13884 lt_save_path_LD=$lt_cv_path_LD
13885 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13886 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13888 $as_unset lt_cv_prog_gnu_ld
13890 if test -n "${lt_cv_path_LDCXX+set}"; then
13891 lt_cv_path_LD=$lt_cv_path_LDCXX
13893 $as_unset lt_cv_path_LD
13895 test -z "${LDCXX+set}" || LD=$LDCXX
13900 for cc_temp in $compiler""; do
13902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13908 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13911 if test -n "$compiler"; then
13912 # We don't want -fno-exception when compiling C++ code, so set the
13913 # no_builtin_flag separately
13914 if test "$GXX" = yes; then
13915 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13917 lt_prog_compiler_no_builtin_flag_CXX=
13920 if test "$GXX" = yes; then
13921 # Set up default GNU C++ configuration
13925 # Check whether --with-gnu-ld was given.
13926 if test "${with_gnu_ld+set}" = set; then :
13927 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13933 if test "$GCC" = yes; then
13934 # Check if gcc -print-prog-name=ld gives a path.
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13936 $as_echo_n "checking for ld used by $CC... " >&6; }
13939 # gcc leaves a trailing carriage return which upsets mingw
13940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13945 # Accept absolute paths.
13947 re_direlt='/[^/][^/]*/\.\./'
13948 # Canonicalize the pathname of ld
13949 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13950 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13951 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13953 test -z "$LD" && LD="$ac_prog"
13956 # If it fails, then pretend we aren't using GCC.
13960 # If it is relative, then search for the first ld in PATH.
13961 with_gnu_ld=unknown
13964 elif test "$with_gnu_ld" = yes; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13966 $as_echo_n "checking for GNU ld... " >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13969 $as_echo_n "checking for non-GNU ld... " >&6; }
13971 if ${lt_cv_path_LD+:} false; then :
13972 $as_echo_n "(cached) " >&6
13974 if test -z "$LD"; then
13975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13976 for ac_dir in $PATH; do
13978 test -z "$ac_dir" && ac_dir=.
13979 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13980 lt_cv_path_LD="$ac_dir/$ac_prog"
13981 # Check to see if the program is GNU ld. I'd rather use --version,
13982 # but apparently some variants of GNU ld only accept -v.
13983 # Break only if it was the GNU/non-GNU ld that we prefer.
13984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13985 *GNU* | *'with BFD'*)
13986 test "$with_gnu_ld" != no && break
13989 test "$with_gnu_ld" != yes && break
13996 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14000 LD="$lt_cv_path_LD"
14001 if test -n "$LD"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14003 $as_echo "$LD" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14008 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14011 if ${lt_cv_prog_gnu_ld+:} false; then :
14012 $as_echo_n "(cached) " >&6
14014 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14015 case `$LD -v 2>&1 </dev/null` in
14016 *GNU* | *'with BFD'*)
14017 lt_cv_prog_gnu_ld=yes
14020 lt_cv_prog_gnu_ld=no
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14025 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14026 with_gnu_ld=$lt_cv_prog_gnu_ld
14034 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14035 # archiving commands below assume that GNU ld is being used.
14036 if test "$with_gnu_ld" = yes; then
14037 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14038 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14043 # If archive_cmds runs LD, not CC, wlarc should be empty
14044 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14045 # investigate it a little bit more. (MM)
14048 # ancient GNU ld didn't support --whole-archive et. al.
14049 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14050 $GREP 'no-whole-archive' > /dev/null; then
14051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14053 whole_archive_flag_spec_CXX=
14059 # A generic and very simple default shared library creation
14060 # command for GNU C++ for the case where it uses the native
14061 # linker, instead of GNU ld. If possible, this setting should
14062 # overridden to take advantage of the native linker features on
14063 # the platform it is being used on.
14064 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14067 # Commands to make compiler produce verbose output that lists
14068 # what "hidden" libraries, object files and flags are used when
14069 # linking a shared library.
14070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14078 # PORTME: fill in a description of your system's C++ link characteristics
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14080 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14084 # FIXME: insert proper C++ library support
14088 if test "$host_cpu" = ia64; then
14089 # On IA64, the linker does run time linking by default, so we don't
14090 # have to do anything special.
14091 aix_use_runtimelinking=no
14092 exp_sym_flag='-Bexport'
14095 aix_use_runtimelinking=no
14097 # Test if we are trying to use run time linking or normal
14098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14099 # need to do runtime linking.
14100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14101 for ld_flag in $LDFLAGS; do
14104 aix_use_runtimelinking=yes
14112 exp_sym_flag='-bexport'
14113 no_entry_flag='-bnoentry'
14116 # When large executables or shared objects are built, AIX ld can
14117 # have problems creating the table of contents. If linking a library
14118 # or program results in "error TOC overflow" add -mminimal-toc to
14119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14122 archive_cmds_CXX=''
14123 hardcode_direct_CXX=yes
14124 hardcode_direct_absolute_CXX=yes
14125 hardcode_libdir_separator_CXX=':'
14126 link_all_deplibs_CXX=yes
14127 file_list_spec_CXX='${wl}-f,'
14129 if test "$GXX" = yes; then
14130 case $host_os in aix4.[012]|aix4.[012].*)
14131 # We only want to do this on AIX 4.2 and lower, the check
14132 # below for broken collect2 doesn't work under 4.3+
14133 collect2name=`${CC} -print-prog-name=collect2`
14134 if test -f "$collect2name" &&
14135 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14137 # We have reworked collect2
14140 # We have old collect2
14141 hardcode_direct_CXX=unsupported
14142 # It fails to find uninstalled libraries when the uninstalled
14143 # path is not listed in the libpath. Setting hardcode_minus_L
14144 # to unsupported forces relinking
14145 hardcode_minus_L_CXX=yes
14146 hardcode_libdir_flag_spec_CXX='-L$libdir'
14147 hardcode_libdir_separator_CXX=
14150 shared_flag='-shared'
14151 if test "$aix_use_runtimelinking" = yes; then
14152 shared_flag="$shared_flag "'${wl}-G'
14156 if test "$host_cpu" = ia64; then
14157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14158 # chokes on -Wl,-G. The following line is correct:
14161 if test "$aix_use_runtimelinking" = yes; then
14162 shared_flag='${wl}-G'
14164 shared_flag='${wl}-bM:SRE'
14169 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14170 # It seems that -bexpall does not export symbols beginning with
14171 # underscore (_), so it is better to generate a list of symbols to
14173 always_export_symbols_CXX=yes
14174 if test "$aix_use_runtimelinking" = yes; then
14175 # Warning - without using the other runtime loading flags (-brtl),
14176 # -berok will link without error, but may produce a broken library.
14177 allow_undefined_flag_CXX='-berok'
14178 # Determine the default libpath from the value encoded in an empty
14180 if test "${lt_cv_aix_libpath+set}" = set; then
14181 aix_libpath=$lt_cv_aix_libpath
14183 if ${lt_cv_aix_libpath__CXX+:} false; then :
14184 $as_echo_n "(cached) " >&6
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14197 if ac_fn_cxx_try_link "$LINENO"; then :
14199 lt_aix_libpath_sed='
14200 /Import File Strings/,/^$/ {
14202 s/^0 *\([^ ]*\) *$/\1/
14206 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14207 # Check for a 64-bit object if we didn't find anything.
14208 if test -z "$lt_cv_aix_libpath__CXX"; then
14209 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14212 rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext conftest.$ac_ext
14214 if test -z "$lt_cv_aix_libpath__CXX"; then
14215 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14220 aix_libpath=$lt_cv_aix_libpath__CXX
14223 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14225 archive_expsym_cmds_CXX='$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"
14227 if test "$host_cpu" = ia64; then
14228 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14229 allow_undefined_flag_CXX="-z nodefs"
14230 archive_expsym_cmds_CXX="\$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"
14232 # Determine the default libpath from the value encoded in an
14233 # empty executable.
14234 if test "${lt_cv_aix_libpath+set}" = set; then
14235 aix_libpath=$lt_cv_aix_libpath
14237 if ${lt_cv_aix_libpath__CXX+:} false; then :
14238 $as_echo_n "(cached) " >&6
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14251 if ac_fn_cxx_try_link "$LINENO"; then :
14253 lt_aix_libpath_sed='
14254 /Import File Strings/,/^$/ {
14256 s/^0 *\([^ ]*\) *$/\1/
14260 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14261 # Check for a 64-bit object if we didn't find anything.
14262 if test -z "$lt_cv_aix_libpath__CXX"; then
14263 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 if test -z "$lt_cv_aix_libpath__CXX"; then
14269 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14274 aix_libpath=$lt_cv_aix_libpath__CXX
14277 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14278 # Warning - without using the other run time loading flags,
14279 # -berok will link without error, but may produce a broken library.
14280 no_undefined_flag_CXX=' ${wl}-bernotok'
14281 allow_undefined_flag_CXX=' ${wl}-berok'
14282 if test "$with_gnu_ld" = yes; then
14283 # We only use this code for GNU lds that support --whole-archive.
14284 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14286 # Exported symbols can be pulled into shared objects from archives
14287 whole_archive_flag_spec_CXX='$convenience'
14289 archive_cmds_need_lc_CXX=yes
14290 # This is similar to how AIX traditionally builds its shared
14292 archive_expsym_cmds_CXX="\$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'
14298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14299 allow_undefined_flag_CXX=unsupported
14300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14301 # support --undefined. This deserves some investigation. FIXME
14302 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309 case $cc_basename in
14311 # FIXME: insert proper C++ library support
14317 cygwin* | mingw* | pw32* | cegcc*)
14318 case $GXX,$cc_basename in
14321 # hardcode_libdir_flag_spec is actually meaningless, as there is
14322 # no search path for DLLs.
14323 hardcode_libdir_flag_spec_CXX=' '
14324 allow_undefined_flag_CXX=unsupported
14325 always_export_symbols_CXX=yes
14326 file_list_spec_CXX='@'
14327 # Tell ltmain to make .lib files, not .a files.
14329 # Tell ltmain to make .dll files, not .so files.
14331 # FIXME: Setting linknames here is a bad hack.
14332 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14333 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14334 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14336 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14338 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14340 # The linker will not automatically build a static lib if we build a DLL.
14341 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14342 enable_shared_with_static_runtimes_CXX=yes
14344 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14345 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14346 lt_tool_outputfile="@TOOL_OUTPUT@"~
14347 case $lt_outputfile in
14350 lt_outputfile="$lt_outputfile.exe"
14351 lt_tool_outputfile="$lt_tool_outputfile.exe"
14354 func_to_tool_file "$lt_outputfile"~
14355 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14356 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14357 $RM "$lt_outputfile.manifest";
14362 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14363 # as there is no search path for DLLs.
14364 hardcode_libdir_flag_spec_CXX='-L$libdir'
14365 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14366 allow_undefined_flag_CXX=unsupported
14367 always_export_symbols_CXX=no
14368 enable_shared_with_static_runtimes_CXX=yes
14370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14372 # If the export-symbols file already is a .def file (1st line
14373 # is EXPORTS), use it as is; otherwise, prepend...
14374 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14375 cp $export_symbols $output_objdir/$soname.def;
14377 echo EXPORTS > $output_objdir/$soname.def;
14378 cat $export_symbols >> $output_objdir/$soname.def;
14380 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14387 darwin* | rhapsody*)
14390 archive_cmds_need_lc_CXX=no
14391 hardcode_direct_CXX=no
14392 hardcode_automatic_CXX=yes
14393 hardcode_shlibpath_var_CXX=unsupported
14394 if test "$lt_cv_ld_force_load" = "yes"; then
14395 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14398 whole_archive_flag_spec_CXX=''
14400 link_all_deplibs_CXX=yes
14401 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14402 case $cc_basename in
14403 ifort*) _lt_dar_can_shared=yes ;;
14404 *) _lt_dar_can_shared=$GCC ;;
14406 if test "$_lt_dar_can_shared" = "yes"; then
14407 output_verbose_link_cmd=func_echo_all
14408 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14409 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14410 archive_expsym_cmds_CXX="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}"
14411 module_expsym_cmds_CXX="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}"
14412 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14413 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14414 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14424 case $cc_basename in
14426 # FIXME: insert proper C++ library support
14430 # Green Hills C++ Compiler
14431 # FIXME: insert proper C++ library support
14435 # FIXME: insert proper C++ library support
14442 # C++ shared libraries reported to be fairly broken before
14448 archive_cmds_need_lc_CXX=no
14451 freebsd* | dragonfly*)
14452 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14461 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462 link_all_deplibs_CXX=yes
14466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14467 hardcode_libdir_separator_CXX=:
14468 export_dynamic_flag_spec_CXX='${wl}-E'
14469 hardcode_direct_CXX=yes
14470 hardcode_minus_L_CXX=yes # Not in the search PATH,
14471 # but as the default
14472 # location of the library.
14474 case $cc_basename in
14476 # FIXME: insert proper C++ library support
14480 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14481 # Commands to make compiler produce verbose output that lists
14482 # what "hidden" libraries, object files and flags are used when
14483 # linking a shared library.
14485 # There doesn't appear to be a way to prevent this compiler from
14486 # explicitly linking system object files so we need to strip them
14487 # from the output so that they don't get included in the library
14489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14492 if test "$GXX" = yes; then
14493 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14495 # FIXME: insert proper C++ library support
14503 if test $with_gnu_ld = no; then
14504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14505 hardcode_libdir_separator_CXX=:
14511 export_dynamic_flag_spec_CXX='${wl}-E'
14517 hardcode_direct_CXX=no
14518 hardcode_shlibpath_var_CXX=no
14521 hardcode_direct_CXX=yes
14522 hardcode_direct_absolute_CXX=yes
14523 hardcode_minus_L_CXX=yes # Not in the search PATH,
14524 # but as the default
14525 # location of the library.
14529 case $cc_basename in
14531 # FIXME: insert proper C++ library support
14537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14546 # Commands to make compiler produce verbose output that lists
14547 # what "hidden" libraries, object files and flags are used when
14548 # linking a shared library.
14550 # There doesn't appear to be a way to prevent this compiler from
14551 # explicitly linking system object files so we need to strip them
14552 # from the output so that they don't get included in the library
14554 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14557 if test "$GXX" = yes; then
14558 if test $with_gnu_ld = no; then
14561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14564 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14567 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14572 # FIXME: insert proper C++ library support
14580 hardcode_direct_CXX=no
14581 hardcode_shlibpath_var_CXX=no
14582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14583 export_dynamic_flag_spec_CXX='${wl}-E'
14584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14585 # Instead, shared libraries are loaded at an image base (0x10000000 by
14586 # default) and relocated if they conflict, which is a slow very memory
14587 # consuming and fragmenting process. To avoid this, we pick a random,
14588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14590 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14591 archive_expsym_cmds_CXX='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'
14594 case $cc_basename in
14597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14599 # Archives containing C++ object files must be created using
14600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14601 # necessary to make sure instantiated templates are included
14603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14606 if test "$GXX" = yes; then
14607 if test "$with_gnu_ld" = no; then
14608 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14610 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14613 link_all_deplibs_CXX=yes
14616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14617 hardcode_libdir_separator_CXX=:
14618 inherit_rpath_CXX=yes
14621 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14622 case $cc_basename in
14624 # Kuck and Associates, Inc. (KAI) C++ Compiler
14626 # KCC will only create a shared library if the output file
14627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14628 # to its proper name (with version) after linking.
14629 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14630 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14631 # Commands to make compiler produce verbose output that lists
14632 # what "hidden" libraries, object files and flags are used when
14633 # linking a shared library.
14635 # There doesn't appear to be a way to prevent this compiler from
14636 # explicitly linking system object files so we need to strip them
14637 # from the output so that they don't get included in the library
14639 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14644 # Archives containing C++ object files must be created using
14645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14651 # version 8.0 and above of icpc choke on multiply defined symbols
14652 # if we add $predep_objects and $postdep_objects, however 7.1 and
14653 # earlier do not add the objects themselves.
14654 case `$CC -V 2>&1` in
14656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14659 *) # Version 8.0 or newer
14662 ia64*) tmp_idyn=' -i_dynamic';;
14664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14665 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14668 archive_cmds_need_lc_CXX=no
14669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14671 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14674 # Portland Group C++ compiler
14676 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14677 prelink_cmds_CXX='tpldir=Template.dir~
14679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14680 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14681 old_archive_cmds_CXX='tpldir=Template.dir~
14683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14686 archive_cmds_CXX='tpldir=Template.dir~
14688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14690 archive_expsym_cmds_CXX='tpldir=Template.dir~
14692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14693 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14695 *) # Version 6 and above use weak symbols
14696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14703 whole_archive_flag_spec_CXX='${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'
14707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14708 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14710 runpath_var=LD_RUN_PATH
14711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14712 hardcode_libdir_separator_CXX=:
14714 # Commands to make compiler produce verbose output that lists
14715 # what "hidden" libraries, object files and flags are used when
14716 # linking a shared library.
14718 # There doesn't appear to be a way to prevent this compiler from
14719 # explicitly linking system object files so we need to strip them
14720 # from the output so that they don't get included in the library
14722 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14724 xl* | mpixl* | bgxl*)
14725 # IBM XL 8.0 on PPC, with GNU ld
14726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14729 if test "x$supports_anon_versioning" = xyes; then
14730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14732 echo "local: *; };" >> $output_objdir/$libname.ver~
14733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14737 case `$CC -V 2>&1 | sed 5q` in
14740 no_undefined_flag_CXX=' -zdefs'
14741 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14742 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14743 hardcode_libdir_flag_spec_CXX='-R$libdir'
14744 whole_archive_flag_spec_CXX='${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'
14745 compiler_needs_object_CXX=yes
14747 # Not sure whether something based on
14748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14750 output_verbose_link_cmd='func_echo_all'
14752 # Archives containing C++ object files must be created using
14753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14754 # necessary to make sure instantiated templates are included
14756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14764 # FIXME: insert proper C++ library support
14769 # FIXME: insert proper C++ library support
14774 case $cc_basename in
14776 # FIXME: insert proper C++ library support
14780 # FIXME: insert proper C++ library support
14787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14790 hardcode_libdir_flag_spec_CXX='-R$libdir'
14791 hardcode_direct_CXX=yes
14792 hardcode_shlibpath_var_CXX=no
14794 # Workaround some broken pre-1.5 toolchains
14795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14803 # C++ shared libraries are fairly broken
14808 if test -f /usr/libexec/ld.so; then
14809 hardcode_direct_CXX=yes
14810 hardcode_shlibpath_var_CXX=no
14811 hardcode_direct_absolute_CXX=yes
14812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14815 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14816 export_dynamic_flag_spec_CXX='${wl}-E'
14817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14819 output_verbose_link_cmd=func_echo_all
14825 osf3* | osf4* | osf5*)
14826 case $cc_basename in
14828 # Kuck and Associates, Inc. (KAI) C++ Compiler
14830 # KCC will only create a shared library if the output file
14831 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14832 # to its proper name (with version) after linking.
14833 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14836 hardcode_libdir_separator_CXX=:
14838 # Archives containing C++ object files must be created using
14839 # the KAI C++ compiler.
14841 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14842 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14846 # Rational C++ 2.4.1
14847 # FIXME: insert proper C++ library support
14853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14854 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14858 allow_undefined_flag_CXX=' -expect_unresolved \*'
14859 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14861 echo "-hidden">> $lib.exp~
14862 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14868 hardcode_libdir_separator_CXX=:
14870 # Commands to make compiler produce verbose output that lists
14871 # what "hidden" libraries, object files and flags are used when
14872 # linking a shared library.
14874 # There doesn't appear to be a way to prevent this compiler from
14875 # explicitly linking system object files so we need to strip them
14876 # from the output so that they don't get included in the library
14878 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14885 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14888 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14893 hardcode_libdir_separator_CXX=:
14895 # Commands to make compiler produce verbose output that lists
14896 # what "hidden" libraries, object files and flags are used when
14897 # linking a shared library.
14898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14901 # FIXME: insert proper C++ library support
14909 # FIXME: insert proper C++ library support
14914 case $cc_basename in
14917 # FIXME: insert proper C++ library support
14922 # FIXME: insert proper C++ library support
14926 # FIXME: insert proper C++ library support
14933 case $cc_basename in
14935 # Sun C++ 4.2, 5.x and Centerline C++
14936 archive_cmds_need_lc_CXX=yes
14937 no_undefined_flag_CXX=' -zdefs'
14938 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14939 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14940 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14942 hardcode_libdir_flag_spec_CXX='-R$libdir'
14943 hardcode_shlibpath_var_CXX=no
14945 solaris2.[0-5] | solaris2.[0-5].*) ;;
14947 # The compiler driver will combine and reorder linker options,
14948 # but understands `-z linker_flag'.
14949 # Supported since Solaris 2.6 (maybe 2.5.1?)
14950 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14953 link_all_deplibs_CXX=yes
14955 output_verbose_link_cmd='func_echo_all'
14957 # Archives containing C++ object files must be created using
14958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14959 # necessary to make sure instantiated templates are included
14961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14964 # Green Hills C++ Compiler
14965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14967 # The C++ compiler must be used to create the archive.
14968 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14971 # GNU C++ compiler with Solaris linker
14972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14973 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14974 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14975 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14977 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14979 # Commands to make compiler produce verbose output that lists
14980 # what "hidden" libraries, object files and flags are used when
14981 # linking a shared library.
14982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14984 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14990 # Commands to make compiler produce verbose output that lists
14991 # what "hidden" libraries, object files and flags are used when
14992 # linking a shared library.
14993 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14996 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14998 solaris2.[0-5] | solaris2.[0-5].*) ;;
15000 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15009 no_undefined_flag_CXX='${wl}-z,text'
15010 archive_cmds_need_lc_CXX=no
15011 hardcode_shlibpath_var_CXX=no
15012 runpath_var='LD_RUN_PATH'
15014 case $cc_basename in
15016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15026 sysv5* | sco3.2v5* | sco5v6*)
15027 # Note: We can NOT use -z defs as we might desire, because we do not
15028 # link with -lc, and that would cause any symbols used from libc to
15029 # always be unresolved, which means just about no library would
15030 # ever link correctly. If we're not using GNU ld we use -z text
15031 # though, which does catch some bad symbols but isn't as heavy-handed
15033 no_undefined_flag_CXX='${wl}-z,text'
15034 allow_undefined_flag_CXX='${wl}-z,nodefs'
15035 archive_cmds_need_lc_CXX=no
15036 hardcode_shlibpath_var_CXX=no
15037 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15038 hardcode_libdir_separator_CXX=':'
15039 link_all_deplibs_CXX=yes
15040 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15041 runpath_var='LD_RUN_PATH'
15043 case $cc_basename in
15045 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15048 '"$old_archive_cmds_CXX"
15049 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15050 '"$reload_cmds_CXX"
15053 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15054 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15060 case $cc_basename in
15062 # NonStop-UX NCC 3.20
15063 # FIXME: insert proper C++ library support
15067 # FIXME: insert proper C++ library support
15074 # FIXME: insert proper C++ library support
15079 # FIXME: insert proper C++ library support
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15085 $as_echo "$ld_shlibs_CXX" >&6; }
15086 test "$ld_shlibs_CXX" = no && can_build_shared=no
15092 ## There is no encapsulation within the following macros, do not change
15093 ## the running order or otherwise move them around unless you know exactly
15094 ## what you are doing...
15095 # Dependencies to place before and after the object being linked:
15096 predep_objects_CXX=
15097 postdep_objects_CXX=
15100 compiler_lib_search_path_CXX=
15102 cat > conftest.$ac_ext <<_LT_EOF
15106 Foo (void) { a = 0; }
15113 _lt_libdeps_save_CFLAGS=$CFLAGS
15114 case "$CC $CFLAGS " in #(
15115 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15116 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15117 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15121 (eval $ac_compile) 2>&5
15123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15124 test $ac_status = 0; }; then
15125 # Parse the compiler output and extract the necessary
15126 # objects, libraries and library flags.
15128 # Sentinel used to keep track of whether or not we are before
15129 # the conftest object file.
15130 pre_test_object_deps_done=no
15132 for p in `eval "$output_verbose_link_cmd"`; do
15133 case ${prev}${p} in
15136 # Some compilers place space between "-{L,R}" and the path.
15137 # Remove the space.
15138 if test $p = "-L" ||
15139 test $p = "-R"; then
15144 # Expand the sysroot to ease extracting the directories later.
15145 if test -z "$prev"; then
15147 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15148 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15149 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15153 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15155 if test "$pre_test_object_deps_done" = no; then
15158 # Internal compiler library paths should come after those
15159 # provided the user. The postdeps already come after the
15160 # user supplied libs so there is no need to process them.
15161 if test -z "$compiler_lib_search_path_CXX"; then
15162 compiler_lib_search_path_CXX="${prev}${p}"
15164 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15167 # The "-l" case would never come before the object being
15168 # linked, so don't bother handling this case.
15171 if test -z "$postdeps_CXX"; then
15172 postdeps_CXX="${prev}${p}"
15174 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15180 *.lto.$objext) ;; # Ignore GCC LTO objects
15182 # This assumes that the test object file only shows up
15183 # once in the compiler output.
15184 if test "$p" = "conftest.$objext"; then
15185 pre_test_object_deps_done=yes
15189 if test "$pre_test_object_deps_done" = no; then
15190 if test -z "$predep_objects_CXX"; then
15191 predep_objects_CXX="$p"
15193 predep_objects_CXX="$predep_objects_CXX $p"
15196 if test -z "$postdep_objects_CXX"; then
15197 postdep_objects_CXX="$p"
15199 postdep_objects_CXX="$postdep_objects_CXX $p"
15204 *) ;; # Ignore the rest.
15212 echo "libtool.m4: error: problem compiling CXX test program"
15215 $RM -f confest.$objext
15216 CFLAGS=$_lt_libdeps_save_CFLAGS
15218 # PORTME: override above test on systems where it is broken
15221 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15222 # hack all around it, let's just trust "g++" to DTRT.
15223 predep_objects_CXX=
15224 postdep_objects_CXX=
15229 case `$CC -V 2>&1 | sed 5q` in
15233 # The more standards-conforming stlport4 library is
15234 # incompatible with the Cstd library. Avoid specifying
15235 # it if it's in CXXFLAGS. Ignore libCrun as
15236 # -library=stlport4 depends on it.
15237 case " $CXX $CXXFLAGS " in
15238 *" -library=stlport4 "*)
15239 solaris_use_stlport4=yes
15243 if test "$solaris_use_stlport4" != yes; then
15244 postdeps_CXX='-library=Cstd -library=Crun'
15251 case $cc_basename in
15253 # The more standards-conforming stlport4 library is
15254 # incompatible with the Cstd library. Avoid specifying
15255 # it if it's in CXXFLAGS. Ignore libCrun as
15256 # -library=stlport4 depends on it.
15257 case " $CXX $CXXFLAGS " in
15258 *" -library=stlport4 "*)
15259 solaris_use_stlport4=yes
15263 # Adding this requires a known-good setup of shared libraries for
15264 # Sun compiler versions before 5.6, else PIC objects from an old
15265 # archive will be linked into the output, leading to subtle bugs.
15266 if test "$solaris_use_stlport4" != yes; then
15267 postdeps_CXX='-library=Cstd -library=Crun'
15275 case " $postdeps_CXX " in
15276 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15278 compiler_lib_search_dirs_CXX=
15279 if test -n "${compiler_lib_search_path_CXX}"; then
15280 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15313 lt_prog_compiler_wl_CXX=
15314 lt_prog_compiler_pic_CXX=
15315 lt_prog_compiler_static_CXX=
15318 # C++ specific cases for pic, static, wl, etc.
15319 if test "$GXX" = yes; then
15320 lt_prog_compiler_wl_CXX='-Wl,'
15321 lt_prog_compiler_static_CXX='-static'
15325 # All AIX code is PIC.
15326 if test "$host_cpu" = ia64; then
15327 # AIX 5 now supports IA64 processor
15328 lt_prog_compiler_static_CXX='-Bstatic'
15335 # see comment about AmigaOS4 .so support
15336 lt_prog_compiler_pic_CXX='-fPIC'
15339 # FIXME: we need at least 68020 code to build shared libraries, but
15340 # adding the `-m68020' flag to GCC prevents building anything better,
15342 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15347 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15348 # PIC is the default for these OSes.
15350 mingw* | cygwin* | os2* | pw32* | cegcc*)
15351 # This hack is so that the source file can tell whether it is being
15352 # built for inclusion in a dll (and should export symbols for example).
15353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15354 # (--disable-auto-import) libraries
15355 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15357 darwin* | rhapsody*)
15358 # PIC is the default on this platform
15359 # Common symbols not allowed in MH_DYLIB files
15360 lt_prog_compiler_pic_CXX='-fno-common'
15363 # DJGPP does not support shared libraries at all
15364 lt_prog_compiler_pic_CXX=
15367 # PIC is the default for Haiku.
15368 # The "-static" flag exists, but is broken.
15369 lt_prog_compiler_static_CXX=
15372 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15373 # Instead, we relocate shared libraries at runtime.
15376 if test -d /usr/nec; then
15377 lt_prog_compiler_pic_CXX=-Kconform_pic
15381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15383 # sets the default TLS model and affects inlining.
15388 lt_prog_compiler_pic_CXX='-fPIC'
15393 # QNX uses GNU C++, but need to define -shared option too, otherwise
15394 # it will coredump.
15395 lt_prog_compiler_pic_CXX='-fPIC -shared'
15398 lt_prog_compiler_pic_CXX='-fPIC'
15404 # All AIX code is PIC.
15405 if test "$host_cpu" = ia64; then
15406 # AIX 5 now supports IA64 processor
15407 lt_prog_compiler_static_CXX='-Bstatic'
15409 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15413 case $cc_basename in
15415 # Green Hills C++ Compiler
15416 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15420 mingw* | cygwin* | os2* | pw32* | cegcc*)
15421 # This hack is so that the source file can tell whether it is being
15422 # built for inclusion in a dll (and should export symbols for example).
15423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15426 case $cc_basename in
15428 lt_prog_compiler_pic_CXX='-KPIC'
15431 # Green Hills C++ Compiler
15432 lt_prog_compiler_pic_CXX='-pic'
15438 freebsd* | dragonfly*)
15439 # FreeBSD uses GNU C++
15441 hpux9* | hpux10* | hpux11*)
15442 case $cc_basename in
15444 lt_prog_compiler_wl_CXX='-Wl,'
15445 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15446 if test "$host_cpu" != ia64; then
15447 lt_prog_compiler_pic_CXX='+Z'
15451 lt_prog_compiler_wl_CXX='-Wl,'
15452 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15458 lt_prog_compiler_pic_CXX='+Z'
15467 # This is c89, which is MS Visual C++ (no shared libs)
15468 # Anyone wants to do a port?
15470 irix5* | irix6* | nonstopux*)
15471 case $cc_basename in
15473 lt_prog_compiler_wl_CXX='-Wl,'
15474 lt_prog_compiler_static_CXX='-non_shared'
15475 # CC pic flag -KPIC is the default.
15481 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15482 case $cc_basename in
15485 lt_prog_compiler_wl_CXX='--backend -Wl,'
15486 lt_prog_compiler_pic_CXX='-fPIC'
15489 # old Intel C++ for x86_64 which still supported -KPIC.
15490 lt_prog_compiler_wl_CXX='-Wl,'
15491 lt_prog_compiler_pic_CXX='-KPIC'
15492 lt_prog_compiler_static_CXX='-static'
15495 # Intel C++, used to be incompatible with GCC.
15496 # ICC 10 doesn't accept -KPIC any more.
15497 lt_prog_compiler_wl_CXX='-Wl,'
15498 lt_prog_compiler_pic_CXX='-fPIC'
15499 lt_prog_compiler_static_CXX='-static'
15502 # Portland Group C++ compiler
15503 lt_prog_compiler_wl_CXX='-Wl,'
15504 lt_prog_compiler_pic_CXX='-fpic'
15505 lt_prog_compiler_static_CXX='-Bstatic'
15509 # Make sure the PIC flag is empty. It appears that all Alpha
15510 # Linux and Compaq Tru64 Unix objects are PIC.
15511 lt_prog_compiler_pic_CXX=
15512 lt_prog_compiler_static_CXX='-non_shared'
15514 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15515 # IBM XL 8.0, 9.0 on PPC and BlueGene
15516 lt_prog_compiler_wl_CXX='-Wl,'
15517 lt_prog_compiler_pic_CXX='-qpic'
15518 lt_prog_compiler_static_CXX='-qstaticlink'
15521 case `$CC -V 2>&1 | sed 5q` in
15524 lt_prog_compiler_pic_CXX='-KPIC'
15525 lt_prog_compiler_static_CXX='-Bstatic'
15526 lt_prog_compiler_wl_CXX='-Qoption ld '
15537 case $cc_basename in
15539 lt_prog_compiler_pic_CXX='-W c,exportall'
15545 netbsd* | netbsdelf*-gnu)
15548 # QNX uses GNU C++, but need to define -shared option too, otherwise
15549 # it will coredump.
15550 lt_prog_compiler_pic_CXX='-fPIC -shared'
15552 osf3* | osf4* | osf5*)
15553 case $cc_basename in
15555 lt_prog_compiler_wl_CXX='--backend -Wl,'
15558 # Rational C++ 2.4.1
15559 lt_prog_compiler_pic_CXX='-pic'
15562 # Digital/Compaq C++
15563 lt_prog_compiler_wl_CXX='-Wl,'
15564 # Make sure the PIC flag is empty. It appears that all Alpha
15565 # Linux and Compaq Tru64 Unix objects are PIC.
15566 lt_prog_compiler_pic_CXX=
15567 lt_prog_compiler_static_CXX='-non_shared'
15576 case $cc_basename in
15578 # Sun C++ 4.2, 5.x and Centerline C++
15579 lt_prog_compiler_pic_CXX='-KPIC'
15580 lt_prog_compiler_static_CXX='-Bstatic'
15581 lt_prog_compiler_wl_CXX='-Qoption ld '
15584 # Green Hills C++ Compiler
15585 lt_prog_compiler_pic_CXX='-PIC'
15592 case $cc_basename in
15595 lt_prog_compiler_pic_CXX='-pic'
15596 lt_prog_compiler_static_CXX='-Bstatic'
15600 lt_prog_compiler_pic_CXX='-pic'
15606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15607 case $cc_basename in
15609 lt_prog_compiler_wl_CXX='-Wl,'
15610 lt_prog_compiler_pic_CXX='-KPIC'
15611 lt_prog_compiler_static_CXX='-Bstatic'
15616 case $cc_basename in
15618 # NonStop-UX NCC 3.20
15619 lt_prog_compiler_pic_CXX='-KPIC'
15628 lt_prog_compiler_can_build_shared_CXX=no
15634 # For platforms which do not support PIC, -DPIC is meaningless:
15636 lt_prog_compiler_pic_CXX=
15639 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15644 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15645 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15646 $as_echo_n "(cached) " >&6
15648 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15651 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15652 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15655 # Check to make sure the PIC flag actually works.
15657 if test -n "$lt_prog_compiler_pic_CXX"; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15660 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15661 $as_echo_n "(cached) " >&6
15663 lt_cv_prog_compiler_pic_works_CXX=no
15664 ac_outfile=conftest.$ac_objext
15665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15666 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15667 # Insert the option either (1) after the last *FLAGS variable, or
15668 # (2) before a word containing "conftest.", or (3) at the end.
15669 # Note that $ac_compile itself does not contain backslashes and begins
15670 # with a dollar sign (not a hyphen), so the echo should work correctly.
15671 # The option is referenced via a variable to avoid confusing sed.
15672 lt_compile=`echo "$ac_compile" | $SED \
15673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15675 -e 's:$: $lt_compiler_flag:'`
15676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15677 (eval "$lt_compile" 2>conftest.err)
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 if (exit $ac_status) && test -s "$ac_outfile"; then
15682 # The compiler can only warn and ignore the option if not recognized
15683 # So say no if there are warnings other than the usual output.
15684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15687 lt_cv_prog_compiler_pic_works_CXX=yes
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15694 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15696 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15697 case $lt_prog_compiler_pic_CXX in
15699 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15702 lt_prog_compiler_pic_CXX=
15703 lt_prog_compiler_can_build_shared_CXX=no
15713 # Check to make sure the static flag actually works.
15715 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15718 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15719 $as_echo_n "(cached) " >&6
15721 lt_cv_prog_compiler_static_works_CXX=no
15722 save_LDFLAGS="$LDFLAGS"
15723 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15724 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15725 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15726 # The linker can only warn and ignore the option if not recognized
15727 # So say no if there are warnings
15728 if test -s conftest.err; then
15729 # Append any errors to the config.log.
15730 cat conftest.err 1>&5
15731 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15733 if diff conftest.exp conftest.er2 >/dev/null; then
15734 lt_cv_prog_compiler_static_works_CXX=yes
15737 lt_cv_prog_compiler_static_works_CXX=yes
15741 LDFLAGS="$save_LDFLAGS"
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15745 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15747 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15750 lt_prog_compiler_static_CXX=
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15758 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15759 $as_echo_n "(cached) " >&6
15761 lt_cv_prog_compiler_c_o_CXX=no
15762 $RM -r conftest 2>/dev/null
15766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15768 lt_compiler_flag="-o out/conftest2.$ac_objext"
15769 # Insert the option either (1) after the last *FLAGS variable, or
15770 # (2) before a word containing "conftest.", or (3) at the end.
15771 # Note that $ac_compile itself does not contain backslashes and begins
15772 # with a dollar sign (not a hyphen), so the echo should work correctly.
15773 lt_compile=`echo "$ac_compile" | $SED \
15774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776 -e 's:$: $lt_compiler_flag:'`
15777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15778 (eval "$lt_compile" 2>out/conftest.err)
15780 cat out/conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15784 # The compiler can only warn and ignore the option if not recognized
15785 # So say no if there are warnings
15786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15789 lt_cv_prog_compiler_c_o_CXX=yes
15794 # SGI C++ compiler will create directory out/ii_files/ for
15795 # template instantiation
15796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15797 $RM out/* && rmdir out
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15804 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15809 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15810 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15811 $as_echo_n "(cached) " >&6
15813 lt_cv_prog_compiler_c_o_CXX=no
15814 $RM -r conftest 2>/dev/null
15818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15820 lt_compiler_flag="-o out/conftest2.$ac_objext"
15821 # Insert the option either (1) after the last *FLAGS variable, or
15822 # (2) before a word containing "conftest.", or (3) at the end.
15823 # Note that $ac_compile itself does not contain backslashes and begins
15824 # with a dollar sign (not a hyphen), so the echo should work correctly.
15825 lt_compile=`echo "$ac_compile" | $SED \
15826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15828 -e 's:$: $lt_compiler_flag:'`
15829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15830 (eval "$lt_compile" 2>out/conftest.err)
15832 cat out/conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15836 # The compiler can only warn and ignore the option if not recognized
15837 # So say no if there are warnings
15838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15841 lt_cv_prog_compiler_c_o_CXX=yes
15846 # SGI C++ compiler will create directory out/ii_files/ for
15847 # template instantiation
15848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15849 $RM out/* && rmdir out
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15856 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15861 hard_links="nottested"
15862 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15863 # do not overwrite the value of need_locks provided by the user
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15865 $as_echo_n "checking if we can lock with hard links... " >&6; }
15868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15870 ln conftest.a conftest.b 2>&5 || hard_links=no
15871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15873 $as_echo "$hard_links" >&6; }
15874 if test "$hard_links" = no; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15876 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15888 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15889 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15892 # If we're using GNU nm, then we don't want the "-C" option.
15893 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15894 # Also, AIX nm treats weak defined symbols like other global defined
15895 # symbols, whereas GNU nm marks them as "W".
15896 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15897 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15899 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15903 export_symbols_cmds_CXX="$ltdll_cmds"
15905 cygwin* | mingw* | cegcc*)
15906 case $cc_basename in
15908 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15912 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15916 linux* | k*bsd*-gnu | gnu*)
15917 link_all_deplibs_CXX=no
15920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15925 $as_echo "$ld_shlibs_CXX" >&6; }
15926 test "$ld_shlibs_CXX" = no && can_build_shared=no
15928 with_gnu_ld_CXX=$with_gnu_ld
15936 # Do we need to explicitly link libc?
15938 case "x$archive_cmds_need_lc_CXX" in
15940 # Assume -lc should be added
15941 archive_cmds_need_lc_CXX=yes
15943 if test "$enable_shared" = yes && test "$GCC" = yes; then
15944 case $archive_cmds_CXX in
15946 # FIXME: we may have to deal with multi-command sequences.
15949 # Test whether the compiler implicitly links with -lc since on some
15950 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15951 # to ld, don't add -lc before -lgcc.
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15953 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15954 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15955 $as_echo_n "(cached) " >&6
15958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15961 (eval $ac_compile) 2>&5
15963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15964 test $ac_status = 0; } 2>conftest.err; then
15967 libobjs=conftest.$ac_objext
15969 wl=$lt_prog_compiler_wl_CXX
15970 pic_flag=$lt_prog_compiler_pic_CXX
15976 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15977 allow_undefined_flag_CXX=
15978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15979 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15982 test $ac_status = 0; }
15984 lt_cv_archive_cmds_need_lc_CXX=no
15986 lt_cv_archive_cmds_need_lc_CXX=yes
15988 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15990 cat conftest.err 1>&5
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15996 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15997 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16068 library_names_spec=
16069 libname_spec='lib$name'
16073 postuninstall_cmds=
16077 shlibpath_overrides_runpath=unknown
16079 dynamic_linker="$host_os ld.so"
16080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16081 need_lib_prefix=unknown
16082 hardcode_into_libs=no
16084 # when you set need_version to no, make sure it does not cause -set_version
16085 # flags to be left without arguments
16086 need_version=unknown
16090 version_type=linux # correct to gnu/linux during the next big refactor
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16092 shlibpath_var=LIBPATH
16094 # AIX 3 has no versioning support, so we append a major version to the name.
16095 soname_spec='${libname}${release}${shared_ext}$major'
16099 version_type=linux # correct to gnu/linux during the next big refactor
16102 hardcode_into_libs=yes
16103 if test "$host_cpu" = ia64; then
16104 # AIX 5 supports IA64
16105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16106 shlibpath_var=LD_LIBRARY_PATH
16108 # With GCC up to 2.95.x, collect2 would create an import file
16109 # for dependence libraries. The import file would start with
16110 # the line `#! .'. This would cause the generated library to
16111 # depend on `.', always an invalid library. This was fixed in
16112 # development snapshots of GCC prior to 3.0.
16114 aix4 | aix4.[01] | aix4.[01].*)
16115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16117 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16120 can_build_shared=no
16124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16125 # soname into executable. Probably we can add versioning support to
16126 # collect2, so additional links can be useful in future.
16127 if test "$aix_use_runtimelinking" = yes; then
16128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16129 # instead of lib<name>.a to let people know that these are not
16130 # typical AIX shared libraries.
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 # We preserve .a as extension for shared libraries through AIX4.2
16134 # and later when we are not doing run time linking.
16135 library_names_spec='${libname}${release}.a $libname.a'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16138 shlibpath_var=LIBPATH
16145 # Since July 2007 AmigaOS4 officially supports .so libraries.
16146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 library_names_spec='$libname.ixlibrary $libname.a'
16151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16152 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'
16158 library_names_spec='${libname}${shared_ext}'
16159 dynamic_linker="$host_os ld.so"
16160 shlibpath_var=LIBRARY_PATH
16164 version_type=linux # correct to gnu/linux during the next big refactor
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16172 # the default ld.so.conf also contains /usr/contrib/lib and
16173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16174 # libtool to hard-code these into programs
16177 cygwin* | mingw* | pw32* | cegcc*)
16178 version_type=windows
16183 case $GCC,$cc_basename in
16186 library_names_spec='$libname.dll.a'
16187 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16188 postinstall_cmds='base_file=`basename \${file}`~
16189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16190 dldir=$destdir/`dirname \$dlpath`~
16191 test -d \$dldir || mkdir -p \$dldir~
16192 $install_prog $dir/$dlname \$dldir/$dlname~
16193 chmod a+x \$dldir/$dlname~
16194 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16195 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16198 dlpath=$dir/\$dldll~
16200 shlibpath_overrides_runpath=yes
16204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16209 # MinGW DLLs use traditional 'lib' prefix
16210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16213 # pw32 DLLs use 'pw' prefix rather than 'lib'
16214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16217 dynamic_linker='Win32 ld.exe'
16222 libname_spec='$name'
16223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16224 library_names_spec='${libname}.dll.lib'
16228 sys_lib_search_path_spec=
16231 for lt_path in $LIB
16234 # Let DOS variable expansion print the short 8.3 style file name.
16235 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16236 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16239 # Convert to MSYS style.
16240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16243 # Convert to unix form, then to dos form, then back to unix form
16244 # but this time dos style (no spaces!) so that the unix form looks
16245 # like /cygdrive/c/PROGRA~1:/cygdr...
16246 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16247 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16248 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16251 sys_lib_search_path_spec="$LIB"
16252 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16253 # It is most probably a Windows format PATH.
16254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16258 # FIXME: find the short name or the path components, as spaces are
16259 # common. (e.g. "Program Files" -> "PROGRA~1")
16263 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16264 postinstall_cmds='base_file=`basename \${file}`~
16265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16266 dldir=$destdir/`dirname \$dlpath`~
16267 test -d \$dldir || mkdir -p \$dldir~
16268 $install_prog $dir/$dlname \$dldir/$dlname'
16269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16270 dlpath=$dir/\$dldll~
16272 shlibpath_overrides_runpath=yes
16273 dynamic_linker='Win32 link.exe'
16277 # Assume MSVC wrapper
16278 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16279 dynamic_linker='Win32 ld.exe'
16282 # FIXME: first we should search . and the directory the executable is in
16286 darwin* | rhapsody*)
16287 dynamic_linker="$host_os dyld"
16288 version_type=darwin
16291 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16292 soname_spec='${libname}${release}${major}$shared_ext'
16293 shlibpath_overrides_runpath=yes
16294 shlibpath_var=DYLD_LIBRARY_PATH
16295 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16301 version_type=linux # correct to gnu/linux during the next big refactor
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 shlibpath_var=LD_LIBRARY_PATH
16309 freebsd* | dragonfly*)
16310 # DragonFly does not have aout. When/if they implement a new
16311 # versioning mechanism, adjust this.
16312 if test -x /usr/bin/objformat; then
16313 objformat=`/usr/bin/objformat`
16316 freebsd[23].*) objformat=aout ;;
16317 *) objformat=elf ;;
16320 version_type=freebsd-$objformat
16321 case $version_type in
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16332 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16337 freebsd3.[01]* | freebsdelf3.[01]*)
16338 shlibpath_overrides_runpath=yes
16339 hardcode_into_libs=yes
16341 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16342 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16343 shlibpath_overrides_runpath=no
16344 hardcode_into_libs=yes
16346 *) # from 4.6 on, and DragonFly
16347 shlibpath_overrides_runpath=yes
16348 hardcode_into_libs=yes
16354 version_type=linux # correct to gnu/linux during the next big refactor
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 shlibpath_overrides_runpath=no
16361 hardcode_into_libs=yes
16365 version_type=linux # correct to gnu/linux during the next big refactor
16368 dynamic_linker="$host_os runtime_loader"
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16370 soname_spec='${libname}${release}${shared_ext}$major'
16371 shlibpath_var=LIBRARY_PATH
16372 shlibpath_overrides_runpath=yes
16373 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16374 hardcode_into_libs=yes
16377 hpux9* | hpux10* | hpux11*)
16378 # Give a soname corresponding to the major version so that dld.sl refuses to
16379 # link against other versions.
16386 hardcode_into_libs=yes
16387 dynamic_linker="$host_os dld.so"
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 if test "X$HPUX_IA64_MODE" = X32; then
16393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16401 hardcode_into_libs=yes
16402 dynamic_linker="$host_os dld.sl"
16403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16412 dynamic_linker="$host_os dld.sl"
16413 shlibpath_var=SHLIB_PATH
16414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16419 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16420 postinstall_cmds='chmod 555 $lib'
16421 # or fails outright, so override atomically:
16422 install_override_mode=555
16426 version_type=linux # correct to gnu/linux during the next big refactor
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=no
16434 hardcode_into_libs=yes
16437 irix5* | irix6* | nonstopux*)
16439 nonstopux*) version_type=nonstopux ;;
16441 if test "$lt_cv_prog_gnu_ld" = yes; then
16442 version_type=linux # correct to gnu/linux during the next big refactor
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16452 irix5* | nonstopux*)
16453 libsuff= shlibsuff=
16456 case $LD in # libtool.m4 will add one of these switches to LD
16457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16458 libsuff= shlibsuff= libmagic=32-bit;;
16459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16460 libsuff=32 shlibsuff=N32 libmagic=N32;;
16461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16463 *) libsuff= shlibsuff= libmagic=never-match;;
16467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16468 shlibpath_overrides_runpath=no
16469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16471 hardcode_into_libs=yes
16474 # No shared lib support for Linux oldld, aout, or coff.
16475 linux*oldld* | linux*aout* | linux*coff*)
16479 # This must be glibc/ELF.
16480 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16481 version_type=linux # correct to gnu/linux during the next big refactor
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 shlibpath_overrides_runpath=no
16490 # Some binutils ld are patched to set DT_RUNPATH
16491 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16492 $as_echo_n "(cached) " >&6
16494 lt_cv_shlibpath_overrides_runpath=no
16495 save_LDFLAGS=$LDFLAGS
16496 save_libdir=$libdir
16497 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16498 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16510 if ac_fn_cxx_try_link "$LINENO"; then :
16511 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16512 lt_cv_shlibpath_overrides_runpath=yes
16515 rm -f core conftest.err conftest.$ac_objext \
16516 conftest$ac_exeext conftest.$ac_ext
16517 LDFLAGS=$save_LDFLAGS
16518 libdir=$save_libdir
16522 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16524 # This implies no fast_install, which is unacceptable.
16525 # Some rework will be needed to allow for fast_install
16526 # before this can be enabled.
16527 hardcode_into_libs=yes
16529 # Append ld.so.conf contents to the search path
16530 if test -f /etc/ld.so.conf; then
16531 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' ' '`
16532 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16535 # We used to test for /lib/ld.so.1 and disable shared libraries on
16536 # powerpc, because MkLinux only supported shared libraries with the
16537 # GNU dynamic linker. Since this was broken with cross compilers,
16538 # most powerpc-linux boxes support dynamic linking these days and
16539 # people can always --disable-shared, the test was removed, and we
16540 # assume the GNU/Linux dynamic linker is in use.
16541 dynamic_linker='GNU/Linux ld.so'
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16549 soname_spec='${libname}${release}${shared_ext}$major'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 shlibpath_overrides_runpath=no
16552 hardcode_into_libs=yes
16553 dynamic_linker='NetBSD ld.elf_so'
16560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16563 dynamic_linker='NetBSD (a.out) ld.so'
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 dynamic_linker='NetBSD ld.elf_so'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16575 version_type=linux # correct to gnu/linux during the next big refactor
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 shlibpath_var=LD_LIBRARY_PATH
16578 shlibpath_overrides_runpath=yes
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 shlibpath_overrides_runpath=no
16589 hardcode_into_libs=yes
16590 dynamic_linker='ldqnx.so'
16595 sys_lib_dlsearch_path_spec="/usr/lib"
16597 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16599 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16600 *) need_version=no ;;
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16604 shlibpath_var=LD_LIBRARY_PATH
16605 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16607 openbsd2.[89] | openbsd2.[89].*)
16608 shlibpath_overrides_runpath=no
16611 shlibpath_overrides_runpath=yes
16615 shlibpath_overrides_runpath=yes
16620 libname_spec='$name'
16623 library_names_spec='$libname${shared_ext} $libname.a'
16624 dynamic_linker='OS/2 ld.exe'
16625 shlibpath_var=LIBPATH
16628 osf3* | osf4* | osf5*)
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 shlibpath_var=LD_LIBRARY_PATH
16635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16644 version_type=linux # correct to gnu/linux during the next big refactor
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 shlibpath_var=LD_LIBRARY_PATH
16650 shlibpath_overrides_runpath=yes
16651 hardcode_into_libs=yes
16652 # ldd complains unless libraries are executable
16653 postinstall_cmds='chmod +x $lib'
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 shlibpath_overrides_runpath=yes
16662 if test "$with_gnu_ld" = yes; then
16669 version_type=linux # correct to gnu/linux during the next big refactor
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 shlibpath_var=LD_LIBRARY_PATH
16673 case $host_vendor in
16675 shlibpath_overrides_runpath=no
16677 runpath_var=LD_RUN_PATH
16685 shlibpath_overrides_runpath=no
16686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16692 if test -d /usr/nec ;then
16693 version_type=linux # correct to gnu/linux during the next big refactor
16694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16695 soname_spec='$libname${shared_ext}.$major'
16696 shlibpath_var=LD_LIBRARY_PATH
16700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16701 version_type=freebsd-elf
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=yes
16708 hardcode_into_libs=yes
16709 if test "$with_gnu_ld" = yes; then
16710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16715 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16719 sys_lib_dlsearch_path_spec='/usr/lib'
16723 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16724 version_type=linux # correct to gnu/linux during the next big refactor
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 shlibpath_var=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath=no
16730 hardcode_into_libs=yes
16734 version_type=linux # correct to gnu/linux during the next big refactor
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 soname_spec='${libname}${release}${shared_ext}$major'
16737 shlibpath_var=LD_LIBRARY_PATH
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16745 $as_echo "$dynamic_linker" >&6; }
16746 test "$dynamic_linker" = no && can_build_shared=no
16748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16749 if test "$GCC" = yes; then
16750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16754 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16756 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16757 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16799 hardcode_action_CXX=
16800 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16801 test -n "$runpath_var_CXX" ||
16802 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16804 # We can hardcode non-existent directories.
16805 if test "$hardcode_direct_CXX" != no &&
16806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16807 # have to relink, otherwise we might link with an installed library
16808 # when we should be linking with a yet-to-be-installed one
16809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16810 test "$hardcode_minus_L_CXX" != no; then
16811 # Linking always hardcodes the temporary library directory.
16812 hardcode_action_CXX=relink
16814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16815 hardcode_action_CXX=immediate
16818 # We cannot hardcode anything, or else we can only hardcode existing
16820 hardcode_action_CXX=unsupported
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16823 $as_echo "$hardcode_action_CXX" >&6; }
16825 if test "$hardcode_action_CXX" = relink ||
16826 test "$inherit_rpath_CXX" = yes; then
16827 # Fast installation is not supported
16828 enable_fast_install=no
16829 elif test "$shlibpath_overrides_runpath" = yes ||
16830 test "$enable_shared" = no; then
16831 # Fast installation is not necessary
16832 enable_fast_install=needless
16841 fi # test -n "$compiler"
16844 CFLAGS=$lt_save_CFLAGS
16848 with_gnu_ld=$lt_save_with_gnu_ld
16849 lt_cv_path_LDCXX=$lt_cv_path_LD
16850 lt_cv_path_LD=$lt_save_path_LD
16851 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16852 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16853 fi # test "$_lt_caught_CXX_error" != yes
16856 ac_cpp='$CPP $CPPFLAGS'
16857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16875 ac_config_commands="$ac_config_commands libtool"
16880 # Only expand once:
16883 if test -n "$ac_tool_prefix"; then
16884 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16885 set dummy ${ac_tool_prefix}windres; ac_word=$2
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16887 $as_echo_n "checking for $ac_word... " >&6; }
16888 if ${ac_cv_prog_RC+:} false; then :
16889 $as_echo_n "(cached) " >&6
16891 if test -n "$RC"; then
16892 ac_cv_prog_RC="$RC" # Let the user override the test.
16894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16895 for as_dir in $PATH
16898 test -z "$as_dir" && as_dir=.
16899 for ac_exec_ext in '' $ac_executable_extensions; do
16900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16901 ac_cv_prog_RC="${ac_tool_prefix}windres"
16902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16912 if test -n "$RC"; then
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16914 $as_echo "$RC" >&6; }
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917 $as_echo "no" >&6; }
16922 if test -z "$ac_cv_prog_RC"; then
16924 # Extract the first word of "windres", so it can be a program name with args.
16925 set dummy windres; ac_word=$2
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16927 $as_echo_n "checking for $ac_word... " >&6; }
16928 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16929 $as_echo_n "(cached) " >&6
16931 if test -n "$ac_ct_RC"; then
16932 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16935 for as_dir in $PATH
16938 test -z "$as_dir" && as_dir=.
16939 for ac_exec_ext in '' $ac_executable_extensions; do
16940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16941 ac_cv_prog_ac_ct_RC="windres"
16942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16951 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16952 if test -n "$ac_ct_RC"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16954 $as_echo "$ac_ct_RC" >&6; }
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16960 if test "x$ac_ct_RC" = x; then
16963 case $cross_compiling:$ac_tool_warned in
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16967 ac_tool_warned=yes ;;
16972 RC="$ac_cv_prog_RC"
16978 # Source file extension for RC test sources.
16981 # Object file extension for compiled RC test sources.
16985 # Code to be used in simple compile tests
16986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16988 # Code to be used in simple link tests
16989 lt_simple_link_test_code="$lt_simple_compile_test_code"
16991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16998 # If no C compiler was specified, use CC.
17001 # If no C compiler flags were specified, use CFLAGS.
17002 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17004 # Allow CC to be a program name with arguments.
17008 # save warnings/boilerplate of simple test code
17009 ac_outfile=conftest.$ac_objext
17010 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17011 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17012 _lt_compiler_boilerplate=`cat conftest.err`
17015 ac_outfile=conftest.$ac_objext
17016 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17017 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17018 _lt_linker_boilerplate=`cat conftest.err`
17022 # Allow CC to be a program name with arguments.
17024 lt_save_CFLAGS=$CFLAGS
17031 for cc_temp in $compiler""; do
17033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17039 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17041 lt_cv_prog_compiler_c_o_RC=yes
17043 if test -n "$compiler"; then
17052 ac_cpp='$CPP $CPPFLAGS'
17053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058 CFLAGS=$lt_save_CFLAGS
17061 # For now we hardcode the use of version scripts. It would be better
17062 # to write a test for this or even implement this within libtool.
17063 have_ld_version_script=no
17066 have_ld_version_script=yes
17069 have_ld_version_script=yes
17073 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17078 if test "$have_ld_version_script" = "yes"; then
17079 HAVE_LD_VERSION_SCRIPT_TRUE=
17080 HAVE_LD_VERSION_SCRIPT_FALSE='#'
17082 HAVE_LD_VERSION_SCRIPT_TRUE='#'
17083 HAVE_LD_VERSION_SCRIPT_FALSE=
17091 component_system=None
17092 have_dosish_system=no
17093 have_android_system=no
17100 have_w64_system=yes
17103 have_w32ce_system=yes
17105 *-linux-androideabi)
17106 have_android_system=yes
17110 *-mingw32ce*|*-mingw32*)
17111 have_dosish_system=yes
17112 have_w32_system=yes
17113 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17114 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17115 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17116 G13_DEFAULT='c:\\gnupg\\g13.exe'
17117 #component_system='COM+'
17119 # Check whether --enable-glibtest was given.
17120 if test "${enable_glibtest+set}" = set; then :
17121 enableval=$enable_glibtest;
17123 enable_glibtest=yes
17127 pkg_config_args=glib-2.0
17132 pkg_config_args="$pkg_config_args gmodule-2.0"
17135 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17138 pkg_config_args="$pkg_config_args gobject-2.0"
17141 pkg_config_args="$pkg_config_args gthread-2.0"
17146 # Extract the first word of "pkg-config", so it can be a program name with args.
17147 set dummy pkg-config; ac_word=$2
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17149 $as_echo_n "checking for $ac_word... " >&6; }
17150 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17151 $as_echo_n "(cached) " >&6
17153 case $PKG_CONFIG in
17155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17159 for as_dir in $PATH
17162 test -z "$as_dir" && as_dir=.
17163 for ac_exec_ext in '' $ac_executable_extensions; do
17164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17178 if test -n "$PKG_CONFIG"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17180 $as_echo "$PKG_CONFIG" >&6; }
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17190 if test x$PKG_CONFIG != xno ; then
17191 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17194 echo *** pkg-config too old; version 0.7 or better required.
17202 min_glib_version=2.0.0
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17204 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17206 if test x$PKG_CONFIG != xno ; then
17207 ## don't try to run the test against uninstalled libtool libs
17208 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17209 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17213 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17220 if test x"$no_glib" = x ; then
17221 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17222 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17223 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17225 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17226 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17227 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17228 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17229 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17230 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17231 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17232 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17233 if test "x$enable_glibtest" = "xyes" ; then
17234 ac_save_CFLAGS="$CFLAGS"
17235 ac_save_LIBS="$LIBS"
17236 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17237 LIBS="$GLIB_LIBS $LIBS"
17238 rm -f conf.glibtest
17239 if test "$cross_compiling" = yes; then :
17240 echo $ac_n "cross compiling; assumed OK... $ac_c"
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17247 #include <stdlib.h>
17252 int major, minor, micro;
17255 system ("touch conf.glibtest");
17257 /* HP/UX 9 (%@#!) writes to sscanf strings */
17258 tmp_version = g_strdup("$min_glib_version");
17259 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17260 printf("%s, bad version string\n", "$min_glib_version");
17264 if ((glib_major_version != $glib_config_major_version) ||
17265 (glib_minor_version != $glib_config_minor_version) ||
17266 (glib_micro_version != $glib_config_micro_version))
17268 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17269 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17270 glib_major_version, glib_minor_version, glib_micro_version);
17271 printf ("*** was found! If pkg-config was correct, then it is best\n");
17272 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17273 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17274 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17275 printf("*** required on your system.\n");
17276 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17277 printf("*** to point to the correct configuration files\n");
17279 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17280 (glib_minor_version != GLIB_MINOR_VERSION) ||
17281 (glib_micro_version != GLIB_MICRO_VERSION))
17283 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17284 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17285 printf("*** library (version %d.%d.%d)\n",
17286 glib_major_version, glib_minor_version, glib_micro_version);
17290 if ((glib_major_version > major) ||
17291 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17292 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17298 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17299 glib_major_version, glib_minor_version, glib_micro_version);
17300 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17301 major, minor, micro);
17302 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17304 printf("*** If you have already installed a sufficiently new version, this error\n");
17305 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17306 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17307 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17308 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17309 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17310 printf("*** so that the correct libraries are found at run-time))\n");
17317 if ac_fn_c_try_run "$LINENO"; then :
17322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17323 conftest.$ac_objext conftest.beam conftest.$ac_ext
17326 CFLAGS="$ac_save_CFLAGS"
17327 LIBS="$ac_save_LIBS"
17330 if test "x$no_glib" = x ; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17332 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17336 $as_echo "no" >&6; }
17337 if test "$PKG_CONFIG" = "no" ; then
17338 echo "*** A new enough version of pkg-config was not found."
17339 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17341 if test -f conf.glibtest ; then
17344 echo "*** Could not run GLIB test program, checking why..."
17345 ac_save_CFLAGS="$CFLAGS"
17346 ac_save_LIBS="$LIBS"
17347 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17348 LIBS="$LIBS $GLIB_LIBS"
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17358 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17363 if ac_fn_c_try_link "$LINENO"; then :
17364 echo "*** The test program compiled, but did not run. This usually means"
17365 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17366 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17367 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17368 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17369 echo "*** is required on your system"
17371 echo "*** If you have an old version installed, it is best to remove it, although"
17372 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17374 echo "*** The test program failed to compile or link. See the file config.log for the"
17375 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17377 rm -f core conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379 CFLAGS="$ac_save_CFLAGS"
17380 LIBS="$ac_save_LIBS"
17395 rm -f conf.glibtest
17397 # Check whether --enable-w32-glib was given.
17398 if test "${enable_w32_glib+set}" = set; then :
17399 enableval=$enable_w32_glib; build_w32_glib=$enableval
17403 # Check disabled, because the qt-dev packages in gpg4win do
17404 # not provide any support for cross compilation.
17405 # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17407 # Use it like this:
17408 # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17411 # Check whether --enable-w32-qt was given.
17412 if test "${enable_w32_qt+set}" = set; then :
17413 enableval=$enable_w32_qt; build_w32_qt=$enableval
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17419 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17420 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17421 $as_echo_n "(cached) " >&6
17423 ac_check_lib_save_LIBS=$LIBS
17424 LIBS="-lpthread $LIBS"
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17428 /* Override any GCC internal prototype to avoid an error.
17429 Use char because int might match the return type of a GCC
17430 builtin and then its argument prototype would still apply. */
17434 char pthread_create ();
17438 return pthread_create ();
17443 if ac_fn_c_try_link "$LINENO"; then :
17444 ac_cv_lib_pthread_pthread_create=yes
17446 ac_cv_lib_pthread_pthread_create=no
17448 rm -f core conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17453 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17454 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17458 if test "$have_pthread" = yes; then
17460 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17464 # XXX: Probably use exec-prefix here?
17465 # GPG_DEFAULT='/usr/bin/gpg'
17466 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17467 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17468 # G13_DEFAULT='/usr/bin/g13'
17472 if test "$have_dosish_system" = yes; then
17474 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17477 if test "$have_dosish_system" = yes; then
17478 HAVE_DOSISH_SYSTEM_TRUE=
17479 HAVE_DOSISH_SYSTEM_FALSE='#'
17481 HAVE_DOSISH_SYSTEM_TRUE='#'
17482 HAVE_DOSISH_SYSTEM_FALSE=
17486 if test "$have_w32_system" = yes; then
17488 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17491 if test "$have_w32_system" = yes; then
17492 HAVE_W32_SYSTEM_TRUE=
17493 HAVE_W32_SYSTEM_FALSE='#'
17495 HAVE_W32_SYSTEM_TRUE='#'
17496 HAVE_W32_SYSTEM_FALSE=
17500 if test "$have_w64_system" = yes; then
17502 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17505 if test "$have_w64_system" = yes; then
17506 HAVE_W64_SYSTEM_TRUE=
17507 HAVE_W64_SYSTEM_FALSE='#'
17509 HAVE_W64_SYSTEM_TRUE='#'
17510 HAVE_W64_SYSTEM_FALSE=
17514 if test "$have_w32ce_system" = yes; then
17516 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17519 if test "$have_w32ce_system" = yes; then
17520 HAVE_W32CE_SYSTEM_TRUE=
17521 HAVE_W32CE_SYSTEM_FALSE='#'
17523 HAVE_W32CE_SYSTEM_TRUE='#'
17524 HAVE_W32CE_SYSTEM_FALSE=
17528 if test "$have_android_system" = yes; then
17530 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17533 if test "$have_android_system" = yes; then
17534 HAVE_ANDROID_SYSTEM_TRUE=
17535 HAVE_ANDROID_SYSTEM_FALSE='#'
17537 HAVE_ANDROID_SYSTEM_TRUE='#'
17538 HAVE_ANDROID_SYSTEM_FALSE=
17542 if test "$build_w32_glib" = yes; then
17543 BUILD_W32_GLIB_TRUE=
17544 BUILD_W32_GLIB_FALSE='#'
17546 BUILD_W32_GLIB_TRUE='#'
17547 BUILD_W32_GLIB_FALSE=
17550 if test "$build_w32_qt" = yes; then
17552 BUILD_W32_QT_FALSE='#'
17554 BUILD_W32_QT_TRUE='#'
17555 BUILD_W32_QT_FALSE=
17559 if test "$have_pthread" = "yes"; then
17561 HAVE_PTHREAD_FALSE='#'
17563 HAVE_PTHREAD_TRUE='#'
17564 HAVE_PTHREAD_FALSE=
17569 # Check whether --enable-fixed-path was given.
17570 if test "${enable_fixed_path+set}" = set; then :
17571 enableval=$enable_fixed_path; fixed_search_path="$enableval"
17573 fixed_search_path=""
17576 if test x$fixed_search_path != x ; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define FIXED_SEARCH_PATH "$fixed_search_path"
17586 # Provide information about the build.
17588 BUILD_REVISION="052a9e3"
17591 cat >>confdefs.h <<_ACEOF
17592 #define BUILD_REVISION "$BUILD_REVISION"
17596 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17597 BUILD_FILEVERSION="${BUILD_FILEVERSION}1322"
17600 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17603 cat >>confdefs.h <<_ACEOF
17604 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17609 # Options to disable some regression tests
17611 run_gpgconf_test="yes"
17612 # Check whether --enable-gpgconf-test was given.
17613 if test "${enable_gpgconf_test+set}" = set; then :
17614 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
17617 if test "$run_gpgconf_test" = "yes"; then
17618 RUN_GPGCONF_TESTS_TRUE=
17619 RUN_GPGCONF_TESTS_FALSE='#'
17621 RUN_GPGCONF_TESTS_TRUE='#'
17622 RUN_GPGCONF_TESTS_FALSE=
17627 # Check whether --enable-gpg-test was given.
17628 if test "${enable_gpg_test+set}" = set; then :
17629 enableval=$enable_gpg_test; run_gpg_test=$enableval
17632 if test "$run_gpg_test" = "yes"; then
17633 RUN_GPG_TESTS_TRUE=
17634 RUN_GPG_TESTS_FALSE='#'
17636 RUN_GPG_TESTS_TRUE='#'
17637 RUN_GPG_TESTS_FALSE=
17641 run_gpgsm_test="yes"
17642 # Check whether --enable-gpgsm-test was given.
17643 if test "${enable_gpgsm_test+set}" = set; then :
17644 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
17647 if test "$run_gpgsm_test" = "yes"; then
17648 RUN_GPGSM_TESTS_TRUE=
17649 RUN_GPGSM_TESTS_FALSE='#'
17651 RUN_GPGSM_TESTS_TRUE='#'
17652 RUN_GPGSM_TESTS_FALSE=
17657 # Check whether --enable-g13-test was given.
17658 if test "${enable_g13_test+set}" = set; then :
17659 enableval=$enable_g13_test; run_g13_test=$enableval
17662 if test "$run_g13_test" = "yes"; then
17663 RUN_G13_TESTS_TRUE=
17664 RUN_G13_TESTS_FALSE='#'
17666 RUN_G13_TESTS_TRUE='#'
17667 RUN_G13_TESTS_FALSE=
17672 # Checks for header files.
17676 for ac_header in $ac_header_list
17678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17682 cat >>confdefs.h <<_ACEOF
17683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17711 $as_echo_n "checking for inline... " >&6; }
17712 if ${ac_cv_c_inline+:} false; then :
17713 $as_echo_n "(cached) " >&6
17716 for ac_kw in inline __inline__ __inline; do
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719 #ifndef __cplusplus
17721 static $ac_kw foo_t static_foo () {return 0; }
17722 $ac_kw foo_t foo () {return 0; }
17726 if ac_fn_c_try_compile "$LINENO"; then :
17727 ac_cv_c_inline=$ac_kw
17729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730 test "$ac_cv_c_inline" != no && break
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17735 $as_echo "$ac_cv_c_inline" >&6; }
17737 case $ac_cv_c_inline in
17740 case $ac_cv_c_inline in
17742 *) ac_val=$ac_cv_c_inline;;
17744 cat >>confdefs.h <<_ACEOF
17745 #ifndef __cplusplus
17746 #define inline $ac_val
17752 # The cast to long int works around a bug in the HP C Compiler
17753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17755 # This bug is HP SR number 8606223364.
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17757 $as_echo_n "checking size of unsigned int... " >&6; }
17758 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17759 $as_echo_n "(cached) " >&6
17761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
17764 if test "$ac_cv_type_unsigned_int" = yes; then
17765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17767 as_fn_error 77 "cannot compute sizeof (unsigned int)
17768 See \`config.log' for more details" "$LINENO" 5; }
17770 ac_cv_sizeof_unsigned_int=0
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17776 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17780 cat >>confdefs.h <<_ACEOF
17781 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17785 # Check whether --enable-largefile was given.
17786 if test "${enable_largefile+set}" = set; then :
17787 enableval=$enable_largefile;
17790 if test "$enable_largefile" != no; then
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17793 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17794 if ${ac_cv_sys_largefile_CC+:} false; then :
17795 $as_echo_n "(cached) " >&6
17797 ac_cv_sys_largefile_CC=no
17798 if test "$GCC" != yes; then
17801 # IRIX 6.2 and later do not support large files by default,
17802 # so use the C compiler's -n32 option if that helps.
17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h. */
17805 #include <sys/types.h>
17806 /* Check that off_t can represent 2**63 - 1 correctly.
17807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17808 since some C++ compilers masquerading as C compilers
17809 incorrectly reject 9223372036854775807. */
17810 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17812 && LARGE_OFF_T % 2147483647 == 1)
17822 if ac_fn_c_try_compile "$LINENO"; then :
17825 rm -f core conftest.err conftest.$ac_objext
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 ac_cv_sys_largefile_CC=' -n32'; break
17830 rm -f core conftest.err conftest.$ac_objext
17834 rm -f conftest.$ac_ext
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17838 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17839 if test "$ac_cv_sys_largefile_CC" != no; then
17840 CC=$CC$ac_cv_sys_largefile_CC
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17844 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17845 if ${ac_cv_sys_file_offset_bits+:} false; then :
17846 $as_echo_n "(cached) " >&6
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17851 #include <sys/types.h>
17852 /* Check that off_t can represent 2**63 - 1 correctly.
17853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17854 since some C++ compilers masquerading as C compilers
17855 incorrectly reject 9223372036854775807. */
17856 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17858 && LARGE_OFF_T % 2147483647 == 1)
17868 if ac_fn_c_try_compile "$LINENO"; then :
17869 ac_cv_sys_file_offset_bits=no; break
17871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 #define _FILE_OFFSET_BITS 64
17875 #include <sys/types.h>
17876 /* Check that off_t can represent 2**63 - 1 correctly.
17877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17878 since some C++ compilers masquerading as C compilers
17879 incorrectly reject 9223372036854775807. */
17880 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17882 && LARGE_OFF_T % 2147483647 == 1)
17892 if ac_fn_c_try_compile "$LINENO"; then :
17893 ac_cv_sys_file_offset_bits=64; break
17895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896 ac_cv_sys_file_offset_bits=unknown
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17901 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17902 case $ac_cv_sys_file_offset_bits in #(
17905 cat >>confdefs.h <<_ACEOF
17906 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17911 if test $ac_cv_sys_file_offset_bits = unknown; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17913 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17914 if ${ac_cv_sys_large_files+:} false; then :
17915 $as_echo_n "(cached) " >&6
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 #include <sys/types.h>
17921 /* Check that off_t can represent 2**63 - 1 correctly.
17922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17923 since some C++ compilers masquerading as C compilers
17924 incorrectly reject 9223372036854775807. */
17925 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17927 && LARGE_OFF_T % 2147483647 == 1)
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938 ac_cv_sys_large_files=no; break
17940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17943 #define _LARGE_FILES 1
17944 #include <sys/types.h>
17945 /* Check that off_t can represent 2**63 - 1 correctly.
17946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17947 since some C++ compilers masquerading as C compilers
17948 incorrectly reject 9223372036854775807. */
17949 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17951 && LARGE_OFF_T % 2147483647 == 1)
17961 if ac_fn_c_try_compile "$LINENO"; then :
17962 ac_cv_sys_large_files=1; break
17964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17965 ac_cv_sys_large_files=unknown
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17970 $as_echo "$ac_cv_sys_large_files" >&6; }
17971 case $ac_cv_sys_large_files in #(
17974 cat >>confdefs.h <<_ACEOF
17975 #define _LARGE_FILES $ac_cv_sys_large_files
17985 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17986 if test "x$ac_cv_type_off_t" = xyes; then :
17990 cat >>confdefs.h <<_ACEOF
17991 #define off_t long int
17997 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17998 if test "x$ac_cv_type_uintptr_t" = xyes; then :
18000 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
18003 for ac_type in 'unsigned int' 'unsigned long int' \
18004 'unsigned long long int'; do
18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18007 $ac_includes_default
18011 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
18012 test_array [0] = 0;
18013 return test_array [0];
18019 if ac_fn_c_try_compile "$LINENO"; then :
18021 cat >>confdefs.h <<_ACEOF
18022 #define uintptr_t $ac_type
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 test -z "$ac_type" && break
18034 # A simple compile time check in gpgme.h for GNU/Linux systems that
18035 # prevents a file offset bits mismatch between gpgme and the application.
18036 NEED__FILE_OFFSET_BITS=0
18037 if test "$have_w32_system" != yes; then
18038 case "$ac_cv_sys_file_offset_bits" in
18039 "" | no | unknown) ;;
18041 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
18047 # Figure out platform dependent typedefs for gpgme.h
18048 if test "$have_w32_system" = yes; then
18049 INSERT__TYPEDEFS_FOR_GPGME_H="
18051 # include <stdint.h>
18052 typedef int64_t gpgme_off_t;
18053 typedef int64_t gpgme_ssize_t;
18055 typedef long gpgme_off_t;
18056 typedef long gpgme_ssize_t;
18057 #endif /* _WIN32 */"
18058 API__OFF_T="gpgme_off_t"
18059 API__SSIZE_T="gpgme_ssize_t"
18061 INSERT__TYPEDEFS_FOR_GPGME_H="
18062 #include <sys/types.h>
18063 typedef off_t gpgme_off_t;
18064 typedef ssize_t gpgme_ssize_t;"
18066 API__SSIZE_T="ssize_t"
18075 # Checks for compiler features.
18076 if test "$GCC" = yes; then
18077 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
18078 if test "$have_w32_system" = yes; then
18079 CFLAGS="$CFLAGS -mms-bitfields"
18083 # Only used for debugging, so no serious test needed (for actual
18084 # functionality you have to test libc as well, this only tests the
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
18087 $as_echo_n "checking for __thread... " >&6; }
18088 if ${gpgme_cv_tls_works+:} false; then :
18089 $as_echo_n "(cached) " >&6
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18102 if ac_fn_c_try_compile "$LINENO"; then :
18103 gpgme_cv_tls_works=yes
18105 gpgme_cv_tls_works=no
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
18110 $as_echo "$gpgme_cv_tls_works" >&6; }
18111 if test "$gpgme_cv_tls_works" = yes; then
18113 $as_echo "#define HAVE_TLS 1" >>confdefs.h
18118 # Checks for library functions.
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
18120 $as_echo "$as_me: checking for libraries" >&6;}
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18123 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18124 if ${ac_cv_sys_largefile_source+:} false; then :
18125 $as_echo_n "(cached) " >&6
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130 #include <sys/types.h> /* for off_t */
18135 int (*fp) (FILE *, off_t, int) = fseeko;
18136 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18141 if ac_fn_c_try_link "$LINENO"; then :
18142 ac_cv_sys_largefile_source=no; break
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148 #define _LARGEFILE_SOURCE 1
18149 #include <sys/types.h> /* for off_t */
18154 int (*fp) (FILE *, off_t, int) = fseeko;
18155 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18160 if ac_fn_c_try_link "$LINENO"; then :
18161 ac_cv_sys_largefile_source=1; break
18163 rm -f core conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165 ac_cv_sys_largefile_source=unknown
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
18170 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18171 case $ac_cv_sys_largefile_source in #(
18174 cat >>confdefs.h <<_ACEOF
18175 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18181 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18182 # in glibc 2.1.3, but that breaks too many other things.
18183 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18184 if test $ac_cv_sys_largefile_source != unknown; then
18186 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
18191 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
18192 if test "x$ac_cv_func_vasprintf" = xyes; then :
18193 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
18196 case " $LIBOBJS " in
18197 *" vasprintf.$ac_objext "* ) ;;
18198 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
18205 if test "$ac_cv_func_vasprintf" != yes; then
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
18207 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
18208 if ${gnupg_cv_must_copy_va_byval+:} false; then :
18209 $as_echo_n "(cached) " >&6
18212 if test "$cross_compiling" = yes; then
18213 gnupg_cv_must_copy_va_byval=no
18215 gnupg_cv_must_copy_va_byval=no
18216 if test "$cross_compiling" = yes; then :
18217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18219 as_fn_error $? "cannot run test program while cross compiling
18220 See \`config.log' for more details" "$LINENO" 5; }
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18225 #include <stdarg.h>
18226 void f (int i, ...)
18228 va_list args1, args2;
18229 va_start (args1, i);
18231 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
18244 if ac_fn_c_try_run "$LINENO"; then :
18245 gnupg_cv_must_copy_va_byval=yes
18247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18248 conftest.$ac_objext conftest.beam conftest.$ac_ext
18255 if test "$gnupg_cv_must_copy_va_byval" = yes; then
18257 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
18260 if test "$cross_compiling" = yes; then
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
18262 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
18265 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
18270 # Try to find a thread-safe version of ttyname().
18271 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
18272 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
18278 cat >>confdefs.h <<_ACEOF
18279 #define HAVE_DECL_TTYNAME_R $ac_have_decl
18283 for ac_header in unistd.h
18285 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18286 if test "x$ac_cv_header_unistd_h" = xyes; then :
18287 cat >>confdefs.h <<_ACEOF
18288 #define HAVE_UNISTD_H 1
18297 if test $ac_cv_have_decl_ttyname_r = no; then
18298 HAVE_DECL_TTYNAME_R=0
18301 for ac_func in ttyname_r
18303 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
18304 if test "x$ac_cv_func_ttyname_r" = xyes; then :
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_TTYNAME_R 1
18312 if test $ac_cv_func_ttyname_r = no; then
18314 case " $LIBOBJS " in
18315 *" ttyname_r.$ac_objext "* ) ;;
18316 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18321 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
18326 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
18327 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
18328 $as_echo_n "(cached) " >&6
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18332 #include <stddef.h>
18333 #include <unistd.h>
18337 *ttyname_r (0, NULL, 0);
18343 if ac_fn_c_try_compile "$LINENO"; then :
18344 gnupg_cv_func_ttyname_r_posix=no
18346 gnupg_cv_func_ttyname_r_posix=yes
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18352 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18353 if test $gnupg_cv_func_ttyname_r_posix = no; then
18354 case " $LIBOBJS " in
18355 *" ttyname_r.$ac_objext "* ) ;;
18356 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18360 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18362 elif test "$have_android_system" = yes; then
18363 # Android has ttyname and ttyname_r but they are only stubs and
18364 # print an annoying warning message. Thus we need to replace
18365 # ttyname_r with our own dummy function.
18366 case " $LIBOBJS " in
18367 *" ttyname_r.$ac_objext "* ) ;;
18368 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18372 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18376 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18380 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18381 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18382 $as_echo_n "(cached) " >&6
18386 # Guess no on Solaris.
18387 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18388 # Guess no on OSF/1.
18389 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18390 # Guess yes otherwise.
18391 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18393 if test "$cross_compiling" = yes; then :
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18400 #include <unistd.h>
18406 char buf[31]; /* use any size < 128 here */
18408 fd = open ("/dev/tty", O_RDONLY);
18411 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18413 else if (ttyname_r (fd, buf, 1) == 0)
18418 if ac_fn_c_try_run "$LINENO"; then :
18419 gnupg_cv_func_ttyname_r_works=yes
18422 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18426 conftest.$ac_objext conftest.beam conftest.$ac_ext
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18432 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18433 case "$gnupg_cv_func_ttyname_r_works" in
18435 *) case " $LIBOBJS " in
18436 *" ttyname_r.$ac_objext "* ) ;;
18437 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18441 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18444 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18451 if test "$ac_cv_func_ttyname_r" != yes; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18454 *** ttyname() is not thread-safe and ttyname_r() does not exist
18456 $as_echo "$as_me: WARNING:
18458 *** ttyname() is not thread-safe and ttyname_r() does not exist
18462 # Try to find a thread-safe version of getenv().
18463 have_thread_safe_getenv=no
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18466 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18467 if ${ac_cv_gnu_library_2_1+:} false; then :
18468 $as_echo_n "(cached) " >&6
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18473 #include <features.h>
18474 #ifdef __GNU_LIBRARY__
18475 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18482 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18483 ac_cv_gnu_library_2_1=yes
18485 ac_cv_gnu_library_2_1=no
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18493 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18495 GLIBC21="$ac_cv_gnu_library_2_1"
18498 if test $GLIBC21 = yes; then
18499 have_thread_safe_getenv=yes
18501 if test $have_thread_safe_getenv = yes; then
18503 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18507 for ac_func in getenv_r
18509 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18510 if test "x$ac_cv_func_getenv_r" = xyes; then :
18511 cat >>confdefs.h <<_ACEOF
18512 #define HAVE_GETENV_R 1
18518 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18521 *** getenv() is not thread-safe and getenv_r() does not exist
18523 $as_echo "$as_me: WARNING:
18525 *** getenv() is not thread-safe and getenv_r() does not exist
18529 # For converting time strings to seconds since Epoch, we need the timegm
18531 for ac_func in timegm
18533 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18534 if test "x$ac_cv_func_timegm" = xyes; then :
18535 cat >>confdefs.h <<_ACEOF
18536 #define HAVE_TIMEGM 1
18542 if test "$ac_cv_func_timegm" != yes; then
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18545 *** timegm() not available - a non-thread-safe kludge will be used
18546 *** and the TZ variable might be changed at runtime.
18548 $as_echo "$as_me: WARNING:
18550 *** timegm() not available - a non-thread-safe kludge will be used
18551 *** and the TZ variable might be changed at runtime.
18555 for ac_func in setlocale
18557 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18558 if test "x$ac_cv_func_setlocale" = xyes; then :
18559 cat >>confdefs.h <<_ACEOF
18560 #define HAVE_SETLOCALE 1
18567 # Checking for libgpg-error.
18570 gpg_error_config_prefix=""
18572 # Check whether --with-libgpg-error-prefix was given.
18573 if test "${with_libgpg_error_prefix+set}" = set; then :
18574 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18579 # Check whether --with-gpg-error-prefix was given.
18580 if test "${with_gpg_error_prefix+set}" = set; then :
18581 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18585 if test x"${GPG_ERROR_CONFIG}" = x ; then
18586 if test x"${gpg_error_config_prefix}" != x ; then
18587 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
18589 case "${SYSROOT}" in
18591 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
18592 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18599 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18605 # Extract the first word of "gpg-error-config", so it can be a program name with args.
18606 set dummy gpg-error-config; ac_word=$2
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18608 $as_echo_n "checking for $ac_word... " >&6; }
18609 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18610 $as_echo_n "(cached) " >&6
18612 case $GPG_ERROR_CONFIG in
18614 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618 for as_dir in $PATH
18621 test -z "$as_dir" && as_dir=.
18622 for ac_exec_ext in '' $ac_executable_extensions; do
18623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18624 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18632 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
18636 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18637 if test -n "$GPG_ERROR_CONFIG"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18639 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18646 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18648 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18650 if test "$GPG_ERROR_CONFIG" != "no" \
18651 && test -f "$GPG_ERROR_CONFIG" ; then
18652 req_major=`echo $min_gpg_error_version | \
18653 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18654 req_minor=`echo $min_gpg_error_version | \
18655 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18656 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18657 major=`echo $gpg_error_config_version | \
18658 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18659 minor=`echo $gpg_error_config_version | \
18660 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18661 if test "$major" -gt "$req_major"; then
18664 if test "$major" -eq "$req_major"; then
18665 if test "$minor" -ge "$req_minor"; then
18671 if test $ok = yes; then
18672 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18673 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18674 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
18675 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18677 $as_echo "yes ($gpg_error_config_version)" >&6; }
18679 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18680 if test x"$gpg_error_config_host" != xnone ; then
18681 if test x"$gpg_error_config_host" != x"$host" ; then
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18684 *** The config script $GPG_ERROR_CONFIG was
18685 *** built for $gpg_error_config_host and thus may not match the
18686 *** used host $host.
18687 *** You may want to use the configure option --with-gpg-error-prefix
18688 *** to specify a matching config script or use \$SYSROOT.
18690 $as_echo "$as_me: WARNING:
18692 *** The config script $GPG_ERROR_CONFIG was
18693 *** built for $gpg_error_config_host and thus may not match the
18694 *** used host $host.
18695 *** You may want to use the configure option --with-gpg-error-prefix
18696 *** to specify a matching config script or use \$SYSROOT.
18698 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
18702 GPG_ERROR_CFLAGS=""
18704 GPG_ERROR_MT_CFLAGS=""
18705 GPG_ERROR_MT_LIBS=""
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18716 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18719 # And for libassuan.
18723 # Check whether --with-libassuan-prefix was given.
18724 if test "${with_libassuan_prefix+set}" = set; then :
18725 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18727 libassuan_config_prefix=""
18730 if test x$libassuan_config_prefix != x ; then
18731 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18732 if test x${LIBASSUAN_CONFIG+set} != xset ; then
18733 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18737 if test -n "$ac_tool_prefix"; then
18738 # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18739 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18741 $as_echo_n "checking for $ac_word... " >&6; }
18742 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18743 $as_echo_n "(cached) " >&6
18745 case $LIBASSUAN_CONFIG in
18747 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18754 test -z "$as_dir" && as_dir=.
18755 for ac_exec_ext in '' $ac_executable_extensions; do
18756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18768 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18769 if test -n "$LIBASSUAN_CONFIG"; then
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18771 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18774 $as_echo "no" >&6; }
18779 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18780 ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18781 # Extract the first word of "libassuan-config", so it can be a program name with args.
18782 set dummy libassuan-config; ac_word=$2
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18784 $as_echo_n "checking for $ac_word... " >&6; }
18785 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18786 $as_echo_n "(cached) " >&6
18788 case $ac_pt_LIBASSUAN_CONFIG in
18790 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18794 for as_dir in $PATH
18797 test -z "$as_dir" && as_dir=.
18798 for ac_exec_ext in '' $ac_executable_extensions; do
18799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18800 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18811 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18812 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18814 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18820 if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18821 LIBASSUAN_CONFIG="no"
18823 case $cross_compiling:$ac_tool_warned in
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18827 ac_tool_warned=yes ;;
18829 LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18832 LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18836 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18837 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18838 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
18839 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18841 req_libassuan_api=0
18842 min_libassuan_version="$tmp"
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18846 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18848 if test "$LIBASSUAN_CONFIG" != "no" \
18849 && test -f "$LIBASSUAN_CONFIG" ; then
18850 req_major=`echo $min_libassuan_version | \
18851 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18852 req_minor=`echo $min_libassuan_version | \
18853 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18854 req_micro=`echo $min_libassuan_version | \
18855 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18857 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18858 major=`echo $libassuan_config_version | \
18859 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18860 minor=`echo $libassuan_config_version | \
18861 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18862 micro=`echo $libassuan_config_version | \
18863 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18865 if test "$major" -gt "$req_major"; then
18868 if test "$major" -eq "$req_major"; then
18869 if test "$minor" -gt "$req_minor"; then
18872 if test "$minor" -eq "$req_minor"; then
18873 if test "$micro" -ge "$req_micro"; then
18882 if test $ok = yes; then
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18884 $as_echo "yes ($libassuan_config_version)" >&6; }
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18887 $as_echo "no" >&6; }
18890 if test $ok = yes; then
18891 if test "$req_libassuan_api" -gt 0 ; then
18892 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18893 if test "$tmp" -gt 0 ; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18895 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18896 if test "$req_libassuan_api" -eq "$tmp" ; then
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18898 $as_echo "okay" >&6; }
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
18902 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
18908 if test $ok = yes; then
18909 if test x"$host" != x ; then
18910 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18911 if test x"$libassuan_config_host" != xnone ; then
18912 if test x"$libassuan_config_host" != x"$host" ; then
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18915 *** The config script $LIBASSUAN_CONFIG was
18916 *** built for $libassuan_config_host and thus may not match the
18917 *** used host $host.
18918 *** You may want to use the configure option --with-libassuan-prefix
18919 *** to specify a matching config script.
18921 $as_echo "$as_me: WARNING:
18923 *** The config script $LIBASSUAN_CONFIG was
18924 *** built for $libassuan_config_host and thus may not match the
18925 *** used host $host.
18926 *** You may want to use the configure option --with-libassuan-prefix
18927 *** to specify a matching config script.
18934 if test $ok = yes; then
18935 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18936 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18939 LIBASSUAN_CFLAGS=""
18946 if test "$have_libassuan" = "yes"; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18959 # Check for funopen
18960 for ac_func in funopen
18962 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18963 if test "x$ac_cv_func_funopen" = xyes; then :
18964 cat >>confdefs.h <<_ACEOF
18965 #define HAVE_FUNOPEN 1
18971 if test $ac_cv_func_funopen != yes; then
18972 # No funopen but we can implement that in terms of fopencookie.
18973 for ac_func in fopencookie
18975 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
18976 if test "x$ac_cv_func_fopencookie" = xyes; then :
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_FOPENCOOKIE 1
18984 if test $ac_cv_func_fopencookie = yes; then
18985 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18986 if test "x$ac_cv_func_funopen" = xyes; then :
18987 $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
18990 case " $LIBOBJS " in
18991 *" funopen.$ac_objext "* ) ;;
18992 *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19002 *** No implementation of fopencookie or funopen available
19004 $as_echo "$as_me: WARNING:
19006 *** No implementation of fopencookie or funopen available
19011 # Check for getgid etc
19012 for ac_func in getgid getegid
19014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19017 cat >>confdefs.h <<_ACEOF
19018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19026 # Replacement functions.
19027 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
19028 if test "x$ac_cv_func_stpcpy" = xyes; then :
19029 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
19032 case " $LIBOBJS " in
19033 *" stpcpy.$ac_objext "* ) ;;
19034 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
19041 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19042 if test "x$ac_cv_func_setenv" = xyes; then :
19043 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
19046 case " $LIBOBJS " in
19047 *" setenv.$ac_objext "* ) ;;
19048 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
19056 # Assuan check for descriptor passing.
19057 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
19058 #include <stdlib.h>
19059 #include <stddef.h>
19061 #include <sys/types.h>
19062 #include <sys/socket.h>
19063 #include <sys/un.h>
19065 #include <sys/uio.h>
19067 #include <unistd.h>
19070 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
19071 supports_descriptor_passing=yes
19073 supports_descriptor_passing=no
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19076 *** Data structure for sending ancillary data missing.
19077 *** Descriptor passing won't work.
19079 $as_echo "$as_me: WARNING:
19081 *** Data structure for sending ancillary data missing.
19082 *** Descriptor passing won't work.
19090 use_descriptor_passing=no
19093 use_descriptor_passing=yes
19096 # Check whether --enable-fd-passing was given.
19097 if test "${enable_fd_passing+set}" = set; then :
19098 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
19102 if test "$supports_descriptor_passing" != "yes"; then
19103 use_descriptor_passing=no
19106 if test "$use_descriptor_passing" = "yes"; then
19108 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
19112 if test "$use_descriptor_passing" = "yes"; then
19113 USE_DESCRIPTOR_PASSING_TRUE=
19114 USE_DESCRIPTOR_PASSING_FALSE='#'
19116 USE_DESCRIPTOR_PASSING_TRUE='#'
19117 USE_DESCRIPTOR_PASSING_FALSE=
19123 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
19126 if test "$uiserver" != "no"; then
19128 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
19131 if test "$uiserver" != "no"; then
19132 HAVE_UISERVER_TRUE=
19133 HAVE_UISERVER_FALSE='#'
19135 HAVE_UISERVER_TRUE='#'
19136 HAVE_UISERVER_FALSE=
19141 # Add a few constants to help porting to W32
19147 # Substitution used for gpgme-config
19148 GPGME_CONFIG_LIBS="-lgpgme"
19149 GPGME_CONFIG_CFLAGS=""
19150 GPGME_CONFIG_HOST="$host"
19156 # Frob'da Variables
19157 LTLIBOBJS=`echo "$LIBOBJS" |
19158 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
19161 # Some checks for gpgme-tool
19162 # Done at top: AC_CHECK_HEADER([argp.h])
19163 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
19165 if test "x$ac_cv_type_error_t" = xyes; then :
19167 cat >>confdefs.h <<_ACEOF
19168 #define HAVE_ERROR_T 1
19174 $as_echo "#define error_t int" >>confdefs.h
19180 # A substitution to set generated files in a Emacs buffer to read-only.
19181 emacs_local_vars_begin='Local Variables:'
19183 emacs_local_vars_read_only='buffer-read-only: t'
19185 emacs_local_vars_end='End:'
19191 if test "$have_gpg_error" = "no"; then
19193 { $as_echo "$as_me:${as_lineno-$LINENO}:
19195 *** You need libgpg-error to build this program.
19196 ** This library is for example available at
19197 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
19198 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19202 *** You need libgpg-error to build this program.
19203 ** This library is for example available at
19204 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
19205 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19208 if test "$have_libassuan" = "no"; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}:
19212 *** You need libassuan to build this program.
19213 *** This library is for example available at
19214 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
19215 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19219 *** You need libassuan to build this program.
19220 *** This library is for example available at
19221 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
19222 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19226 if test "$die" = "yes"; then
19229 *** Required libraries not found. Please consult the above messages
19230 *** and install them before running configure again.
19236 # Create config files
19238 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile doc/Makefile src/versioninfo.rc src/gpgme.h"
19240 ac_config_files="$ac_config_files src/gpgme-config"
19242 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19244 cat >confcache <<\_ACEOF
19245 # This file is a shell script that caches the results of configure
19246 # tests run on this system so they can be shared between configure
19247 # scripts and configure runs, see configure's option --config-cache.
19248 # It is not useful on other systems. If it contains results you don't
19249 # want to keep, you may remove or edit it.
19251 # config.status only pays attention to the cache file if you give it
19252 # the --recheck option to rerun configure.
19254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19256 # following values.
19260 # The following way of writing the cache mishandles newlines in values,
19261 # but we know of no workaround that is simple, portable, and efficient.
19262 # So, we kill variables containing newlines.
19263 # Ultrix sh set writes to stderr and can't be redirected directly,
19264 # and sets the high bit in the cache file unless we assign to the vars.
19266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19267 eval ac_val=\$$ac_var
19271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19272 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19275 _ | IFS | as_nl) ;; #(
19276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19277 *) { eval $ac_var=; unset $ac_var;} ;;
19283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19284 *${as_nl}ac_space=\ *)
19285 # `set' does not quote correctly, so add quotes: double-quote
19286 # substitution turns \\\\ into \\, and sed turns \\ into \.
19289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19292 # `set' quotes correctly as required by POSIX, so do not add quotes.
19293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19307 if test -w "$cache_file"; then
19308 if test "x$cache_file" != "x/dev/null"; then
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19310 $as_echo "$as_me: updating cache $cache_file" >&6;}
19311 if test ! -f "$cache_file" || test -h "$cache_file"; then
19312 cat confcache >"$cache_file"
19314 case $cache_file in #(
19316 mv -f confcache "$cache_file"$$ &&
19317 mv -f "$cache_file"$$ "$cache_file" ;; #(
19319 mv -f confcache "$cache_file" ;;
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19325 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19331 # Let make expand exec_prefix.
19332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19334 DEFS=-DHAVE_CONFIG_H
19339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19340 # 1. Remove the extension, and $U if already installed.
19341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19342 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19344 # will be set to the directory where LIBOBJS objects are built.
19345 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19346 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19348 LIBOBJS=$ac_libobjs
19350 LTLIBOBJS=$ac_ltlibobjs
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19354 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19355 if test -n "$am_sleep_pid"; then
19356 # Hide warnings about reused PIDs.
19357 wait $am_sleep_pid 2>/dev/null
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19360 $as_echo "done" >&6; }
19361 if test -n "$EXEEXT"; then
19363 am__EXEEXT_FALSE='#'
19365 am__EXEEXT_TRUE='#'
19369 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19370 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19374 as_fn_error $? "conditional \"AMDEP\" was never defined.
19375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19377 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19378 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19381 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19382 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19385 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19386 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19389 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19390 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19393 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19394 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19397 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19398 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19401 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19402 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19405 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19406 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19409 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19410 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19413 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19414 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19417 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19418 as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19421 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19422 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19425 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19426 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19429 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19430 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19433 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19434 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19437 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19438 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19441 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19442 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19445 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19446 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19450 : "${CONFIG_STATUS=./config.status}"
19452 ac_clean_files_save=$ac_clean_files
19453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19459 # Generated by $as_me.
19460 # Run this file to recreate the current configuration.
19461 # Compiler output produced by configure, useful for debugging
19462 # configure, is in config.log if it exists.
19465 ac_cs_recheck=false
19468 SHELL=\${CONFIG_SHELL-$SHELL}
19471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19472 ## -------------------- ##
19473 ## M4sh Initialization. ##
19474 ## -------------------- ##
19476 # Be more Bourne compatible
19477 DUALCASE=1; export DUALCASE # for MKS sh
19478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19482 # is contrary to our usage. Disable this feature.
19483 alias -g '${1+"$@"}'='"$@"'
19484 setopt NO_GLOB_SUBST
19486 case `(set -o) 2>/dev/null` in #(
19498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19499 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19502 # Prefer a ksh shell builtin over an external printf program on Solaris,
19503 # but without wasting forks for bash or zsh.
19504 if test -z "$BASH_VERSION$ZSH_VERSION" \
19505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19506 as_echo='print -r --'
19507 as_echo_n='print -rn --'
19508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19509 as_echo='printf %s\n'
19510 as_echo_n='printf %s'
19512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19514 as_echo_n='/usr/ucb/echo -n'
19516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19517 as_echo_n_body='eval
19521 expr "X$arg" : "X\\(.*\\)$as_nl";
19522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19526 export as_echo_n_body
19527 as_echo_n='sh -c $as_echo_n_body as_echo'
19529 export as_echo_body
19530 as_echo='sh -c $as_echo_body as_echo'
19533 # The user is always right.
19534 if test "${PATH_SEPARATOR+set}" != set; then
19536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19544 # We need space, tab and new line, in precisely that order. Quoting is
19545 # there to prevent editors from complaining about space-tab.
19546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19547 # splitting by setting IFS to empty value.)
19550 # Find who we are. Look in the path if we contain no directory separator.
19553 *[\\/]* ) as_myself=$0 ;;
19554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19558 test -z "$as_dir" && as_dir=.
19559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19565 # We did not find ourselves, most probably we were run as `sh COMMAND'
19566 # in which case we are not to be found in the path.
19567 if test "x$as_myself" = x; then
19570 if test ! -f "$as_myself"; then
19571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19575 # Unset variables that we do not need and which cause bugs (e.g. in
19576 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19577 # suppresses any "Segmentation fault" message there. '((' could
19578 # trigger a bug in pdksh 5.2.14.
19579 for as_var in BASH_ENV ENV MAIL MAILPATH
19580 do eval test x\${$as_var+set} = xset \
19581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19597 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19598 # ----------------------------------------
19599 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19600 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19601 # script with STATUS, using 1 if that was 0.
19604 as_status=$1; test $as_status -eq 0 && as_status=1
19606 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19609 $as_echo "$as_me: error: $2" >&2
19610 as_fn_exit $as_status
19614 # as_fn_set_status STATUS
19615 # -----------------------
19616 # Set $? to STATUS, without forking.
19617 as_fn_set_status ()
19620 } # as_fn_set_status
19622 # as_fn_exit STATUS
19623 # -----------------
19624 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19628 as_fn_set_status $1
19634 # Portably unset VAR.
19637 { eval $1=; unset $1;}
19639 as_unset=as_fn_unset
19640 # as_fn_append VAR VALUE
19641 # ----------------------
19642 # Append the text in VALUE to the end of the definition contained in VAR. Take
19643 # advantage of any shell optimizations that allow amortized linear growth over
19644 # repeated appends, instead of the typical quadratic growth present in naive
19646 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19647 eval 'as_fn_append ()
19658 # as_fn_arith ARG...
19659 # ------------------
19660 # Perform arithmetic evaluation on the ARGs, and store the result in the
19661 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19662 # must be portable across $(()) and expr.
19663 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19664 eval 'as_fn_arith ()
19671 as_val=`expr "$@" || test $? -eq 1`
19676 if expr a : '\(a\)' >/dev/null 2>&1 &&
19677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19683 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19684 as_basename=basename
19689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19695 as_me=`$as_basename -- "$0" ||
19696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19697 X"$0" : 'X\(//\)$' \| \
19698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19700 sed '/^.*\/\([^/][^/]*\)\/*$/{
19714 # Avoid depending upon Character Ranges.
19715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19718 as_cr_digits='0123456789'
19719 as_cr_alnum=$as_cr_Letters$as_cr_digits
19721 ECHO_C= ECHO_N= ECHO_T=
19722 case `echo -n x` in #(((((
19724 case `echo 'xy\c'` in
19725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19734 rm -f conf$$ conf$$.exe conf$$.file
19735 if test -d conf$$.dir; then
19736 rm -f conf$$.dir/conf$$.file
19739 mkdir conf$$.dir 2>/dev/null
19741 if (echo >conf$$.file) 2>/dev/null; then
19742 if ln -s conf$$.file conf$$ 2>/dev/null; then
19744 # ... but there are two gotchas:
19745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19747 # In both cases, we have to default to `cp -pR'.
19748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19750 elif ln conf$$.file conf$$ 2>/dev/null; then
19758 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19759 rmdir conf$$.dir 2>/dev/null
19764 # Create "$as_dir" as a directory, including parents if necessary.
19769 -*) as_dir=./$as_dir;;
19771 test -d "$as_dir" || eval $as_mkdir_p || {
19775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19776 *) as_qdir=$as_dir;;
19778 as_dirs="'$as_qdir' $as_dirs"
19779 as_dir=`$as_dirname -- "$as_dir" ||
19780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19781 X"$as_dir" : 'X\(//\)[^/]' \| \
19782 X"$as_dir" : 'X\(//\)$' \| \
19783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19784 $as_echo X"$as_dir" |
19785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19789 /^X\(\/\/\)[^/].*/{
19802 test -d "$as_dir" && break
19804 test -z "$as_dirs" || eval "mkdir $as_dirs"
19805 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19809 if mkdir -p . 2>/dev/null; then
19810 as_mkdir_p='mkdir -p "$as_dir"'
19812 test -d ./-p && rmdir ./-p
19817 # as_fn_executable_p FILE
19818 # -----------------------
19819 # Test if FILE is an executable regular file.
19820 as_fn_executable_p ()
19822 test -f "$1" && test -x "$1"
19823 } # as_fn_executable_p
19824 as_test_x='test -x'
19825 as_executable_p=as_fn_executable_p
19827 # Sed expression to map a string onto a valid CPP name.
19828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19830 # Sed expression to map a string onto a valid variable name.
19831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19835 ## ----------------------------------- ##
19836 ## Main body of $CONFIG_STATUS script. ##
19837 ## ----------------------------------- ##
19839 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19842 # Save the log message, to keep $0 and so on meaningful, and to
19843 # report actual input values of CONFIG_FILES etc. instead of their
19844 # values after options handling.
19846 This file was extended by gpgme $as_me 1.5.5, which was
19847 generated by GNU Autoconf 2.69. Invocation command line was
19849 CONFIG_FILES = $CONFIG_FILES
19850 CONFIG_HEADERS = $CONFIG_HEADERS
19851 CONFIG_LINKS = $CONFIG_LINKS
19852 CONFIG_COMMANDS = $CONFIG_COMMANDS
19855 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19860 case $ac_config_files in *"
19861 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19864 case $ac_config_headers in *"
19865 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870 # Files that config.status was made for.
19871 config_files="$ac_config_files"
19872 config_headers="$ac_config_headers"
19873 config_commands="$ac_config_commands"
19877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19879 \`$as_me' instantiates files and other configuration actions
19880 from templates according to the current configuration. Unless the files
19881 and actions are specified as TAGs, all are instantiated by default.
19883 Usage: $0 [OPTION]... [TAG]...
19885 -h, --help print this help, then exit
19886 -V, --version print version number and configuration settings, then exit
19887 --config print configuration, then exit
19888 -q, --quiet, --silent
19889 do not print progress messages
19890 -d, --debug don't remove temporary files
19891 --recheck update $as_me by reconfiguring in the same conditions
19892 --file=FILE[:TEMPLATE]
19893 instantiate the configuration file FILE
19894 --header=FILE[:TEMPLATE]
19895 instantiate the configuration header FILE
19897 Configuration files:
19900 Configuration headers:
19903 Configuration commands:
19906 Report bugs to <http://bugs.gnupg.org>."
19909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19910 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19912 gpgme config.status 1.5.5
19913 configured by $0, generated by GNU Autoconf 2.69,
19914 with options \\"\$ac_cs_config\\"
19916 Copyright (C) 2012 Free Software Foundation, Inc.
19917 This config.status script is free software; the Free Software Foundation
19918 gives unlimited permission to copy, distribute and modify it."
19925 test -n "\$AWK" || AWK=awk
19928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19929 # The default lists apply if the user does not specify any file.
19935 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19936 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19952 # Handling of the options.
19953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19956 $as_echo "$ac_cs_version"; exit ;;
19957 --config | --confi | --conf | --con | --co | --c )
19958 $as_echo "$ac_cs_config"; exit ;;
19959 --debug | --debu | --deb | --de | --d | -d )
19961 --file | --fil | --fi | --f )
19964 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19965 '') as_fn_error $? "missing file argument" ;;
19967 as_fn_append CONFIG_FILES " '$ac_optarg'"
19968 ac_need_defaults=false;;
19969 --header | --heade | --head | --hea )
19972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19974 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19975 ac_need_defaults=false;;
19977 # Conflict between --help and --header
19978 as_fn_error $? "ambiguous option: \`$1'
19979 Try \`$0 --help' for more information.";;
19980 --help | --hel | -h )
19981 $as_echo "$ac_cs_usage"; exit ;;
19982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19986 # This is an error.
19987 -*) as_fn_error $? "unrecognized option: \`$1'
19988 Try \`$0 --help' for more information." ;;
19990 *) as_fn_append ac_config_targets " $1"
19991 ac_need_defaults=false ;;
19997 ac_configure_extra_args=
19999 if $ac_cs_silent; then
20001 ac_configure_extra_args="$ac_configure_extra_args --silent"
20005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20006 if \$ac_cs_recheck; then
20007 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20009 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20010 CONFIG_SHELL='$SHELL'
20011 export CONFIG_SHELL
20016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20021 ## Running $as_me. ##
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20031 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20034 # The HP-UX ksh and POSIX shell print the target directory to stdout
20035 # if CDPATH is set.
20036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20038 sed_quote_subst='$sed_quote_subst'
20039 double_quote_subst='$double_quote_subst'
20040 delay_variable_subst='$delay_variable_subst'
20041 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20042 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20043 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20044 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20045 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20046 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20047 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20048 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20049 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20050 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20051 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20052 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20053 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20054 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20055 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20056 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20057 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20058 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20059 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20060 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20061 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20062 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20063 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20064 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20065 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20066 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20067 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20068 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20069 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20070 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20071 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20072 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20073 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20074 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20075 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20076 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20077 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20078 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20079 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20080 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20081 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20082 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20083 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20084 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20085 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20086 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20087 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20088 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20089 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20090 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20091 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20092 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20093 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20094 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20095 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20098 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"`'
20099 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20100 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20133 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20134 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20135 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20136 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20137 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20138 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20139 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20140 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20141 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20142 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20143 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20144 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20145 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20146 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20147 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20148 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20149 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20150 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20151 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20152 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20153 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20154 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20155 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20156 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20157 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20158 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20159 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20160 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20161 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20162 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20163 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20164 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20165 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20166 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20167 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20168 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20169 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20170 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20171 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20172 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20173 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20174 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20175 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20176 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20177 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20178 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20179 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20180 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20181 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20182 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20183 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20184 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20185 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20186 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20187 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20188 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20189 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20190 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20191 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20192 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20193 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20194 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20195 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20196 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20197 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20198 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20199 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20200 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20201 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20202 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20203 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20204 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20205 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20206 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20207 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20208 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20209 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20210 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20211 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20212 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20213 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20214 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20215 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20216 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20217 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20218 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20219 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20220 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20222 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20223 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20224 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20225 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20226 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20227 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20228 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20229 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20230 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20231 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20232 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20233 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20234 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20235 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20236 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20237 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20238 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20239 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20240 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20241 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20242 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20243 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20244 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20245 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20246 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20247 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20248 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20249 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20250 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20251 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20252 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20253 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20254 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20255 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20256 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20257 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20258 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20259 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20260 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20261 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20262 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20263 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20264 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20265 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20266 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20267 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20268 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20269 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20270 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20271 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20272 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20273 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20276 LTCFLAGS='$LTCFLAGS'
20277 compiler='$compiler_DEFAULT'
20279 # A function that is used when there is no print builtin or printf.
20280 func_fallback_echo ()
20282 eval 'cat <<_LTECHO_EOF
20287 # Quote evaled strings.
20304 deplibs_check_method \
20308 sharedlib_from_linklib_cmd \
20311 archiver_list_spec \
20317 lt_cv_sys_global_symbol_pipe \
20318 lt_cv_sys_global_symbol_to_cdecl \
20319 lt_cv_sys_global_symbol_to_c_name_address \
20320 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20321 nm_file_list_spec \
20322 lt_prog_compiler_no_builtin_flag \
20323 lt_prog_compiler_pic \
20324 lt_prog_compiler_wl \
20325 lt_prog_compiler_static \
20326 lt_cv_prog_compiler_c_o \
20335 export_dynamic_flag_spec \
20336 whole_archive_flag_spec \
20337 compiler_needs_object \
20339 allow_undefined_flag \
20340 no_undefined_flag \
20341 hardcode_libdir_flag_spec \
20342 hardcode_libdir_separator \
20346 variables_saved_for_relink \
20348 library_names_spec \
20350 install_override_mode \
20354 compiler_lib_search_dirs \
20359 compiler_lib_search_path \
20366 lt_prog_compiler_no_builtin_flag_CXX \
20367 lt_prog_compiler_no_builtin_flag_RC \
20368 lt_prog_compiler_pic_CXX \
20369 lt_prog_compiler_pic_RC \
20370 lt_prog_compiler_wl_CXX \
20371 lt_prog_compiler_wl_RC \
20372 lt_prog_compiler_static_CXX \
20373 lt_prog_compiler_static_RC \
20374 lt_cv_prog_compiler_c_o_CXX \
20375 lt_cv_prog_compiler_c_o_RC \
20376 export_dynamic_flag_spec_CXX \
20377 export_dynamic_flag_spec_RC \
20378 whole_archive_flag_spec_CXX \
20379 whole_archive_flag_spec_RC \
20380 compiler_needs_object_CXX \
20381 compiler_needs_object_RC \
20384 allow_undefined_flag_CXX \
20385 allow_undefined_flag_RC \
20386 no_undefined_flag_CXX \
20387 no_undefined_flag_RC \
20388 hardcode_libdir_flag_spec_CXX \
20389 hardcode_libdir_flag_spec_RC \
20390 hardcode_libdir_separator_CXX \
20391 hardcode_libdir_separator_RC \
20392 exclude_expsyms_CXX \
20393 exclude_expsyms_RC \
20394 include_expsyms_CXX \
20395 include_expsyms_RC \
20396 file_list_spec_CXX \
20397 file_list_spec_RC \
20398 compiler_lib_search_dirs_CXX \
20399 compiler_lib_search_dirs_RC \
20400 predep_objects_CXX \
20401 predep_objects_RC \
20402 postdep_objects_CXX \
20403 postdep_objects_RC \
20408 compiler_lib_search_path_CXX \
20409 compiler_lib_search_path_RC; do
20410 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20411 *[\\\\\\\`\\"\\\$]*)
20412 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20415 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20420 # Double-quote double-evaled strings.
20421 for var in reload_cmds \
20422 old_postinstall_cmds \
20423 old_postuninstall_cmds \
20425 extract_expsyms_cmds \
20426 old_archive_from_new_cmds \
20427 old_archive_from_expsyms_cmds \
20429 archive_expsym_cmds \
20431 module_expsym_cmds \
20432 export_symbols_cmds \
20436 postuninstall_cmds \
20438 sys_lib_search_path_spec \
20439 sys_lib_dlsearch_path_spec \
20442 old_archive_cmds_CXX \
20443 old_archive_cmds_RC \
20444 old_archive_from_new_cmds_CXX \
20445 old_archive_from_new_cmds_RC \
20446 old_archive_from_expsyms_cmds_CXX \
20447 old_archive_from_expsyms_cmds_RC \
20450 archive_expsym_cmds_CXX \
20451 archive_expsym_cmds_RC \
20454 module_expsym_cmds_CXX \
20455 module_expsym_cmds_RC \
20456 export_symbols_cmds_CXX \
20457 export_symbols_cmds_RC \
20460 postlink_cmds_CXX \
20461 postlink_cmds_RC; do
20462 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20463 *[\\\\\\\`\\"\\\$]*)
20464 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20467 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20472 ac_aux_dir='$ac_aux_dir'
20473 xsi_shell='$xsi_shell'
20474 lt_shell_append='$lt_shell_append'
20476 # See if we are running on zsh, and set the options which allow our
20477 # commands through without removal of \ escapes INIT.
20478 if test -n "\${ZSH_VERSION+set}" ; then
20479 setopt NO_GLOB_SUBST
20485 TIMESTAMP='$TIMESTAMP'
20498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20500 # Handling of arguments.
20501 for ac_config_target in $ac_config_targets
20503 case $ac_config_target in
20504 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20505 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20506 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20507 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20508 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20509 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20510 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20511 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20512 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20513 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20514 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20515 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20516 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20517 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20518 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20519 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20521 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20526 # If the user did not use the arguments to specify the items to instantiate,
20527 # then the envvar interface is used. Set only those that are not.
20528 # We use the long form for the default assignment because of an extremely
20529 # bizarre bug on SunOS 4.1.3.
20530 if $ac_need_defaults; then
20531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20536 # Have a temporary directory for convenience. Make it in the build tree
20537 # simply because there is no reason against having it here, and in addition,
20538 # creating and moving files from /tmp can sometimes cause problems.
20539 # Hook for its removal unless debugging.
20540 # Note that there is a small window in which the directory will not be cleaned:
20541 # after its creation but before its name has been assigned to `$tmp'.
20545 trap 'exit_status=$?
20546 : "${ac_tmp:=$tmp}"
20547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20549 trap 'as_fn_exit 1' 1 2 13 15
20551 # Create a (secure) tmp directory for tmp files.
20554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20558 tmp=./conf$$-$RANDOM
20559 (umask 077 && mkdir "$tmp")
20560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20563 # Set up the scripts for CONFIG_FILES section.
20564 # No need to generate them if there are no CONFIG_FILES.
20565 # This happens for instance with `./config.status config.h'.
20566 if test -n "$CONFIG_FILES"; then
20569 ac_cr=`echo X | tr X '\015'`
20570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20571 # But we know of no other shell where ac_cr would be empty at this
20572 # point, so we can use a bashism as a fallback.
20573 if test "x$ac_cr" = x; then
20574 eval ac_cr=\$\'\\r\'
20576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20580 ac_cs_awk_cr=$ac_cr
20583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20588 echo "cat >conf$$subs.awk <<_ACEOF" &&
20589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20591 } >conf$$subs.sh ||
20592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20595 for ac_last_try in false false false false false :; do
20596 . ./conf$$subs.sh ||
20597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20600 if test $ac_delim_n = $ac_delim_num; then
20602 elif $ac_last_try; then
20603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20608 rm -f conf$$subs.sh
20610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20615 s/^/S["/; s/!.*/"]=/
20625 s/\(.\{148\}\)..*/\1/
20627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20639 s/\(.\{148\}\)..*/\1/
20641 s/["\\]/\\&/g; s/^/"/; s/$/"/
20645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20650 ' <conf$$subs.awk | sed '
20655 ' >>$CONFIG_STATUS || ac_write_fail=1
20656 rm -f conf$$subs.awk
20657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20660 for (key in S) S_is_set[key] = 1
20666 nfields = split(line, field, "@")
20668 len = length(field[1])
20669 for (i = 2; i < nfields; i++) {
20671 keylen = length(key)
20672 if (S_is_set[key]) {
20674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20675 len += length(value) + length(field[++i])
20686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20697 # trailing colons and then remove the whole line if VPATH becomes empty
20698 # (actually we leave an empty line to preserve line numbers).
20699 if test "x$srcdir" = x.; then
20700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20719 fi # test -n "$CONFIG_FILES"
20721 # Set up the scripts for CONFIG_HEADERS section.
20722 # No need to generate them if there are no CONFIG_HEADERS.
20723 # This happens for instance with `./config.status Makefile'.
20724 if test -n "$CONFIG_HEADERS"; then
20725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20729 # Transform confdefs.h into an awk script `defines.awk', embedded as
20730 # here-document in config.status, that substitutes the proper values into
20731 # config.h.in to produce config.h.
20733 # Create a delimiter string that does not exist in confdefs.h, to ease
20734 # handling of long lines.
20736 for ac_last_try in false false :; do
20737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20738 if test -z "$ac_tt"; then
20740 elif $ac_last_try; then
20741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20747 # For the awk script, D is an array of macro values keyed by name,
20748 # likewise P contains macro parameters if any. Preserve backslash
20749 # newline sequences.
20751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20753 s/.\{148\}/&'"$ac_delim"'/g
20756 s/^[ ]*#[ ]*define[ ][ ]*/ /
20763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20770 D["\1"]=" \3\\\\\\n"\\/p
20772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20777 s/.\{148\}/&'"$ac_delim"'/g
20782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20787 ' <confdefs.h | sed '
20788 s/'"$ac_delim"'/"\\\
20789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20792 for (key in D) D_is_set[key] = 1
20795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20797 split(line, arg, " ")
20798 if (arg[1] == "#") {
20802 defundef = substr(arg[1], 2)
20805 split(mac1, mac2, "(") #)
20807 prefix = substr(line, 1, index(line, defundef) - 1)
20808 if (D_is_set[macro]) {
20809 # Preserve the white space surrounding the "#".
20810 print prefix "define", macro P[macro] D[macro]
20813 # Replace #undef with comments. This is necessary, for example,
20814 # in the case of _POSIX_SOURCE, which is predefined and required
20815 # on some systems where configure will not decide to define it.
20816 if (defundef == "undef") {
20817 print "/*", prefix defundef, macro, "*/"
20825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20827 fi # test -n "$CONFIG_HEADERS"
20830 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20835 :[FHLC]) ac_mode=$ac_tag; continue;;
20837 case $ac_mode$ac_tag in
20839 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20840 :[FH]-) ac_tag=-:-;;
20841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20858 -) ac_f="$ac_tmp/stdin";;
20859 *) # Look for the file first in the build tree, then in the source tree
20860 # (if the path is not absolute). The absolute path cannot be DOS-style,
20861 # because $ac_f cannot contain `:'.
20865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20867 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20869 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20870 as_fn_append ac_file_inputs " '$ac_f'"
20873 # Let's still pretend it is `configure' which instantiates (i.e., don't
20874 # use $as_me), people would be surprised to read:
20875 # /* config.h. Generated by config.status. */
20876 configure_input='Generated from '`
20877 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20879 if test x"$ac_file" != x-; then
20880 configure_input="$ac_file. $configure_input"
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20882 $as_echo "$as_me: creating $ac_file" >&6;}
20884 # Neutralize special characters interpreted by sed in replacement strings.
20885 case $configure_input in #(
20886 *\&* | *\|* | *\\* )
20887 ac_sed_conf_input=`$as_echo "$configure_input" |
20888 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20889 *) ac_sed_conf_input=$configure_input;;
20893 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20899 ac_dir=`$as_dirname -- "$ac_file" ||
20900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901 X"$ac_file" : 'X\(//\)[^/]' \| \
20902 X"$ac_file" : 'X\(//\)$' \| \
20903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20904 $as_echo X"$ac_file" |
20905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20909 /^X\(\/\/\)[^/].*/{
20922 as_dir="$ac_dir"; as_fn_mkdir_p
20926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20928 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20929 # A ".." for each directory in $ac_dir_suffix.
20930 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20931 case $ac_top_builddir_sub in
20932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20936 ac_abs_top_builddir=$ac_pwd
20937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20938 # for backward compatibility:
20939 ac_top_builddir=$ac_top_build_prefix
20942 .) # We are building in place.
20944 ac_top_srcdir=$ac_top_builddir_sub
20945 ac_abs_top_srcdir=$ac_pwd ;;
20946 [\\/]* | ?:[\\/]* ) # Absolute name.
20947 ac_srcdir=$srcdir$ac_dir_suffix;
20948 ac_top_srcdir=$srcdir
20949 ac_abs_top_srcdir=$srcdir ;;
20950 *) # Relative name.
20951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20952 ac_top_srcdir=$ac_top_build_prefix$srcdir
20953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20968 ac_MKDIR_P=$MKDIR_P
20970 [\\/$]* | ?:[\\/]* ) ;;
20971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20976 # If the template does not know about datarootdir, expand it.
20977 # FIXME: This hack should be removed a few years after 2.60.
20978 ac_datarootdir_hack=; ac_datarootdir_seen=
20989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20990 *datarootdir*) ac_datarootdir_seen=yes;;
20991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20993 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20996 ac_datarootdir_hack='
20997 s&@datadir@&$datadir&g
20998 s&@docdir@&$docdir&g
20999 s&@infodir@&$infodir&g
21000 s&@localedir@&$localedir&g
21001 s&@mandir@&$mandir&g
21002 s&\\\${datarootdir}&$datarootdir&g' ;;
21006 # Neutralize VPATH when `$srcdir' = `.'.
21007 # Shell code in configure.ac might set extrasub.
21008 # FIXME: do we really want to maintain this feature?
21009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21010 ac_sed_extra="$ac_vpsub
21013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21016 s|@configure_input@|$ac_sed_conf_input|;t t
21017 s&@top_builddir@&$ac_top_builddir_sub&;t t
21018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21019 s&@srcdir@&$ac_srcdir&;t t
21020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21021 s&@top_srcdir@&$ac_top_srcdir&;t t
21022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21023 s&@builddir@&$ac_builddir&;t t
21024 s&@abs_builddir@&$ac_abs_builddir&;t t
21025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21026 s&@INSTALL@&$ac_INSTALL&;t t
21027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21028 $ac_datarootdir_hack
21030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21038 which seems to be undefined. Please make sure it is defined" >&5
21039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21040 which seems to be undefined. Please make sure it is defined" >&2;}
21042 rm -f "$ac_tmp/stdin"
21044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21053 if test x"$ac_file" != x-; then
21055 $as_echo "/* $configure_input */" \
21056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21057 } >"$ac_tmp/config.h" \
21058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21064 mv "$ac_tmp/config.h" "$ac_file" \
21065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21068 $as_echo "/* $configure_input */" \
21069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21070 || as_fn_error $? "could not create -" "$LINENO" 5
21072 # Compute "$ac_file"'s index in $config_headers.
21075 for _am_header in $config_headers :; do
21076 case $_am_header in
21077 $_am_arg | $_am_arg:* )
21080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21085 X"$_am_arg" : 'X\(//\)[^/]' \| \
21086 X"$_am_arg" : 'X\(//\)$' \| \
21087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21088 $as_echo X"$_am_arg" |
21089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21093 /^X\(\/\/\)[^/].*/{
21105 s/.*/./; q'`/stamp-h$_am_stamp_count
21108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21109 $as_echo "$as_me: executing $ac_file commands" >&6;}
21114 case $ac_file$ac_mode in
21115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21116 # Older Autoconf quotes --file arguments for eval, but not when files
21117 # are listed without --file. Let's play safe and only enable the eval
21118 # if we detect the quoting.
21119 case $CONFIG_FILES in
21120 *\'*) eval set x "$CONFIG_FILES" ;;
21121 *) set x $CONFIG_FILES ;;
21126 # Strip MF so we end up with the name of the file.
21127 mf=`echo "$mf" | sed -e 's/:.*$//'`
21128 # Check whether this is an Automake generated Makefile or not.
21129 # We used to match only the files named 'Makefile.in', but
21130 # some people rename them; so instead we look at the file content.
21131 # Grep'ing the first line is not enough: some people post-process
21132 # each Makefile.in and add a new line on top of each file to say so.
21133 # Grep'ing the whole file is not good either: AIX grep has a line
21134 # limit of 2048, but all sed's we know have understand at least 4000.
21135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21136 dirpart=`$as_dirname -- "$mf" ||
21137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21138 X"$mf" : 'X\(//\)[^/]' \| \
21139 X"$mf" : 'X\(//\)$' \| \
21140 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21146 /^X\(\/\/\)[^/].*/{
21162 # Extract the definition of DEPDIR, am__include, and am__quote
21163 # from the Makefile without running 'make'.
21164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21165 test -z "$DEPDIR" && continue
21166 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21167 test -z "$am__include" && continue
21168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21169 # Find all dependency output files, they are included files with
21170 # $(DEPDIR) in their names. We invoke sed twice because it is the
21171 # simplest approach to changing $(DEPDIR) to its actual value in the
21173 for file in `sed -n "
21174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21176 # Make sure the directory exists.
21177 test -f "$dirpart/$file" && continue
21178 fdir=`$as_dirname -- "$file" ||
21179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21180 X"$file" : 'X\(//\)[^/]' \| \
21181 X"$file" : 'X\(//\)$' \| \
21182 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21183 $as_echo X"$file" |
21184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21188 /^X\(\/\/\)[^/].*/{
21201 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21202 # echo "creating $dirpart/$file"
21203 echo '# dummy' > "$dirpart/$file"
21210 # See if we are running on zsh, and set the options which allow our
21211 # commands through without removal of \ escapes.
21212 if test -n "${ZSH_VERSION+set}" ; then
21213 setopt NO_GLOB_SUBST
21216 cfgfile="${ofile}T"
21217 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21220 cat <<_LT_EOF >> "$cfgfile"
21223 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21224 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21228 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21229 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21231 # Written by Gordon Matzigkeit, 1996
21233 # This file is part of GNU Libtool.
21235 # GNU Libtool is free software; you can redistribute it and/or
21236 # modify it under the terms of the GNU General Public License as
21237 # published by the Free Software Foundation; either version 2 of
21238 # the License, or (at your option) any later version.
21240 # As a special exception to the GNU General Public License,
21241 # if you distribute this file as part of a program or library that
21242 # is built using GNU Libtool, you may include this file under the
21243 # same distribution terms that you use for the rest of that program.
21245 # GNU Libtool is distributed in the hope that it will be useful,
21246 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21248 # GNU General Public License for more details.
21250 # You should have received a copy of the GNU General Public License
21251 # along with GNU Libtool; see the file COPYING. If not, a copy
21252 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21253 # obtained by writing to the Free Software Foundation, Inc.,
21254 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21257 # The names of the tagged configurations supported by this script.
21258 available_tags="CXX RC "
21260 # ### BEGIN LIBTOOL CONFIG
21262 # Which release of libtool.m4 was used?
21263 macro_version=$macro_version
21264 macro_revision=$macro_revision
21266 # Assembler program.
21269 # DLL creation program.
21270 DLLTOOL=$lt_DLLTOOL
21272 # Object dumper program.
21273 OBJDUMP=$lt_OBJDUMP
21275 # Whether or not to build static libraries.
21276 build_old_libs=$enable_static
21278 # Whether or not to build shared libraries.
21279 build_libtool_libs=$enable_shared
21281 # What type of objects to build.
21284 # Whether or not to optimize for fast installation.
21285 fast_install=$enable_fast_install
21287 # Shell to use when invoking shell scripts.
21290 # An echo program that protects backslashes.
21293 # The PATH separator for the build system.
21294 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21297 host_alias=$host_alias
21301 # The build system.
21302 build_alias=$build_alias
21306 # A sed program that does not truncate output.
21309 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21310 Xsed="\$SED -e 1s/^X//"
21312 # A grep program that handles long lines.
21318 # A literal string matcher.
21321 # A BSD- or MS-compatible name lister.
21324 # Whether we need soft or hard links.
21327 # What is the maximum length of a command?
21328 max_cmd_len=$max_cmd_len
21330 # Object file suffix (normally "o").
21333 # Executable file suffix (normally "").
21336 # whether the shell understands "unset".
21339 # turn spaces into newlines.
21342 # turn newlines into spaces.
21345 # convert \$build file names to \$host format.
21346 to_host_file_cmd=$lt_cv_to_host_file_cmd
21348 # convert \$build files to toolchain format.
21349 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21351 # Method to check whether dependent libraries are shared objects.
21352 deplibs_check_method=$lt_deplibs_check_method
21354 # Command to use when deplibs_check_method = "file_magic".
21355 file_magic_cmd=$lt_file_magic_cmd
21357 # How to find potential files when deplibs_check_method = "file_magic".
21358 file_magic_glob=$lt_file_magic_glob
21360 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21361 want_nocaseglob=$lt_want_nocaseglob
21363 # Command to associate shared and link libraries.
21364 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21369 # Flags to create an archive.
21370 AR_FLAGS=$lt_AR_FLAGS
21372 # How to feed a file listing to the archiver.
21373 archiver_list_spec=$lt_archiver_list_spec
21375 # A symbol stripping program.
21378 # Commands used to install an old-style archive.
21380 old_postinstall_cmds=$lt_old_postinstall_cmds
21381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21383 # Whether to use a lock for old archive extraction.
21384 lock_old_archive_extraction=$lock_old_archive_extraction
21389 # LTCC compiler flags.
21390 LTCFLAGS=$lt_CFLAGS
21392 # Take the output of nm and produce a listing of raw symbols and C names.
21393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21395 # Transform the output of nm in a proper C declaration.
21396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21398 # Transform the output of nm in a C name address pair.
21399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21401 # Transform the output of nm in a C name address pair when lib prefix is needed.
21402 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21404 # Specify filename containing input files for \$NM.
21405 nm_file_list_spec=$lt_nm_file_list_spec
21407 # The root where to search for dependent libraries,and in which our libraries should be installed.
21408 lt_sysroot=$lt_sysroot
21410 # The name of the directory that contains temporary libtool files.
21413 # Used to examine libraries when file_magic_cmd begins with "file".
21414 MAGIC_CMD=$MAGIC_CMD
21416 # Must we lock files when doing compilation?
21417 need_locks=$lt_need_locks
21420 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21422 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21423 DSYMUTIL=$lt_DSYMUTIL
21425 # Tool to change global to local symbols on Mac OS X.
21428 # Tool to manipulate fat objects and archives on Mac OS X.
21431 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21434 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21435 OTOOL64=$lt_OTOOL64
21437 # Old archive suffix (normally "a").
21440 # Shared library suffix (normally ".so").
21441 shrext_cmds=$lt_shrext_cmds
21443 # The commands to extract the exported symbol list from a shared archive.
21444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21446 # Variables whose values should be saved in libtool wrapper scripts and
21447 # restored at link time.
21448 variables_saved_for_relink=$lt_variables_saved_for_relink
21450 # Do we need the "lib" prefix for modules?
21451 need_lib_prefix=$need_lib_prefix
21453 # Do we need a version for libraries?
21454 need_version=$need_version
21456 # Library versioning type.
21457 version_type=$version_type
21459 # Shared library runtime path variable.
21460 runpath_var=$runpath_var
21462 # Shared library path variable.
21463 shlibpath_var=$shlibpath_var
21465 # Is shlibpath searched before the hard-coded library search path?
21466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21468 # Format of library name prefix.
21469 libname_spec=$lt_libname_spec
21471 # List of archive names. First name is the real one, the rest are links.
21472 # The last name is the one that the linker finds with -lNAME
21473 library_names_spec=$lt_library_names_spec
21475 # The coded name of the library, if different from the real name.
21476 soname_spec=$lt_soname_spec
21478 # Permission mode override for installation of shared libraries.
21479 install_override_mode=$lt_install_override_mode
21481 # Command to use after installation of a shared archive.
21482 postinstall_cmds=$lt_postinstall_cmds
21484 # Command to use after uninstallation of a shared archive.
21485 postuninstall_cmds=$lt_postuninstall_cmds
21487 # Commands used to finish a libtool library installation in a directory.
21488 finish_cmds=$lt_finish_cmds
21490 # As "finish_cmds", except a single script fragment to be evaled but
21492 finish_eval=$lt_finish_eval
21494 # Whether we should hardcode library paths into libraries.
21495 hardcode_into_libs=$hardcode_into_libs
21497 # Compile-time system search path for libraries.
21498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21500 # Run-time system search path for libraries.
21501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21503 # Whether dlopen is supported.
21504 dlopen_support=$enable_dlopen
21506 # Whether dlopen of programs is supported.
21507 dlopen_self=$enable_dlopen_self
21509 # Whether dlopen of statically linked programs is supported.
21510 dlopen_self_static=$enable_dlopen_self_static
21512 # Commands to strip libraries.
21513 old_striplib=$lt_old_striplib
21514 striplib=$lt_striplib
21517 # The linker used to build libraries.
21520 # How to create reloadable object files.
21521 reload_flag=$lt_reload_flag
21522 reload_cmds=$lt_reload_cmds
21524 # Commands used to build an old-style archive.
21525 old_archive_cmds=$lt_old_archive_cmds
21527 # A language specific compiler.
21530 # Is the compiler the GNU compiler?
21533 # Compiler flag to turn off builtin functions.
21534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21536 # Additional compiler flags for building library objects.
21537 pic_flag=$lt_lt_prog_compiler_pic
21539 # How to pass a linker flag through the compiler.
21540 wl=$lt_lt_prog_compiler_wl
21542 # Compiler flag to prevent dynamic linking.
21543 link_static_flag=$lt_lt_prog_compiler_static
21545 # Does compiler simultaneously support -c and -o options?
21546 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21548 # Whether or not to add -lc for building shared libraries.
21549 build_libtool_need_lc=$archive_cmds_need_lc
21551 # Whether or not to disallow shared libs when runtime libs are static.
21552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21554 # Compiler flag to allow reflexive dlopens.
21555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21557 # Compiler flag to generate shared objects directly from archives.
21558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21560 # Whether the compiler copes with passing no objects directly.
21561 compiler_needs_object=$lt_compiler_needs_object
21563 # Create an old-style archive from a shared archive.
21564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21566 # Create a temporary old-style archive to link instead of a shared archive.
21567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21569 # Commands used to build a shared archive.
21570 archive_cmds=$lt_archive_cmds
21571 archive_expsym_cmds=$lt_archive_expsym_cmds
21573 # Commands used to build a loadable module if different from building
21574 # a shared archive.
21575 module_cmds=$lt_module_cmds
21576 module_expsym_cmds=$lt_module_expsym_cmds
21578 # Whether we are building with GNU ld or not.
21579 with_gnu_ld=$lt_with_gnu_ld
21581 # Flag that allows shared libraries with undefined symbols to be built.
21582 allow_undefined_flag=$lt_allow_undefined_flag
21584 # Flag that enforces no undefined symbols.
21585 no_undefined_flag=$lt_no_undefined_flag
21587 # Flag to hardcode \$libdir into a binary during linking.
21588 # This must work even if \$libdir does not exist
21589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21591 # Whether we need a single "-rpath" flag with a separated argument.
21592 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21595 # DIR into the resulting binary.
21596 hardcode_direct=$hardcode_direct
21598 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21599 # DIR into the resulting binary and the resulting library dependency is
21600 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21601 # library is relocated.
21602 hardcode_direct_absolute=$hardcode_direct_absolute
21604 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21605 # into the resulting binary.
21606 hardcode_minus_L=$hardcode_minus_L
21608 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21609 # into the resulting binary.
21610 hardcode_shlibpath_var=$hardcode_shlibpath_var
21612 # Set to "yes" if building a shared library automatically hardcodes DIR
21613 # into the library and all subsequent libraries and executables linked
21615 hardcode_automatic=$hardcode_automatic
21617 # Set to yes if linker adds runtime paths of dependent libraries
21618 # to runtime path list.
21619 inherit_rpath=$inherit_rpath
21621 # Whether libtool must link a program against all its dependency libraries.
21622 link_all_deplibs=$link_all_deplibs
21624 # Set to "yes" if exported symbols are required.
21625 always_export_symbols=$always_export_symbols
21627 # The commands to list exported symbols.
21628 export_symbols_cmds=$lt_export_symbols_cmds
21630 # Symbols that should not be listed in the preloaded symbols.
21631 exclude_expsyms=$lt_exclude_expsyms
21633 # Symbols that must always be exported.
21634 include_expsyms=$lt_include_expsyms
21636 # Commands necessary for linking programs (against libraries) with templates.
21637 prelink_cmds=$lt_prelink_cmds
21639 # Commands necessary for finishing linking programs.
21640 postlink_cmds=$lt_postlink_cmds
21642 # Specify filename containing input files.
21643 file_list_spec=$lt_file_list_spec
21645 # How to hardcode a shared library path into an executable.
21646 hardcode_action=$hardcode_action
21648 # The directories searched by this compiler when creating a shared library.
21649 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21651 # Dependencies to place before and after the objects being linked to
21652 # create a shared library.
21653 predep_objects=$lt_predep_objects
21654 postdep_objects=$lt_postdep_objects
21655 predeps=$lt_predeps
21656 postdeps=$lt_postdeps
21658 # The library search path used internally by the compiler when linking
21659 # a shared library.
21660 compiler_lib_search_path=$lt_compiler_lib_search_path
21662 # ### END LIBTOOL CONFIG
21668 cat <<\_LT_EOF >> "$cfgfile"
21669 # AIX sometimes has problems with the GCC collect2 program. For some
21670 # reason, if we set the COLLECT_NAMES environment variable, the problems
21671 # vanish in a puff of smoke.
21672 if test "X${COLLECT_NAMES+set}" != Xset; then
21674 export COLLECT_NAMES
21681 ltmain="$ac_aux_dir/ltmain.sh"
21684 # We use sed instead of cat because bash on DJGPP gets confused if
21685 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21686 # text mode, it properly converts lines to CR/LF. This bash problem
21687 # is reportedly fixed, but why not run on old versions too?
21688 sed '$q' "$ltmain" >> "$cfgfile" \
21689 || (rm -f "$cfgfile"; exit 1)
21691 if test x"$xsi_shell" = xyes; then
21692 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21696 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21697 \ * ) func_dirname_result="${3}" ;;\
21699 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21700 && mv -f "$cfgfile.tmp" "$cfgfile" \
21701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21702 test 0 -eq $? || _lt_function_replace_fail=:
21705 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21708 \ func_basename_result="${1##*/}"\
21709 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21710 && mv -f "$cfgfile.tmp" "$cfgfile" \
21711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21712 test 0 -eq $? || _lt_function_replace_fail=:
21715 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21716 func_dirname_and_basename ()\
21719 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21720 \ * ) func_dirname_result="${3}" ;;\
21722 \ func_basename_result="${1##*/}"\
21723 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21724 && mv -f "$cfgfile.tmp" "$cfgfile" \
21725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21726 test 0 -eq $? || _lt_function_replace_fail=:
21729 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21732 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21733 \ # positional parameters, so assign one to ordinary parameter first.\
21734 \ func_stripname_result=${3}\
21735 \ func_stripname_result=${func_stripname_result#"${1}"}\
21736 \ func_stripname_result=${func_stripname_result%"${2}"}\
21737 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21738 && mv -f "$cfgfile.tmp" "$cfgfile" \
21739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21740 test 0 -eq $? || _lt_function_replace_fail=:
21743 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21744 func_split_long_opt ()\
21746 \ func_split_long_opt_name=${1%%=*}\
21747 \ func_split_long_opt_arg=${1#*=}\
21748 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21749 && mv -f "$cfgfile.tmp" "$cfgfile" \
21750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21751 test 0 -eq $? || _lt_function_replace_fail=:
21754 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21755 func_split_short_opt ()\
21757 \ func_split_short_opt_arg=${1#??}\
21758 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21759 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21760 && mv -f "$cfgfile.tmp" "$cfgfile" \
21761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21762 test 0 -eq $? || _lt_function_replace_fail=:
21765 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21769 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21770 \ *) func_lo2o_result=${1} ;;\
21772 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21773 && mv -f "$cfgfile.tmp" "$cfgfile" \
21774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21775 test 0 -eq $? || _lt_function_replace_fail=:
21778 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21781 func_xform_result=${1%.*}.lo\
21782 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21783 && mv -f "$cfgfile.tmp" "$cfgfile" \
21784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21785 test 0 -eq $? || _lt_function_replace_fail=:
21788 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21791 func_arith_result=$(( $* ))\
21792 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21793 && mv -f "$cfgfile.tmp" "$cfgfile" \
21794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21795 test 0 -eq $? || _lt_function_replace_fail=:
21798 sed -e '/^func_len ()$/,/^} # func_len /c\
21801 func_len_result=${#1}\
21802 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21803 && mv -f "$cfgfile.tmp" "$cfgfile" \
21804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21805 test 0 -eq $? || _lt_function_replace_fail=:
21809 if test x"$lt_shell_append" = xyes; then
21810 sed -e '/^func_append ()$/,/^} # func_append /c\
21813 eval "${1}+=\\${2}"\
21814 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21815 && mv -f "$cfgfile.tmp" "$cfgfile" \
21816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21817 test 0 -eq $? || _lt_function_replace_fail=:
21820 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21821 func_append_quoted ()\
21823 \ func_quote_for_eval "${2}"\
21824 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21825 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21826 && mv -f "$cfgfile.tmp" "$cfgfile" \
21827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21828 test 0 -eq $? || _lt_function_replace_fail=:
21831 # Save a `func_append' function call where possible by direct use of '+='
21832 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21833 && mv -f "$cfgfile.tmp" "$cfgfile" \
21834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21835 test 0 -eq $? || _lt_function_replace_fail=:
21837 # Save a `func_append' function call even when '+=' is not available
21838 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21839 && mv -f "$cfgfile.tmp" "$cfgfile" \
21840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21841 test 0 -eq $? || _lt_function_replace_fail=:
21844 if test x"$_lt_function_replace_fail" = x":"; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21846 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21850 mv -f "$cfgfile" "$ofile" ||
21851 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21855 cat <<_LT_EOF >> "$ofile"
21857 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21859 # The linker used to build libraries.
21862 # How to create reloadable object files.
21863 reload_flag=$lt_reload_flag_CXX
21864 reload_cmds=$lt_reload_cmds_CXX
21866 # Commands used to build an old-style archive.
21867 old_archive_cmds=$lt_old_archive_cmds_CXX
21869 # A language specific compiler.
21870 CC=$lt_compiler_CXX
21872 # Is the compiler the GNU compiler?
21875 # Compiler flag to turn off builtin functions.
21876 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21878 # Additional compiler flags for building library objects.
21879 pic_flag=$lt_lt_prog_compiler_pic_CXX
21881 # How to pass a linker flag through the compiler.
21882 wl=$lt_lt_prog_compiler_wl_CXX
21884 # Compiler flag to prevent dynamic linking.
21885 link_static_flag=$lt_lt_prog_compiler_static_CXX
21887 # Does compiler simultaneously support -c and -o options?
21888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21890 # Whether or not to add -lc for building shared libraries.
21891 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21893 # Whether or not to disallow shared libs when runtime libs are static.
21894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21896 # Compiler flag to allow reflexive dlopens.
21897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21899 # Compiler flag to generate shared objects directly from archives.
21900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21902 # Whether the compiler copes with passing no objects directly.
21903 compiler_needs_object=$lt_compiler_needs_object_CXX
21905 # Create an old-style archive from a shared archive.
21906 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21908 # Create a temporary old-style archive to link instead of a shared archive.
21909 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21911 # Commands used to build a shared archive.
21912 archive_cmds=$lt_archive_cmds_CXX
21913 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21915 # Commands used to build a loadable module if different from building
21916 # a shared archive.
21917 module_cmds=$lt_module_cmds_CXX
21918 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21920 # Whether we are building with GNU ld or not.
21921 with_gnu_ld=$lt_with_gnu_ld_CXX
21923 # Flag that allows shared libraries with undefined symbols to be built.
21924 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21926 # Flag that enforces no undefined symbols.
21927 no_undefined_flag=$lt_no_undefined_flag_CXX
21929 # Flag to hardcode \$libdir into a binary during linking.
21930 # This must work even if \$libdir does not exist
21931 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21933 # Whether we need a single "-rpath" flag with a separated argument.
21934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21937 # DIR into the resulting binary.
21938 hardcode_direct=$hardcode_direct_CXX
21940 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21941 # DIR into the resulting binary and the resulting library dependency is
21942 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21943 # library is relocated.
21944 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21946 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21947 # into the resulting binary.
21948 hardcode_minus_L=$hardcode_minus_L_CXX
21950 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21951 # into the resulting binary.
21952 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21954 # Set to "yes" if building a shared library automatically hardcodes DIR
21955 # into the library and all subsequent libraries and executables linked
21957 hardcode_automatic=$hardcode_automatic_CXX
21959 # Set to yes if linker adds runtime paths of dependent libraries
21960 # to runtime path list.
21961 inherit_rpath=$inherit_rpath_CXX
21963 # Whether libtool must link a program against all its dependency libraries.
21964 link_all_deplibs=$link_all_deplibs_CXX
21966 # Set to "yes" if exported symbols are required.
21967 always_export_symbols=$always_export_symbols_CXX
21969 # The commands to list exported symbols.
21970 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21972 # Symbols that should not be listed in the preloaded symbols.
21973 exclude_expsyms=$lt_exclude_expsyms_CXX
21975 # Symbols that must always be exported.
21976 include_expsyms=$lt_include_expsyms_CXX
21978 # Commands necessary for linking programs (against libraries) with templates.
21979 prelink_cmds=$lt_prelink_cmds_CXX
21981 # Commands necessary for finishing linking programs.
21982 postlink_cmds=$lt_postlink_cmds_CXX
21984 # Specify filename containing input files.
21985 file_list_spec=$lt_file_list_spec_CXX
21987 # How to hardcode a shared library path into an executable.
21988 hardcode_action=$hardcode_action_CXX
21990 # The directories searched by this compiler when creating a shared library.
21991 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21993 # Dependencies to place before and after the objects being linked to
21994 # create a shared library.
21995 predep_objects=$lt_predep_objects_CXX
21996 postdep_objects=$lt_postdep_objects_CXX
21997 predeps=$lt_predeps_CXX
21998 postdeps=$lt_postdeps_CXX
22000 # The library search path used internally by the compiler when linking
22001 # a shared library.
22002 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22004 # ### END LIBTOOL TAG CONFIG: CXX
22008 cat <<_LT_EOF >> "$ofile"
22010 # ### BEGIN LIBTOOL TAG CONFIG: RC
22012 # The linker used to build libraries.
22015 # How to create reloadable object files.
22016 reload_flag=$lt_reload_flag_RC
22017 reload_cmds=$lt_reload_cmds_RC
22019 # Commands used to build an old-style archive.
22020 old_archive_cmds=$lt_old_archive_cmds_RC
22022 # A language specific compiler.
22025 # Is the compiler the GNU compiler?
22028 # Compiler flag to turn off builtin functions.
22029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22031 # Additional compiler flags for building library objects.
22032 pic_flag=$lt_lt_prog_compiler_pic_RC
22034 # How to pass a linker flag through the compiler.
22035 wl=$lt_lt_prog_compiler_wl_RC
22037 # Compiler flag to prevent dynamic linking.
22038 link_static_flag=$lt_lt_prog_compiler_static_RC
22040 # Does compiler simultaneously support -c and -o options?
22041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22043 # Whether or not to add -lc for building shared libraries.
22044 build_libtool_need_lc=$archive_cmds_need_lc_RC
22046 # Whether or not to disallow shared libs when runtime libs are static.
22047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22049 # Compiler flag to allow reflexive dlopens.
22050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22052 # Compiler flag to generate shared objects directly from archives.
22053 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22055 # Whether the compiler copes with passing no objects directly.
22056 compiler_needs_object=$lt_compiler_needs_object_RC
22058 # Create an old-style archive from a shared archive.
22059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22061 # Create a temporary old-style archive to link instead of a shared archive.
22062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22064 # Commands used to build a shared archive.
22065 archive_cmds=$lt_archive_cmds_RC
22066 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22068 # Commands used to build a loadable module if different from building
22069 # a shared archive.
22070 module_cmds=$lt_module_cmds_RC
22071 module_expsym_cmds=$lt_module_expsym_cmds_RC
22073 # Whether we are building with GNU ld or not.
22074 with_gnu_ld=$lt_with_gnu_ld_RC
22076 # Flag that allows shared libraries with undefined symbols to be built.
22077 allow_undefined_flag=$lt_allow_undefined_flag_RC
22079 # Flag that enforces no undefined symbols.
22080 no_undefined_flag=$lt_no_undefined_flag_RC
22082 # Flag to hardcode \$libdir into a binary during linking.
22083 # This must work even if \$libdir does not exist
22084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22086 # Whether we need a single "-rpath" flag with a separated argument.
22087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22090 # DIR into the resulting binary.
22091 hardcode_direct=$hardcode_direct_RC
22093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22094 # DIR into the resulting binary and the resulting library dependency is
22095 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22096 # library is relocated.
22097 hardcode_direct_absolute=$hardcode_direct_absolute_RC
22099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22100 # into the resulting binary.
22101 hardcode_minus_L=$hardcode_minus_L_RC
22103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22104 # into the resulting binary.
22105 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22107 # Set to "yes" if building a shared library automatically hardcodes DIR
22108 # into the library and all subsequent libraries and executables linked
22110 hardcode_automatic=$hardcode_automatic_RC
22112 # Set to yes if linker adds runtime paths of dependent libraries
22113 # to runtime path list.
22114 inherit_rpath=$inherit_rpath_RC
22116 # Whether libtool must link a program against all its dependency libraries.
22117 link_all_deplibs=$link_all_deplibs_RC
22119 # Set to "yes" if exported symbols are required.
22120 always_export_symbols=$always_export_symbols_RC
22122 # The commands to list exported symbols.
22123 export_symbols_cmds=$lt_export_symbols_cmds_RC
22125 # Symbols that should not be listed in the preloaded symbols.
22126 exclude_expsyms=$lt_exclude_expsyms_RC
22128 # Symbols that must always be exported.
22129 include_expsyms=$lt_include_expsyms_RC
22131 # Commands necessary for linking programs (against libraries) with templates.
22132 prelink_cmds=$lt_prelink_cmds_RC
22134 # Commands necessary for finishing linking programs.
22135 postlink_cmds=$lt_postlink_cmds_RC
22137 # Specify filename containing input files.
22138 file_list_spec=$lt_file_list_spec_RC
22140 # How to hardcode a shared library path into an executable.
22141 hardcode_action=$hardcode_action_RC
22143 # The directories searched by this compiler when creating a shared library.
22144 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22146 # Dependencies to place before and after the objects being linked to
22147 # create a shared library.
22148 predep_objects=$lt_predep_objects_RC
22149 postdep_objects=$lt_postdep_objects_RC
22150 predeps=$lt_predeps_RC
22151 postdeps=$lt_postdeps_RC
22153 # The library search path used internally by the compiler when linking
22154 # a shared library.
22155 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22157 # ### END LIBTOOL TAG CONFIG: RC
22161 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
22169 ac_clean_files=$ac_clean_files_save
22171 test $ac_write_fail = 0 ||
22172 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22175 # configure is writing to config.log, and then calls config.status.
22176 # config.status does its own redirection, appending to config.log.
22177 # Unfortunately, on DOS this fails, as config.log is still kept open
22178 # by configure, so config.status won't be able to write to it; its
22179 # output is simply discarded. So we exec the FD to /dev/null,
22180 # effectively closing config.log, so it can be properly (re)opened and
22181 # appended to by config.status. When coming back to configure, we
22182 # need to make the FD available again.
22183 if test "$no_create" != yes; then
22185 ac_config_status_args=
22186 test "$silent" = yes &&
22187 ac_config_status_args="$ac_config_status_args --quiet"
22189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22192 # would make configure fail if this is the last instruction.
22193 $ac_cs_success || as_fn_exit 1
22195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22197 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22202 GPGME v${VERSION} has been configured as follows:
22204 Revision: 052a9e3 (1322)
22207 UI Server: $uiserver
22208 FD Passing: $use_descriptor_passing
22209 GPGME Pthread: $have_pthread
22211 if test "x${gpg_config_script_warn}" != x; then
22213 Mismatches between the target platform and the to
22214 be used libraries have been been detected for:
22215 ${gpg_config_script_warn}
22216 Please check above for warning messages.