2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.8.0.
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.8.0'
594 PACKAGE_STRING='gpgme 1.8.0'
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
642 GPGME_CONFIG_AVAIL_LANG
646 GPGME_CONFIG_API_VERSION
649 USE_DESCRIPTOR_PASSING_FALSE
650 USE_DESCRIPTOR_PASSING_TRUE
663 INSERT__TYPEDEFS_FOR_GPGME_H
664 NEED__FILE_OFFSET_BITS
667 RUN_GPGSM_TESTS_FALSE
671 RUN_GPGCONF_TESTS_FALSE
672 RUN_GPGCONF_TESTS_TRUE
710 HAVE_ANDROID_SYSTEM_FALSE
711 HAVE_ANDROID_SYSTEM_TRUE
712 HAVE_W32CE_SYSTEM_FALSE
713 HAVE_W32CE_SYSTEM_TRUE
714 HAVE_W64_SYSTEM_FALSE
716 HAVE_W32_SYSTEM_FALSE
718 HAVE_DOSISH_SYSTEM_FALSE
719 HAVE_DOSISH_SYSTEM_TRUE
726 HAVE_LD_VERSION_SCRIPT_FALSE
727 HAVE_LD_VERSION_SCRIPT_TRUE
755 LIBQGPGME_LT_REVISION
758 LIBGPGMEPP_LT_REVISION
760 LIBGPGMEPP_LT_CURRENT
801 MAINTAINER_MODE_FALSE
815 INSTALL_STRIP_PROGRAM
857 program_transform_name
870 enable_option_checking
872 enable_maintainer_mode
873 enable_dependency_tracking
885 enable_build_timestamp
891 with_libgpg_error_prefix
892 with_gpg_error_prefix
893 with_libassuan_prefix
896 ac_precious_vars='build_alias
920 # Initialize some variables set by options.
922 ac_init_version=false
923 ac_unrecognized_opts=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name=s,x,x,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1227 -site=* | --site=* | --sit=*)
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures gpgme 1.8.0 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/gpgme]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --program-prefix=PREFIX prepend PREFIX to installed program names
1517 --program-suffix=SUFFIX append SUFFIX to installed program names
1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of gpgme 1.8.0:";;
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-silent-rules less verbose build output (undo: "make V=1")
1537 --disable-silent-rules verbose build output (undo: "make V=0")
1538 --enable-maintainer-mode
1539 enable make rules and dependencies not useful (and
1540 sometimes confusing) to the casual installer
1541 --enable-dependency-tracking
1542 do not reject slow dependency extractors
1543 --disable-dependency-tracking
1544 speeds up one-time build
1545 --enable-static[=PKGS] build static libraries [default=no]
1546 --enable-shared[=PKGS] build shared libraries [default=yes]
1547 --enable-fast-install[=PKGS]
1548 optimize for fast installation [default=yes]
1549 --disable-libtool-lock avoid locking (might break parallel builds)
1550 --disable-glibtest do not try to compile and run a test GLIB program
1551 --enable-w32-glib build GPGME Glib for W32
1552 --enable-fixed-path=PATH
1553 locate binaries only via this PATH
1554 --enable-languages=languages
1555 enable only specific language bindings
1556 --enable-build-timestamp
1557 set an explicit build timestamp for reproducibility.
1558 (default is the current time in ISO-8601 format)
1559 --disable-gpgconf-test disable GPGCONF regression test
1560 --disable-gpg-test disable GPG regression test
1561 --disable-gpgsm-test disable GPGSM regression test
1562 --disable-g13-test disable G13 regression test
1563 --disable-largefile omit support for large files
1564 --disable-fd-passing do not use FD passing
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1572 --with-sysroot=DIR Search for dependent libraries within DIR
1573 (or the compiler's sysroot if not specified).
1574 --with-libgpg-error-prefix=PFX
1575 prefix where GPG Error is installed (optional)
1577 --with-libassuan-prefix=PFX
1578 prefix where LIBASSUAN is installed (optional)
1580 Some influential environment variables:
1581 SYSROOT locate config scripts also below that directory
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
1593 build system C compiler
1594 CXXCPP C++ preprocessor
1595 PKG_CONFIG path to pkg-config utility
1597 C compiler flags for GPGME_QT, overriding pkg-config
1599 linker flags for GPGME_QT, overriding pkg-config
1601 C compiler flags for GPGME_QTTEST, overriding pkg-config
1603 linker flags for GPGME_QTTEST, overriding pkg-config
1604 PYTHON the Python interpreter
1606 The installed Python version to use, for example '2.3'. This
1607 string will be appended to the Python interpreter canonical
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1613 Report bugs to <http://bugs.gnupg.org>.
1618 if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630 # A ".." for each directory in $ac_dir_suffix.
1631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1643 .) # We are building in place.
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
1648 ac_srcdir=$srcdir$ac_dir_suffix;
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for guested configure.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1665 $SHELL "$ac_srcdir/configure" --help=recursive
1667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 cd "$ac_pwd" || { ac_status=$?; break; }
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1676 gpgme configure 1.8.0
1677 generated by GNU Autoconf 2.69
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext
1697 if { { ac_try="$ac_compile"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext; then :
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_c_try_compile
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1770 ac_fn_c_check_header_mongrel ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if eval \${$3+:} false; then :
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1783 # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_header_compiler=yes
1794 ac_header_compiler=no
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808 ac_header_preproc=yes
1810 ac_header_preproc=no
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1816 # So? What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ( $as_echo "## ------------------------------------ ##
1836 ## Report this to http://bugs.gnupg.org ##
1837 ## ------------------------------------ ##"
1838 ) | sed "s/^/$as_me: WARNING: /" >&2
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 eval "$3=\$ac_header_compiler"
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_header_mongrel
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=$ac_status
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1915 if ac_fn_c_try_compile "$LINENO"; then :
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_header_compile
1929 # ac_fn_cxx_try_compile LINENO
1930 # ----------------------------
1931 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_compile ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext
1936 if { { ac_try="$ac_compile"
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_compile") 2>conftest.err
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest.$ac_objext; then :
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_cxx_try_compile
1967 # ac_fn_c_try_link LINENO
1968 # -----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded.
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 rm -f conftest.$ac_objext conftest$ac_exeext
1974 if { { ac_try="$ac_link"
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>conftest.err
1983 if test -s conftest.err; then
1984 grep -v '^ *+' conftest.err >conftest.er1
1985 cat conftest.er1 >&5
1986 mv -f conftest.er1 conftest.err
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && {
1990 test -z "$ac_c_werror_flag" ||
1991 test ! -s conftest.err
1992 } && test -s conftest$ac_exeext && {
1993 test "$cross_compiling" = yes ||
1994 test -x conftest$ac_exeext
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2003 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2004 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2005 # interfere with the next link command; also delete a directory that is
2006 # left behind by Apple's compiler. We do this before executing the actions.
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2011 } # ac_fn_c_try_link
2013 # ac_fn_c_check_func LINENO FUNC VAR
2014 # ----------------------------------
2015 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2016 ac_fn_c_check_func ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2028 #define $2 innocuous_$2
2030 /* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $2 (); below.
2032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2033 <limits.h> exists even on freestanding compilers. */
2036 # include <limits.h>
2038 # include <assert.h>
2043 /* Override any GCC internal prototype to avoid an error.
2044 Use char because int might match the return type of a GCC
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined __stub_$2 || defined __stub___$2
2065 if ac_fn_c_try_link "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext \
2071 conftest$ac_exeext conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_func
2080 # ac_fn_cxx_try_cpp LINENO
2081 # ------------------------
2082 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2083 ac_fn_cxx_try_cpp ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if { { ac_try="$ac_cpp conftest.$ac_ext"
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } > conftest.i && {
2102 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2103 test ! -s conftest.err
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 as_fn_set_status $ac_retval
2115 } # ac_fn_cxx_try_cpp
2117 # ac_fn_cxx_try_link LINENO
2118 # -------------------------
2119 # Try to link conftest.$ac_ext, and return whether this succeeded.
2120 ac_fn_cxx_try_link ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 rm -f conftest.$ac_objext conftest$ac_exeext
2124 if { { ac_try="$ac_link"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_link") 2>conftest.err
2133 if test -s conftest.err; then
2134 grep -v '^ *+' conftest.err >conftest.er1
2135 cat conftest.er1 >&5
2136 mv -f conftest.er1 conftest.err
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && {
2140 test -z "$ac_cxx_werror_flag" ||
2141 test ! -s conftest.err
2142 } && test -s conftest$ac_exeext && {
2143 test "$cross_compiling" = yes ||
2144 test -x conftest$ac_exeext
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2153 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2154 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2155 # interfere with the next link command; also delete a directory that is
2156 # left behind by Apple's compiler. We do this before executing the actions.
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_cxx_try_link
2163 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164 # --------------------------------------------
2165 # Tries to find the compile-time value of EXPR in a program that includes
2166 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 ac_fn_c_compute_int ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if test "$cross_compiling" = yes; then
2172 # Depending upon the size, compute the lo and hi bounds.
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) >= 0)];
2181 return test_array [0];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_hi=$ac_mid; break
2207 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2208 if test $ac_lo -le $ac_mid; then
2212 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) < 0)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_lo=$ac_mid; break
2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252 if test $ac_mid -le $ac_hi; then
2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 # Binary search between lo and hi bounds.
2267 while test "x$ac_lo" != "x$ac_hi"; do
2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_c_try_compile "$LINENO"; then :
2286 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2306 FILE *f = fopen ("conftest.val", "w");
2311 long int i = longval ();
2314 fprintf (f, "%ld", i);
2318 unsigned long int i = ulongval ();
2321 fprintf (f, "%lu", i);
2323 /* Do not output a trailing newline, as this causes \r\n confusion
2324 on some platforms. */
2325 return ferror (f) || fclose (f) != 0;
2331 if ac_fn_c_try_run "$LINENO"; then :
2332 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2337 conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 as_fn_set_status $ac_retval
2344 } # ac_fn_c_compute_int
2346 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2347 # -------------------------------------------
2348 # Tests whether TYPE exists after having included INCLUDES, setting cache
2349 # variable VAR accordingly.
2350 ac_fn_c_check_type ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if eval \${$3+:} false; then :
2356 $as_echo_n "(cached) " >&6
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 } # ac_fn_c_check_type
2400 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2401 # ---------------------------------------------
2402 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2404 ac_fn_c_check_decl ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 as_decl_name=`echo $2|sed 's/ *(.*//'`
2408 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2410 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2411 if eval \${$3+:} false; then :
2412 $as_echo_n "(cached) " >&6
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2420 #ifndef $as_decl_name
2422 (void) $as_decl_use;
2424 (void) $as_decl_name;
2432 if ac_fn_c_try_compile "$LINENO"; then :
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444 } # ac_fn_c_check_decl
2446 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2447 # ----------------------------------------------------
2448 # Tries to find if the field MEMBER exists in type AGGR, after including
2449 # INCLUDES, setting cache variable VAR accordingly.
2450 ac_fn_c_check_member ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2454 $as_echo_n "checking for $2.$3... " >&6; }
2455 if eval \${$4+:} false; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2471 if ac_fn_c_try_compile "$LINENO"; then :
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2481 if (sizeof ac_aggr.$3)
2487 if ac_fn_c_try_compile "$LINENO"; then :
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 } # ac_fn_c_check_member
2502 cat >config.log <<_ACEOF
2503 This file contains any messages produced by compilers while
2504 running configure, to aid debugging if configure makes a mistake.
2506 It was created by gpgme $as_me 1.8.0, which was
2507 generated by GNU Autoconf 2.69. Invocation command line was
2519 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2520 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2521 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2522 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2523 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2525 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2526 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2528 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2529 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2530 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2531 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2532 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2533 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2534 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 $as_echo "PATH: $as_dir"
2559 # Keep a trace of the command line.
2560 # Strip out --no-create and --no-recursion so they do not pile up.
2561 # Strip out --silent because we don't want to record it for future runs.
2562 # Also quote any args containing shell meta-characters.
2563 # Make two passes to allow for proper duplicate-argument suppression.
2567 ac_must_keep_next=false
2573 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2575 | -silent | --silent | --silen | --sile | --sil)
2578 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2583 as_fn_append ac_configure_args1 " '$ac_arg'"
2584 if test $ac_must_keep_next = true; then
2585 ac_must_keep_next=false # Got value, back to normal.
2588 *=* | --config-cache | -C | -disable-* | --disable-* \
2589 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2590 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2591 | -with-* | --with-* | -without-* | --without-* | --x)
2592 case "$ac_configure_args0 " in
2593 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2596 -* ) ac_must_keep_next=true ;;
2599 as_fn_append ac_configure_args " '$ac_arg'"
2604 { ac_configure_args0=; unset ac_configure_args0;}
2605 { ac_configure_args1=; unset ac_configure_args1;}
2607 # When interrupted or exit'd, cleanup temporary files, and complete
2608 # config.log. We remove comments because anyway the quotes in there
2609 # would cause problems or look ugly.
2610 # WARNING: Use '\'' to represent an apostrophe within the trap.
2611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2612 trap 'exit_status=$?
2613 # Save into config.log some information that might help in debugging.
2617 $as_echo "## ---------------- ##
2618 ## Cache variables. ##
2619 ## ---------------- ##"
2621 # The following way of writing the cache mishandles newlines in values,
2623 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2624 eval ac_val=\$$ac_var
2628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2632 _ | IFS | as_nl) ;; #(
2633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2634 *) { eval $ac_var=; unset $ac_var;} ;;
2639 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2640 *${as_nl}ac_space=\ *)
2642 "s/'\''/'\''\\\\'\'''\''/g;
2643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2653 $as_echo "## ----------------- ##
2654 ## Output variables. ##
2655 ## ----------------- ##"
2657 for ac_var in $ac_subst_vars
2659 eval ac_val=\$$ac_var
2661 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2663 $as_echo "$ac_var='\''$ac_val'\''"
2667 if test -n "$ac_subst_files"; then
2668 $as_echo "## ------------------- ##
2669 ## File substitutions. ##
2670 ## ------------------- ##"
2672 for ac_var in $ac_subst_files
2674 eval ac_val=\$$ac_var
2676 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2678 $as_echo "$ac_var='\''$ac_val'\''"
2683 if test -s confdefs.h; then
2684 $as_echo "## ----------- ##
2691 test "$ac_signal" != 0 &&
2692 $as_echo "$as_me: caught signal $ac_signal"
2693 $as_echo "$as_me: exit $exit_status"
2695 rm -f core *.core core.conftest.* &&
2696 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2699 for ac_signal in 1 2 13 15; do
2700 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2705 rm -f -r conftest* confdefs.h
2707 $as_echo "/* confdefs.h */" > confdefs.h
2709 # Predefined preprocessor variables.
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_NAME "$PACKAGE_NAME"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_STRING "$PACKAGE_STRING"
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_URL "$PACKAGE_URL"
2736 # Let the site file select an alternate cache file if it wants to.
2737 # Prefer an explicitly selected file to automatically selected ones.
2740 if test -n "$CONFIG_SITE"; then
2741 # We do not want a PATH search for config.site.
2742 case $CONFIG_SITE in #((
2743 -*) ac_site_file1=./$CONFIG_SITE;;
2744 */*) ac_site_file1=$CONFIG_SITE;;
2745 *) ac_site_file1=./$CONFIG_SITE;;
2747 elif test "x$prefix" != xNONE; then
2748 ac_site_file1=$prefix/share/config.site
2749 ac_site_file2=$prefix/etc/config.site
2751 ac_site_file1=$ac_default_prefix/share/config.site
2752 ac_site_file2=$ac_default_prefix/etc/config.site
2754 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2756 test "x$ac_site_file" = xNONE && continue
2757 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2759 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2760 sed 's/^/| /' "$ac_site_file" >&5
2762 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "failed to load site script $ac_site_file
2765 See \`config.log' for more details" "$LINENO" 5; }
2769 if test -r "$cache_file"; then
2770 # Some versions of bash will fail to source /dev/null (special files
2771 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2772 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2774 $as_echo "$as_me: loading cache $cache_file" >&6;}
2776 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2777 *) . "./$cache_file";;
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2782 $as_echo "$as_me: creating cache $cache_file" >&6;}
2786 as_fn_append ac_header_list " locale.h"
2787 as_fn_append ac_header_list " sys/select.h"
2788 as_fn_append ac_header_list " sys/uio.h"
2789 as_fn_append ac_header_list " argp.h"
2790 as_fn_append ac_header_list " unistd.h"
2791 as_fn_append ac_header_list " sys/time.h"
2792 as_fn_append ac_header_list " sys/types.h"
2793 as_fn_append ac_header_list " sys/stat.h"
2794 # Check that the precious variables saved in the cache have kept the same
2796 ac_cache_corrupted=false
2797 for ac_var in $ac_precious_vars; do
2798 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2799 eval ac_new_set=\$ac_env_${ac_var}_set
2800 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2801 eval ac_new_val=\$ac_env_${ac_var}_value
2802 case $ac_old_set,$ac_new_set in
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2805 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2806 ac_cache_corrupted=: ;;
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2809 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2810 ac_cache_corrupted=: ;;
2813 if test "x$ac_old_val" != "x$ac_new_val"; then
2814 # differences in whitespace do not lead to failure.
2815 ac_old_val_w=`echo x $ac_old_val`
2816 ac_new_val_w=`echo x $ac_new_val`
2817 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2819 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2820 ac_cache_corrupted=:
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2823 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2824 eval $ac_var=\$ac_old_val
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2827 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2829 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2832 # Pass precious variables to config.status.
2833 if test "$ac_new_set" = set; then
2835 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2836 *) ac_arg=$ac_var=$ac_new_val ;;
2838 case " $ac_configure_args " in
2839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2840 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2844 if $ac_cache_corrupted; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2848 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2849 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2851 ## -------------------- ##
2852 ## Main body of script. ##
2853 ## -------------------- ##
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 # LT Version numbers, remember to change them just *before* a release.
2864 # (Code changed: REVISION++)
2865 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2866 # (Interfaces added: AGE++)
2867 # (Interfaces removed/changed: AGE=0)
2869 LIBGPGME_LT_CURRENT=28
2871 LIBGPGME_LT_REVISION=0
2873 # If there is an ABI break in gpgmepp or qgpgme also bump the
2874 # version in IMPORTED_LOCATION in the GpgmeppConfig-w32.cmake.in.in
2876 LIBGPGMEPP_LT_CURRENT=9
2878 LIBGPGMEPP_LT_REVISION=0
2880 LIBQGPGME_LT_CURRENT=8
2882 LIBQGPGME_LT_REVISION=0
2884 # If the API is changed in an incompatible way: increment the next counter.
2885 GPGME_CONFIG_API_VERSION=1
2886 ##############################################
2888 NEED_GPG_ERROR_VERSION=1.17
2889 NEED_LIBASSUAN_API=2
2890 NEED_LIBASSUAN_VERSION=2.0.2
2893 PACKAGE=$PACKAGE_NAME
2894 VERSION=$PACKAGE_VERSION
2901 for ac_dir in build-aux "$srcdir"/build-aux; do
2902 if test -f "$ac_dir/install-sh"; then
2904 ac_install_sh="$ac_aux_dir/install-sh -c"
2906 elif test -f "$ac_dir/install.sh"; then
2908 ac_install_sh="$ac_aux_dir/install.sh -c"
2910 elif test -f "$ac_dir/shtool"; then
2912 ac_install_sh="$ac_aux_dir/shtool install -c"
2916 if test -z "$ac_aux_dir"; then
2917 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2920 # These three variables are undocumented and unsupported,
2921 # and are intended to be withdrawn in a future Autoconf release.
2922 # They can cause serious problems if a builder's source tree is in a directory
2923 # whose full name contains unusual characters.
2924 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2925 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2926 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2931 ac_config_headers="$ac_config_headers config.h"
2933 am__api_version='1.14'
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2942 # AmigaOS /C/install, which installs bootblocks on floppy discs
2943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2946 # OS/2's system install, which has a completely different semantic
2947 # ./install, which can be erroneously created by make from ./install.sh.
2948 # Reject install programs that cannot install multiple files.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2950 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2951 if test -z "$INSTALL"; then
2952 if ${ac_cv_path_install+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 # Account for people who put trailing slashes in PATH elements.
2961 case $as_dir/ in #((
2962 ./ | .// | /[cC]/* | \
2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2967 # OSF1 and SCO ODT 3.0 have their own names for install.
2968 # Don't use installbsd from OSF since it installs stuff as root
2970 for ac_prog in ginstall scoinst install; do
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2973 if test $ac_prog = install &&
2974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # AIX install. It has an incompatible calling convention.
2977 elif test $ac_prog = install &&
2978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # program-specific install script used by HP pwplus--don't use.
2982 rm -rf conftest.one conftest.two conftest.dir
2983 echo one > conftest.one
2984 echo two > conftest.two
2986 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2987 test -s conftest.one && test -s conftest.two &&
2988 test -s conftest.dir/conftest.one &&
2989 test -s conftest.dir/conftest.two
2991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3004 rm -rf conftest.one conftest.two conftest.dir
3007 if test "${ac_cv_path_install+set}" = set; then
3008 INSTALL=$ac_cv_path_install
3010 # As a last resort, use the slow shell script. Don't cache a
3011 # value for INSTALL within a source directory, because that will
3012 # break other packages using the cache if that directory is
3013 # removed, or if the value is a relative name.
3014 INSTALL=$ac_install_sh
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3018 $as_echo "$INSTALL" >&6; }
3020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3021 # It thinks the first close brace ends the variable substitution.
3022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3026 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3029 $as_echo_n "checking whether build environment is sane... " >&6; }
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name. Accept space and tab only in the latter.
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3043 # Do 'set' in a subshell so we don't clobber the current shell's
3044 # arguments. Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3050 for am_try in 1 2; do
3051 echo "timestamp, slept: $am_has_slept" > conftest.file
3052 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3053 if test "$*" = "X"; then
3055 set X `ls -t "$srcdir/configure" conftest.file`
3057 if test "$*" != "X $srcdir/configure conftest.file" \
3058 && test "$*" != "X conftest.file $srcdir/configure"; then
3060 # If neither matched, then we have a broken ls. This can happen
3061 # if, for instance, CONFIG_SHELL is bash and it inherits a
3062 # broken ls alias from the environment. This has actually
3063 # happened. Such a system could not be considered "sane".
3064 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3065 alias in your environment" "$LINENO" 5
3067 if test "$2" = conftest.file || test $am_try -eq 2; then
3074 test "$2" = conftest.file
3080 as_fn_error $? "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 # If we didn't sleep, we still need to ensure time stamps of config.status and
3086 # generated files are strictly newer.
3088 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3095 test "$program_prefix" != NONE &&
3096 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3097 # Use a double $ so make ignores it.
3098 test "$program_suffix" != NONE &&
3099 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3100 # Double any \ or $.
3101 # By default was `s,x,x', remove it if useless.
3102 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3103 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3105 # Expand $ac_aux_dir to an absolute path.
3106 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3108 if test x"${MISSING+set}" != xset; then
3111 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3113 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --is-lightweight"; then
3118 am_missing_run="$MISSING "
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3122 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3125 if test x"${install_sh}" != xset; then
3128 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130 install_sh="\${SHELL} $am_aux_dir/install-sh"
3134 # Installed binaries are usually stripped using 'strip' when the user
3135 # run "make install-strip". However 'strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the 'STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_STRIP+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$STRIP"; then
3148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 STRIP=$ac_cv_prog_STRIP
3168 if test -n "$STRIP"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3170 $as_echo "$STRIP" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$ac_cv_prog_STRIP"; then
3180 # Extract the first word of "strip", so it can be a program name with args.
3181 set dummy strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$ac_ct_STRIP"; then
3188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_STRIP="strip"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3208 if test -n "$ac_ct_STRIP"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3210 $as_echo "$ac_ct_STRIP" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3216 if test "x$ac_ct_STRIP" = x; then
3219 case $cross_compiling:$ac_tool_warned in
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3228 STRIP="$ac_cv_prog_STRIP"
3232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3235 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3236 if test -z "$MKDIR_P"; then
3237 if ${ac_cv_path_mkdir+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3244 test -z "$as_dir" && as_dir=.
3245 for ac_prog in mkdir gmkdir; do
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3248 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3249 'mkdir (GNU coreutils) '* | \
3250 'mkdir (coreutils) '* | \
3251 'mkdir (fileutils) '4.1*)
3252 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3262 test -d ./--version && rmdir ./--version
3263 if test "${ac_cv_path_mkdir+set}" = set; then
3264 MKDIR_P="$ac_cv_path_mkdir -p"
3266 # As a last resort, use the slow shell script. Don't cache a
3267 # value for MKDIR_P within a source directory, because that will
3268 # break other packages using the cache if that directory is
3269 # removed, or if the value is a relative name.
3270 MKDIR_P="$ac_install_sh -d"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3274 $as_echo "$MKDIR_P" >&6; }
3276 for ac_prog in gawk mawk nawk awk
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_AWK+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$AWK"; then
3286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_AWK="$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$AWK"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3308 $as_echo "$AWK" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3315 test -n "$AWK" && break
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3322 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 cat >conftest.make <<\_ACEOF
3328 @echo '@@@%%%=$(MAKE)=@@@%%%'
3330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3333 eval ac_cv_prog_make_${ac_make}_set=yes;;
3335 eval ac_cv_prog_make_${ac_make}_set=no;;
3339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 SET_MAKE="MAKE=${MAKE-make}"
3349 rm -rf .tst 2>/dev/null
3350 mkdir .tst 2>/dev/null
3351 if test -d .tst; then
3356 rmdir .tst 2>/dev/null
3358 # Check whether --enable-silent-rules was given.
3359 if test "${enable_silent_rules+set}" = set; then :
3360 enableval=$enable_silent_rules;
3363 case $enable_silent_rules in # (((
3364 yes) AM_DEFAULT_VERBOSITY=0;;
3365 no) AM_DEFAULT_VERBOSITY=1;;
3366 *) AM_DEFAULT_VERBOSITY=1;;
3368 am_make=${MAKE-make}
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3370 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3371 if ${am_cv_make_support_nested_variables+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if $as_echo 'TRUE=$(BAR$(V))
3380 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3381 am_cv_make_support_nested_variables=yes
3383 am_cv_make_support_nested_variables=no
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3387 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3388 if test $am_cv_make_support_nested_variables = yes; then
3390 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3392 AM_V=$AM_DEFAULT_VERBOSITY
3393 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3397 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3398 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3399 # is not polluted with repeated "-I."
3400 am__isrc=' -I$(srcdir)'
3401 # test to see if srcdir already configured
3402 if test -f $srcdir/config.status; then
3403 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3407 # test whether we have cygpath
3408 if test -z "$CYGPATH_W"; then
3409 if (cygpath --version) >/dev/null 2>/dev/null; then
3410 CYGPATH_W='cygpath -w'
3417 # Define the identity of the package.
3422 cat >>confdefs.h <<_ACEOF
3423 #define PACKAGE "$PACKAGE"
3427 cat >>confdefs.h <<_ACEOF
3428 #define VERSION "$VERSION"
3431 # Some tools Automake needs.
3433 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3436 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3439 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3442 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3445 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3447 # For better backward compatibility. To be removed once Automake 1.9.x
3448 # dies out for good. For more background, see:
3449 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3450 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3451 mkdir_p='$(MKDIR_P)'
3453 # We need awk for the "check" target. The system "awk" is bad on
3455 # Always define AMTAR for backward compatibility. Yes, it's still used
3456 # in the wild :-( We should find a proper way to deprecate it ...
3460 # We'll loop over all known methods to create a tar archive until one works.
3461 _am_tools='gnutar pax cpio none'
3463 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3470 # POSIX will say in a future version that running "rm -f" with no argument
3471 # is OK; and we want to be able to make that assumption in our Makefile
3472 # recipes. So use an aggressive probe to check that the usage we want is
3473 # actually supported "in the wild" to an acceptable degree.
3474 # See automake bug#10828.
3475 # To make any issue more visible, cause the running configure to be aborted
3476 # by default if the 'rm' program in use doesn't match our expectations; the
3477 # user can still override this though.
3478 if rm -f && rm -fr && rm -rf; then : OK; else
3482 Your 'rm' program seems unable to run without file operands specified
3483 on the command line, even when the '-f' option is present. This is contrary
3484 to the behaviour of most rm programs out there, and not conforming with
3485 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3487 Please tell bug-automake@gnu.org about your system, including the value
3488 of your $PATH and any error possibly output before this message. This
3489 can help us improve future automake versions.
3492 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3493 echo 'Configuration will proceed anyway, since you have set the' >&2
3494 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3498 Aborting the configuration process, to ensure you take notice of the issue.
3500 You can download and install GNU coreutils to get an 'rm' implementation
3501 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3503 If you want to complete the configuration process using your problematic
3504 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3505 to "yes", and re-run configure.
3508 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3514 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3515 # Check whether --enable-maintainer-mode was given.
3516 if test "${enable_maintainer_mode+set}" = set; then :
3517 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3519 USE_MAINTAINER_MODE=no
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3523 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3524 if test $USE_MAINTAINER_MODE = yes; then
3525 MAINTAINER_MODE_TRUE=
3526 MAINTAINER_MODE_FALSE='#'
3528 MAINTAINER_MODE_TRUE='#'
3529 MAINTAINER_MODE_FALSE=
3532 MAINT=$MAINTAINER_MODE_TRUE
3535 # Make sure we can run config.sub.
3536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3537 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3540 $as_echo_n "checking build system type... " >&6; }
3541 if ${ac_cv_build+:} false; then :
3542 $as_echo_n "(cached) " >&6
3544 ac_build_alias=$build_alias
3545 test "x$ac_build_alias" = x &&
3546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547 test "x$ac_build_alias" = x &&
3548 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3549 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3554 $as_echo "$ac_cv_build" >&6; }
3555 case $ac_cv_build in
3557 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3560 ac_save_IFS=$IFS; IFS='-'
3566 # Remember, the first character of IFS is used to create $*,
3567 # except with old shells:
3570 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3574 $as_echo_n "checking host system type... " >&6; }
3575 if ${ac_cv_host+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 if test "x$host_alias" = x; then
3579 ac_cv_host=$ac_cv_build
3581 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3582 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3587 $as_echo "$ac_cv_host" >&6; }
3590 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3593 ac_save_IFS=$IFS; IFS='-'
3599 # Remember, the first character of IFS is used to create $*,
3600 # except with old shells:
3603 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3606 # Check whether --enable-silent-rules was given.
3607 if test "${enable_silent_rules+set}" = set; then :
3608 enableval=$enable_silent_rules;
3611 case $enable_silent_rules in # (((
3612 yes) AM_DEFAULT_VERBOSITY=0;;
3613 no) AM_DEFAULT_VERBOSITY=1;;
3614 *) AM_DEFAULT_VERBOSITY=1;;
3616 am_make=${MAKE-make}
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3618 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3619 if ${am_cv_make_support_nested_variables+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 if $as_echo 'TRUE=$(BAR$(V))
3628 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3629 am_cv_make_support_nested_variables=yes
3631 am_cv_make_support_nested_variables=no
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3635 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3636 if test $am_cv_make_support_nested_variables = yes; then
3638 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3640 AM_V=$AM_DEFAULT_VERBOSITY
3641 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3647 # Enable GNU extensions on systems that have them.
3648 DEPDIR="${am__leading_dot}deps"
3650 ac_config_commands="$ac_config_commands depfiles"
3653 am_make=${MAKE-make}
3654 cat > confinc << 'END'
3656 @echo this is the am__doit target
3659 # If we don't find an include directive, just comment out the code.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3661 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3665 # First try GNU make style include.
3666 echo "include confinc" > confmf
3667 # Ignore all kinds of additional output from 'make'.
3668 case `$am_make -s -f confmf 2> /dev/null` in #(
3669 *the\ am__doit\ target*)
3675 # Now try BSD make style include.
3676 if test "$am__include" = "#"; then
3677 echo '.include "confinc"' > confmf
3678 case `$am_make -s -f confmf 2> /dev/null` in #(
3679 *the\ am__doit\ target*)
3680 am__include=.include
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3689 $as_echo "$_am_result" >&6; }
3690 rm -f confinc confmf
3692 # Check whether --enable-dependency-tracking was given.
3693 if test "${enable_dependency_tracking+set}" = set; then :
3694 enableval=$enable_dependency_tracking;
3697 if test "x$enable_dependency_tracking" != xno; then
3698 am_depcomp="$ac_aux_dir/depcomp"
3702 if test "x$enable_dependency_tracking" != xno; then
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 if test -n "$CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3755 if test -z "$ac_cv_prog_CC"; then
3757 # Extract the first word of "gcc", so it can be a program name with args.
3758 set dummy gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_ac_ct_CC="gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3793 if test "x$ac_ct_CC" = x; then
3796 case $cross_compiling:$ac_tool_warned in
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3808 if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_CC="${ac_tool_prefix}cc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test -n "$CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3849 if test -z "$CC"; then
3850 # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869 ac_prog_rejected=yes
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test $ac_prog_rejected = yes; then
3881 # We found a bogon in the path, so make sure we never use it.
3882 set dummy $ac_cv_prog_CC
3884 if test $# != 0; then
3885 # We chose a different compiler from the bogus one.
3886 # However, it has the same basename, so the bogon will be chosen
3887 # first if we set CC to just the basename; use the full file name.
3889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895 if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3905 if test -z "$CC"; then
3906 if test -n "$ac_tool_prefix"; then
3907 for ac_prog in cl.exe
3909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3946 test -n "$CC" && break
3949 if test -z "$CC"; then
3951 for ac_prog in cl.exe
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_ac_ct_CC="$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3990 test -n "$ac_ct_CC" && break
3993 if test "x$ac_ct_CC" = x; then
3996 case $cross_compiling:$ac_tool_warned in
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "no acceptable C compiler found in \$PATH
4012 See \`config.log' for more details" "$LINENO" 5; }
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018 for ac_option in --version -v -V -qversion; do
4019 { { ac_try="$ac_compiler $ac_option >&5"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028 if test -s conftest.err; then
4030 ... rest of stderr output deleted ...
4031 10q' conftest.err >conftest.er1
4032 cat conftest.er1 >&5
4034 rm -f conftest.er1 conftest.err
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 ac_clean_files_save=$ac_clean_files
4051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4052 # Try to create an executable without -o first, disregard a.out.
4053 # It will help us diagnose broken compilers, and finding out an intuition
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4056 $as_echo_n "checking whether the C compiler works... " >&6; }
4057 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4059 # The possible output files:
4060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4063 for ac_file in $ac_files
4066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4072 if { { ac_try="$ac_link_default"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_link_default") 2>&5
4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; }; then :
4083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4086 # so that the user can short-circuit this test for compilers unknown to
4088 for ac_file in $ac_files ''
4090 test -f "$ac_file" || continue
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4095 # We found the default executable, but exeext='' is most
4099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4103 # We set ac_cv_exeext here because the later test for it is not
4104 # safe: cross compilers may not add the suffix if given an `-o'
4105 # argument, so we may need to know it at that point already.
4106 # Even if this section looks crufty: it has the advantage of
4113 test "$ac_cv_exeext" = no && ac_cv_exeext=
4118 if test -z "$ac_file"; then :
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error 77 "C compiler cannot create executables
4127 See \`config.log' for more details" "$LINENO" 5; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4133 $as_echo_n "checking for C compiler default output file name... " >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4135 $as_echo "$ac_file" >&6; }
4136 ac_exeext=$ac_cv_exeext
4138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4141 $as_echo_n "checking for suffix of executables... " >&6; }
4142 if { { ac_try="$ac_link"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_link") 2>&5
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }; then :
4153 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4154 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4155 # work properly (i.e., refer to `conftest.exe'), while it won't with
4157 for ac_file in conftest.exe conftest conftest.*; do
4158 test -f "$ac_file" || continue
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4170 See \`config.log' for more details" "$LINENO" 5; }
4172 rm -f conftest conftest$ac_cv_exeext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4174 $as_echo "$ac_cv_exeext" >&6; }
4176 rm -f conftest.$ac_ext
4177 EXEEXT=$ac_cv_exeext
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4185 FILE *f = fopen ("conftest.out", "w");
4186 return ferror (f) || fclose (f) != 0;
4192 ac_clean_files="$ac_clean_files conftest.out"
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 if test "$cross_compiling" != yes; then
4198 { { ac_try="$ac_link"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_link") 2>&5
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4209 if { ac_try='./conftest$ac_cv_exeext'
4210 { { case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_try") 2>&5
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; }; then
4222 if test "$cross_compiling" = maybe; then
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error $? "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details" "$LINENO" 5; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234 $as_echo "$cross_compiling" >&6; }
4236 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4239 $as_echo_n "checking for suffix of object files... " >&6; }
4240 if ${ac_cv_objext+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4254 rm -f conftest.o conftest.obj
4255 if { { ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_compile") 2>&5
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
4266 for ac_file in conftest.o conftest.obj conftest.*; do
4267 test -f "$ac_file" || continue;
4269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4275 $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "cannot compute suffix of object files: cannot compile
4281 See \`config.log' for more details" "$LINENO" 5; }
4283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4286 $as_echo "$ac_cv_objext" >&6; }
4287 OBJEXT=$ac_cv_objext
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4291 if ${ac_cv_c_compiler_gnu+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4308 if ac_fn_c_try_compile "$LINENO"; then :
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4319 if test $ac_compiler_gnu = yes; then
4324 ac_test_CFLAGS=${CFLAGS+set}
4325 ac_save_CFLAGS=$CFLAGS
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4328 if ${ac_cv_prog_cc_g+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 ac_save_c_werror_flag=$ac_c_werror_flag
4332 ac_c_werror_flag=yes
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4346 if ac_fn_c_try_compile "$LINENO"; then :
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_c_werror_flag=$ac_save_c_werror_flag
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4377 if ac_fn_c_try_compile "$LINENO"; then :
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_c_werror_flag=$ac_save_c_werror_flag
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4388 $as_echo "$ac_cv_prog_cc_g" >&6; }
4389 if test "$ac_test_CFLAGS" = set; then
4390 CFLAGS=$ac_save_CFLAGS
4391 elif test $ac_cv_prog_cc_g = yes; then
4392 if test "$GCC" = yes; then
4398 if test "$GCC" = yes; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4406 if ${ac_cv_prog_cc_c89+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 ac_cv_prog_cc_c89=no
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4417 struct buf { int x; };
4418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419 static char *e (p, i)
4425 static char *f (char * (*g) (char **, int), char **p, ...)
4430 s = g (p, va_arg (v,int));
4435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4436 function prototypes and stuff, but not '\xHH' hex character constants.
4437 These don't provoke an error unfortunately, instead are silently treated
4438 as 'x'. The following induces an error, until -std is added to get
4439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4440 array size at least. It's necessary to write '\x00'==0 to get something
4441 that's true only with -std. */
4442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445 inside strings and character constants. */
4447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4449 int test (int i, double x);
4450 struct s1 {int (*f) (int a);};
4451 struct s2 {int (*f) (double a);};
4452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4466 CC="$ac_save_CC $ac_arg"
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_prog_cc_c89=$ac_arg
4470 rm -f core conftest.err conftest.$ac_objext
4471 test "x$ac_cv_prog_cc_c89" != "xno" && break
4473 rm -f conftest.$ac_ext
4478 case "x$ac_cv_prog_cc_c89" in
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4481 $as_echo "none needed" >&6; } ;;
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4484 $as_echo "unsupported" >&6; } ;;
4486 CC="$CC $ac_cv_prog_cc_c89"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4490 if test "x$ac_cv_prog_cc_c89" != xno; then :
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4506 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4507 if ${am_cv_prog_cc_c_o+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 # Make sure it works both with $CC and with simple cc.
4522 # Following AC_PROG_CC_C_O, we do the test twice because some
4523 # compilers refuse to overwrite an existing .o file with -o,
4524 # though they will create one.
4525 am_cv_prog_cc_c_o=yes
4527 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4528 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } \
4532 && test -f conftest2.$ac_objext; then
4535 am_cv_prog_cc_c_o=no
4539 rm -f core conftest*
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4543 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4544 if test "$am_cv_prog_cc_c_o" != yes; then
4545 # Losing compiler, so override with the script.
4546 # FIXME: It is wrong to rewrite CC.
4547 # But if we don't then we get into trouble of one sort or another.
4548 # A longer-term fix would be to have automake use am__CC in this case,
4549 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4550 CC="$am_aux_dir/compile $CC"
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 depcc="$CC" am_compiler_list=
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567 # We make a subdir and do the tests there. Otherwise we can end up
4568 # making bogus files that we don't know about and never remove. For
4569 # instance it was reported that on HP-UX the gcc test will end up
4570 # making a dummy file named 'D' -- because '-MD' means "put the output
4574 # Copy depcomp to subdir because otherwise we won't find it if we're
4575 # using a relative directory.
4576 cp "$am_depcomp" conftest.dir
4578 # We will build objects and dependencies in a subdirectory because
4579 # it helps to detect inapplicable dependency modes. For instance
4580 # both Tru64's cc and ICC support -MD to output dependencies as a
4581 # side effect of compilation, but ICC will put the dependencies in
4582 # the current directory while Tru64 will put them in the object
4586 am_cv_CC_dependencies_compiler_type=none
4587 if test "$am_compiler_list" = ""; then
4588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4591 case " $depcc " in #(
4592 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4595 for depmode in $am_compiler_list; do
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4604 for i in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607 # Solaris 10 /bin/sh.
4608 echo '/* dummy */' > sub/conftst$i.h
4610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613 # mode. It turns out that the SunPro C++ compiler does not properly
4614 # handle '-M -o', and we need to detect this. Also, some Intel
4615 # versions had trouble with output in subdirs.
4616 am__obj=sub/conftest.${OBJEXT-o}
4617 am__minus_obj="-o $am__obj"
4620 # This depmode causes a compiler race in universal mode.
4621 test "$am__universal" = false || continue
4624 # After this tag, mechanisms are not by side-effect, so they'll
4625 # only be used when explicitly requested.
4626 if test "x$enable_dependency_tracking" = xyes; then
4632 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633 # This compiler won't grok '-c -o', but also, the minuso test has
4634 # not run yet. These depmodes are late enough in the game, and
4635 # so weak that their functioning should not be impacted.
4636 am__obj=conftest.${OBJEXT-o}
4641 if depmode=$depmode \
4642 source=sub/conftest.c object=$am__obj \
4643 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645 >/dev/null 2>conftest.err &&
4646 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650 # icc doesn't choke on unknown options, it will just issue warnings
4651 # or remarks (even with -Werror). So we grep stderr for any message
4652 # that says an option was ignored or not supported.
4653 # When given -MP, icc 7.0 and 7.1 complain thusly:
4654 # icc: Command line warning: ignoring option '-M'; no argument required
4655 # The diagnosis changed in icc 8.0:
4656 # icc: Command line remark: option '-MP' not supported
4657 if (grep 'ignoring option' conftest.err ||
4658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659 am_cv_CC_dependencies_compiler_type=$depmode
4668 am_cv_CC_dependencies_compiler_type=none
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4674 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4677 test "x$enable_dependency_tracking" != xno \
4678 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4680 am__fastdepCC_FALSE='#'
4682 am__fastdepCC_TRUE='#'
4683 am__fastdepCC_FALSE=
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4699 if test -z "$CPP"; then
4700 if ${ac_cv_prog_CPP+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 # Double quotes because CPP needs to be expanded
4704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4707 for ac_c_preproc_warn_flag in '' yes
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4718 # include <limits.h>
4720 # include <assert.h>
4724 if ac_fn_c_try_cpp "$LINENO"; then :
4727 # Broken: fails on valid input.
4730 rm -f conftest.err conftest.i conftest.$ac_ext
4732 # OK, works on sane cases. Now check whether nonexistent headers
4733 # can be detected and how.
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #include <ac_nonexistent.h>
4738 if ac_fn_c_try_cpp "$LINENO"; then :
4739 # Broken: success on invalid input.
4742 # Passes both tests.
4746 rm -f conftest.err conftest.i conftest.$ac_ext
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.i conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then :
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4764 $as_echo "$CPP" >&6; }
4766 for ac_c_preproc_warn_flag in '' yes
4768 # Use a header file that comes with gcc, so configuring glibc
4769 # with a fresh cross-compiler works.
4770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771 # <limits.h> exists even on freestanding compilers.
4772 # On the NeXT, cc -E runs the code through the compiler's parser,
4773 # not just through cpp. "Syntax error" is here to catch this case.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4777 # include <limits.h>
4779 # include <assert.h>
4783 if ac_fn_c_try_cpp "$LINENO"; then :
4786 # Broken: fails on valid input.
4789 rm -f conftest.err conftest.i conftest.$ac_ext
4791 # OK, works on sane cases. Now check whether nonexistent headers
4792 # can be detected and how.
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <ac_nonexistent.h>
4797 if ac_fn_c_try_cpp "$LINENO"; then :
4798 # Broken: success on invalid input.
4801 # Passes both tests.
4805 rm -f conftest.err conftest.i conftest.$ac_ext
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.i conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then :
4813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4816 See \`config.log' for more details" "$LINENO" 5; }
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828 if ${ac_cv_path_GREP+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -z "$GREP"; then
4832 ac_path_GREP_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in grep ggrep; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842 as_fn_executable_p "$ac_path_GREP" || continue
4843 # Check for GNU ac_path_GREP and select it if it is found.
4844 # Check for GNU $ac_path_GREP
4845 case `"$ac_path_GREP" --version 2>&1` in
4847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4850 $as_echo_n 0123456789 >"conftest.in"
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'GREP' >> "conftest.nl"
4857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_GREP="$ac_path_GREP"
4863 ac_path_GREP_max=$ac_count
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871 $ac_path_GREP_found && break 3
4876 if test -z "$ac_cv_path_GREP"; then
4877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880 ac_cv_path_GREP=$GREP
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885 $as_echo "$ac_cv_path_GREP" >&6; }
4886 GREP="$ac_cv_path_GREP"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890 $as_echo_n "checking for egrep... " >&6; }
4891 if ${ac_cv_path_EGREP+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895 then ac_cv_path_EGREP="$GREP -E"
4897 if test -z "$EGREP"; then
4898 ac_path_EGREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in egrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_EGREP" || continue
4909 # Check for GNU ac_path_EGREP and select it if it is found.
4910 # Check for GNU $ac_path_EGREP
4911 case `"$ac_path_EGREP" --version 2>&1` in
4913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4916 $as_echo_n 0123456789 >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'EGREP' >> "conftest.nl"
4923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_EGREP="$ac_path_EGREP"
4929 ac_path_EGREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 $ac_path_EGREP_found && break 3
4942 if test -z "$ac_cv_path_EGREP"; then
4943 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4946 ac_cv_path_EGREP=$EGREP
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952 $as_echo "$ac_cv_path_EGREP" >&6; }
4953 EGREP="$ac_cv_path_EGREP"
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4957 $as_echo_n "checking for ANSI C header files... " >&6; }
4958 if ${ac_cv_header_stdc+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_header_stdc=yes
4979 ac_cv_header_stdc=no
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 if test $ac_cv_header_stdc = yes; then
4984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991 $EGREP "memchr" >/dev/null 2>&1; then :
4994 ac_cv_header_stdc=no
5000 if test $ac_cv_header_stdc = yes; then
5001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008 $EGREP "free" >/dev/null 2>&1; then :
5011 ac_cv_header_stdc=no
5017 if test $ac_cv_header_stdc = yes; then
5018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5019 if test "$cross_compiling" = yes; then :
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5026 #if ((' ' & 0x0FF) == 0x020)
5027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030 # define ISLOWER(c) \
5031 (('a' <= (c) && (c) <= 'i') \
5032 || ('j' <= (c) && (c) <= 'r') \
5033 || ('s' <= (c) && (c) <= 'z'))
5034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5042 for (i = 0; i < 256; i++)
5043 if (XOR (islower (i), ISLOWER (i))
5044 || toupper (i) != TOUPPER (i))
5049 if ac_fn_c_try_run "$LINENO"; then :
5052 ac_cv_header_stdc=no
5054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5055 conftest.$ac_objext conftest.beam conftest.$ac_ext
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5061 $as_echo "$ac_cv_header_stdc" >&6; }
5062 if test $ac_cv_header_stdc = yes; then
5064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5070 inttypes.h stdint.h unistd.h
5072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5076 cat >>confdefs.h <<_ACEOF
5077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5094 if test "$MINIX" = yes; then
5096 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5099 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5102 $as_echo "#define _MINIX 1" >>confdefs.h
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5108 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5109 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5110 $as_echo_n "(cached) " >&6
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5115 # define __EXTENSIONS__ 1
5116 $ac_includes_default
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_safe_to_define___extensions__=yes
5128 ac_cv_safe_to_define___extensions__=no
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5133 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5134 test $ac_cv_safe_to_define___extensions__ = yes &&
5135 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5137 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5139 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5141 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5143 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5151 ac_cpp='$CPP $CPPFLAGS'
5152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_CC+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$CC"; then
5164 ac_cv_prog_CC="$CC" # Let the user override the test.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 if test -n "$CC"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5186 $as_echo "$CC" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5194 if test -z "$ac_cv_prog_CC"; then
5196 # Extract the first word of "gcc", so it can be a program name with args.
5197 set dummy gcc; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -n "$ac_ct_CC"; then
5204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_ac_ct_CC="gcc"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5224 if test -n "$ac_ct_CC"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5226 $as_echo "$ac_ct_CC" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5232 if test "x$ac_ct_CC" = x; then
5235 case $cross_compiling:$ac_tool_warned in
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5247 if test -z "$CC"; then
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}cc; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_CC+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -n "$CC"; then
5257 ac_cv_prog_CC="$CC" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_CC="${ac_tool_prefix}cc"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 if test -n "$CC"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5279 $as_echo "$CC" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5288 if test -z "$CC"; then
5289 # Extract the first word of "cc", so it can be a program name with args.
5290 set dummy cc; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_CC+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$CC"; then
5297 ac_cv_prog_CC="$CC" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5308 ac_prog_rejected=yes
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 if test $ac_prog_rejected = yes; then
5320 # We found a bogon in the path, so make sure we never use it.
5321 set dummy $ac_cv_prog_CC
5323 if test $# != 0; then
5324 # We chose a different compiler from the bogus one.
5325 # However, it has the same basename, so the bogon will be chosen
5326 # first if we set CC to just the basename; use the full file name.
5328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5334 if test -n "$CC"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336 $as_echo "$CC" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5344 if test -z "$CC"; then
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog in cl.exe
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_CC+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 if test -n "$CC"; then
5356 ac_cv_prog_CC="$CC" # Let the user override the test.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 if test -n "$CC"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5378 $as_echo "$CC" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 test -n "$CC" && break
5388 if test -z "$CC"; then
5390 for ac_prog in cl.exe
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5397 $as_echo_n "(cached) " >&6
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_CC="$ac_prog"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420 if test -n "$ac_ct_CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5422 $as_echo "$ac_ct_CC" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5429 test -n "$ac_ct_CC" && break
5432 if test "x$ac_ct_CC" = x; then
5435 case $cross_compiling:$ac_tool_warned in
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error $? "no acceptable C compiler found in \$PATH
5451 See \`config.log' for more details" "$LINENO" 5; }
5453 # Provide some information about the compiler.
5454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5457 for ac_option in --version -v -V -qversion; do
5458 { { ac_try="$ac_compiler $ac_option >&5"
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464 $as_echo "$ac_try_echo"; } >&5
5465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5467 if test -s conftest.err; then
5469 ... rest of stderr output deleted ...
5470 10q' conftest.err >conftest.er1
5471 cat conftest.er1 >&5
5473 rm -f conftest.er1 conftest.err
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5480 if ${ac_cv_c_compiler_gnu+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5497 if ac_fn_c_try_compile "$LINENO"; then :
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5508 if test $ac_compiler_gnu = yes; then
5513 ac_test_CFLAGS=${CFLAGS+set}
5514 ac_save_CFLAGS=$CFLAGS
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5517 if ${ac_cv_prog_cc_g+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 ac_save_c_werror_flag=$ac_c_werror_flag
5521 ac_c_werror_flag=yes
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5535 if ac_fn_c_try_compile "$LINENO"; then :
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5550 if ac_fn_c_try_compile "$LINENO"; then :
5553 ac_c_werror_flag=$ac_save_c_werror_flag
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5566 if ac_fn_c_try_compile "$LINENO"; then :
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5577 $as_echo "$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5587 if test "$GCC" = yes; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5595 if ${ac_cv_prog_cc_c89+:} false; then :
5596 $as_echo_n "(cached) " >&6
5598 ac_cv_prog_cc_c89=no
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5606 struct buf { int x; };
5607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5608 static char *e (p, i)
5614 static char *f (char * (*g) (char **, int), char **p, ...)
5619 s = g (p, va_arg (v,int));
5624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5625 function prototypes and stuff, but not '\xHH' hex character constants.
5626 These don't provoke an error unfortunately, instead are silently treated
5627 as 'x'. The following induces an error, until -std is added to get
5628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5629 array size at least. It's necessary to write '\x00'==0 to get something
5630 that's true only with -std. */
5631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5634 inside strings and character constants. */
5636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5638 int test (int i, double x);
5639 struct s1 {int (*f) (int a);};
5640 struct s2 {int (*f) (double a);};
5641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5655 CC="$ac_save_CC $ac_arg"
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 ac_cv_prog_cc_c89=$ac_arg
5659 rm -f core conftest.err conftest.$ac_objext
5660 test "x$ac_cv_prog_cc_c89" != "xno" && break
5662 rm -f conftest.$ac_ext
5667 case "x$ac_cv_prog_cc_c89" in
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5670 $as_echo "none needed" >&6; } ;;
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5673 $as_echo "unsupported" >&6; } ;;
5675 CC="$CC $ac_cv_prog_cc_c89"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5677 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5679 if test "x$ac_cv_prog_cc_c89" != xno; then :
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5695 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5696 if ${am_cv_prog_cc_c_o+:} false; then :
5697 $as_echo_n "(cached) " >&6
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5710 # Make sure it works both with $CC and with simple cc.
5711 # Following AC_PROG_CC_C_O, we do the test twice because some
5712 # compilers refuse to overwrite an existing .o file with -o,
5713 # though they will create one.
5714 am_cv_prog_cc_c_o=yes
5716 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5717 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } \
5721 && test -f conftest2.$ac_objext; then
5724 am_cv_prog_cc_c_o=no
5728 rm -f core conftest*
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5732 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5733 if test "$am_cv_prog_cc_c_o" != yes; then
5734 # Losing compiler, so override with the script.
5735 # FIXME: It is wrong to rewrite CC.
5736 # But if we don't then we get into trouble of one sort or another.
5737 # A longer-term fix would be to have automake use am__CC in this case,
5738 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5739 CC="$am_aux_dir/compile $CC"
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 depcc="$CC" am_compiler_list=
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5751 $as_echo_n "checking dependency style of $depcc... " >&6; }
5752 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756 # We make a subdir and do the tests there. Otherwise we can end up
5757 # making bogus files that we don't know about and never remove. For
5758 # instance it was reported that on HP-UX the gcc test will end up
5759 # making a dummy file named 'D' -- because '-MD' means "put the output
5763 # Copy depcomp to subdir because otherwise we won't find it if we're
5764 # using a relative directory.
5765 cp "$am_depcomp" conftest.dir
5767 # We will build objects and dependencies in a subdirectory because
5768 # it helps to detect inapplicable dependency modes. For instance
5769 # both Tru64's cc and ICC support -MD to output dependencies as a
5770 # side effect of compilation, but ICC will put the dependencies in
5771 # the current directory while Tru64 will put them in the object
5775 am_cv_CC_dependencies_compiler_type=none
5776 if test "$am_compiler_list" = ""; then
5777 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5780 case " $depcc " in #(
5781 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5784 for depmode in $am_compiler_list; do
5785 # Setup a source with many dependencies, because some compilers
5786 # like to wrap large dependency lists on column 80 (with \), and
5787 # we should not choose a depcomp mode which is confused by this.
5789 # We need to recreate these files for each test, as the compiler may
5790 # overwrite some of them when testing with obscure command lines.
5791 # This happens at least with the AIX C compiler.
5793 for i in 1 2 3 4 5 6; do
5794 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5795 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5796 # Solaris 10 /bin/sh.
5797 echo '/* dummy */' > sub/conftst$i.h
5799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5801 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5802 # mode. It turns out that the SunPro C++ compiler does not properly
5803 # handle '-M -o', and we need to detect this. Also, some Intel
5804 # versions had trouble with output in subdirs.
5805 am__obj=sub/conftest.${OBJEXT-o}
5806 am__minus_obj="-o $am__obj"
5809 # This depmode causes a compiler race in universal mode.
5810 test "$am__universal" = false || continue
5813 # After this tag, mechanisms are not by side-effect, so they'll
5814 # only be used when explicitly requested.
5815 if test "x$enable_dependency_tracking" = xyes; then
5821 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5822 # This compiler won't grok '-c -o', but also, the minuso test has
5823 # not run yet. These depmodes are late enough in the game, and
5824 # so weak that their functioning should not be impacted.
5825 am__obj=conftest.${OBJEXT-o}
5830 if depmode=$depmode \
5831 source=sub/conftest.c object=$am__obj \
5832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5833 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5834 >/dev/null 2>conftest.err &&
5835 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5836 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5837 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5838 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5839 # icc doesn't choke on unknown options, it will just issue warnings
5840 # or remarks (even with -Werror). So we grep stderr for any message
5841 # that says an option was ignored or not supported.
5842 # When given -MP, icc 7.0 and 7.1 complain thusly:
5843 # icc: Command line warning: ignoring option '-M'; no argument required
5844 # The diagnosis changed in icc 8.0:
5845 # icc: Command line remark: option '-MP' not supported
5846 if (grep 'ignoring option' conftest.err ||
5847 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5848 am_cv_CC_dependencies_compiler_type=$depmode
5857 am_cv_CC_dependencies_compiler_type=none
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5862 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5863 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5866 test "x$enable_dependency_tracking" != xno \
5867 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5869 am__fastdepCC_FALSE='#'
5871 am__fastdepCC_TRUE='#'
5872 am__fastdepCC_FALSE=
5877 ac_cpp='$CXXCPP $CPPFLAGS'
5878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5881 if test -z "$CXX"; then
5882 if test -n "$CCC"; then
5885 if test -n "$ac_tool_prefix"; then
5886 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_prog_CXX+:} false; then :
5893 $as_echo_n "(cached) " >&6
5895 if test -n "$CXX"; then
5896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 if test -n "$CXX"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5918 $as_echo "$CXX" >&6; }
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5925 test -n "$CXX" && break
5928 if test -z "$CXX"; then
5930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5932 # Extract the first word of "$ac_prog", so it can be a program name with args.
5933 set dummy $ac_prog; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -n "$ac_ct_CXX"; then
5940 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_ac_ct_CXX="$ac_prog"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5960 if test -n "$ac_ct_CXX"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5962 $as_echo "$ac_ct_CXX" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5969 test -n "$ac_ct_CXX" && break
5972 if test "x$ac_ct_CXX" = x; then
5975 case $cross_compiling:$ac_tool_warned in
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979 ac_tool_warned=yes ;;
5987 # Provide some information about the compiler.
5988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5991 for ac_option in --version -v -V -qversion; do
5992 { { ac_try="$ac_compiler $ac_option >&5"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5998 $as_echo "$ac_try_echo"; } >&5
5999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6001 if test -s conftest.err; then
6003 ... rest of stderr output deleted ...
6004 10q' conftest.err >conftest.er1
6005 cat conftest.er1 >&5
6007 rm -f conftest.er1 conftest.err
6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6013 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6014 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6031 if ac_fn_cxx_try_compile "$LINENO"; then :
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6041 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6042 if test $ac_compiler_gnu = yes; then
6047 ac_test_CXXFLAGS=${CXXFLAGS+set}
6048 ac_save_CXXFLAGS=$CXXFLAGS
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6050 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6051 if ${ac_cv_prog_cxx_g+:} false; then :
6052 $as_echo_n "(cached) " >&6
6054 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6055 ac_cxx_werror_flag=yes
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6069 if ac_fn_cxx_try_compile "$LINENO"; then :
6070 ac_cv_prog_cxx_g=yes
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6084 if ac_fn_cxx_try_compile "$LINENO"; then :
6087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6100 if ac_fn_cxx_try_compile "$LINENO"; then :
6101 ac_cv_prog_cxx_g=yes
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6111 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6112 if test "$ac_test_CXXFLAGS" = set; then
6113 CXXFLAGS=$ac_save_CXXFLAGS
6114 elif test $ac_cv_prog_cxx_g = yes; then
6115 if test "$GXX" = yes; then
6121 if test "$GXX" = yes; then
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133 depcc="$CXX" am_compiler_list=
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6136 $as_echo_n "checking dependency style of $depcc... " >&6; }
6137 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6141 # We make a subdir and do the tests there. Otherwise we can end up
6142 # making bogus files that we don't know about and never remove. For
6143 # instance it was reported that on HP-UX the gcc test will end up
6144 # making a dummy file named 'D' -- because '-MD' means "put the output
6148 # Copy depcomp to subdir because otherwise we won't find it if we're
6149 # using a relative directory.
6150 cp "$am_depcomp" conftest.dir
6152 # We will build objects and dependencies in a subdirectory because
6153 # it helps to detect inapplicable dependency modes. For instance
6154 # both Tru64's cc and ICC support -MD to output dependencies as a
6155 # side effect of compilation, but ICC will put the dependencies in
6156 # the current directory while Tru64 will put them in the object
6160 am_cv_CXX_dependencies_compiler_type=none
6161 if test "$am_compiler_list" = ""; then
6162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6165 case " $depcc " in #(
6166 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6169 for depmode in $am_compiler_list; do
6170 # Setup a source with many dependencies, because some compilers
6171 # like to wrap large dependency lists on column 80 (with \), and
6172 # we should not choose a depcomp mode which is confused by this.
6174 # We need to recreate these files for each test, as the compiler may
6175 # overwrite some of them when testing with obscure command lines.
6176 # This happens at least with the AIX C compiler.
6178 for i in 1 2 3 4 5 6; do
6179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6180 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6181 # Solaris 10 /bin/sh.
6182 echo '/* dummy */' > sub/conftst$i.h
6184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6186 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6187 # mode. It turns out that the SunPro C++ compiler does not properly
6188 # handle '-M -o', and we need to detect this. Also, some Intel
6189 # versions had trouble with output in subdirs.
6190 am__obj=sub/conftest.${OBJEXT-o}
6191 am__minus_obj="-o $am__obj"
6194 # This depmode causes a compiler race in universal mode.
6195 test "$am__universal" = false || continue
6198 # After this tag, mechanisms are not by side-effect, so they'll
6199 # only be used when explicitly requested.
6200 if test "x$enable_dependency_tracking" = xyes; then
6206 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6207 # This compiler won't grok '-c -o', but also, the minuso test has
6208 # not run yet. These depmodes are late enough in the game, and
6209 # so weak that their functioning should not be impacted.
6210 am__obj=conftest.${OBJEXT-o}
6215 if depmode=$depmode \
6216 source=sub/conftest.c object=$am__obj \
6217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6218 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6219 >/dev/null 2>conftest.err &&
6220 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6222 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6224 # icc doesn't choke on unknown options, it will just issue warnings
6225 # or remarks (even with -Werror). So we grep stderr for any message
6226 # that says an option was ignored or not supported.
6227 # When given -MP, icc 7.0 and 7.1 complain thusly:
6228 # icc: Command line warning: ignoring option '-M'; no argument required
6229 # The diagnosis changed in icc 8.0:
6230 # icc: Command line remark: option '-MP' not supported
6231 if (grep 'ignoring option' conftest.err ||
6232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6233 am_cv_CXX_dependencies_compiler_type=$depmode
6242 am_cv_CXX_dependencies_compiler_type=none
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6247 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6248 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6251 test "x$enable_dependency_tracking" != xno \
6252 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6253 am__fastdepCXX_TRUE=
6254 am__fastdepCXX_FALSE='#'
6256 am__fastdepCXX_TRUE='#'
6257 am__fastdepCXX_FALSE=
6262 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6263 for ac_prog in gitlog-to-changelog
6265 # Extract the first word of "$ac_prog", so it can be a program name with args.
6266 set dummy $ac_prog; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6270 $as_echo_n "(cached) " >&6
6272 if test -n "$GITLOG_TO_CHANGELOG"; then
6273 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6293 if test -n "$GITLOG_TO_CHANGELOG"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6295 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6302 test -n "$GITLOG_TO_CHANGELOG" && break
6304 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6323 cat >>confdefs.h <<_ACEOF
6324 #define PACKAGE "$PACKAGE"
6328 cat >>confdefs.h <<_ACEOF
6329 #define VERSION "$VERSION"
6332 VERSION_NUMBER=0x010800
6335 # We need to compile and run a program on the build machine. A
6336 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6337 # the AC archive is broken for autoconf 2.57. Given that there is no
6338 # newer version of that macro, we assume that it is also broken for
6339 # autoconf 2.61 and thus we use a simple but usually sufficient
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6342 $as_echo_n "checking for cc for build... " >&6; }
6343 if test "$cross_compiling" = "yes"; then
6344 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6346 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6349 $as_echo "$CC_FOR_BUILD" >&6; }
6353 # Don't default to build static libs.
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6358 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6363 macro_version='2.4.2'
6364 macro_revision='1.3337'
6378 ltmain="$ac_aux_dir/ltmain.sh"
6380 # Backslashify metacharacters that are still active within
6381 # double-quoted strings.
6382 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6384 # Same as above, but do not quote variable references.
6385 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6387 # Sed substitution to delay expansion of an escaped shell variable in a
6388 # double_quote_subst'ed string.
6389 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6391 # Sed substitution to delay expansion of an escaped single quote.
6392 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6394 # Sed substitution to avoid accidental globbing in evaled expressions
6395 no_glob_subst='s/\*/\\\*/g'
6397 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6398 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6399 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6402 $as_echo_n "checking how to print strings... " >&6; }
6403 # Test print first, because it will be a builtin if present.
6404 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6405 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6407 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6410 # Use this function as a fallback that always works.
6411 func_fallback_echo ()
6413 eval 'cat <<_LTECHO_EOF
6417 ECHO='func_fallback_echo'
6420 # func_echo_all arg...
6421 # Invoke $ECHO with all args, space-separated.
6428 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6429 $as_echo "printf" >&6; } ;;
6430 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6431 $as_echo "print -r" >&6; } ;;
6432 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6433 $as_echo "cat" >&6; } ;;
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6450 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6451 if ${ac_cv_path_SED+:} false; then :
6452 $as_echo_n "(cached) " >&6
6454 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6455 for ac_i in 1 2 3 4 5 6 7; do
6456 ac_script="$ac_script$as_nl$ac_script"
6458 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6459 { ac_script=; unset ac_script;}
6460 if test -z "$SED"; then
6461 ac_path_SED_found=false
6462 # Loop through the user's path and test for each of PROGNAME-LIST
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_prog in sed gsed; do
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6471 as_fn_executable_p "$ac_path_SED" || continue
6472 # Check for GNU ac_path_SED and select it if it is found.
6473 # Check for GNU $ac_path_SED
6474 case `"$ac_path_SED" --version 2>&1` in
6476 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6479 $as_echo_n 0123456789 >"conftest.in"
6482 cat "conftest.in" "conftest.in" >"conftest.tmp"
6483 mv "conftest.tmp" "conftest.in"
6484 cp "conftest.in" "conftest.nl"
6485 $as_echo '' >> "conftest.nl"
6486 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6488 as_fn_arith $ac_count + 1 && ac_count=$as_val
6489 if test $ac_count -gt ${ac_path_SED_max-0}; then
6490 # Best one so far, save it but keep looking for a better one
6491 ac_cv_path_SED="$ac_path_SED"
6492 ac_path_SED_max=$ac_count
6494 # 10*(2^10) chars as input seems more than enough
6495 test $ac_count -gt 10 && break
6497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6500 $ac_path_SED_found && break 3
6505 if test -z "$ac_cv_path_SED"; then
6506 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6514 $as_echo "$ac_cv_path_SED" >&6; }
6515 SED="$ac_cv_path_SED"
6518 test -z "$SED" && SED=sed
6519 Xsed="$SED -e 1s/^X//"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6532 $as_echo_n "checking for fgrep... " >&6; }
6533 if ${ac_cv_path_FGREP+:} false; then :
6534 $as_echo_n "(cached) " >&6
6536 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6537 then ac_cv_path_FGREP="$GREP -F"
6539 if test -z "$FGREP"; then
6540 ac_path_FGREP_found=false
6541 # Loop through the user's path and test for each of PROGNAME-LIST
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6546 test -z "$as_dir" && as_dir=.
6547 for ac_prog in fgrep; do
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6550 as_fn_executable_p "$ac_path_FGREP" || continue
6551 # Check for GNU ac_path_FGREP and select it if it is found.
6552 # Check for GNU $ac_path_FGREP
6553 case `"$ac_path_FGREP" --version 2>&1` in
6555 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6558 $as_echo_n 0123456789 >"conftest.in"
6561 cat "conftest.in" "conftest.in" >"conftest.tmp"
6562 mv "conftest.tmp" "conftest.in"
6563 cp "conftest.in" "conftest.nl"
6564 $as_echo 'FGREP' >> "conftest.nl"
6565 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6567 as_fn_arith $ac_count + 1 && ac_count=$as_val
6568 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6569 # Best one so far, save it but keep looking for a better one
6570 ac_cv_path_FGREP="$ac_path_FGREP"
6571 ac_path_FGREP_max=$ac_count
6573 # 10*(2^10) chars as input seems more than enough
6574 test $ac_count -gt 10 && break
6576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6579 $ac_path_FGREP_found && break 3
6584 if test -z "$ac_cv_path_FGREP"; then
6585 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6588 ac_cv_path_FGREP=$FGREP
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6594 $as_echo "$ac_cv_path_FGREP" >&6; }
6595 FGREP="$ac_cv_path_FGREP"
6598 test -z "$GREP" && GREP=grep
6618 # Check whether --with-gnu-ld was given.
6619 if test "${with_gnu_ld+set}" = set; then :
6620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6626 if test "$GCC" = yes; then
6627 # Check if gcc -print-prog-name=ld gives a path.
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6629 $as_echo_n "checking for ld used by $CC... " >&6; }
6632 # gcc leaves a trailing carriage return which upsets mingw
6633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6638 # Accept absolute paths.
6640 re_direlt='/[^/][^/]*/\.\./'
6641 # Canonicalize the pathname of ld
6642 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6643 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6644 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6646 test -z "$LD" && LD="$ac_prog"
6649 # If it fails, then pretend we aren't using GCC.
6653 # If it is relative, then search for the first ld in PATH.
6657 elif test "$with_gnu_ld" = yes; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6659 $as_echo_n "checking for GNU ld... " >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6662 $as_echo_n "checking for non-GNU ld... " >&6; }
6664 if ${lt_cv_path_LD+:} false; then :
6665 $as_echo_n "(cached) " >&6
6667 if test -z "$LD"; then
6668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6669 for ac_dir in $PATH; do
6671 test -z "$ac_dir" && ac_dir=.
6672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6673 lt_cv_path_LD="$ac_dir/$ac_prog"
6674 # Check to see if the program is GNU ld. I'd rather use --version,
6675 # but apparently some variants of GNU ld only accept -v.
6676 # Break only if it was the GNU/non-GNU ld that we prefer.
6677 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6678 *GNU* | *'with BFD'*)
6679 test "$with_gnu_ld" != no && break
6682 test "$with_gnu_ld" != yes && break
6689 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6694 if test -n "$LD"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6696 $as_echo "$LD" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6701 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6703 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6704 if ${lt_cv_prog_gnu_ld+:} false; then :
6705 $as_echo_n "(cached) " >&6
6707 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6708 case `$LD -v 2>&1 </dev/null` in
6709 *GNU* | *'with BFD'*)
6710 lt_cv_prog_gnu_ld=yes
6713 lt_cv_prog_gnu_ld=no
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6718 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6719 with_gnu_ld=$lt_cv_prog_gnu_ld
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6730 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6731 if ${lt_cv_path_NM+:} false; then :
6732 $as_echo_n "(cached) " >&6
6734 if test -n "$NM"; then
6735 # Let the user override the test.
6738 lt_nm_to_check="${ac_tool_prefix}nm"
6739 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6740 lt_nm_to_check="$lt_nm_to_check nm"
6742 for lt_tmp_nm in $lt_nm_to_check; do
6743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6744 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6746 test -z "$ac_dir" && ac_dir=.
6747 tmp_nm="$ac_dir/$lt_tmp_nm"
6748 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6749 # Check to see if the nm accepts a BSD-compat flag.
6750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6751 # nm: unknown option "B" ignored
6752 # Tru64's nm complains that /dev/null is an invalid object file
6753 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6754 */dev/null* | *'Invalid file or object type'*)
6755 lt_cv_path_NM="$tmp_nm -B"
6759 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6761 lt_cv_path_NM="$tmp_nm -p"
6765 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6766 continue # so that we can try to find one that supports BSD flags
6775 : ${lt_cv_path_NM=no}
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6779 $as_echo "$lt_cv_path_NM" >&6; }
6780 if test "$lt_cv_path_NM" != "no"; then
6783 # Didn't find any BSD compatible name lister, look for dumpbin.
6784 if test -n "$DUMPBIN"; then :
6785 # Let the user override the test.
6787 if test -n "$ac_tool_prefix"; then
6788 for ac_prog in dumpbin "link -dump"
6790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_DUMPBIN+:} false; then :
6795 $as_echo_n "(cached) " >&6
6797 if test -n "$DUMPBIN"; then
6798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 DUMPBIN=$ac_cv_prog_DUMPBIN
6818 if test -n "$DUMPBIN"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6820 $as_echo "$DUMPBIN" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6827 test -n "$DUMPBIN" && break
6830 if test -z "$DUMPBIN"; then
6831 ac_ct_DUMPBIN=$DUMPBIN
6832 for ac_prog in dumpbin "link -dump"
6834 # Extract the first word of "$ac_prog", so it can be a program name with args.
6835 set dummy $ac_prog; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6839 $as_echo_n "(cached) " >&6
6841 if test -n "$ac_ct_DUMPBIN"; then
6842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6862 if test -n "$ac_ct_DUMPBIN"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6864 $as_echo "$ac_ct_DUMPBIN" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6871 test -n "$ac_ct_DUMPBIN" && break
6874 if test "x$ac_ct_DUMPBIN" = x; then
6877 case $cross_compiling:$ac_tool_warned in
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6883 DUMPBIN=$ac_ct_DUMPBIN
6887 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6889 DUMPBIN="$DUMPBIN -symbols"
6897 if test "$DUMPBIN" != ":"; then
6901 test -z "$NM" && NM=nm
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6909 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6910 if ${lt_cv_nm_interface+:} false; then :
6911 $as_echo_n "(cached) " >&6
6913 lt_cv_nm_interface="BSD nm"
6914 echo "int some_variable = 0;" > conftest.$ac_ext
6915 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6916 (eval "$ac_compile" 2>conftest.err)
6917 cat conftest.err >&5
6918 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6919 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6920 cat conftest.err >&5
6921 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6922 cat conftest.out >&5
6923 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6924 lt_cv_nm_interface="MS dumpbin"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6929 $as_echo "$lt_cv_nm_interface" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6932 $as_echo_n "checking whether ln -s works... " >&6; }
6934 if test "$LN_S" = "ln -s"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6936 $as_echo "yes" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6939 $as_echo "no, using $LN_S" >&6; }
6942 # find the maximum length of command line arguments
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6944 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6945 if ${lt_cv_sys_max_cmd_len+:} false; then :
6946 $as_echo_n "(cached) " >&6
6953 # On DJGPP, this test can blow up pretty badly due to problems in libc
6954 # (any single argument exceeding 2000 bytes causes a buffer overrun
6955 # during glob expansion). Even if it were fixed, the result of this
6956 # check would be larger than it should be.
6957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6961 # Under GNU Hurd, this test is not required because there is
6962 # no limit to the length of command line arguments.
6963 # Libtool will interpret -1 as no limit whatsoever
6964 lt_cv_sys_max_cmd_len=-1;
6967 cygwin* | mingw* | cegcc*)
6968 # On Win9x/ME, this test blows up -- it succeeds, but takes
6969 # about 5 minutes as the teststring grows exponentially.
6970 # Worse, since 9x/ME are not pre-emptively multitasking,
6971 # you end up with a "frozen" computer, even though with patience
6972 # the test eventually succeeds (with a max line length of 256k).
6973 # Instead, let's just punt: use the minimum linelength reported by
6974 # all of the supported platforms: 8192 (on NT/2K/XP).
6975 lt_cv_sys_max_cmd_len=8192;
6979 # On MiNT this can take a long time and run out of memory.
6980 lt_cv_sys_max_cmd_len=8192;
6984 # On AmigaOS with pdksh, this test takes hours, literally.
6985 # So we just punt and use a minimum line length of 8192.
6986 lt_cv_sys_max_cmd_len=8192;
6989 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6990 # This has been around since 386BSD, at least. Likely further.
6991 if test -x /sbin/sysctl; then
6992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6993 elif test -x /usr/sbin/sysctl; then
6994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6998 # And add a safety zone
6999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7005 lt_cv_sys_max_cmd_len=196608
7009 # The test takes a long time on OS/2.
7010 lt_cv_sys_max_cmd_len=8192
7014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7016 # nice to cause kernel panics so lets avoid the loop below.
7017 # First set a reasonable default.
7018 lt_cv_sys_max_cmd_len=16384
7020 if test -x /sbin/sysconfig; then
7021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7027 lt_cv_sys_max_cmd_len=102400
7029 sysv5* | sco5v6* | sysv4.2uw2*)
7030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7031 if test -n "$kargmax"; then
7032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7034 lt_cv_sys_max_cmd_len=32768
7038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7039 if test -n "$lt_cv_sys_max_cmd_len"; then
7040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7043 # Make teststring a little bigger before we do anything with it.
7044 # a 1K string should be a reasonable start.
7045 for i in 1 2 3 4 5 6 7 8 ; do
7046 teststring=$teststring$teststring
7048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7049 # If test is not a shell built-in, we'll probably end up computing a
7050 # maximum length that is only half of the actual maximum length, but
7052 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7053 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7054 test $i != 17 # 1/2 MB should be enough
7057 teststring=$teststring$teststring
7059 # Only check the string length outside the loop.
7060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7062 # Add a significant safety factor because C++ compilers can tack on
7063 # massive amounts of additional arguments before passing them to the
7064 # linker. It appears as though 1/2 is a usable value.
7065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7072 if test -n $lt_cv_sys_max_cmd_len ; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7077 $as_echo "none" >&6; }
7079 max_cmd_len=$lt_cv_sys_max_cmd_len
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7091 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7092 # Try some XSI features
7095 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7097 && eval 'test $(( 1 + 1 )) -eq 2 \
7098 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7101 $as_echo "$xsi_shell" >&6; }
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7105 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7109 && lt_shell_append=yes
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7111 $as_echo "$lt_shell_append" >&6; }
7114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7124 # test EBCDIC or ASCII
7125 case `echo X|tr X '\101'` in
7126 A) # ASCII based system
7127 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7128 lt_SP2NL='tr \040 \012'
7129 lt_NL2SP='tr \015\012 \040\040'
7131 *) # EBCDIC based system
7132 lt_SP2NL='tr \100 \n'
7133 lt_NL2SP='tr \r\n \100\100'
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7146 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7147 if ${lt_cv_to_host_file_cmd+:} false; then :
7148 $as_echo_n "(cached) " >&6
7153 *-*-mingw* ) # actually msys
7154 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7157 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7159 * ) # otherwise, assume *nix
7160 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7166 *-*-mingw* ) # actually msys
7167 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7170 lt_cv_to_host_file_cmd=func_convert_file_noop
7172 * ) # otherwise, assume *nix
7173 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7177 * ) # unhandled hosts (and "normal" native builds)
7178 lt_cv_to_host_file_cmd=func_convert_file_noop
7184 to_host_file_cmd=$lt_cv_to_host_file_cmd
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7186 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7193 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7194 if ${lt_cv_to_tool_file_cmd+:} false; then :
7195 $as_echo_n "(cached) " >&6
7197 #assume ordinary cross tools, or native build.
7198 lt_cv_to_tool_file_cmd=func_convert_file_noop
7202 *-*-mingw* ) # actually msys
7203 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7213 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7220 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7221 if ${lt_cv_ld_reload_flag+:} false; then :
7222 $as_echo_n "(cached) " >&6
7224 lt_cv_ld_reload_flag='-r'
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7227 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7228 reload_flag=$lt_cv_ld_reload_flag
7229 case $reload_flag in
7231 *) reload_flag=" $reload_flag" ;;
7233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7235 cygwin* | mingw* | pw32* | cegcc*)
7236 if test "$GCC" != yes; then
7241 if test "$GCC" = yes; then
7242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7257 if test -n "$ac_tool_prefix"; then
7258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_OBJDUMP+:} false; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$OBJDUMP"; then
7266 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 OBJDUMP=$ac_cv_prog_OBJDUMP
7286 if test -n "$OBJDUMP"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7288 $as_echo "$OBJDUMP" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7296 if test -z "$ac_cv_prog_OBJDUMP"; then
7297 ac_ct_OBJDUMP=$OBJDUMP
7298 # Extract the first word of "objdump", so it can be a program name with args.
7299 set dummy objdump; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 if test -n "$ac_ct_OBJDUMP"; then
7306 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7326 if test -n "$ac_ct_OBJDUMP"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7328 $as_echo "$ac_ct_OBJDUMP" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7334 if test "x$ac_ct_OBJDUMP" = x; then
7337 case $cross_compiling:$ac_tool_warned in
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7343 OBJDUMP=$ac_ct_OBJDUMP
7346 OBJDUMP="$ac_cv_prog_OBJDUMP"
7349 test -z "$OBJDUMP" && OBJDUMP=objdump
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7357 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7358 if ${lt_cv_deplibs_check_method+:} false; then :
7359 $as_echo_n "(cached) " >&6
7361 lt_cv_file_magic_cmd='$MAGIC_CMD'
7362 lt_cv_file_magic_test_file=
7363 lt_cv_deplibs_check_method='unknown'
7364 # Need to set the preceding variable on all platforms that support
7365 # interlibrary dependencies.
7366 # 'none' -- dependencies not supported.
7367 # `unknown' -- same as none, but documents that we really don't know.
7368 # 'pass_all' -- all dependencies passed with no checks.
7369 # 'test_compile' -- check by making test program.
7370 # 'file_magic [[regex]]' -- check by looking for files in library path
7371 # which responds to the $file_magic_cmd with a given extended regex.
7372 # If you have `file' or equivalent on your system and you're not sure
7373 # whether `pass_all' will *always* work, you probably want this one.
7377 lt_cv_deplibs_check_method=pass_all
7381 lt_cv_deplibs_check_method=pass_all
7385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7386 lt_cv_file_magic_cmd='/usr/bin/file -L'
7387 lt_cv_file_magic_test_file=/shlib/libc.so
7391 # func_win32_libid is a shell function defined in ltmain.sh
7392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7393 lt_cv_file_magic_cmd='func_win32_libid'
7397 # Base MSYS/MinGW do not provide the 'file' command needed by
7398 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7399 # unless we find 'file', for example because we are cross-compiling.
7400 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7401 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7403 lt_cv_file_magic_cmd='func_win32_libid'
7405 # Keep this pattern in sync with the one in func_win32_libid.
7406 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7407 lt_cv_file_magic_cmd='$OBJDUMP -f'
7412 # use the weaker test based on 'objdump'. See mingw*.
7413 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7414 lt_cv_file_magic_cmd='$OBJDUMP -f'
7417 darwin* | rhapsody*)
7418 lt_cv_deplibs_check_method=pass_all
7421 freebsd* | dragonfly*)
7422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7425 # Not sure whether the presence of OpenBSD here was a mistake.
7426 # Let's accept both of them until this is cleared up.
7427 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7428 lt_cv_file_magic_cmd=/usr/bin/file
7429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7433 lt_cv_deplibs_check_method=pass_all
7438 lt_cv_deplibs_check_method=pass_all
7442 lt_cv_deplibs_check_method=pass_all
7445 hpux10.20* | hpux11*)
7446 lt_cv_file_magic_cmd=/usr/bin/file
7449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7450 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7453 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]'
7454 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7458 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7464 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7468 irix5* | irix6* | nonstopux*)
7470 *-32|*"-32 ") libmagic=32-bit;;
7471 *-n32|*"-n32 ") libmagic=N32;;
7472 *-64|*"-64 ") libmagic=64-bit;;
7473 *) libmagic=never-match;;
7475 lt_cv_deplibs_check_method=pass_all
7478 # This must be glibc/ELF.
7479 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7480 lt_cv_deplibs_check_method=pass_all
7483 netbsd* | netbsdelf*-gnu)
7484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7493 lt_cv_file_magic_cmd=/usr/bin/file
7494 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7498 lt_cv_deplibs_check_method=pass_all
7502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7509 osf3* | osf4* | osf5*)
7510 lt_cv_deplibs_check_method=pass_all
7514 lt_cv_deplibs_check_method=pass_all
7518 lt_cv_deplibs_check_method=pass_all
7521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7522 lt_cv_deplibs_check_method=pass_all
7526 case $host_vendor in
7528 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]'
7529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7532 lt_cv_deplibs_check_method=pass_all
7535 lt_cv_file_magic_cmd='/bin/file'
7536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7539 lt_cv_file_magic_cmd='/bin/file'
7540 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7541 lt_cv_file_magic_test_file=/lib/libc.so
7544 lt_cv_deplibs_check_method=pass_all
7547 lt_cv_deplibs_check_method=pass_all
7553 lt_cv_deplibs_check_method=pass_all
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7559 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7563 if test "$build" = "$host"; then
7566 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7569 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7575 file_magic_cmd=$lt_cv_file_magic_cmd
7576 deplibs_check_method=$lt_cv_deplibs_check_method
7577 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_DLLTOOL+:} false; then :
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$DLLTOOL"; then
7609 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 DLLTOOL=$ac_cv_prog_DLLTOOL
7629 if test -n "$DLLTOOL"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7631 $as_echo "$DLLTOOL" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7639 if test -z "$ac_cv_prog_DLLTOOL"; then
7640 ac_ct_DLLTOOL=$DLLTOOL
7641 # Extract the first word of "dlltool", so it can be a program name with args.
7642 set dummy dlltool; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7646 $as_echo_n "(cached) " >&6
7648 if test -n "$ac_ct_DLLTOOL"; then
7649 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7669 if test -n "$ac_ct_DLLTOOL"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7671 $as_echo "$ac_ct_DLLTOOL" >&6; }
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7677 if test "x$ac_ct_DLLTOOL" = x; then
7680 case $cross_compiling:$ac_tool_warned in
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7686 DLLTOOL=$ac_ct_DLLTOOL
7689 DLLTOOL="$ac_cv_prog_DLLTOOL"
7692 test -z "$DLLTOOL" && DLLTOOL=dlltool
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7701 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7702 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 lt_cv_sharedlib_from_linklib_cmd='unknown'
7708 cygwin* | mingw* | pw32* | cegcc*)
7709 # two different shell functions defined in ltmain.sh
7710 # decide which to use based on capabilities of $DLLTOOL
7711 case `$DLLTOOL --help 2>&1` in
7712 *--identify-strict*)
7713 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7716 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7721 # fallback: assume linklib IS sharedlib
7722 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7728 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7729 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7730 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7738 if test -n "$ac_tool_prefix"; then
7741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_AR+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 if test -n "$AR"; then
7749 ac_cv_prog_AR="$AR" # Let the user override the test.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 if test -n "$AR"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7771 $as_echo "$AR" >&6; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7778 test -n "$AR" && break
7781 if test -z "$AR"; then
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$ac_ct_AR"; then
7793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_ac_ct_AR="$ac_prog"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7813 if test -n "$ac_ct_AR"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7815 $as_echo "$ac_ct_AR" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7822 test -n "$ac_ct_AR" && break
7825 if test "x$ac_ct_AR" = x; then
7828 case $cross_compiling:$ac_tool_warned in
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7852 $as_echo_n "checking for archiver @FILE support... " >&6; }
7853 if ${lt_cv_ar_at_file+:} false; then :
7854 $as_echo_n "(cached) " >&6
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7868 if ac_fn_c_try_compile "$LINENO"; then :
7869 echo conftest.$ac_objext > conftest.lst
7870 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7872 (eval $lt_ar_try) 2>&5
7874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; }
7876 if test "$ac_status" -eq 0; then
7877 # Ensure the archiver fails upon bogus file names.
7878 rm -f conftest.$ac_objext libconftest.a
7879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7880 (eval $lt_ar_try) 2>&5
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }
7884 if test "$ac_status" -ne 0; then
7888 rm -f conftest.* libconftest.a
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7895 $as_echo "$lt_cv_ar_at_file" >&6; }
7897 if test "x$lt_cv_ar_at_file" = xno; then
7900 archiver_list_spec=$lt_cv_ar_at_file
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}strip; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_STRIP+:} false; then :
7915 $as_echo_n "(cached) " >&6
7917 if test -n "$STRIP"; then
7918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 STRIP=$ac_cv_prog_STRIP
7938 if test -n "$STRIP"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7940 $as_echo "$STRIP" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7948 if test -z "$ac_cv_prog_STRIP"; then
7950 # Extract the first word of "strip", so it can be a program name with args.
7951 set dummy strip; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 if test -n "$ac_ct_STRIP"; then
7958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_ac_ct_STRIP="strip"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7978 if test -n "$ac_ct_STRIP"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7980 $as_echo "$ac_ct_STRIP" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7986 if test "x$ac_ct_STRIP" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7998 STRIP="$ac_cv_prog_STRIP"
8001 test -z "$STRIP" && STRIP=:
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_RANLIB+:} false; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$RANLIB"; then
8017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 RANLIB=$ac_cv_prog_RANLIB
8037 if test -n "$RANLIB"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8039 $as_echo "$RANLIB" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8047 if test -z "$ac_cv_prog_RANLIB"; then
8048 ac_ct_RANLIB=$RANLIB
8049 # Extract the first word of "ranlib", so it can be a program name with args.
8050 set dummy ranlib; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$ac_ct_RANLIB"; then
8057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_ac_ct_RANLIB="ranlib"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8077 if test -n "$ac_ct_RANLIB"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8079 $as_echo "$ac_ct_RANLIB" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8085 if test "x$ac_ct_RANLIB" = x; then
8088 case $cross_compiling:$ac_tool_warned in
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8094 RANLIB=$ac_ct_RANLIB
8097 RANLIB="$ac_cv_prog_RANLIB"
8100 test -z "$RANLIB" && RANLIB=:
8107 # Determine commands to create old-style static archives.
8108 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8109 old_postinstall_cmds='chmod 644 $oldlib'
8110 old_postuninstall_cmds=
8112 if test -n "$RANLIB"; then
8115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8121 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8126 lock_old_archive_extraction=yes ;;
8128 lock_old_archive_extraction=no ;;
8169 # If no C compiler was specified, use CC.
8172 # If no C compiler flags were specified, use CFLAGS.
8173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8175 # Allow CC to be a program name with arguments.
8179 # Check for command to grab the raw symbol name followed by C symbol from nm.
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8181 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8182 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8183 $as_echo_n "(cached) " >&6
8186 # These are sane defaults that work on at least a few old systems.
8187 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8189 # Character class describing NM global symbol codes.
8190 symcode='[BCDEGRST]'
8192 # Regexp to match symbols that can be accessed directly from C.
8193 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8195 # Define system-specific variables.
8200 cygwin* | mingw* | pw32* | cegcc*)
8201 symcode='[ABCDGISTW]'
8204 if test "$host_cpu" = ia64; then
8205 symcode='[ABCDEGRST]'
8209 symcode='[BCDEGRST]'
8212 symcode='[BCDEGQRST]'
8223 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8231 # If we're using GNU nm, then use its standard symbol codes.
8232 case `$NM -V 2>&1` in
8233 *GNU* | *'with BFD'*)
8234 symcode='[ABCDGIRSTW]' ;;
8237 # Transform an extracted symbol line into a proper C declaration.
8238 # Some systems (esp. on ia64) link data and code symbols differently,
8239 # so use this general approach.
8240 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8242 # Transform an extracted symbol line into symbol name and symbol address
8243 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8244 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'"
8246 # Handle CRLF in mingw tool chain
8250 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8254 # Try without a prefix underscore, then with it.
8255 for ac_symprfx in "" "_"; do
8257 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8258 symxfrm="\\1 $ac_symprfx\\2 \\2"
8260 # Write the raw and C identifiers.
8261 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8262 # Fake it for dumpbin and say T for any non-static function
8263 # and D for any global variable.
8264 # Also find C++ and __fastcall symbols from MSVC++,
8265 # which start with @ or ?.
8266 lt_cv_sys_global_symbol_pipe="$AWK '"\
8267 " {last_section=section; section=\$ 3};"\
8268 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8269 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8270 " \$ 0!~/External *\|/{next};"\
8271 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8272 " {if(hide[section]) next};"\
8273 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8274 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8275 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8276 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8277 " ' prfx=^$ac_symprfx"
8279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8281 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8283 # Check to see that the pipe works correctly.
8287 cat > conftest.$ac_ext <<_LT_EOF
8292 void nm_test_func(void);
8293 void nm_test_func(void){}
8297 int main(){nm_test_var='a';nm_test_func();return(0);}
8300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8301 (eval $ac_compile) 2>&5
8303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304 test $ac_status = 0; }; then
8305 # Now try to grab the symbols.
8307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8308 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8311 test $ac_status = 0; } && test -s "$nlist"; then
8312 # Try sorting and uniquifying the output.
8313 if sort "$nlist" | uniq > "$nlist"T; then
8314 mv -f "$nlist"T "$nlist"
8319 # Make sure that we snagged all the symbols we need.
8320 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8321 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8322 cat <<_LT_EOF > conftest.$ac_ext
8323 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8324 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8325 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8326 relocations are performed -- see ld's documentation on pseudo-relocs. */
8327 # define LT_DLSYM_CONST
8328 #elif defined(__osf__)
8329 /* This system does not cope well with relocations in const data. */
8330 # define LT_DLSYM_CONST
8332 # define LT_DLSYM_CONST const
8340 # Now generate the symbol file.
8341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8343 cat <<_LT_EOF >> conftest.$ac_ext
8345 /* The mapping between symbol names and symbols. */
8346 LT_DLSYM_CONST struct {
8350 lt__PROGRAM__LTX_preloaded_symbols[] =
8352 { "@PROGRAM@", (void *) 0 },
8354 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8355 cat <<\_LT_EOF >> conftest.$ac_ext
8359 /* This works around a problem in FreeBSD linker */
8360 #ifdef FREEBSD_WORKAROUND
8361 static const void *lt_preloaded_setup() {
8362 return lt__PROGRAM__LTX_preloaded_symbols;
8370 # Now try linking the two files.
8371 mv conftest.$ac_objext conftstm.$ac_objext
8372 lt_globsym_save_LIBS=$LIBS
8373 lt_globsym_save_CFLAGS=$CFLAGS
8374 LIBS="conftstm.$ac_objext"
8375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8377 (eval $ac_link) 2>&5
8379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8380 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8383 LIBS=$lt_globsym_save_LIBS
8384 CFLAGS=$lt_globsym_save_CFLAGS
8386 echo "cannot find nm_test_func in $nlist" >&5
8389 echo "cannot find nm_test_var in $nlist" >&5
8392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8395 echo "$progname: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8398 rm -rf conftest* conftst*
8400 # Do not use the global_symbol_pipe unless it works.
8401 if test "$pipe_works" = yes; then
8404 lt_cv_sys_global_symbol_pipe=
8410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8411 lt_cv_sys_global_symbol_to_cdecl=
8413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8415 $as_echo "failed" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8418 $as_echo "ok" >&6; }
8421 # Response file support.
8422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8423 nm_file_list_spec='@'
8424 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8425 nm_file_list_spec='@'
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8455 $as_echo_n "checking for sysroot... " >&6; }
8457 # Check whether --with-sysroot was given.
8458 if test "${with_sysroot+set}" = set; then :
8459 withval=$with_sysroot;
8466 case ${with_sysroot} in #(
8468 if test "$GCC" = yes; then
8469 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8473 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8479 $as_echo "${with_sysroot}" >&6; }
8480 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8485 $as_echo "${lt_sysroot:-no}" >&6; }
8491 # Check whether --enable-libtool-lock was given.
8492 if test "${enable_libtool_lock+set}" = set; then :
8493 enableval=$enable_libtool_lock;
8496 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8498 # Some flags need to be propagated to the compiler or linker for good
8502 # Find out which ABI we are using.
8503 echo 'int i;' > conftest.$ac_ext
8504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8505 (eval $ac_compile) 2>&5
8507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8508 test $ac_status = 0; }; then
8509 case `/usr/bin/file conftest.$ac_objext` in
8521 # Find out which ABI we are using.
8522 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8524 (eval $ac_compile) 2>&5
8526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8527 test $ac_status = 0; }; then
8528 if test "$lt_cv_prog_gnu_ld" = yes; then
8529 case `/usr/bin/file conftest.$ac_objext` in
8531 LD="${LD-ld} -melf32bsmip"
8534 LD="${LD-ld} -melf32bmipn32"
8537 LD="${LD-ld} -melf64bmip"
8541 case `/usr/bin/file conftest.$ac_objext` in
8557 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8558 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8559 # Find out which ABI we are using.
8560 echo 'int i;' > conftest.$ac_ext
8561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8562 (eval $ac_compile) 2>&5
8564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8565 test $ac_status = 0; }; then
8566 case `/usr/bin/file conftest.o` in
8569 x86_64-*kfreebsd*-gnu)
8570 LD="${LD-ld} -m elf_i386_fbsd"
8573 LD="${LD-ld} -m elf_i386"
8575 ppc64-*linux*|powerpc64-*linux*)
8576 LD="${LD-ld} -m elf32ppclinux"
8579 LD="${LD-ld} -m elf_s390"
8582 LD="${LD-ld} -m elf32_sparc"
8588 x86_64-*kfreebsd*-gnu)
8589 LD="${LD-ld} -m elf_x86_64_fbsd"
8592 LD="${LD-ld} -m elf_x86_64"
8594 ppc*-*linux*|powerpc*-*linux*)
8595 LD="${LD-ld} -m elf64ppc"
8597 s390*-*linux*|s390*-*tpf*)
8598 LD="${LD-ld} -m elf64_s390"
8601 LD="${LD-ld} -m elf64_sparc"
8611 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8612 SAVE_CFLAGS="$CFLAGS"
8613 CFLAGS="$CFLAGS -belf"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8615 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8616 if ${lt_cv_cc_needs_belf+:} false; then :
8617 $as_echo_n "(cached) " >&6
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8636 if ac_fn_c_try_link "$LINENO"; then :
8637 lt_cv_cc_needs_belf=yes
8639 lt_cv_cc_needs_belf=no
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8651 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8652 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8653 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8654 CFLAGS="$SAVE_CFLAGS"
8658 # Find out which ABI we are using.
8659 echo 'int i;' > conftest.$ac_ext
8660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8661 (eval $ac_compile) 2>&5
8663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8664 test $ac_status = 0; }; then
8665 case `/usr/bin/file conftest.o` in
8667 case $lt_cv_prog_gnu_ld in
8671 LD="${LD-ld} -m elf_x86_64"
8674 LD="${LD-ld} -m elf64_sparc"
8677 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8678 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8683 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8695 need_locks="$enable_libtool_lock"
8697 if test -n "$ac_tool_prefix"; then
8698 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8699 set dummy ${ac_tool_prefix}mt; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8703 $as_echo_n "(cached) " >&6
8705 if test -n "$MANIFEST_TOOL"; then
8706 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8715 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8726 if test -n "$MANIFEST_TOOL"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8728 $as_echo "$MANIFEST_TOOL" >&6; }
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8736 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8737 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8738 # Extract the first word of "mt", so it can be a program name with args.
8739 set dummy mt; ac_word=$2
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741 $as_echo_n "checking for $ac_word... " >&6; }
8742 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8743 $as_echo_n "(cached) " >&6
8745 if test -n "$ac_ct_MANIFEST_TOOL"; then
8746 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8766 if test -n "$ac_ct_MANIFEST_TOOL"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8768 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8774 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8777 case $cross_compiling:$ac_tool_warned in
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8781 ac_tool_warned=yes ;;
8783 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8786 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8789 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8791 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8792 if ${lt_cv_path_mainfest_tool+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 lt_cv_path_mainfest_tool=no
8796 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8797 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8798 cat conftest.err >&5
8799 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8800 lt_cv_path_mainfest_tool=yes
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8805 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8806 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8816 rhapsody* | darwin*)
8817 if test -n "$ac_tool_prefix"; then
8818 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8819 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$DSYMUTIL"; then
8826 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8846 if test -n "$DSYMUTIL"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8848 $as_echo "$DSYMUTIL" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8856 if test -z "$ac_cv_prog_DSYMUTIL"; then
8857 ac_ct_DSYMUTIL=$DSYMUTIL
8858 # Extract the first word of "dsymutil", so it can be a program name with args.
8859 set dummy dsymutil; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 if test -n "$ac_ct_DSYMUTIL"; then
8866 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8886 if test -n "$ac_ct_DSYMUTIL"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8888 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8894 if test "x$ac_ct_DSYMUTIL" = x; then
8897 case $cross_compiling:$ac_tool_warned in
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8901 ac_tool_warned=yes ;;
8903 DSYMUTIL=$ac_ct_DSYMUTIL
8906 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8909 if test -n "$ac_tool_prefix"; then
8910 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8911 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_NMEDIT+:} false; then :
8915 $as_echo_n "(cached) " >&6
8917 if test -n "$NMEDIT"; then
8918 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 NMEDIT=$ac_cv_prog_NMEDIT
8938 if test -n "$NMEDIT"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8940 $as_echo "$NMEDIT" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8948 if test -z "$ac_cv_prog_NMEDIT"; then
8949 ac_ct_NMEDIT=$NMEDIT
8950 # Extract the first word of "nmedit", so it can be a program name with args.
8951 set dummy nmedit; ac_word=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8955 $as_echo_n "(cached) " >&6
8957 if test -n "$ac_ct_NMEDIT"; then
8958 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8978 if test -n "$ac_ct_NMEDIT"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8980 $as_echo "$ac_ct_NMEDIT" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8986 if test "x$ac_ct_NMEDIT" = x; then
8989 case $cross_compiling:$ac_tool_warned in
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8993 ac_tool_warned=yes ;;
8995 NMEDIT=$ac_ct_NMEDIT
8998 NMEDIT="$ac_cv_prog_NMEDIT"
9001 if test -n "$ac_tool_prefix"; then
9002 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if ${ac_cv_prog_LIPO+:} false; then :
9007 $as_echo_n "(cached) " >&6
9009 if test -n "$LIPO"; then
9010 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9019 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 LIPO=$ac_cv_prog_LIPO
9030 if test -n "$LIPO"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9032 $as_echo "$LIPO" >&6; }
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9040 if test -z "$ac_cv_prog_LIPO"; then
9042 # Extract the first word of "lipo", so it can be a program name with args.
9043 set dummy lipo; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 if test -n "$ac_ct_LIPO"; then
9050 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_ac_ct_LIPO="lipo"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9070 if test -n "$ac_ct_LIPO"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9072 $as_echo "$ac_ct_LIPO" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9078 if test "x$ac_ct_LIPO" = x; then
9081 case $cross_compiling:$ac_tool_warned in
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9085 ac_tool_warned=yes ;;
9090 LIPO="$ac_cv_prog_LIPO"
9093 if test -n "$ac_tool_prefix"; then
9094 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9095 set dummy ${ac_tool_prefix}otool; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_prog_OTOOL+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 if test -n "$OTOOL"; then
9102 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 OTOOL=$ac_cv_prog_OTOOL
9122 if test -n "$OTOOL"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9124 $as_echo "$OTOOL" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9132 if test -z "$ac_cv_prog_OTOOL"; then
9134 # Extract the first word of "otool", so it can be a program name with args.
9135 set dummy otool; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$ac_ct_OTOOL"; then
9142 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_ac_ct_OTOOL="otool"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9162 if test -n "$ac_ct_OTOOL"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9164 $as_echo "$ac_ct_OTOOL" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9170 if test "x$ac_ct_OTOOL" = x; then
9173 case $cross_compiling:$ac_tool_warned in
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9177 ac_tool_warned=yes ;;
9182 OTOOL="$ac_cv_prog_OTOOL"
9185 if test -n "$ac_tool_prefix"; then
9186 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_OTOOL64+:} false; then :
9191 $as_echo_n "(cached) " >&6
9193 if test -n "$OTOOL64"; then
9194 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 OTOOL64=$ac_cv_prog_OTOOL64
9214 if test -n "$OTOOL64"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9216 $as_echo "$OTOOL64" >&6; }
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9224 if test -z "$ac_cv_prog_OTOOL64"; then
9225 ac_ct_OTOOL64=$OTOOL64
9226 # Extract the first word of "otool64", so it can be a program name with args.
9227 set dummy otool64; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$ac_ct_OTOOL64"; then
9234 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_ac_ct_OTOOL64="otool64"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9254 if test -n "$ac_ct_OTOOL64"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9256 $as_echo "$ac_ct_OTOOL64" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9262 if test "x$ac_ct_OTOOL64" = x; then
9265 case $cross_compiling:$ac_tool_warned in
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9271 OTOOL64=$ac_ct_OTOOL64
9274 OTOOL64="$ac_cv_prog_OTOOL64"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9304 $as_echo_n "checking for -single_module linker flag... " >&6; }
9305 if ${lt_cv_apple_cc_single_mod+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 lt_cv_apple_cc_single_mod=no
9309 if test -z "${LT_MULTI_MODULE}"; then
9310 # By default we will add the -single_module flag. You can override
9311 # by either setting the environment variable LT_MULTI_MODULE
9312 # non-empty at configure time, or by adding -multi_module to the
9314 rm -rf libconftest.dylib*
9315 echo "int foo(void){return 1;}" > conftest.c
9316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9317 -dynamiclib -Wl,-single_module conftest.c" >&5
9318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9321 # If there is a non-empty error log, and "single_module"
9322 # appears in it, assume the flag caused a linker warning
9323 if test -s conftest.err && $GREP single_module conftest.err; then
9324 cat conftest.err >&5
9325 # Otherwise, if the output was created with a 0 exit code from
9326 # the compiler, it worked.
9327 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9328 lt_cv_apple_cc_single_mod=yes
9330 cat conftest.err >&5
9332 rm -rf libconftest.dylib*
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9337 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9340 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9341 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9342 $as_echo_n "(cached) " >&6
9344 lt_cv_ld_exported_symbols_list=no
9345 save_LDFLAGS=$LDFLAGS
9346 echo "_main" > conftest.sym
9347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9359 if ac_fn_c_try_link "$LINENO"; then :
9360 lt_cv_ld_exported_symbols_list=yes
9362 lt_cv_ld_exported_symbols_list=no
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 LDFLAGS="$save_LDFLAGS"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9373 $as_echo_n "checking for -force_load linker flag... " >&6; }
9374 if ${lt_cv_ld_force_load+:} false; then :
9375 $as_echo_n "(cached) " >&6
9377 lt_cv_ld_force_load=no
9378 cat > conftest.c << _LT_EOF
9379 int forced_loaded() { return 2;}
9381 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9382 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9383 echo "$AR cru libconftest.a conftest.o" >&5
9384 $AR cru libconftest.a conftest.o 2>&5
9385 echo "$RANLIB libconftest.a" >&5
9386 $RANLIB libconftest.a 2>&5
9387 cat > conftest.c << _LT_EOF
9388 int main() { return 0;}
9390 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9391 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9393 if test -s conftest.err && $GREP force_load conftest.err; then
9394 cat conftest.err >&5
9395 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9396 lt_cv_ld_force_load=yes
9398 cat conftest.err >&5
9400 rm -f conftest.err libconftest.a conftest conftest.c
9401 rm -rf conftest.dSYM
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9405 $as_echo "$lt_cv_ld_force_load" >&6; }
9407 rhapsody* | darwin1.[012])
9408 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9410 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9411 darwin*) # darwin 5.x on
9412 # if running on 10.5 or later, the deployment target defaults
9413 # to the OS version, if on x86, and 10.4, the deployment
9414 # target defaults to 10.4. Don't you love it?
9415 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9416 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9417 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9419 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9421 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9425 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9426 _lt_dar_single_mod='$single_module'
9428 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9429 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9431 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9433 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9434 _lt_dsymutil='~$DSYMUTIL $lib || :'
9441 for ac_header in dlfcn.h
9443 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9445 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9446 cat >>confdefs.h <<_ACEOF
9447 #define HAVE_DLFCN_H 1
9457 func_stripname_cnf ()
9460 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9461 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9463 } # func_stripname_cnf
9470 enable_win32_dll=yes
9473 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9474 if test -n "$ac_tool_prefix"; then
9475 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9476 set dummy ${ac_tool_prefix}as; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_AS+:} false; then :
9480 $as_echo_n "(cached) " >&6
9482 if test -n "$AS"; then
9483 ac_cv_prog_AS="$AS" # Let the user override the test.
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_AS="${ac_tool_prefix}as"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 if test -n "$AS"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9505 $as_echo "$AS" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9513 if test -z "$ac_cv_prog_AS"; then
9515 # Extract the first word of "as", so it can be a program name with args.
9516 set dummy as; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9520 $as_echo_n "(cached) " >&6
9522 if test -n "$ac_ct_AS"; then
9523 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532 ac_cv_prog_ac_ct_AS="as"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9543 if test -n "$ac_ct_AS"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9545 $as_echo "$ac_ct_AS" >&6; }
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9551 if test "x$ac_ct_AS" = x; then
9554 case $cross_compiling:$ac_tool_warned in
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9558 ac_tool_warned=yes ;;
9566 if test -n "$ac_tool_prefix"; then
9567 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if ${ac_cv_prog_DLLTOOL+:} false; then :
9572 $as_echo_n "(cached) " >&6
9574 if test -n "$DLLTOOL"; then
9575 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594 DLLTOOL=$ac_cv_prog_DLLTOOL
9595 if test -n "$DLLTOOL"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9597 $as_echo "$DLLTOOL" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9605 if test -z "$ac_cv_prog_DLLTOOL"; then
9606 ac_ct_DLLTOOL=$DLLTOOL
9607 # Extract the first word of "dlltool", so it can be a program name with args.
9608 set dummy dlltool; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9612 $as_echo_n "(cached) " >&6
9614 if test -n "$ac_ct_DLLTOOL"; then
9615 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 test -z "$as_dir" && as_dir=.
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9624 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9635 if test -n "$ac_ct_DLLTOOL"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9637 $as_echo "$ac_ct_DLLTOOL" >&6; }
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9643 if test "x$ac_ct_DLLTOOL" = x; then
9646 case $cross_compiling:$ac_tool_warned in
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9650 ac_tool_warned=yes ;;
9652 DLLTOOL=$ac_ct_DLLTOOL
9655 DLLTOOL="$ac_cv_prog_DLLTOOL"
9658 if test -n "$ac_tool_prefix"; then
9659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_OBJDUMP+:} false; then :
9664 $as_echo_n "(cached) " >&6
9666 if test -n "$OBJDUMP"; then
9667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 OBJDUMP=$ac_cv_prog_OBJDUMP
9687 if test -n "$OBJDUMP"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689 $as_echo "$OBJDUMP" >&6; }
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9697 if test -z "$ac_cv_prog_OBJDUMP"; then
9698 ac_ct_OBJDUMP=$OBJDUMP
9699 # Extract the first word of "objdump", so it can be a program name with args.
9700 set dummy objdump; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9704 $as_echo_n "(cached) " >&6
9706 if test -n "$ac_ct_OBJDUMP"; then
9707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9727 if test -n "$ac_ct_OBJDUMP"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9729 $as_echo "$ac_ct_OBJDUMP" >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9735 if test "x$ac_ct_OBJDUMP" = x; then
9738 case $cross_compiling:$ac_tool_warned in
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9742 ac_tool_warned=yes ;;
9744 OBJDUMP=$ac_ct_OBJDUMP
9747 OBJDUMP="$ac_cv_prog_OBJDUMP"
9753 test -z "$AS" && AS=as
9759 test -z "$DLLTOOL" && DLLTOOL=dlltool
9765 test -z "$OBJDUMP" && OBJDUMP=objdump
9770 # Check whether --enable-static was given.
9771 if test "${enable_static+set}" = set; then :
9772 enableval=$enable_static; p=${PACKAGE-default}
9774 yes) enable_static=yes ;;
9775 no) enable_static=no ;;
9778 # Look at the argument we got. We use all the common list separators.
9779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9780 for pkg in $enableval; do
9782 if test "X$pkg" = "X$p"; then
9806 # Check whether --enable-shared was given.
9807 if test "${enable_shared+set}" = set; then :
9808 enableval=$enable_shared; p=${PACKAGE-default}
9810 yes) enable_shared=yes ;;
9811 no) enable_shared=no ;;
9814 # Look at the argument we got. We use all the common list separators.
9815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9816 for pkg in $enableval; do
9818 if test "X$pkg" = "X$p"; then
9839 # Check whether --with-pic was given.
9840 if test "${with_pic+set}" = set; then :
9841 withval=$with_pic; lt_p=${PACKAGE-default}
9843 yes|no) pic_mode=$withval ;;
9846 # Look at the argument we got. We use all the common list separators.
9847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9848 for lt_pkg in $withval; do
9850 if test "X$lt_pkg" = "X$lt_p"; then
9862 test -z "$pic_mode" && pic_mode=default
9870 # Check whether --enable-fast-install was given.
9871 if test "${enable_fast_install+set}" = set; then :
9872 enableval=$enable_fast_install; p=${PACKAGE-default}
9874 yes) enable_fast_install=yes ;;
9875 no) enable_fast_install=no ;;
9877 enable_fast_install=no
9878 # Look at the argument we got. We use all the common list separators.
9879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9880 for pkg in $enableval; do
9882 if test "X$pkg" = "X$p"; then
9883 enable_fast_install=yes
9890 enable_fast_install=yes
9903 # This can be used to rebuild libtool when needed
9904 LIBTOOL_DEPS="$ltmain"
9906 # Always use our own libtool.
9907 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9938 test -z "$LN_S" && LN_S="ln -s"
9953 if test -n "${ZSH_VERSION+set}" ; then
9954 setopt NO_GLOB_SUBST
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9958 $as_echo_n "checking for objdir... " >&6; }
9959 if ${lt_cv_objdir+:} false; then :
9960 $as_echo_n "(cached) " >&6
9962 rm -f .libs 2>/dev/null
9963 mkdir .libs 2>/dev/null
9964 if test -d .libs; then
9967 # MS-DOS does not allow filenames that begin with a dot.
9970 rmdir .libs 2>/dev/null
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9973 $as_echo "$lt_cv_objdir" >&6; }
9974 objdir=$lt_cv_objdir
9980 cat >>confdefs.h <<_ACEOF
9981 #define LT_OBJDIR "$lt_cv_objdir/"
9989 # AIX sometimes has problems with the GCC collect2 program. For some
9990 # reason, if we set the COLLECT_NAMES environment variable, the problems
9991 # vanish in a puff of smoke.
9992 if test "X${COLLECT_NAMES+set}" != Xset; then
9994 export COLLECT_NAMES
10001 can_build_shared=yes
10003 # All known linkers require a `.a' archive for static linking (except MSVC,
10004 # which needs '.lib').
10007 with_gnu_ld="$lt_cv_prog_gnu_ld"
10010 old_CFLAGS="$CFLAGS"
10012 # Set sane defaults for various variables
10013 test -z "$CC" && CC=cc
10014 test -z "$LTCC" && LTCC=$CC
10015 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10016 test -z "$LD" && LD=ld
10017 test -z "$ac_objext" && ac_objext=o
10019 for cc_temp in $compiler""; do
10021 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10022 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10027 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10030 # Only perform the check for file, if the check method requires it
10031 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10032 case $deplibs_check_method in
10034 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10036 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10038 $as_echo_n "(cached) " >&6
10042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10045 lt_save_MAGIC_CMD="$MAGIC_CMD"
10046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10048 for ac_dir in $ac_dummy; do
10050 test -z "$ac_dir" && ac_dir=.
10051 if test -f $ac_dir/${ac_tool_prefix}file; then
10052 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10053 if test -n "$file_magic_test_file"; then
10054 case $deplibs_check_method in
10056 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10059 $EGREP "$file_magic_regex" > /dev/null; then
10064 *** Warning: the command libtool uses to detect shared libraries,
10065 *** $file_magic_cmd, produces output that libtool cannot recognize.
10066 *** The result is that libtool may fail to recognize shared libraries
10067 *** as such. This will affect the creation of libtool libraries that
10068 *** depend on shared libraries, but programs linked with such libtool
10069 *** libraries will work regardless of this problem. Nevertheless, you
10070 *** may want to report the problem to your system manager and/or to
10071 *** bug-libtool@gnu.org
10081 MAGIC_CMD="$lt_save_MAGIC_CMD"
10086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10087 if test -n "$MAGIC_CMD"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10089 $as_echo "$MAGIC_CMD" >&6; }
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10099 if test -z "$lt_cv_path_MAGIC_CMD"; then
10100 if test -n "$ac_tool_prefix"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10102 $as_echo_n "checking for file... " >&6; }
10103 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10104 $as_echo_n "(cached) " >&6
10108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10111 lt_save_MAGIC_CMD="$MAGIC_CMD"
10112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10114 for ac_dir in $ac_dummy; do
10116 test -z "$ac_dir" && ac_dir=.
10117 if test -f $ac_dir/file; then
10118 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10119 if test -n "$file_magic_test_file"; then
10120 case $deplibs_check_method in
10122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10125 $EGREP "$file_magic_regex" > /dev/null; then
10130 *** Warning: the command libtool uses to detect shared libraries,
10131 *** $file_magic_cmd, produces output that libtool cannot recognize.
10132 *** The result is that libtool may fail to recognize shared libraries
10133 *** as such. This will affect the creation of libtool libraries that
10134 *** depend on shared libraries, but programs linked with such libtool
10135 *** libraries will work regardless of this problem. Nevertheless, you
10136 *** may want to report the problem to your system manager and/or to
10137 *** bug-libtool@gnu.org
10147 MAGIC_CMD="$lt_save_MAGIC_CMD"
10152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10153 if test -n "$MAGIC_CMD"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10155 $as_echo "$MAGIC_CMD" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10171 # Use C for the default configuration in the libtool script
10175 ac_cpp='$CPP $CPPFLAGS'
10176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10181 # Source file extension for C test sources.
10184 # Object file extension for compiled C test sources.
10188 # Code to be used in simple compile tests
10189 lt_simple_compile_test_code="int some_variable = 0;"
10191 # Code to be used in simple link tests
10192 lt_simple_link_test_code='int main(){return(0);}'
10200 # If no C compiler was specified, use CC.
10203 # If no C compiler flags were specified, use CFLAGS.
10204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10206 # Allow CC to be a program name with arguments.
10209 # Save the default compiler, since it gets overwritten when the other
10210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10211 compiler_DEFAULT=$CC
10213 # save warnings/boilerplate of simple test code
10214 ac_outfile=conftest.$ac_objext
10215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10217 _lt_compiler_boilerplate=`cat conftest.err`
10220 ac_outfile=conftest.$ac_objext
10221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10223 _lt_linker_boilerplate=`cat conftest.err`
10228 ## There is no encapsulation within the following macros, do not change
10229 ## the running order or otherwise move them around unless you know exactly
10230 ## what you are doing...
10231 if test -n "$compiler"; then
10233 lt_prog_compiler_no_builtin_flag=
10235 if test "$GCC" = yes; then
10236 case $cc_basename in
10238 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10240 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10244 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10245 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10246 $as_echo_n "(cached) " >&6
10248 lt_cv_prog_compiler_rtti_exceptions=no
10249 ac_outfile=conftest.$ac_objext
10250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251 lt_compiler_flag="-fno-rtti -fno-exceptions"
10252 # Insert the option either (1) after the last *FLAGS variable, or
10253 # (2) before a word containing "conftest.", or (3) at the end.
10254 # Note that $ac_compile itself does not contain backslashes and begins
10255 # with a dollar sign (not a hyphen), so the echo should work correctly.
10256 # The option is referenced via a variable to avoid confusing sed.
10257 lt_compile=`echo "$ac_compile" | $SED \
10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10260 -e 's:$: $lt_compiler_flag:'`
10261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10262 (eval "$lt_compile" 2>conftest.err)
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 if (exit $ac_status) && test -s "$ac_outfile"; then
10267 # The compiler can only warn and ignore the option if not recognized
10268 # So say no if there are warnings other than the usual output.
10269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10272 lt_cv_prog_compiler_rtti_exceptions=yes
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10279 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10294 lt_prog_compiler_wl=
10295 lt_prog_compiler_pic=
10296 lt_prog_compiler_static=
10299 if test "$GCC" = yes; then
10300 lt_prog_compiler_wl='-Wl,'
10301 lt_prog_compiler_static='-static'
10305 # All AIX code is PIC.
10306 if test "$host_cpu" = ia64; then
10307 # AIX 5 now supports IA64 processor
10308 lt_prog_compiler_static='-Bstatic'
10315 # see comment about AmigaOS4 .so support
10316 lt_prog_compiler_pic='-fPIC'
10319 # FIXME: we need at least 68020 code to build shared libraries, but
10320 # adding the `-m68020' flag to GCC prevents building anything better,
10322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10328 # PIC is the default for these OSes.
10331 mingw* | cygwin* | pw32* | os2* | cegcc*)
10332 # This hack is so that the source file can tell whether it is being
10333 # built for inclusion in a dll (and should export symbols for example).
10334 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10335 # (--disable-auto-import) libraries
10336 lt_prog_compiler_pic='-DDLL_EXPORT'
10339 darwin* | rhapsody*)
10340 # PIC is the default on this platform
10341 # Common symbols not allowed in MH_DYLIB files
10342 lt_prog_compiler_pic='-fno-common'
10346 # PIC is the default for Haiku.
10347 # The "-static" flag exists, but is broken.
10348 lt_prog_compiler_static=
10352 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10353 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10354 # sets the default TLS model and affects inlining.
10360 lt_prog_compiler_pic='-fPIC'
10366 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10367 # Instead, we relocate shared libraries at runtime.
10371 # Just because we use GCC doesn't mean we suddenly get shared libraries
10372 # on systems that don't support them.
10373 lt_prog_compiler_can_build_shared=no
10378 # QNX uses GNU C++, but need to define -shared option too, otherwise
10379 # it will coredump.
10380 lt_prog_compiler_pic='-fPIC -shared'
10384 if test -d /usr/nec; then
10385 lt_prog_compiler_pic=-Kconform_pic
10390 lt_prog_compiler_pic='-fPIC'
10394 case $cc_basename in
10395 nvcc*) # Cuda Compiler Driver 2.2
10396 lt_prog_compiler_wl='-Xlinker '
10397 if test -n "$lt_prog_compiler_pic"; then
10398 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10403 # PORTME Check for flag to pass linker flags through the system compiler.
10406 lt_prog_compiler_wl='-Wl,'
10407 if test "$host_cpu" = ia64; then
10408 # AIX 5 now supports IA64 processor
10409 lt_prog_compiler_static='-Bstatic'
10411 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10415 mingw* | cygwin* | pw32* | os2* | cegcc*)
10416 # This hack is so that the source file can tell whether it is being
10417 # built for inclusion in a dll (and should export symbols for example).
10418 lt_prog_compiler_pic='-DDLL_EXPORT'
10421 hpux9* | hpux10* | hpux11*)
10422 lt_prog_compiler_wl='-Wl,'
10423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10424 # not for PA HP-UX.
10430 lt_prog_compiler_pic='+Z'
10433 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10434 lt_prog_compiler_static='${wl}-a ${wl}archive'
10437 irix5* | irix6* | nonstopux*)
10438 lt_prog_compiler_wl='-Wl,'
10439 # PIC (with -KPIC) is the default.
10440 lt_prog_compiler_static='-non_shared'
10443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10444 case $cc_basename in
10445 # old Intel for x86_64 which still supported -KPIC.
10447 lt_prog_compiler_wl='-Wl,'
10448 lt_prog_compiler_pic='-KPIC'
10449 lt_prog_compiler_static='-static'
10451 # icc used to be incompatible with GCC.
10452 # ICC 10 doesn't accept -KPIC any more.
10454 lt_prog_compiler_wl='-Wl,'
10455 lt_prog_compiler_pic='-fPIC'
10456 lt_prog_compiler_static='-static'
10458 # Lahey Fortran 8.1.
10460 lt_prog_compiler_wl='-Wl,'
10461 lt_prog_compiler_pic='--shared'
10462 lt_prog_compiler_static='--static'
10465 # NAG Fortran compiler
10466 lt_prog_compiler_wl='-Wl,-Wl,,'
10467 lt_prog_compiler_pic='-PIC'
10468 lt_prog_compiler_static='-Bstatic'
10470 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10471 # Portland Group compilers (*not* the Pentium gcc compiler,
10472 # which looks to be a dead project)
10473 lt_prog_compiler_wl='-Wl,'
10474 lt_prog_compiler_pic='-fpic'
10475 lt_prog_compiler_static='-Bstatic'
10478 lt_prog_compiler_wl='-Wl,'
10479 # All Alpha code is PIC.
10480 lt_prog_compiler_static='-non_shared'
10482 xl* | bgxl* | bgf* | mpixl*)
10483 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10484 lt_prog_compiler_wl='-Wl,'
10485 lt_prog_compiler_pic='-qpic'
10486 lt_prog_compiler_static='-qstaticlink'
10489 case `$CC -V 2>&1 | sed 5q` in
10490 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10491 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10492 lt_prog_compiler_pic='-KPIC'
10493 lt_prog_compiler_static='-Bstatic'
10494 lt_prog_compiler_wl=''
10496 *Sun\ F* | *Sun*Fortran*)
10497 lt_prog_compiler_pic='-KPIC'
10498 lt_prog_compiler_static='-Bstatic'
10499 lt_prog_compiler_wl='-Qoption ld '
10503 lt_prog_compiler_pic='-KPIC'
10504 lt_prog_compiler_static='-Bstatic'
10505 lt_prog_compiler_wl='-Wl,'
10507 *Intel*\ [CF]*Compiler*)
10508 lt_prog_compiler_wl='-Wl,'
10509 lt_prog_compiler_pic='-fPIC'
10510 lt_prog_compiler_static='-static'
10513 lt_prog_compiler_wl='-Wl,'
10514 lt_prog_compiler_pic='-fpic'
10515 lt_prog_compiler_static='-Bstatic'
10523 lt_prog_compiler_pic='-KPIC'
10524 lt_prog_compiler_static='-Bstatic'
10528 # QNX uses GNU C++, but need to define -shared option too, otherwise
10529 # it will coredump.
10530 lt_prog_compiler_pic='-fPIC -shared'
10533 osf3* | osf4* | osf5*)
10534 lt_prog_compiler_wl='-Wl,'
10535 # All OSF/1 code is PIC.
10536 lt_prog_compiler_static='-non_shared'
10540 lt_prog_compiler_static='-non_shared'
10544 lt_prog_compiler_pic='-KPIC'
10545 lt_prog_compiler_static='-Bstatic'
10546 case $cc_basename in
10547 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10548 lt_prog_compiler_wl='-Qoption ld ';;
10550 lt_prog_compiler_wl='-Wl,';;
10555 lt_prog_compiler_wl='-Qoption ld '
10556 lt_prog_compiler_pic='-PIC'
10557 lt_prog_compiler_static='-Bstatic'
10560 sysv4 | sysv4.2uw2* | sysv4.3*)
10561 lt_prog_compiler_wl='-Wl,'
10562 lt_prog_compiler_pic='-KPIC'
10563 lt_prog_compiler_static='-Bstatic'
10567 if test -d /usr/nec ;then
10568 lt_prog_compiler_pic='-Kconform_pic'
10569 lt_prog_compiler_static='-Bstatic'
10573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10574 lt_prog_compiler_wl='-Wl,'
10575 lt_prog_compiler_pic='-KPIC'
10576 lt_prog_compiler_static='-Bstatic'
10580 lt_prog_compiler_wl='-Wl,'
10581 lt_prog_compiler_can_build_shared=no
10585 lt_prog_compiler_pic='-pic'
10586 lt_prog_compiler_static='-Bstatic'
10590 lt_prog_compiler_can_build_shared=no
10596 # For platforms which do not support PIC, -DPIC is meaningless:
10598 lt_prog_compiler_pic=
10601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10607 if ${lt_cv_prog_compiler_pic+:} false; then :
10608 $as_echo_n "(cached) " >&6
10610 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10613 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10614 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10617 # Check to make sure the PIC flag actually works.
10619 if test -n "$lt_prog_compiler_pic"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10622 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10623 $as_echo_n "(cached) " >&6
10625 lt_cv_prog_compiler_pic_works=no
10626 ac_outfile=conftest.$ac_objext
10627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10628 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10629 # Insert the option either (1) after the last *FLAGS variable, or
10630 # (2) before a word containing "conftest.", or (3) at the end.
10631 # Note that $ac_compile itself does not contain backslashes and begins
10632 # with a dollar sign (not a hyphen), so the echo should work correctly.
10633 # The option is referenced via a variable to avoid confusing sed.
10634 lt_compile=`echo "$ac_compile" | $SED \
10635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10637 -e 's:$: $lt_compiler_flag:'`
10638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10639 (eval "$lt_compile" 2>conftest.err)
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 if (exit $ac_status) && test -s "$ac_outfile"; then
10644 # The compiler can only warn and ignore the option if not recognized
10645 # So say no if there are warnings other than the usual output.
10646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10649 lt_cv_prog_compiler_pic_works=yes
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10656 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10658 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10659 case $lt_prog_compiler_pic in
10661 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10664 lt_prog_compiler_pic=
10665 lt_prog_compiler_can_build_shared=no
10681 # Check to make sure the static flag actually works.
10683 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10685 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10686 if ${lt_cv_prog_compiler_static_works+:} false; then :
10687 $as_echo_n "(cached) " >&6
10689 lt_cv_prog_compiler_static_works=no
10690 save_LDFLAGS="$LDFLAGS"
10691 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10692 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10693 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10694 # The linker can only warn and ignore the option if not recognized
10695 # So say no if there are warnings
10696 if test -s conftest.err; then
10697 # Append any errors to the config.log.
10698 cat conftest.err 1>&5
10699 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10701 if diff conftest.exp conftest.er2 >/dev/null; then
10702 lt_cv_prog_compiler_static_works=yes
10705 lt_cv_prog_compiler_static_works=yes
10709 LDFLAGS="$save_LDFLAGS"
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10713 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10715 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10718 lt_prog_compiler_static=
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10729 if ${lt_cv_prog_compiler_c_o+:} false; then :
10730 $as_echo_n "(cached) " >&6
10732 lt_cv_prog_compiler_c_o=no
10733 $RM -r conftest 2>/dev/null
10737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10739 lt_compiler_flag="-o out/conftest2.$ac_objext"
10740 # Insert the option either (1) after the last *FLAGS variable, or
10741 # (2) before a word containing "conftest.", or (3) at the end.
10742 # Note that $ac_compile itself does not contain backslashes and begins
10743 # with a dollar sign (not a hyphen), so the echo should work correctly.
10744 lt_compile=`echo "$ac_compile" | $SED \
10745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10747 -e 's:$: $lt_compiler_flag:'`
10748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10749 (eval "$lt_compile" 2>out/conftest.err)
10751 cat out/conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10755 # The compiler can only warn and ignore the option if not recognized
10756 # So say no if there are warnings
10757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10760 lt_cv_prog_compiler_c_o=yes
10765 # SGI C++ compiler will create directory out/ii_files/ for
10766 # template instantiation
10767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10768 $RM out/* && rmdir out
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10775 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10784 if ${lt_cv_prog_compiler_c_o+:} false; then :
10785 $as_echo_n "(cached) " >&6
10787 lt_cv_prog_compiler_c_o=no
10788 $RM -r conftest 2>/dev/null
10792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10794 lt_compiler_flag="-o out/conftest2.$ac_objext"
10795 # Insert the option either (1) after the last *FLAGS variable, or
10796 # (2) before a word containing "conftest.", or (3) at the end.
10797 # Note that $ac_compile itself does not contain backslashes and begins
10798 # with a dollar sign (not a hyphen), so the echo should work correctly.
10799 lt_compile=`echo "$ac_compile" | $SED \
10800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10802 -e 's:$: $lt_compiler_flag:'`
10803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10804 (eval "$lt_compile" 2>out/conftest.err)
10806 cat out/conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10810 # The compiler can only warn and ignore the option if not recognized
10811 # So say no if there are warnings
10812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10815 lt_cv_prog_compiler_c_o=yes
10820 # SGI C++ compiler will create directory out/ii_files/ for
10821 # template instantiation
10822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10823 $RM out/* && rmdir out
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10835 hard_links="nottested"
10836 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10837 # do not overwrite the value of need_locks provided by the user
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10839 $as_echo_n "checking if we can lock with hard links... " >&6; }
10842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10844 ln conftest.a conftest.b 2>&5 || hard_links=no
10845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10847 $as_echo "$hard_links" >&6; }
10848 if test "$hard_links" = no; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10850 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10866 allow_undefined_flag=
10867 always_export_symbols=no
10869 archive_expsym_cmds=
10870 compiler_needs_object=no
10871 enable_shared_with_static_runtimes=no
10872 export_dynamic_flag_spec=
10873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10874 hardcode_automatic=no
10876 hardcode_direct_absolute=no
10877 hardcode_libdir_flag_spec=
10878 hardcode_libdir_separator=
10879 hardcode_minus_L=no
10880 hardcode_shlibpath_var=unsupported
10882 link_all_deplibs=unknown
10884 module_expsym_cmds=
10885 old_archive_from_new_cmds=
10886 old_archive_from_expsyms_cmds=
10887 thread_safe_flag_spec=
10888 whole_archive_flag_spec=
10889 # include_expsyms should be a list of space-separated symbols to be *always*
10890 # included in the symbol list
10892 # exclude_expsyms can be an extended regexp of symbols to exclude
10893 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10894 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10895 # as well as any symbol that contains `d'.
10896 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10897 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10898 # platforms (ab)use it in PIC code, but their linkers get confused if
10899 # the symbol is explicitly referenced. Since portable code cannot
10900 # rely on this symbol name, it's probably fine to never include it in
10901 # preloaded symbol tables.
10902 # Exclude shared library initialization/finalization symbols.
10903 extract_expsyms_cmds=
10906 cygwin* | mingw* | pw32* | cegcc*)
10907 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10908 # When not using gcc, we currently assume that we are using
10909 # Microsoft Visual C++.
10910 if test "$GCC" != yes; then
10915 # we just hope/assume this is gcc and not c89 (= MSVC++)
10921 linux* | k*bsd*-gnu | gnu*)
10922 link_all_deplibs=no
10928 # On some targets, GNU ld is compatible enough with the native linker
10929 # that we're better off using the native interface for both.
10930 lt_use_gnu_ld_interface=no
10931 if test "$with_gnu_ld" = yes; then
10934 # The AIX port of GNU ld has always aspired to compatibility
10935 # with the native linker. However, as the warning in the GNU ld
10936 # block says, versions before 2.19.5* couldn't really create working
10937 # shared libraries, regardless of the interface used.
10938 case `$LD -v 2>&1` in
10939 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10940 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10941 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10943 lt_use_gnu_ld_interface=yes
10948 lt_use_gnu_ld_interface=yes
10953 if test "$lt_use_gnu_ld_interface" = yes; then
10954 # If archive_cmds runs LD, not CC, wlarc should be empty
10957 # Set some defaults for GNU ld with shared library support. These
10958 # are reset later if shared libraries are not supported. Putting them
10959 # here allows them to be overridden if necessary.
10960 runpath_var=LD_RUN_PATH
10961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10962 export_dynamic_flag_spec='${wl}--export-dynamic'
10963 # ancient GNU ld didn't support --whole-archive et. al.
10964 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10965 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10967 whole_archive_flag_spec=
10969 supports_anon_versioning=no
10970 case `$LD -v 2>&1` in
10971 *GNU\ gold*) supports_anon_versioning=yes ;;
10972 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10973 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10974 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10975 *\ 2.11.*) ;; # other 2.11 versions
10976 *) supports_anon_versioning=yes ;;
10979 # See if GNU ld supports shared libraries.
10982 # On AIX/PPC, the GNU linker is very broken
10983 if test "$host_cpu" != ia64; then
10987 *** Warning: the GNU linker, at least up to release 2.19, is reported
10988 *** to be unable to reliably create shared libraries on AIX.
10989 *** Therefore, libtool is disabling shared libraries support. If you
10990 *** really care for shared libraries, you may want to install binutils
10991 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10992 *** You will then need to restart the configuration process.
11001 # see comment about AmigaOS4 .so support
11002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11003 archive_expsym_cmds=''
11006 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)'
11007 hardcode_libdir_flag_spec='-L$libdir'
11008 hardcode_minus_L=yes
11014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11015 allow_undefined_flag=unsupported
11016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11017 # support --undefined. This deserves some investigation. FIXME
11018 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11024 cygwin* | mingw* | pw32* | cegcc*)
11025 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11026 # as there is no search path for DLLs.
11027 hardcode_libdir_flag_spec='-L$libdir'
11028 export_dynamic_flag_spec='${wl}--export-all-symbols'
11029 allow_undefined_flag=unsupported
11030 always_export_symbols=no
11031 enable_shared_with_static_runtimes=yes
11032 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'
11033 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11035 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11037 # If the export-symbols file already is a .def file (1st line
11038 # is EXPORTS), use it as is; otherwise, prepend...
11039 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11040 cp $export_symbols $output_objdir/$soname.def;
11042 echo EXPORTS > $output_objdir/$soname.def;
11043 cat $export_symbols >> $output_objdir/$soname.def;
11045 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11053 link_all_deplibs=yes
11058 hardcode_shlibpath_var=no
11059 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11060 export_dynamic_flag_spec='${wl}-E'
11061 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11062 # Instead, shared libraries are loaded at an image base (0x10000000 by
11063 # default) and relocated if they conflict, which is a slow very memory
11064 # consuming and fragmenting process. To avoid this, we pick a random,
11065 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11066 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11067 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11068 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'
11071 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11073 if test "$host_os" = linux-dietlibc; then
11074 case $cc_basename in
11075 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11078 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11079 && test "$tmp_diet" = no
11081 tmp_addflag=' $pic_flag'
11082 tmp_sharedflag='-shared'
11083 case $cc_basename,$host_cpu in
11084 pgcc*) # Portland Group C compiler
11085 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'
11086 tmp_addflag=' $pic_flag'
11088 pgf77* | pgf90* | pgf95* | pgfortran*)
11089 # Portland Group f77 and f90 compilers
11090 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'
11091 tmp_addflag=' $pic_flag -Mnomain' ;;
11092 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11093 tmp_addflag=' -i_dynamic' ;;
11094 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11095 tmp_addflag=' -i_dynamic -nofor_main' ;;
11096 ifc* | ifort*) # Intel Fortran compiler
11097 tmp_addflag=' -nofor_main' ;;
11098 lf95*) # Lahey Fortran 8.1
11099 whole_archive_flag_spec=
11100 tmp_sharedflag='--shared' ;;
11101 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11102 tmp_sharedflag='-qmkshrobj'
11104 nvcc*) # Cuda Compiler Driver 2.2
11105 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'
11106 compiler_needs_object=yes
11109 case `$CC -V 2>&1 | sed 5q` in
11110 *Sun\ C*) # Sun C 5.9
11111 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'
11112 compiler_needs_object=yes
11113 tmp_sharedflag='-G' ;;
11114 *Sun\ F*) # Sun Fortran 8.3
11115 tmp_sharedflag='-G' ;;
11117 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11119 if test "x$supports_anon_versioning" = xyes; then
11120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11122 echo "local: *; };" >> $output_objdir/$libname.ver~
11123 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11126 case $cc_basename in
11127 xlf* | bgf* | bgxlf* | mpixlf*)
11128 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11129 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11131 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11132 if test "x$supports_anon_versioning" = xyes; then
11133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11135 echo "local: *; };" >> $output_objdir/$libname.ver~
11136 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11145 netbsd* | netbsdelf*-gnu)
11146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11147 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11151 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11156 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11161 *** create shared libraries on Solaris systems. Therefore, libtool
11162 *** is disabling shared libraries support. We urge you to upgrade GNU
11163 *** binutils to release 2.9.1 or newer. Another option is to modify
11164 *** your PATH or compiler configuration so that the native linker is
11165 *** used, and then restart.
11168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11177 case `$LD -v 2>&1` in
11178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11183 *** reliably create shared libraries on SCO systems. Therefore, libtool
11184 *** is disabling shared libraries support. We urge you to upgrade GNU
11185 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11186 *** your PATH or compiler configuration so that the native linker is
11187 *** used, and then restart.
11192 # For security reasons, it is highly recommended that you always
11193 # use absolute paths for naming shared libraries, and exclude the
11194 # DT_RUNPATH tag from executables and libraries. But doing so
11195 # requires that you compile everything twice, which is a pain.
11196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11210 hardcode_direct=yes
11211 hardcode_shlibpath_var=no
11215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11217 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11224 if test "$ld_shlibs" = no; then
11226 hardcode_libdir_flag_spec=
11227 export_dynamic_flag_spec=
11228 whole_archive_flag_spec=
11231 # PORTME fill in a description of your system's linker (not GNU ld)
11234 allow_undefined_flag=unsupported
11235 always_export_symbols=yes
11236 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'
11237 # Note: this linker hardcodes the directories in LIBPATH if there
11238 # are no directories specified by -L.
11239 hardcode_minus_L=yes
11240 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11241 # Neither direct hardcoding nor static linking is supported with a
11243 hardcode_direct=unsupported
11248 if test "$host_cpu" = ia64; then
11249 # On IA64, the linker does run time linking by default, so we don't
11250 # have to do anything special.
11251 aix_use_runtimelinking=no
11252 exp_sym_flag='-Bexport'
11255 # If we're using GNU nm, then we don't want the "-C" option.
11256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11257 # Also, AIX nm treats weak defined symbols like other global
11258 # defined symbols, whereas GNU nm marks them as "W".
11259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11260 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'
11262 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'
11264 aix_use_runtimelinking=no
11266 # Test if we are trying to use run time linking or normal
11267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11268 # need to do runtime linking.
11269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11270 for ld_flag in $LDFLAGS; do
11271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11272 aix_use_runtimelinking=yes
11279 exp_sym_flag='-bexport'
11280 no_entry_flag='-bnoentry'
11283 # When large executables or shared objects are built, AIX ld can
11284 # have problems creating the table of contents. If linking a library
11285 # or program results in "error TOC overflow" add -mminimal-toc to
11286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11290 hardcode_direct=yes
11291 hardcode_direct_absolute=yes
11292 hardcode_libdir_separator=':'
11293 link_all_deplibs=yes
11294 file_list_spec='${wl}-f,'
11296 if test "$GCC" = yes; then
11297 case $host_os in aix4.[012]|aix4.[012].*)
11298 # We only want to do this on AIX 4.2 and lower, the check
11299 # below for broken collect2 doesn't work under 4.3+
11300 collect2name=`${CC} -print-prog-name=collect2`
11301 if test -f "$collect2name" &&
11302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11304 # We have reworked collect2
11307 # We have old collect2
11308 hardcode_direct=unsupported
11309 # It fails to find uninstalled libraries when the uninstalled
11310 # path is not listed in the libpath. Setting hardcode_minus_L
11311 # to unsupported forces relinking
11312 hardcode_minus_L=yes
11313 hardcode_libdir_flag_spec='-L$libdir'
11314 hardcode_libdir_separator=
11318 shared_flag='-shared'
11319 if test "$aix_use_runtimelinking" = yes; then
11320 shared_flag="$shared_flag "'${wl}-G'
11322 link_all_deplibs=no
11325 if test "$host_cpu" = ia64; then
11326 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11327 # chokes on -Wl,-G. The following line is correct:
11330 if test "$aix_use_runtimelinking" = yes; then
11331 shared_flag='${wl}-G'
11333 shared_flag='${wl}-bM:SRE'
11338 export_dynamic_flag_spec='${wl}-bexpall'
11339 # It seems that -bexpall does not export symbols beginning with
11340 # underscore (_), so it is better to generate a list of symbols to export.
11341 always_export_symbols=yes
11342 if test "$aix_use_runtimelinking" = yes; then
11343 # Warning - without using the other runtime loading flags (-brtl),
11344 # -berok will link without error, but may produce a broken library.
11345 allow_undefined_flag='-berok'
11346 # Determine the default libpath from the value encoded in an
11347 # empty executable.
11348 if test "${lt_cv_aix_libpath+set}" = set; then
11349 aix_libpath=$lt_cv_aix_libpath
11351 if ${lt_cv_aix_libpath_+:} false; then :
11352 $as_echo_n "(cached) " >&6
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11365 if ac_fn_c_try_link "$LINENO"; then :
11367 lt_aix_libpath_sed='
11368 /Import File Strings/,/^$/ {
11370 s/^0 *\([^ ]*\) *$/\1/
11374 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375 # Check for a 64-bit object if we didn't find anything.
11376 if test -z "$lt_cv_aix_libpath_"; then
11377 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11382 if test -z "$lt_cv_aix_libpath_"; then
11383 lt_cv_aix_libpath_="/usr/lib:/lib"
11388 aix_libpath=$lt_cv_aix_libpath_
11391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11392 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"
11394 if test "$host_cpu" = ia64; then
11395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11396 allow_undefined_flag="-z nodefs"
11397 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"
11399 # Determine the default libpath from the value encoded in an
11400 # empty executable.
11401 if test "${lt_cv_aix_libpath+set}" = set; then
11402 aix_libpath=$lt_cv_aix_libpath
11404 if ${lt_cv_aix_libpath_+:} false; then :
11405 $as_echo_n "(cached) " >&6
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11418 if ac_fn_c_try_link "$LINENO"; then :
11420 lt_aix_libpath_sed='
11421 /Import File Strings/,/^$/ {
11423 s/^0 *\([^ ]*\) *$/\1/
11427 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11428 # Check for a 64-bit object if we didn't find anything.
11429 if test -z "$lt_cv_aix_libpath_"; then
11430 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 if test -z "$lt_cv_aix_libpath_"; then
11436 lt_cv_aix_libpath_="/usr/lib:/lib"
11441 aix_libpath=$lt_cv_aix_libpath_
11444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11445 # Warning - without using the other run time loading flags,
11446 # -berok will link without error, but may produce a broken library.
11447 no_undefined_flag=' ${wl}-bernotok'
11448 allow_undefined_flag=' ${wl}-berok'
11449 if test "$with_gnu_ld" = yes; then
11450 # We only use this code for GNU lds that support --whole-archive.
11451 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11453 # Exported symbols can be pulled into shared objects from archives
11454 whole_archive_flag_spec='$convenience'
11456 archive_cmds_need_lc=yes
11457 # This is similar to how AIX traditionally builds its shared libraries.
11458 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'
11466 # see comment about AmigaOS4 .so support
11467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11468 archive_expsym_cmds=''
11471 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)'
11472 hardcode_libdir_flag_spec='-L$libdir'
11473 hardcode_minus_L=yes
11479 export_dynamic_flag_spec=-rdynamic
11482 cygwin* | mingw* | pw32* | cegcc*)
11483 # When not using gcc, we currently assume that we are using
11484 # Microsoft Visual C++.
11485 # hardcode_libdir_flag_spec is actually meaningless, as there is
11486 # no search path for DLLs.
11487 case $cc_basename in
11490 hardcode_libdir_flag_spec=' '
11491 allow_undefined_flag=unsupported
11492 always_export_symbols=yes
11494 # Tell ltmain to make .lib files, not .a files.
11496 # Tell ltmain to make .dll files, not .so files.
11498 # FIXME: Setting linknames here is a bad hack.
11499 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11500 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11501 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11503 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11505 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11507 # The linker will not automatically build a static lib if we build a DLL.
11508 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11509 enable_shared_with_static_runtimes=yes
11510 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11513 old_postinstall_cmds='chmod 644 $oldlib'
11514 postlink_cmds='lt_outputfile="@OUTPUT@"~
11515 lt_tool_outputfile="@TOOL_OUTPUT@"~
11516 case $lt_outputfile in
11519 lt_outputfile="$lt_outputfile.exe"
11520 lt_tool_outputfile="$lt_tool_outputfile.exe"
11523 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11524 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11525 $RM "$lt_outputfile.manifest";
11529 # Assume MSVC wrapper
11530 hardcode_libdir_flag_spec=' '
11531 allow_undefined_flag=unsupported
11532 # Tell ltmain to make .lib files, not .a files.
11534 # Tell ltmain to make .dll files, not .so files.
11536 # FIXME: Setting linknames here is a bad hack.
11537 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11538 # The linker will automatically build a .lib file if we build a DLL.
11539 old_archive_from_new_cmds='true'
11540 # FIXME: Should let the user specify the lib program.
11541 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11542 enable_shared_with_static_runtimes=yes
11547 darwin* | rhapsody*)
11550 archive_cmds_need_lc=no
11552 hardcode_automatic=yes
11553 hardcode_shlibpath_var=unsupported
11554 if test "$lt_cv_ld_force_load" = "yes"; then
11555 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\"`'
11558 whole_archive_flag_spec=''
11560 link_all_deplibs=yes
11561 allow_undefined_flag="$_lt_dar_allow_undefined"
11562 case $cc_basename in
11563 ifort*) _lt_dar_can_shared=yes ;;
11564 *) _lt_dar_can_shared=$GCC ;;
11566 if test "$_lt_dar_can_shared" = "yes"; then
11567 output_verbose_link_cmd=func_echo_all
11568 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11569 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11570 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}"
11571 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}"
11580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11581 hardcode_libdir_flag_spec='-L$libdir'
11582 hardcode_shlibpath_var=no
11585 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11586 # support. Future versions do this automatically, but an explicit c++rt0.o
11587 # does not break anything, and helps significantly (at the cost of a little
11590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11591 hardcode_libdir_flag_spec='-R$libdir'
11592 hardcode_direct=yes
11593 hardcode_shlibpath_var=no
11596 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11599 hardcode_direct=yes
11600 hardcode_minus_L=yes
11601 hardcode_shlibpath_var=no
11604 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11605 freebsd* | dragonfly*)
11606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11607 hardcode_libdir_flag_spec='-R$libdir'
11608 hardcode_direct=yes
11609 hardcode_shlibpath_var=no
11613 if test "$GCC" = yes; then
11614 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'
11616 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'
11618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11619 hardcode_libdir_separator=:
11620 hardcode_direct=yes
11622 # hardcode_minus_L: Not really in the search PATH,
11623 # but as the default location of the library.
11624 hardcode_minus_L=yes
11625 export_dynamic_flag_spec='${wl}-E'
11629 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11630 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11634 if test "$with_gnu_ld" = no; then
11635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11636 hardcode_libdir_separator=:
11637 hardcode_direct=yes
11638 hardcode_direct_absolute=yes
11639 export_dynamic_flag_spec='${wl}-E'
11640 # hardcode_minus_L: Not really in the search PATH,
11641 # but as the default location of the library.
11642 hardcode_minus_L=yes
11647 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11650 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11653 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11656 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11662 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11669 # Older versions of the 11.00 compiler do not understand -b yet
11670 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11672 $as_echo_n "checking if $CC understands -b... " >&6; }
11673 if ${lt_cv_prog_compiler__b+:} false; then :
11674 $as_echo_n "(cached) " >&6
11676 lt_cv_prog_compiler__b=no
11677 save_LDFLAGS="$LDFLAGS"
11678 LDFLAGS="$LDFLAGS -b"
11679 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11681 # The linker can only warn and ignore the option if not recognized
11682 # So say no if there are warnings
11683 if test -s conftest.err; then
11684 # Append any errors to the config.log.
11685 cat conftest.err 1>&5
11686 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11688 if diff conftest.exp conftest.er2 >/dev/null; then
11689 lt_cv_prog_compiler__b=yes
11692 lt_cv_prog_compiler__b=yes
11696 LDFLAGS="$save_LDFLAGS"
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11700 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11702 if test x"$lt_cv_prog_compiler__b" = xyes; then
11703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11711 if test "$with_gnu_ld" = no; then
11712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11713 hardcode_libdir_separator=:
11718 hardcode_shlibpath_var=no
11721 hardcode_direct=yes
11722 hardcode_direct_absolute=yes
11723 export_dynamic_flag_spec='${wl}-E'
11725 # hardcode_minus_L: Not really in the search PATH,
11726 # but as the default location of the library.
11727 hardcode_minus_L=yes
11733 irix5* | irix6* | nonstopux*)
11734 if test "$GCC" = yes; then
11735 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'
11736 # Try to use the -exported_symbol ld option, if it does not
11737 # work, assume that -exports_file does not work either and
11738 # implicitly export all symbols.
11739 # This should be the same for all languages, so no per-tag cache variable.
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11741 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11742 if ${lt_cv_irix_exported_symbol+:} false; then :
11743 $as_echo_n "(cached) " >&6
11745 save_LDFLAGS="$LDFLAGS"
11746 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 int foo (void) { return 0; }
11751 if ac_fn_c_try_link "$LINENO"; then :
11752 lt_cv_irix_exported_symbol=yes
11754 lt_cv_irix_exported_symbol=no
11756 rm -f core conftest.err conftest.$ac_objext \
11757 conftest$ac_exeext conftest.$ac_ext
11758 LDFLAGS="$save_LDFLAGS"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11761 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11762 if test "$lt_cv_irix_exported_symbol" = yes; then
11763 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'
11766 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'
11767 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'
11769 archive_cmds_need_lc='no'
11770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator=:
11773 link_all_deplibs=yes
11776 netbsd* | netbsdelf*-gnu)
11777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11780 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11782 hardcode_libdir_flag_spec='-R$libdir'
11783 hardcode_direct=yes
11784 hardcode_shlibpath_var=no
11788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 hardcode_direct=yes
11790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11791 hardcode_libdir_separator=:
11792 hardcode_shlibpath_var=no
11799 if test -f /usr/libexec/ld.so; then
11800 hardcode_direct=yes
11801 hardcode_shlibpath_var=no
11802 hardcode_direct_absolute=yes
11803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11805 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11807 export_dynamic_flag_spec='${wl}-E'
11810 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11812 hardcode_libdir_flag_spec='-R$libdir'
11815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11826 hardcode_libdir_flag_spec='-L$libdir'
11827 hardcode_minus_L=yes
11828 allow_undefined_flag=unsupported
11829 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'
11830 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11834 if test "$GCC" = yes; then
11835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11836 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'
11838 allow_undefined_flag=' -expect_unresolved \*'
11839 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'
11841 archive_cmds_need_lc='no'
11842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11843 hardcode_libdir_separator=:
11846 osf4* | osf5*) # as osf3* with the addition of -msym flag
11847 if test "$GCC" = yes; then
11848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11849 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'
11850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11852 allow_undefined_flag=' -expect_unresolved \*'
11853 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'
11854 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~
11855 $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'
11857 # Both c and cxx compiler support -rpath directly
11858 hardcode_libdir_flag_spec='-rpath $libdir'
11860 archive_cmds_need_lc='no'
11861 hardcode_libdir_separator=:
11865 no_undefined_flag=' -z defs'
11866 if test "$GCC" = yes; then
11868 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11870 $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'
11872 case `$CC -V 2>&1` in
11875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11881 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11883 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11887 hardcode_libdir_flag_spec='-R$libdir'
11888 hardcode_shlibpath_var=no
11890 solaris2.[0-5] | solaris2.[0-5].*) ;;
11892 # The compiler driver will combine and reorder linker options,
11893 # but understands `-z linker_flag'. GCC discards it without `$wl',
11894 # but is careful enough not to reorder.
11895 # Supported since Solaris 2.6 (maybe 2.5.1?)
11896 if test "$GCC" = yes; then
11897 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11899 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11903 link_all_deplibs=yes
11907 if test "x$host_vendor" = xsequent; then
11908 # Use $CC to link under sequent, because it throws in some extra .o
11909 # files that make .init and .fini sections work.
11910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11914 hardcode_libdir_flag_spec='-L$libdir'
11915 hardcode_direct=yes
11916 hardcode_minus_L=yes
11917 hardcode_shlibpath_var=no
11921 case $host_vendor in
11923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924 hardcode_direct=yes # is this really true???
11927 ## LD is ld it makes a PLAMLIB
11928 ## CC just makes a GrossModule.
11929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11930 reload_cmds='$CC -r -o $output$reload_objs'
11934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11938 runpath_var='LD_RUN_PATH'
11939 hardcode_shlibpath_var=no
11943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944 hardcode_shlibpath_var=no
11945 export_dynamic_flag_spec='-Bexport'
11949 if test -d /usr/nec; then
11950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11951 hardcode_shlibpath_var=no
11952 runpath_var=LD_RUN_PATH
11953 hardcode_runpath_var=yes
11958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11959 no_undefined_flag='${wl}-z,text'
11960 archive_cmds_need_lc=no
11961 hardcode_shlibpath_var=no
11962 runpath_var='LD_RUN_PATH'
11964 if test "$GCC" = yes; then
11965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11973 sysv5* | sco3.2v5* | sco5v6*)
11974 # Note: We can NOT use -z defs as we might desire, because we do not
11975 # link with -lc, and that would cause any symbols used from libc to
11976 # always be unresolved, which means just about no library would
11977 # ever link correctly. If we're not using GNU ld we use -z text
11978 # though, which does catch some bad symbols but isn't as heavy-handed
11980 no_undefined_flag='${wl}-z,text'
11981 allow_undefined_flag='${wl}-z,nodefs'
11982 archive_cmds_need_lc=no
11983 hardcode_shlibpath_var=no
11984 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11985 hardcode_libdir_separator=':'
11986 link_all_deplibs=yes
11987 export_dynamic_flag_spec='${wl}-Bexport'
11988 runpath_var='LD_RUN_PATH'
11990 if test "$GCC" = yes; then
11991 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001 hardcode_libdir_flag_spec='-L$libdir'
12002 hardcode_shlibpath_var=no
12010 if test x$host_vendor = xsni; then
12012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12013 export_dynamic_flag_spec='${wl}-Blargedynsym'
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12020 $as_echo "$ld_shlibs" >&6; }
12021 test "$ld_shlibs" = no && can_build_shared=no
12023 with_gnu_ld=$with_gnu_ld
12040 # Do we need to explicitly link libc?
12042 case "x$archive_cmds_need_lc" in
12044 # Assume -lc should be added
12045 archive_cmds_need_lc=yes
12047 if test "$enable_shared" = yes && test "$GCC" = yes; then
12048 case $archive_cmds in
12050 # FIXME: we may have to deal with multi-command sequences.
12053 # Test whether the compiler implicitly links with -lc since on some
12054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12055 # to ld, don't add -lc before -lgcc.
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12057 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12058 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12059 $as_echo_n "(cached) " >&6
12062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12065 (eval $ac_compile) 2>&5
12067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068 test $ac_status = 0; } 2>conftest.err; then
12071 libobjs=conftest.$ac_objext
12073 wl=$lt_prog_compiler_wl
12074 pic_flag=$lt_prog_compiler_pic
12080 lt_save_allow_undefined_flag=$allow_undefined_flag
12081 allow_undefined_flag=
12082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12083 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086 test $ac_status = 0; }
12088 lt_cv_archive_cmds_need_lc=no
12090 lt_cv_archive_cmds_need_lc=yes
12092 allow_undefined_flag=$lt_save_allow_undefined_flag
12094 cat conftest.err 1>&5
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12100 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12101 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12260 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12262 if test "$GCC" = yes; then
12264 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12265 *) lt_awk_arg="/^libraries:/" ;;
12268 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12269 *) lt_sed_strip_eq="s,=/,/,g" ;;
12271 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12272 case $lt_search_path_spec in
12274 # if the path contains ";" then we assume it to be the separator
12275 # otherwise default to the standard path separator (i.e. ":") - it is
12276 # assumed that no part of a normal pathname contains ";" but that should
12277 # okay in the real world where ";" in dirpaths is itself problematic.
12278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12284 # Ok, now we have the path, separated by spaces, we can step through it
12285 # and add multilib dir if necessary.
12286 lt_tmp_lt_search_path_spec=
12287 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12288 for lt_sys_path in $lt_search_path_spec; do
12289 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12290 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12292 test -d "$lt_sys_path" && \
12293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12296 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12297 BEGIN {RS=" "; FS="/|\n";} {
12300 for (lt_i = NF; lt_i > 0; lt_i--) {
12301 if ($lt_i != "" && $lt_i != ".") {
12302 if ($lt_i == "..") {
12305 if (lt_count == 0) {
12306 lt_foo="/" $lt_i lt_foo;
12313 if (lt_foo != "") { lt_freq[lt_foo]++; }
12314 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12316 # AWK program above erroneously prepends '/' to C:/dos/paths
12319 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12320 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12322 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12324 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12326 library_names_spec=
12327 libname_spec='lib$name'
12331 postuninstall_cmds=
12335 shlibpath_overrides_runpath=unknown
12337 dynamic_linker="$host_os ld.so"
12338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12339 need_lib_prefix=unknown
12340 hardcode_into_libs=no
12342 # when you set need_version to no, make sure it does not cause -set_version
12343 # flags to be left without arguments
12344 need_version=unknown
12348 version_type=linux # correct to gnu/linux during the next big refactor
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12350 shlibpath_var=LIBPATH
12352 # AIX 3 has no versioning support, so we append a major version to the name.
12353 soname_spec='${libname}${release}${shared_ext}$major'
12357 version_type=linux # correct to gnu/linux during the next big refactor
12360 hardcode_into_libs=yes
12361 if test "$host_cpu" = ia64; then
12362 # AIX 5 supports IA64
12363 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12364 shlibpath_var=LD_LIBRARY_PATH
12366 # With GCC up to 2.95.x, collect2 would create an import file
12367 # for dependence libraries. The import file would start with
12368 # the line `#! .'. This would cause the generated library to
12369 # depend on `.', always an invalid library. This was fixed in
12370 # development snapshots of GCC prior to 3.0.
12372 aix4 | aix4.[01] | aix4.[01].*)
12373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12375 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12378 can_build_shared=no
12382 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12383 # soname into executable. Probably we can add versioning support to
12384 # collect2, so additional links can be useful in future.
12385 if test "$aix_use_runtimelinking" = yes; then
12386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12387 # instead of lib<name>.a to let people know that these are not
12388 # typical AIX shared libraries.
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391 # We preserve .a as extension for shared libraries through AIX4.2
12392 # and later when we are not doing run time linking.
12393 library_names_spec='${libname}${release}.a $libname.a'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12396 shlibpath_var=LIBPATH
12403 # Since July 2007 AmigaOS4 officially supports .so libraries.
12404 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12408 library_names_spec='$libname.ixlibrary $libname.a'
12409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12410 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'
12416 library_names_spec='${libname}${shared_ext}'
12417 dynamic_linker="$host_os ld.so"
12418 shlibpath_var=LIBRARY_PATH
12422 version_type=linux # correct to gnu/linux during the next big refactor
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12427 shlibpath_var=LD_LIBRARY_PATH
12428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12430 # the default ld.so.conf also contains /usr/contrib/lib and
12431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12432 # libtool to hard-code these into programs
12435 cygwin* | mingw* | pw32* | cegcc*)
12436 version_type=windows
12441 case $GCC,$cc_basename in
12444 library_names_spec='$libname.dll.a'
12445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12446 postinstall_cmds='base_file=`basename \${file}`~
12447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12448 dldir=$destdir/`dirname \$dlpath`~
12449 test -d \$dldir || mkdir -p \$dldir~
12450 $install_prog $dir/$dlname \$dldir/$dlname~
12451 chmod a+x \$dldir/$dlname~
12452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12456 dlpath=$dir/\$dldll~
12458 shlibpath_overrides_runpath=yes
12462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12468 # MinGW DLLs use traditional 'lib' prefix
12469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12472 # pw32 DLLs use 'pw' prefix rather than 'lib'
12473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12476 dynamic_linker='Win32 ld.exe'
12481 libname_spec='$name'
12482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12483 library_names_spec='${libname}.dll.lib'
12487 sys_lib_search_path_spec=
12490 for lt_path in $LIB
12493 # Let DOS variable expansion print the short 8.3 style file name.
12494 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12495 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12498 # Convert to MSYS style.
12499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12502 # Convert to unix form, then to dos form, then back to unix form
12503 # but this time dos style (no spaces!) so that the unix form looks
12504 # like /cygdrive/c/PROGRA~1:/cygdr...
12505 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12506 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12507 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12510 sys_lib_search_path_spec="$LIB"
12511 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12512 # It is most probably a Windows format PATH.
12513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12517 # FIXME: find the short name or the path components, as spaces are
12518 # common. (e.g. "Program Files" -> "PROGRA~1")
12522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12523 postinstall_cmds='base_file=`basename \${file}`~
12524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12525 dldir=$destdir/`dirname \$dlpath`~
12526 test -d \$dldir || mkdir -p \$dldir~
12527 $install_prog $dir/$dlname \$dldir/$dlname'
12528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12529 dlpath=$dir/\$dldll~
12531 shlibpath_overrides_runpath=yes
12532 dynamic_linker='Win32 link.exe'
12536 # Assume MSVC wrapper
12537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12538 dynamic_linker='Win32 ld.exe'
12541 # FIXME: first we should search . and the directory the executable is in
12545 darwin* | rhapsody*)
12546 dynamic_linker="$host_os dyld"
12547 version_type=darwin
12550 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12551 soname_spec='${libname}${release}${major}$shared_ext'
12552 shlibpath_overrides_runpath=yes
12553 shlibpath_var=DYLD_LIBRARY_PATH
12554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12561 version_type=linux # correct to gnu/linux during the next big refactor
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12569 freebsd* | dragonfly*)
12570 # DragonFly does not have aout. When/if they implement a new
12571 # versioning mechanism, adjust this.
12572 if test -x /usr/bin/objformat; then
12573 objformat=`/usr/bin/objformat`
12576 freebsd[23].*) objformat=aout ;;
12577 *) objformat=elf ;;
12580 version_type=freebsd-$objformat
12581 case $version_type in
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12592 shlibpath_var=LD_LIBRARY_PATH
12595 shlibpath_overrides_runpath=yes
12597 freebsd3.[01]* | freebsdelf3.[01]*)
12598 shlibpath_overrides_runpath=yes
12599 hardcode_into_libs=yes
12601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12603 shlibpath_overrides_runpath=no
12604 hardcode_into_libs=yes
12606 *) # from 4.6 on, and DragonFly
12607 shlibpath_overrides_runpath=yes
12608 hardcode_into_libs=yes
12614 version_type=linux # correct to gnu/linux during the next big refactor
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12618 soname_spec='${libname}${release}${shared_ext}$major'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 shlibpath_overrides_runpath=no
12621 hardcode_into_libs=yes
12625 version_type=linux # correct to gnu/linux during the next big refactor
12628 dynamic_linker="$host_os runtime_loader"
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12630 soname_spec='${libname}${release}${shared_ext}$major'
12631 shlibpath_var=LIBRARY_PATH
12632 shlibpath_overrides_runpath=yes
12633 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12634 hardcode_into_libs=yes
12637 hpux9* | hpux10* | hpux11*)
12638 # Give a soname corresponding to the major version so that dld.sl refuses to
12639 # link against other versions.
12646 hardcode_into_libs=yes
12647 dynamic_linker="$host_os dld.so"
12648 shlibpath_var=LD_LIBRARY_PATH
12649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651 soname_spec='${libname}${release}${shared_ext}$major'
12652 if test "X$HPUX_IA64_MODE" = X32; then
12653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12661 hardcode_into_libs=yes
12662 dynamic_linker="$host_os dld.sl"
12663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666 soname_spec='${libname}${release}${shared_ext}$major'
12667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12672 dynamic_linker="$host_os dld.sl"
12673 shlibpath_var=SHLIB_PATH
12674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676 soname_spec='${libname}${release}${shared_ext}$major'
12679 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12680 postinstall_cmds='chmod 555 $lib'
12681 # or fails outright, so override atomically:
12682 install_override_mode=555
12686 version_type=linux # correct to gnu/linux during the next big refactor
12689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12690 soname_spec='${libname}${release}${shared_ext}$major'
12691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12692 shlibpath_var=LD_LIBRARY_PATH
12693 shlibpath_overrides_runpath=no
12694 hardcode_into_libs=yes
12697 irix5* | irix6* | nonstopux*)
12699 nonstopux*) version_type=nonstopux ;;
12701 if test "$lt_cv_prog_gnu_ld" = yes; then
12702 version_type=linux # correct to gnu/linux during the next big refactor
12709 soname_spec='${libname}${release}${shared_ext}$major'
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12712 irix5* | nonstopux*)
12713 libsuff= shlibsuff=
12716 case $LD in # libtool.m4 will add one of these switches to LD
12717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12718 libsuff= shlibsuff= libmagic=32-bit;;
12719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12720 libsuff=32 shlibsuff=N32 libmagic=N32;;
12721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12722 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12723 *) libsuff= shlibsuff= libmagic=never-match;;
12727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12728 shlibpath_overrides_runpath=no
12729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12731 hardcode_into_libs=yes
12734 # No shared lib support for Linux oldld, aout, or coff.
12735 linux*oldld* | linux*aout* | linux*coff*)
12739 # This must be glibc/ELF.
12740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12741 version_type=linux # correct to gnu/linux during the next big refactor
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12745 soname_spec='${libname}${release}${shared_ext}$major'
12746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12747 shlibpath_var=LD_LIBRARY_PATH
12748 shlibpath_overrides_runpath=no
12750 # Some binutils ld are patched to set DT_RUNPATH
12751 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12752 $as_echo_n "(cached) " >&6
12754 lt_cv_shlibpath_overrides_runpath=no
12755 save_LDFLAGS=$LDFLAGS
12756 save_libdir=$libdir
12757 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12758 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12770 if ac_fn_c_try_link "$LINENO"; then :
12771 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12772 lt_cv_shlibpath_overrides_runpath=yes
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LDFLAGS=$save_LDFLAGS
12778 libdir=$save_libdir
12782 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12784 # This implies no fast_install, which is unacceptable.
12785 # Some rework will be needed to allow for fast_install
12786 # before this can be enabled.
12787 hardcode_into_libs=yes
12789 # Append ld.so.conf contents to the search path
12790 if test -f /etc/ld.so.conf; then
12791 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' ' '`
12792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12795 # We used to test for /lib/ld.so.1 and disable shared libraries on
12796 # powerpc, because MkLinux only supported shared libraries with the
12797 # GNU dynamic linker. Since this was broken with cross compilers,
12798 # most powerpc-linux boxes support dynamic linking these days and
12799 # people can always --disable-shared, the test was removed, and we
12800 # assume the GNU/Linux dynamic linker is in use.
12801 dynamic_linker='GNU/Linux ld.so'
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12809 soname_spec='${libname}${release}${shared_ext}$major'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 shlibpath_overrides_runpath=no
12812 hardcode_into_libs=yes
12813 dynamic_linker='NetBSD ld.elf_so'
12820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12823 dynamic_linker='NetBSD (a.out) ld.so'
12825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 dynamic_linker='NetBSD ld.elf_so'
12829 shlibpath_var=LD_LIBRARY_PATH
12830 shlibpath_overrides_runpath=yes
12831 hardcode_into_libs=yes
12835 version_type=linux # correct to gnu/linux during the next big refactor
12836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 shlibpath_overrides_runpath=yes
12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846 soname_spec='${libname}${release}${shared_ext}$major'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=no
12849 hardcode_into_libs=yes
12850 dynamic_linker='ldqnx.so'
12855 sys_lib_dlsearch_path_spec="/usr/lib"
12857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12859 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12860 *) need_version=no ;;
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12864 shlibpath_var=LD_LIBRARY_PATH
12865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12867 openbsd2.[89] | openbsd2.[89].*)
12868 shlibpath_overrides_runpath=no
12871 shlibpath_overrides_runpath=yes
12875 shlibpath_overrides_runpath=yes
12880 libname_spec='$name'
12883 library_names_spec='$libname${shared_ext} $libname.a'
12884 dynamic_linker='OS/2 ld.exe'
12885 shlibpath_var=LIBPATH
12888 osf3* | osf4* | osf5*)
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12904 version_type=linux # correct to gnu/linux during the next big refactor
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=yes
12911 hardcode_into_libs=yes
12912 # ldd complains unless libraries are executable
12913 postinstall_cmds='chmod +x $lib'
12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=yes
12922 if test "$with_gnu_ld" = yes; then
12929 version_type=linux # correct to gnu/linux during the next big refactor
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 case $host_vendor in
12935 shlibpath_overrides_runpath=no
12937 runpath_var=LD_RUN_PATH
12945 shlibpath_overrides_runpath=no
12946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12952 if test -d /usr/nec ;then
12953 version_type=linux # correct to gnu/linux during the next big refactor
12954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12955 soname_spec='$libname${shared_ext}.$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12961 version_type=freebsd-elf
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 shlibpath_overrides_runpath=yes
12968 hardcode_into_libs=yes
12969 if test "$with_gnu_ld" = yes; then
12970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12979 sys_lib_dlsearch_path_spec='/usr/lib'
12983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12984 version_type=linux # correct to gnu/linux during the next big refactor
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 shlibpath_overrides_runpath=no
12990 hardcode_into_libs=yes
12994 version_type=linux # correct to gnu/linux during the next big refactor
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996 soname_spec='${libname}${release}${shared_ext}$major'
12997 shlibpath_var=LD_LIBRARY_PATH
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13005 $as_echo "$dynamic_linker" >&6; }
13006 test "$dynamic_linker" = no && can_build_shared=no
13008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13009 if test "$GCC" = yes; then
13010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13013 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13016 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13017 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13112 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13114 if test -n "$hardcode_libdir_flag_spec" ||
13115 test -n "$runpath_var" ||
13116 test "X$hardcode_automatic" = "Xyes" ; then
13118 # We can hardcode non-existent directories.
13119 if test "$hardcode_direct" != no &&
13120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13121 # have to relink, otherwise we might link with an installed library
13122 # when we should be linking with a yet-to-be-installed one
13123 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13124 test "$hardcode_minus_L" != no; then
13125 # Linking always hardcodes the temporary library directory.
13126 hardcode_action=relink
13128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13129 hardcode_action=immediate
13132 # We cannot hardcode anything, or else we can only hardcode existing
13134 hardcode_action=unsupported
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13137 $as_echo "$hardcode_action" >&6; }
13139 if test "$hardcode_action" = relink ||
13140 test "$inherit_rpath" = yes; then
13141 # Fast installation is not supported
13142 enable_fast_install=no
13143 elif test "$shlibpath_overrides_runpath" = yes ||
13144 test "$enable_shared" = no; then
13145 # Fast installation is not necessary
13146 enable_fast_install=needless
13154 if test "x$enable_dlopen" != xyes; then
13155 enable_dlopen=unknown
13156 enable_dlopen_self=unknown
13157 enable_dlopen_self_static=unknown
13164 lt_cv_dlopen="load_add_on"
13166 lt_cv_dlopen_self=yes
13169 mingw* | pw32* | cegcc*)
13170 lt_cv_dlopen="LoadLibrary"
13175 lt_cv_dlopen="dlopen"
13180 # if libdl is installed we need to link against it
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13182 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13183 if ${ac_cv_lib_dl_dlopen+:} false; then :
13184 $as_echo_n "(cached) " >&6
13186 ac_check_lib_save_LIBS=$LIBS
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13191 /* Override any GCC internal prototype to avoid an error.
13192 Use char because int might match the return type of a GCC
13193 builtin and then its argument prototype would still apply. */
13206 if ac_fn_c_try_link "$LINENO"; then :
13207 ac_cv_lib_dl_dlopen=yes
13209 ac_cv_lib_dl_dlopen=no
13211 rm -f core conftest.err conftest.$ac_objext \
13212 conftest$ac_exeext conftest.$ac_ext
13213 LIBS=$ac_check_lib_save_LIBS
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13217 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13221 lt_cv_dlopen="dyld"
13223 lt_cv_dlopen_self=yes
13230 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13231 if test "x$ac_cv_func_shl_load" = xyes; then :
13232 lt_cv_dlopen="shl_load"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13235 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13236 if ${ac_cv_lib_dld_shl_load+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_check_lib_save_LIBS=$LIBS
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13254 return shl_load ();
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_dld_shl_load=yes
13262 ac_cv_lib_dld_shl_load=no
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13269 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13270 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13273 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13274 if test "x$ac_cv_func_dlopen" = xyes; then :
13275 lt_cv_dlopen="dlopen"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13279 if ${ac_cv_lib_dl_dlopen+:} false; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_check_lib_save_LIBS=$LIBS
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_dl_dlopen=yes
13305 ac_cv_lib_dl_dlopen=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13317 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13318 if ${ac_cv_lib_svld_dlopen+:} false; then :
13319 $as_echo_n "(cached) " >&6
13321 ac_check_lib_save_LIBS=$LIBS
13322 LIBS="-lsvld $LIBS"
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13326 /* Override any GCC internal prototype to avoid an error.
13327 Use char because int might match the return type of a GCC
13328 builtin and then its argument prototype would still apply. */
13341 if ac_fn_c_try_link "$LINENO"; then :
13342 ac_cv_lib_svld_dlopen=yes
13344 ac_cv_lib_svld_dlopen=no
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13351 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13352 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13356 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13357 if ${ac_cv_lib_dld_dld_link+:} false; then :
13358 $as_echo_n "(cached) " >&6
13360 ac_check_lib_save_LIBS=$LIBS
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13375 return dld_link ();
13380 if ac_fn_c_try_link "$LINENO"; then :
13381 ac_cv_lib_dld_dld_link=yes
13383 ac_cv_lib_dld_dld_link=no
13385 rm -f core conftest.err conftest.$ac_objext \
13386 conftest$ac_exeext conftest.$ac_ext
13387 LIBS=$ac_check_lib_save_LIBS
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13390 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13391 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13392 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13413 if test "x$lt_cv_dlopen" != xno; then
13419 case $lt_cv_dlopen in
13421 save_CPPFLAGS="$CPPFLAGS"
13422 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13424 save_LDFLAGS="$LDFLAGS"
13425 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13428 LIBS="$lt_cv_dlopen_libs $LIBS"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13431 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13432 if ${lt_cv_dlopen_self+:} false; then :
13433 $as_echo_n "(cached) " >&6
13435 if test "$cross_compiling" = yes; then :
13436 lt_cv_dlopen_self=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=yes ;;
13519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13520 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13523 # compilation failed
13524 lt_cv_dlopen_self=no
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13532 $as_echo "$lt_cv_dlopen_self" >&6; }
13534 if test "x$lt_cv_dlopen_self" = xyes; then
13535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13537 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13538 if ${lt_cv_dlopen_self_static+:} false; then :
13539 $as_echo_n "(cached) " >&6
13541 if test "$cross_compiling" = yes; then :
13542 lt_cv_dlopen_self_static=cross
13544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13545 lt_status=$lt_dlunknown
13546 cat > conftest.$ac_ext <<_LT_EOF
13547 #line $LINENO "configure"
13548 #include "confdefs.h"
13557 # define LT_DLGLOBAL RTLD_GLOBAL
13560 # define LT_DLGLOBAL DL_GLOBAL
13562 # define LT_DLGLOBAL 0
13566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13567 find out it does not work in some platform. */
13568 #ifndef LT_DLLAZY_OR_NOW
13570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13573 # define LT_DLLAZY_OR_NOW DL_LAZY
13576 # define LT_DLLAZY_OR_NOW RTLD_NOW
13579 # define LT_DLLAZY_OR_NOW DL_NOW
13581 # define LT_DLLAZY_OR_NOW 0
13588 /* When -fvisbility=hidden is used, assume the code has been annotated
13589 correspondingly for the symbols needed. */
13590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13591 int fnord () __attribute__((visibility("default")));
13594 int fnord () { return 42; }
13597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13598 int status = $lt_dlunknown;
13602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13606 else puts (dlerror ());
13608 /* dlclose (self); */
13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13617 (eval $ac_link) 2>&5
13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13621 (./conftest; exit; ) >&5 2>/dev/null
13623 case x$lt_status in
13624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13626 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13629 # compilation failed
13630 lt_cv_dlopen_self_static=no
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13641 CPPFLAGS="$save_CPPFLAGS"
13642 LDFLAGS="$save_LDFLAGS"
13647 case $lt_cv_dlopen_self in
13648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13649 *) enable_dlopen_self=unknown ;;
13652 case $lt_cv_dlopen_self_static in
13653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13654 *) enable_dlopen_self_static=unknown ;;
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13677 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13678 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13679 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13680 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13682 $as_echo "yes" >&6; }
13684 # FIXME - insert some real tests, host_os isn't really good enough
13687 if test -n "$STRIP" ; then
13688 striplib="$STRIP -x"
13689 old_striplib="$STRIP -S"
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13691 $as_echo "yes" >&6; }
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13715 # Report which library types will actually be built
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13717 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13719 $as_echo "$can_build_shared" >&6; }
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13722 $as_echo_n "checking whether to build shared libraries... " >&6; }
13723 test "$can_build_shared" = "no" && enable_shared=no
13725 # On AIX, shared libraries and static libraries use the same namespace, and
13726 # are all built from PIC.
13729 test "$enable_shared" = yes && enable_static=no
13730 if test -n "$RANLIB"; then
13731 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13732 postinstall_cmds='$RANLIB $lib'
13737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13738 test "$enable_shared" = yes && enable_static=no
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13743 $as_echo "$enable_shared" >&6; }
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13746 $as_echo_n "checking whether to build static libraries... " >&6; }
13747 # Make sure either enable_shared or enable_static is yes.
13748 test "$enable_shared" = yes || enable_static=yes
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13750 $as_echo "$enable_static" >&6; }
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13764 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13765 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13766 (test "X$CXX" != "Xg++"))) ; then
13768 ac_cpp='$CXXCPP $CPPFLAGS'
13769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13773 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13774 if test -z "$CXXCPP"; then
13775 if ${ac_cv_prog_CXXCPP+:} false; then :
13776 $as_echo_n "(cached) " >&6
13778 # Double quotes because CXXCPP needs to be expanded
13779 for CXXCPP in "$CXX -E" "/lib/cpp"
13781 ac_preproc_ok=false
13782 for ac_cxx_preproc_warn_flag in '' yes
13784 # Use a header file that comes with gcc, so configuring glibc
13785 # with a fresh cross-compiler works.
13786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13787 # <limits.h> exists even on freestanding compilers.
13788 # On the NeXT, cc -E runs the code through the compiler's parser,
13789 # not just through cpp. "Syntax error" is here to catch this case.
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13793 # include <limits.h>
13795 # include <assert.h>
13799 if ac_fn_cxx_try_cpp "$LINENO"; then :
13802 # Broken: fails on valid input.
13805 rm -f conftest.err conftest.i conftest.$ac_ext
13807 # OK, works on sane cases. Now check whether nonexistent headers
13808 # can be detected and how.
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 #include <ac_nonexistent.h>
13813 if ac_fn_cxx_try_cpp "$LINENO"; then :
13814 # Broken: success on invalid input.
13817 # Passes both tests.
13821 rm -f conftest.err conftest.i conftest.$ac_ext
13824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13825 rm -f conftest.i conftest.err conftest.$ac_ext
13826 if $ac_preproc_ok; then :
13831 ac_cv_prog_CXXCPP=$CXXCPP
13834 CXXCPP=$ac_cv_prog_CXXCPP
13836 ac_cv_prog_CXXCPP=$CXXCPP
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13839 $as_echo "$CXXCPP" >&6; }
13840 ac_preproc_ok=false
13841 for ac_cxx_preproc_warn_flag in '' yes
13843 # Use a header file that comes with gcc, so configuring glibc
13844 # with a fresh cross-compiler works.
13845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846 # <limits.h> exists even on freestanding compilers.
13847 # On the NeXT, cc -E runs the code through the compiler's parser,
13848 # not just through cpp. "Syntax error" is here to catch this case.
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13852 # include <limits.h>
13854 # include <assert.h>
13858 if ac_fn_cxx_try_cpp "$LINENO"; then :
13861 # Broken: fails on valid input.
13864 rm -f conftest.err conftest.i conftest.$ac_ext
13866 # OK, works on sane cases. Now check whether nonexistent headers
13867 # can be detected and how.
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870 #include <ac_nonexistent.h>
13872 if ac_fn_cxx_try_cpp "$LINENO"; then :
13873 # Broken: success on invalid input.
13876 # Passes both tests.
13880 rm -f conftest.err conftest.i conftest.$ac_ext
13883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13884 rm -f conftest.i conftest.err conftest.$ac_ext
13885 if $ac_preproc_ok; then :
13888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13890 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13891 See \`config.log' for more details" "$LINENO" 5; }
13895 ac_cpp='$CPP $CPPFLAGS'
13896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13901 _lt_caught_CXX_error=yes
13905 ac_cpp='$CXXCPP $CPPFLAGS'
13906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13910 archive_cmds_need_lc_CXX=no
13911 allow_undefined_flag_CXX=
13912 always_export_symbols_CXX=no
13913 archive_expsym_cmds_CXX=
13914 compiler_needs_object_CXX=no
13915 export_dynamic_flag_spec_CXX=
13916 hardcode_direct_CXX=no
13917 hardcode_direct_absolute_CXX=no
13918 hardcode_libdir_flag_spec_CXX=
13919 hardcode_libdir_separator_CXX=
13920 hardcode_minus_L_CXX=no
13921 hardcode_shlibpath_var_CXX=unsupported
13922 hardcode_automatic_CXX=no
13923 inherit_rpath_CXX=no
13925 module_expsym_cmds_CXX=
13926 link_all_deplibs_CXX=unknown
13927 old_archive_cmds_CXX=$old_archive_cmds
13928 reload_flag_CXX=$reload_flag
13929 reload_cmds_CXX=$reload_cmds
13930 no_undefined_flag_CXX=
13931 whole_archive_flag_spec_CXX=
13932 enable_shared_with_static_runtimes_CXX=no
13934 # Source file extension for C++ test sources.
13937 # Object file extension for compiled C++ test sources.
13941 # No sense in running all these tests if we already determined that
13942 # the CXX compiler isn't working. Some variables (like enable_shared)
13943 # are currently assumed to apply to all compilers on this platform,
13944 # and will be corrupted by setting them based on a non-working compiler.
13945 if test "$_lt_caught_CXX_error" != yes; then
13946 # Code to be used in simple compile tests
13947 lt_simple_compile_test_code="int some_variable = 0;"
13949 # Code to be used in simple link tests
13950 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13959 # If no C compiler was specified, use CC.
13962 # If no C compiler flags were specified, use CFLAGS.
13963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13965 # Allow CC to be a program name with arguments.
13969 # save warnings/boilerplate of simple test code
13970 ac_outfile=conftest.$ac_objext
13971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13973 _lt_compiler_boilerplate=`cat conftest.err`
13976 ac_outfile=conftest.$ac_objext
13977 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13978 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13979 _lt_linker_boilerplate=`cat conftest.err`
13983 # Allow CC to be a program name with arguments.
13985 lt_save_CFLAGS=$CFLAGS
13989 lt_save_with_gnu_ld=$with_gnu_ld
13990 lt_save_path_LD=$lt_cv_path_LD
13991 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13992 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13994 $as_unset lt_cv_prog_gnu_ld
13996 if test -n "${lt_cv_path_LDCXX+set}"; then
13997 lt_cv_path_LD=$lt_cv_path_LDCXX
13999 $as_unset lt_cv_path_LD
14001 test -z "${LDCXX+set}" || LD=$LDCXX
14006 for cc_temp in $compiler""; do
14008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14014 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14017 if test -n "$compiler"; then
14018 # We don't want -fno-exception when compiling C++ code, so set the
14019 # no_builtin_flag separately
14020 if test "$GXX" = yes; then
14021 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14023 lt_prog_compiler_no_builtin_flag_CXX=
14026 if test "$GXX" = yes; then
14027 # Set up default GNU C++ configuration
14031 # Check whether --with-gnu-ld was given.
14032 if test "${with_gnu_ld+set}" = set; then :
14033 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14039 if test "$GCC" = yes; then
14040 # Check if gcc -print-prog-name=ld gives a path.
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14042 $as_echo_n "checking for ld used by $CC... " >&6; }
14045 # gcc leaves a trailing carriage return which upsets mingw
14046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14051 # Accept absolute paths.
14053 re_direlt='/[^/][^/]*/\.\./'
14054 # Canonicalize the pathname of ld
14055 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14056 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14057 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14059 test -z "$LD" && LD="$ac_prog"
14062 # If it fails, then pretend we aren't using GCC.
14066 # If it is relative, then search for the first ld in PATH.
14067 with_gnu_ld=unknown
14070 elif test "$with_gnu_ld" = yes; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14072 $as_echo_n "checking for GNU ld... " >&6; }
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14075 $as_echo_n "checking for non-GNU ld... " >&6; }
14077 if ${lt_cv_path_LD+:} false; then :
14078 $as_echo_n "(cached) " >&6
14080 if test -z "$LD"; then
14081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14082 for ac_dir in $PATH; do
14084 test -z "$ac_dir" && ac_dir=.
14085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14086 lt_cv_path_LD="$ac_dir/$ac_prog"
14087 # Check to see if the program is GNU ld. I'd rather use --version,
14088 # but apparently some variants of GNU ld only accept -v.
14089 # Break only if it was the GNU/non-GNU ld that we prefer.
14090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14091 *GNU* | *'with BFD'*)
14092 test "$with_gnu_ld" != no && break
14095 test "$with_gnu_ld" != yes && break
14102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14106 LD="$lt_cv_path_LD"
14107 if test -n "$LD"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14109 $as_echo "$LD" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14114 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14116 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14117 if ${lt_cv_prog_gnu_ld+:} false; then :
14118 $as_echo_n "(cached) " >&6
14120 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14121 case `$LD -v 2>&1 </dev/null` in
14122 *GNU* | *'with BFD'*)
14123 lt_cv_prog_gnu_ld=yes
14126 lt_cv_prog_gnu_ld=no
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14131 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14132 with_gnu_ld=$lt_cv_prog_gnu_ld
14140 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14141 # archiving commands below assume that GNU ld is being used.
14142 if test "$with_gnu_ld" = yes; then
14143 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14144 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'
14146 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14149 # If archive_cmds runs LD, not CC, wlarc should be empty
14150 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14151 # investigate it a little bit more. (MM)
14154 # ancient GNU ld didn't support --whole-archive et. al.
14155 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14156 $GREP 'no-whole-archive' > /dev/null; then
14157 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14159 whole_archive_flag_spec_CXX=
14165 # A generic and very simple default shared library creation
14166 # command for GNU C++ for the case where it uses the native
14167 # linker, instead of GNU ld. If possible, this setting should
14168 # overridden to take advantage of the native linker features on
14169 # the platform it is being used on.
14170 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14173 # Commands to make compiler produce verbose output that lists
14174 # what "hidden" libraries, object files and flags are used when
14175 # linking a shared library.
14176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14184 # PORTME: fill in a description of your system's C++ link characteristics
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14190 # FIXME: insert proper C++ library support
14194 if test "$host_cpu" = ia64; then
14195 # On IA64, the linker does run time linking by default, so we don't
14196 # have to do anything special.
14197 aix_use_runtimelinking=no
14198 exp_sym_flag='-Bexport'
14201 aix_use_runtimelinking=no
14203 # Test if we are trying to use run time linking or normal
14204 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14205 # need to do runtime linking.
14206 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14207 for ld_flag in $LDFLAGS; do
14210 aix_use_runtimelinking=yes
14218 exp_sym_flag='-bexport'
14219 no_entry_flag='-bnoentry'
14222 # When large executables or shared objects are built, AIX ld can
14223 # have problems creating the table of contents. If linking a library
14224 # or program results in "error TOC overflow" add -mminimal-toc to
14225 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14226 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14228 archive_cmds_CXX=''
14229 hardcode_direct_CXX=yes
14230 hardcode_direct_absolute_CXX=yes
14231 hardcode_libdir_separator_CXX=':'
14232 link_all_deplibs_CXX=yes
14233 file_list_spec_CXX='${wl}-f,'
14235 if test "$GXX" = yes; then
14236 case $host_os in aix4.[012]|aix4.[012].*)
14237 # We only want to do this on AIX 4.2 and lower, the check
14238 # below for broken collect2 doesn't work under 4.3+
14239 collect2name=`${CC} -print-prog-name=collect2`
14240 if test -f "$collect2name" &&
14241 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14243 # We have reworked collect2
14246 # We have old collect2
14247 hardcode_direct_CXX=unsupported
14248 # It fails to find uninstalled libraries when the uninstalled
14249 # path is not listed in the libpath. Setting hardcode_minus_L
14250 # to unsupported forces relinking
14251 hardcode_minus_L_CXX=yes
14252 hardcode_libdir_flag_spec_CXX='-L$libdir'
14253 hardcode_libdir_separator_CXX=
14256 shared_flag='-shared'
14257 if test "$aix_use_runtimelinking" = yes; then
14258 shared_flag="$shared_flag "'${wl}-G'
14262 if test "$host_cpu" = ia64; then
14263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14264 # chokes on -Wl,-G. The following line is correct:
14267 if test "$aix_use_runtimelinking" = yes; then
14268 shared_flag='${wl}-G'
14270 shared_flag='${wl}-bM:SRE'
14275 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14276 # It seems that -bexpall does not export symbols beginning with
14277 # underscore (_), so it is better to generate a list of symbols to
14279 always_export_symbols_CXX=yes
14280 if test "$aix_use_runtimelinking" = yes; then
14281 # Warning - without using the other runtime loading flags (-brtl),
14282 # -berok will link without error, but may produce a broken library.
14283 allow_undefined_flag_CXX='-berok'
14284 # Determine the default libpath from the value encoded in an empty
14286 if test "${lt_cv_aix_libpath+set}" = set; then
14287 aix_libpath=$lt_cv_aix_libpath
14289 if ${lt_cv_aix_libpath__CXX+:} false; then :
14290 $as_echo_n "(cached) " >&6
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14303 if ac_fn_cxx_try_link "$LINENO"; then :
14305 lt_aix_libpath_sed='
14306 /Import File Strings/,/^$/ {
14308 s/^0 *\([^ ]*\) *$/\1/
14312 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14313 # Check for a 64-bit object if we didn't find anything.
14314 if test -z "$lt_cv_aix_libpath__CXX"; then
14315 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14318 rm -f core conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14320 if test -z "$lt_cv_aix_libpath__CXX"; then
14321 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14326 aix_libpath=$lt_cv_aix_libpath__CXX
14329 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14331 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"
14333 if test "$host_cpu" = ia64; then
14334 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14335 allow_undefined_flag_CXX="-z nodefs"
14336 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"
14338 # Determine the default libpath from the value encoded in an
14339 # empty executable.
14340 if test "${lt_cv_aix_libpath+set}" = set; then
14341 aix_libpath=$lt_cv_aix_libpath
14343 if ${lt_cv_aix_libpath__CXX+:} false; then :
14344 $as_echo_n "(cached) " >&6
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14357 if ac_fn_cxx_try_link "$LINENO"; then :
14359 lt_aix_libpath_sed='
14360 /Import File Strings/,/^$/ {
14362 s/^0 *\([^ ]*\) *$/\1/
14366 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14367 # Check for a 64-bit object if we didn't find anything.
14368 if test -z "$lt_cv_aix_libpath__CXX"; then
14369 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 if test -z "$lt_cv_aix_libpath__CXX"; then
14375 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14380 aix_libpath=$lt_cv_aix_libpath__CXX
14383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14384 # Warning - without using the other run time loading flags,
14385 # -berok will link without error, but may produce a broken library.
14386 no_undefined_flag_CXX=' ${wl}-bernotok'
14387 allow_undefined_flag_CXX=' ${wl}-berok'
14388 if test "$with_gnu_ld" = yes; then
14389 # We only use this code for GNU lds that support --whole-archive.
14390 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14392 # Exported symbols can be pulled into shared objects from archives
14393 whole_archive_flag_spec_CXX='$convenience'
14395 archive_cmds_need_lc_CXX=yes
14396 # This is similar to how AIX traditionally builds its shared
14398 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'
14404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14405 allow_undefined_flag_CXX=unsupported
14406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14407 # support --undefined. This deserves some investigation. FIXME
14408 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415 case $cc_basename in
14417 # FIXME: insert proper C++ library support
14423 cygwin* | mingw* | pw32* | cegcc*)
14424 case $GXX,$cc_basename in
14427 # hardcode_libdir_flag_spec is actually meaningless, as there is
14428 # no search path for DLLs.
14429 hardcode_libdir_flag_spec_CXX=' '
14430 allow_undefined_flag_CXX=unsupported
14431 always_export_symbols_CXX=yes
14432 file_list_spec_CXX='@'
14433 # Tell ltmain to make .lib files, not .a files.
14435 # Tell ltmain to make .dll files, not .so files.
14437 # FIXME: Setting linknames here is a bad hack.
14438 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14439 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14440 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14442 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14444 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14446 # The linker will not automatically build a static lib if we build a DLL.
14447 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14448 enable_shared_with_static_runtimes_CXX=yes
14450 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14451 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14452 lt_tool_outputfile="@TOOL_OUTPUT@"~
14453 case $lt_outputfile in
14456 lt_outputfile="$lt_outputfile.exe"
14457 lt_tool_outputfile="$lt_tool_outputfile.exe"
14460 func_to_tool_file "$lt_outputfile"~
14461 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14462 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14463 $RM "$lt_outputfile.manifest";
14468 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14469 # as there is no search path for DLLs.
14470 hardcode_libdir_flag_spec_CXX='-L$libdir'
14471 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14472 allow_undefined_flag_CXX=unsupported
14473 always_export_symbols_CXX=no
14474 enable_shared_with_static_runtimes_CXX=yes
14476 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14477 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'
14478 # If the export-symbols file already is a .def file (1st line
14479 # is EXPORTS), use it as is; otherwise, prepend...
14480 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14481 cp $export_symbols $output_objdir/$soname.def;
14483 echo EXPORTS > $output_objdir/$soname.def;
14484 cat $export_symbols >> $output_objdir/$soname.def;
14486 $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'
14493 darwin* | rhapsody*)
14496 archive_cmds_need_lc_CXX=no
14497 hardcode_direct_CXX=no
14498 hardcode_automatic_CXX=yes
14499 hardcode_shlibpath_var_CXX=unsupported
14500 if test "$lt_cv_ld_force_load" = "yes"; then
14501 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\"`'
14504 whole_archive_flag_spec_CXX=''
14506 link_all_deplibs_CXX=yes
14507 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14508 case $cc_basename in
14509 ifort*) _lt_dar_can_shared=yes ;;
14510 *) _lt_dar_can_shared=$GCC ;;
14512 if test "$_lt_dar_can_shared" = "yes"; then
14513 output_verbose_link_cmd=func_echo_all
14514 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}"
14515 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14516 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}"
14517 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}"
14518 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14519 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}"
14520 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}"
14530 case $cc_basename in
14532 # FIXME: insert proper C++ library support
14536 # Green Hills C++ Compiler
14537 # FIXME: insert proper C++ library support
14541 # FIXME: insert proper C++ library support
14548 # C++ shared libraries reported to be fairly broken before
14554 archive_cmds_need_lc_CXX=no
14557 freebsd* | dragonfly*)
14558 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14567 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568 link_all_deplibs_CXX=yes
14572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14573 hardcode_libdir_separator_CXX=:
14574 export_dynamic_flag_spec_CXX='${wl}-E'
14575 hardcode_direct_CXX=yes
14576 hardcode_minus_L_CXX=yes # Not in the search PATH,
14577 # but as the default
14578 # location of the library.
14580 case $cc_basename in
14582 # FIXME: insert proper C++ library support
14586 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'
14587 # Commands to make compiler produce verbose output that lists
14588 # what "hidden" libraries, object files and flags are used when
14589 # linking a shared library.
14591 # There doesn't appear to be a way to prevent this compiler from
14592 # explicitly linking system object files so we need to strip them
14593 # from the output so that they don't get included in the library
14595 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"'
14598 if test "$GXX" = yes; then
14599 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'
14601 # FIXME: insert proper C++ library support
14609 if test $with_gnu_ld = no; then
14610 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14611 hardcode_libdir_separator_CXX=:
14617 export_dynamic_flag_spec_CXX='${wl}-E'
14623 hardcode_direct_CXX=no
14624 hardcode_shlibpath_var_CXX=no
14627 hardcode_direct_CXX=yes
14628 hardcode_direct_absolute_CXX=yes
14629 hardcode_minus_L_CXX=yes # Not in the search PATH,
14630 # but as the default
14631 # location of the library.
14635 case $cc_basename in
14637 # FIXME: insert proper C++ library support
14643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14652 # Commands to make compiler produce verbose output that lists
14653 # what "hidden" libraries, object files and flags are used when
14654 # linking a shared library.
14656 # There doesn't appear to be a way to prevent this compiler from
14657 # explicitly linking system object files so we need to strip them
14658 # from the output so that they don't get included in the library
14660 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"'
14663 if test "$GXX" = yes; then
14664 if test $with_gnu_ld = no; then
14667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14670 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14673 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'
14678 # FIXME: insert proper C++ library support
14686 hardcode_direct_CXX=no
14687 hardcode_shlibpath_var_CXX=no
14688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14689 export_dynamic_flag_spec_CXX='${wl}-E'
14690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14691 # Instead, shared libraries are loaded at an image base (0x10000000 by
14692 # default) and relocated if they conflict, which is a slow very memory
14693 # consuming and fragmenting process. To avoid this, we pick a random,
14694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14696 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'
14697 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'
14700 case $cc_basename in
14703 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'
14705 # Archives containing C++ object files must be created using
14706 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14707 # necessary to make sure instantiated templates are included
14709 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14712 if test "$GXX" = yes; then
14713 if test "$with_gnu_ld" = no; then
14714 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'
14716 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'
14719 link_all_deplibs_CXX=yes
14722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator_CXX=:
14724 inherit_rpath_CXX=yes
14727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14728 case $cc_basename in
14730 # Kuck and Associates, Inc. (KAI) C++ Compiler
14732 # KCC will only create a shared library if the output file
14733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14734 # to its proper name (with version) after linking.
14735 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'
14736 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'
14737 # Commands to make compiler produce verbose output that lists
14738 # what "hidden" libraries, object files and flags are used when
14739 # linking a shared library.
14741 # There doesn't appear to be a way to prevent this compiler from
14742 # explicitly linking system object files so we need to strip them
14743 # from the output so that they don't get included in the library
14745 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"'
14747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14750 # Archives containing C++ object files must be created using
14751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14757 # version 8.0 and above of icpc choke on multiply defined symbols
14758 # if we add $predep_objects and $postdep_objects, however 7.1 and
14759 # earlier do not add the objects themselves.
14760 case `$CC -V 2>&1` in
14762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763 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'
14765 *) # Version 8.0 or newer
14768 ia64*) tmp_idyn=' -i_dynamic';;
14770 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771 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'
14774 archive_cmds_need_lc_CXX=no
14775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14777 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14780 # Portland Group C++ compiler
14782 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14783 prelink_cmds_CXX='tpldir=Template.dir~
14785 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14786 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14787 old_archive_cmds_CXX='tpldir=Template.dir~
14789 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14790 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14792 archive_cmds_CXX='tpldir=Template.dir~
14794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14795 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14796 archive_expsym_cmds_CXX='tpldir=Template.dir~
14798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14799 $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'
14801 *) # Version 6 and above use weak symbols
14802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14803 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'
14807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14809 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'
14813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14814 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'
14816 runpath_var=LD_RUN_PATH
14817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14818 hardcode_libdir_separator_CXX=:
14820 # Commands to make compiler produce verbose output that lists
14821 # what "hidden" libraries, object files and flags are used when
14822 # linking a shared library.
14824 # There doesn't appear to be a way to prevent this compiler from
14825 # explicitly linking system object files so we need to strip them
14826 # from the output so that they don't get included in the library
14828 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'
14830 xl* | mpixl* | bgxl*)
14831 # IBM XL 8.0 on PPC, with GNU ld
14832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14834 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835 if test "x$supports_anon_versioning" = xyes; then
14836 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14838 echo "local: *; };" >> $output_objdir/$libname.ver~
14839 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14843 case `$CC -V 2>&1 | sed 5q` in
14846 no_undefined_flag_CXX=' -zdefs'
14847 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848 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'
14849 hardcode_libdir_flag_spec_CXX='-R$libdir'
14850 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'
14851 compiler_needs_object_CXX=yes
14853 # Not sure whether something based on
14854 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14856 output_verbose_link_cmd='func_echo_all'
14858 # Archives containing C++ object files must be created using
14859 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14860 # necessary to make sure instantiated templates are included
14862 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14870 # FIXME: insert proper C++ library support
14875 # FIXME: insert proper C++ library support
14880 case $cc_basename in
14882 # FIXME: insert proper C++ library support
14886 # FIXME: insert proper C++ library support
14893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14894 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14896 hardcode_libdir_flag_spec_CXX='-R$libdir'
14897 hardcode_direct_CXX=yes
14898 hardcode_shlibpath_var_CXX=no
14900 # Workaround some broken pre-1.5 toolchains
14901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14909 # C++ shared libraries are fairly broken
14914 if test -f /usr/libexec/ld.so; then
14915 hardcode_direct_CXX=yes
14916 hardcode_shlibpath_var_CXX=no
14917 hardcode_direct_absolute_CXX=yes
14918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14922 export_dynamic_flag_spec_CXX='${wl}-E'
14923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14925 output_verbose_link_cmd=func_echo_all
14931 osf3* | osf4* | osf5*)
14932 case $cc_basename in
14934 # Kuck and Associates, Inc. (KAI) C++ Compiler
14936 # KCC will only create a shared library if the output file
14937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14938 # to its proper name (with version) after linking.
14939 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'
14941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14942 hardcode_libdir_separator_CXX=:
14944 # Archives containing C++ object files must be created using
14945 # the KAI C++ compiler.
14947 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14948 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14952 # Rational C++ 2.4.1
14953 # FIXME: insert proper C++ library support
14959 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14960 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'
14961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14964 allow_undefined_flag_CXX=' -expect_unresolved \*'
14965 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'
14966 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14967 echo "-hidden">> $lib.exp~
14968 $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~
14970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14974 hardcode_libdir_separator_CXX=:
14976 # Commands to make compiler produce verbose output that lists
14977 # what "hidden" libraries, object files and flags are used when
14978 # linking a shared library.
14980 # There doesn't appear to be a way to prevent this compiler from
14981 # explicitly linking system object files so we need to strip them
14982 # from the output so that they don't get included in the library
14984 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"'
14987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14991 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'
14994 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'
14998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14999 hardcode_libdir_separator_CXX=:
15001 # Commands to make compiler produce verbose output that lists
15002 # what "hidden" libraries, object files and flags are used when
15003 # linking a shared library.
15004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15007 # FIXME: insert proper C++ library support
15015 # FIXME: insert proper C++ library support
15020 case $cc_basename in
15023 # FIXME: insert proper C++ library support
15028 # FIXME: insert proper C++ library support
15032 # FIXME: insert proper C++ library support
15039 case $cc_basename in
15041 # Sun C++ 4.2, 5.x and Centerline C++
15042 archive_cmds_need_lc_CXX=yes
15043 no_undefined_flag_CXX=' -zdefs'
15044 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15046 $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'
15048 hardcode_libdir_flag_spec_CXX='-R$libdir'
15049 hardcode_shlibpath_var_CXX=no
15051 solaris2.[0-5] | solaris2.[0-5].*) ;;
15053 # The compiler driver will combine and reorder linker options,
15054 # but understands `-z linker_flag'.
15055 # Supported since Solaris 2.6 (maybe 2.5.1?)
15056 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15059 link_all_deplibs_CXX=yes
15061 output_verbose_link_cmd='func_echo_all'
15063 # Archives containing C++ object files must be created using
15064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15065 # necessary to make sure instantiated templates are included
15067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15070 # Green Hills C++ Compiler
15071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15073 # The C++ compiler must be used to create the archive.
15074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15077 # GNU C++ compiler with Solaris linker
15078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15079 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15080 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15081 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15082 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15083 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15085 # Commands to make compiler produce verbose output that lists
15086 # what "hidden" libraries, object files and flags are used when
15087 # linking a shared library.
15088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15090 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15092 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15094 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15096 # Commands to make compiler produce verbose output that lists
15097 # what "hidden" libraries, object files and flags are used when
15098 # linking a shared library.
15099 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15102 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15104 solaris2.[0-5] | solaris2.[0-5].*) ;;
15106 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15115 no_undefined_flag_CXX='${wl}-z,text'
15116 archive_cmds_need_lc_CXX=no
15117 hardcode_shlibpath_var_CXX=no
15118 runpath_var='LD_RUN_PATH'
15120 case $cc_basename in
15122 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132 sysv5* | sco3.2v5* | sco5v6*)
15133 # Note: We can NOT use -z defs as we might desire, because we do not
15134 # link with -lc, and that would cause any symbols used from libc to
15135 # always be unresolved, which means just about no library would
15136 # ever link correctly. If we're not using GNU ld we use -z text
15137 # though, which does catch some bad symbols but isn't as heavy-handed
15139 no_undefined_flag_CXX='${wl}-z,text'
15140 allow_undefined_flag_CXX='${wl}-z,nodefs'
15141 archive_cmds_need_lc_CXX=no
15142 hardcode_shlibpath_var_CXX=no
15143 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15144 hardcode_libdir_separator_CXX=':'
15145 link_all_deplibs_CXX=yes
15146 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15147 runpath_var='LD_RUN_PATH'
15149 case $cc_basename in
15151 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15154 '"$old_archive_cmds_CXX"
15155 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15156 '"$reload_cmds_CXX"
15159 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166 case $cc_basename in
15168 # NonStop-UX NCC 3.20
15169 # FIXME: insert proper C++ library support
15173 # FIXME: insert proper C++ library support
15180 # FIXME: insert proper C++ library support
15185 # FIXME: insert proper C++ library support
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15191 $as_echo "$ld_shlibs_CXX" >&6; }
15192 test "$ld_shlibs_CXX" = no && can_build_shared=no
15198 ## There is no encapsulation within the following macros, do not change
15199 ## the running order or otherwise move them around unless you know exactly
15200 ## what you are doing...
15201 # Dependencies to place before and after the object being linked:
15202 predep_objects_CXX=
15203 postdep_objects_CXX=
15206 compiler_lib_search_path_CXX=
15208 cat > conftest.$ac_ext <<_LT_EOF
15212 Foo (void) { a = 0; }
15219 _lt_libdeps_save_CFLAGS=$CFLAGS
15220 case "$CC $CFLAGS " in #(
15221 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15222 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15223 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15227 (eval $ac_compile) 2>&5
15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230 test $ac_status = 0; }; then
15231 # Parse the compiler output and extract the necessary
15232 # objects, libraries and library flags.
15234 # Sentinel used to keep track of whether or not we are before
15235 # the conftest object file.
15236 pre_test_object_deps_done=no
15238 for p in `eval "$output_verbose_link_cmd"`; do
15239 case ${prev}${p} in
15242 # Some compilers place space between "-{L,R}" and the path.
15243 # Remove the space.
15244 if test $p = "-L" ||
15245 test $p = "-R"; then
15250 # Expand the sysroot to ease extracting the directories later.
15251 if test -z "$prev"; then
15253 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15254 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15255 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15259 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15261 if test "$pre_test_object_deps_done" = no; then
15264 # Internal compiler library paths should come after those
15265 # provided the user. The postdeps already come after the
15266 # user supplied libs so there is no need to process them.
15267 if test -z "$compiler_lib_search_path_CXX"; then
15268 compiler_lib_search_path_CXX="${prev}${p}"
15270 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15273 # The "-l" case would never come before the object being
15274 # linked, so don't bother handling this case.
15277 if test -z "$postdeps_CXX"; then
15278 postdeps_CXX="${prev}${p}"
15280 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15286 *.lto.$objext) ;; # Ignore GCC LTO objects
15288 # This assumes that the test object file only shows up
15289 # once in the compiler output.
15290 if test "$p" = "conftest.$objext"; then
15291 pre_test_object_deps_done=yes
15295 if test "$pre_test_object_deps_done" = no; then
15296 if test -z "$predep_objects_CXX"; then
15297 predep_objects_CXX="$p"
15299 predep_objects_CXX="$predep_objects_CXX $p"
15302 if test -z "$postdep_objects_CXX"; then
15303 postdep_objects_CXX="$p"
15305 postdep_objects_CXX="$postdep_objects_CXX $p"
15310 *) ;; # Ignore the rest.
15318 echo "libtool.m4: error: problem compiling CXX test program"
15321 $RM -f confest.$objext
15322 CFLAGS=$_lt_libdeps_save_CFLAGS
15324 # PORTME: override above test on systems where it is broken
15327 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15328 # hack all around it, let's just trust "g++" to DTRT.
15329 predep_objects_CXX=
15330 postdep_objects_CXX=
15335 case `$CC -V 2>&1 | sed 5q` in
15339 # The more standards-conforming stlport4 library is
15340 # incompatible with the Cstd library. Avoid specifying
15341 # it if it's in CXXFLAGS. Ignore libCrun as
15342 # -library=stlport4 depends on it.
15343 case " $CXX $CXXFLAGS " in
15344 *" -library=stlport4 "*)
15345 solaris_use_stlport4=yes
15349 if test "$solaris_use_stlport4" != yes; then
15350 postdeps_CXX='-library=Cstd -library=Crun'
15357 case $cc_basename in
15359 # The more standards-conforming stlport4 library is
15360 # incompatible with the Cstd library. Avoid specifying
15361 # it if it's in CXXFLAGS. Ignore libCrun as
15362 # -library=stlport4 depends on it.
15363 case " $CXX $CXXFLAGS " in
15364 *" -library=stlport4 "*)
15365 solaris_use_stlport4=yes
15369 # Adding this requires a known-good setup of shared libraries for
15370 # Sun compiler versions before 5.6, else PIC objects from an old
15371 # archive will be linked into the output, leading to subtle bugs.
15372 if test "$solaris_use_stlport4" != yes; then
15373 postdeps_CXX='-library=Cstd -library=Crun'
15381 case " $postdeps_CXX " in
15382 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15384 compiler_lib_search_dirs_CXX=
15385 if test -n "${compiler_lib_search_path_CXX}"; then
15386 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15419 lt_prog_compiler_wl_CXX=
15420 lt_prog_compiler_pic_CXX=
15421 lt_prog_compiler_static_CXX=
15424 # C++ specific cases for pic, static, wl, etc.
15425 if test "$GXX" = yes; then
15426 lt_prog_compiler_wl_CXX='-Wl,'
15427 lt_prog_compiler_static_CXX='-static'
15431 # All AIX code is PIC.
15432 if test "$host_cpu" = ia64; then
15433 # AIX 5 now supports IA64 processor
15434 lt_prog_compiler_static_CXX='-Bstatic'
15441 # see comment about AmigaOS4 .so support
15442 lt_prog_compiler_pic_CXX='-fPIC'
15445 # FIXME: we need at least 68020 code to build shared libraries, but
15446 # adding the `-m68020' flag to GCC prevents building anything better,
15448 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15454 # PIC is the default for these OSes.
15456 mingw* | cygwin* | os2* | pw32* | cegcc*)
15457 # This hack is so that the source file can tell whether it is being
15458 # built for inclusion in a dll (and should export symbols for example).
15459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15460 # (--disable-auto-import) libraries
15461 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15463 darwin* | rhapsody*)
15464 # PIC is the default on this platform
15465 # Common symbols not allowed in MH_DYLIB files
15466 lt_prog_compiler_pic_CXX='-fno-common'
15469 # DJGPP does not support shared libraries at all
15470 lt_prog_compiler_pic_CXX=
15473 # PIC is the default for Haiku.
15474 # The "-static" flag exists, but is broken.
15475 lt_prog_compiler_static_CXX=
15478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15479 # Instead, we relocate shared libraries at runtime.
15482 if test -d /usr/nec; then
15483 lt_prog_compiler_pic_CXX=-Kconform_pic
15487 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15488 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15489 # sets the default TLS model and affects inlining.
15494 lt_prog_compiler_pic_CXX='-fPIC'
15499 # QNX uses GNU C++, but need to define -shared option too, otherwise
15500 # it will coredump.
15501 lt_prog_compiler_pic_CXX='-fPIC -shared'
15504 lt_prog_compiler_pic_CXX='-fPIC'
15510 # All AIX code is PIC.
15511 if test "$host_cpu" = ia64; then
15512 # AIX 5 now supports IA64 processor
15513 lt_prog_compiler_static_CXX='-Bstatic'
15515 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15519 case $cc_basename in
15521 # Green Hills C++ Compiler
15522 # _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"
15526 mingw* | cygwin* | os2* | pw32* | cegcc*)
15527 # This hack is so that the source file can tell whether it is being
15528 # built for inclusion in a dll (and should export symbols for example).
15529 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15532 case $cc_basename in
15534 lt_prog_compiler_pic_CXX='-KPIC'
15537 # Green Hills C++ Compiler
15538 lt_prog_compiler_pic_CXX='-pic'
15544 freebsd* | dragonfly*)
15545 # FreeBSD uses GNU C++
15547 hpux9* | hpux10* | hpux11*)
15548 case $cc_basename in
15550 lt_prog_compiler_wl_CXX='-Wl,'
15551 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15552 if test "$host_cpu" != ia64; then
15553 lt_prog_compiler_pic_CXX='+Z'
15557 lt_prog_compiler_wl_CXX='-Wl,'
15558 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15564 lt_prog_compiler_pic_CXX='+Z'
15573 # This is c89, which is MS Visual C++ (no shared libs)
15574 # Anyone wants to do a port?
15576 irix5* | irix6* | nonstopux*)
15577 case $cc_basename in
15579 lt_prog_compiler_wl_CXX='-Wl,'
15580 lt_prog_compiler_static_CXX='-non_shared'
15581 # CC pic flag -KPIC is the default.
15587 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15588 case $cc_basename in
15591 lt_prog_compiler_wl_CXX='--backend -Wl,'
15592 lt_prog_compiler_pic_CXX='-fPIC'
15595 # old Intel C++ for x86_64 which still supported -KPIC.
15596 lt_prog_compiler_wl_CXX='-Wl,'
15597 lt_prog_compiler_pic_CXX='-KPIC'
15598 lt_prog_compiler_static_CXX='-static'
15601 # Intel C++, used to be incompatible with GCC.
15602 # ICC 10 doesn't accept -KPIC any more.
15603 lt_prog_compiler_wl_CXX='-Wl,'
15604 lt_prog_compiler_pic_CXX='-fPIC'
15605 lt_prog_compiler_static_CXX='-static'
15608 # Portland Group C++ compiler
15609 lt_prog_compiler_wl_CXX='-Wl,'
15610 lt_prog_compiler_pic_CXX='-fpic'
15611 lt_prog_compiler_static_CXX='-Bstatic'
15615 # Make sure the PIC flag is empty. It appears that all Alpha
15616 # Linux and Compaq Tru64 Unix objects are PIC.
15617 lt_prog_compiler_pic_CXX=
15618 lt_prog_compiler_static_CXX='-non_shared'
15620 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15621 # IBM XL 8.0, 9.0 on PPC and BlueGene
15622 lt_prog_compiler_wl_CXX='-Wl,'
15623 lt_prog_compiler_pic_CXX='-qpic'
15624 lt_prog_compiler_static_CXX='-qstaticlink'
15627 case `$CC -V 2>&1 | sed 5q` in
15630 lt_prog_compiler_pic_CXX='-KPIC'
15631 lt_prog_compiler_static_CXX='-Bstatic'
15632 lt_prog_compiler_wl_CXX='-Qoption ld '
15643 case $cc_basename in
15645 lt_prog_compiler_pic_CXX='-W c,exportall'
15651 netbsd* | netbsdelf*-gnu)
15654 # QNX uses GNU C++, but need to define -shared option too, otherwise
15655 # it will coredump.
15656 lt_prog_compiler_pic_CXX='-fPIC -shared'
15658 osf3* | osf4* | osf5*)
15659 case $cc_basename in
15661 lt_prog_compiler_wl_CXX='--backend -Wl,'
15664 # Rational C++ 2.4.1
15665 lt_prog_compiler_pic_CXX='-pic'
15668 # Digital/Compaq C++
15669 lt_prog_compiler_wl_CXX='-Wl,'
15670 # Make sure the PIC flag is empty. It appears that all Alpha
15671 # Linux and Compaq Tru64 Unix objects are PIC.
15672 lt_prog_compiler_pic_CXX=
15673 lt_prog_compiler_static_CXX='-non_shared'
15682 case $cc_basename in
15684 # Sun C++ 4.2, 5.x and Centerline C++
15685 lt_prog_compiler_pic_CXX='-KPIC'
15686 lt_prog_compiler_static_CXX='-Bstatic'
15687 lt_prog_compiler_wl_CXX='-Qoption ld '
15690 # Green Hills C++ Compiler
15691 lt_prog_compiler_pic_CXX='-PIC'
15698 case $cc_basename in
15701 lt_prog_compiler_pic_CXX='-pic'
15702 lt_prog_compiler_static_CXX='-Bstatic'
15706 lt_prog_compiler_pic_CXX='-pic'
15712 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15713 case $cc_basename in
15715 lt_prog_compiler_wl_CXX='-Wl,'
15716 lt_prog_compiler_pic_CXX='-KPIC'
15717 lt_prog_compiler_static_CXX='-Bstatic'
15722 case $cc_basename in
15724 # NonStop-UX NCC 3.20
15725 lt_prog_compiler_pic_CXX='-KPIC'
15734 lt_prog_compiler_can_build_shared_CXX=no
15740 # For platforms which do not support PIC, -DPIC is meaningless:
15742 lt_prog_compiler_pic_CXX=
15745 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15750 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15751 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15752 $as_echo_n "(cached) " >&6
15754 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15757 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15758 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15761 # Check to make sure the PIC flag actually works.
15763 if test -n "$lt_prog_compiler_pic_CXX"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15765 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15766 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15767 $as_echo_n "(cached) " >&6
15769 lt_cv_prog_compiler_pic_works_CXX=no
15770 ac_outfile=conftest.$ac_objext
15771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15772 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15773 # Insert the option either (1) after the last *FLAGS variable, or
15774 # (2) before a word containing "conftest.", or (3) at the end.
15775 # Note that $ac_compile itself does not contain backslashes and begins
15776 # with a dollar sign (not a hyphen), so the echo should work correctly.
15777 # The option is referenced via a variable to avoid confusing sed.
15778 lt_compile=`echo "$ac_compile" | $SED \
15779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781 -e 's:$: $lt_compiler_flag:'`
15782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15783 (eval "$lt_compile" 2>conftest.err)
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 if (exit $ac_status) && test -s "$ac_outfile"; then
15788 # The compiler can only warn and ignore the option if not recognized
15789 # So say no if there are warnings other than the usual output.
15790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15793 lt_cv_prog_compiler_pic_works_CXX=yes
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15800 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15802 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15803 case $lt_prog_compiler_pic_CXX in
15805 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15808 lt_prog_compiler_pic_CXX=
15809 lt_prog_compiler_can_build_shared_CXX=no
15819 # Check to make sure the static flag actually works.
15821 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15824 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15825 $as_echo_n "(cached) " >&6
15827 lt_cv_prog_compiler_static_works_CXX=no
15828 save_LDFLAGS="$LDFLAGS"
15829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15832 # The linker can only warn and ignore the option if not recognized
15833 # So say no if there are warnings
15834 if test -s conftest.err; then
15835 # Append any errors to the config.log.
15836 cat conftest.err 1>&5
15837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15839 if diff conftest.exp conftest.er2 >/dev/null; then
15840 lt_cv_prog_compiler_static_works_CXX=yes
15843 lt_cv_prog_compiler_static_works_CXX=yes
15847 LDFLAGS="$save_LDFLAGS"
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15851 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15853 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15856 lt_prog_compiler_static_CXX=
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15864 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15865 $as_echo_n "(cached) " >&6
15867 lt_cv_prog_compiler_c_o_CXX=no
15868 $RM -r conftest 2>/dev/null
15872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15874 lt_compiler_flag="-o out/conftest2.$ac_objext"
15875 # Insert the option either (1) after the last *FLAGS variable, or
15876 # (2) before a word containing "conftest.", or (3) at the end.
15877 # Note that $ac_compile itself does not contain backslashes and begins
15878 # with a dollar sign (not a hyphen), so the echo should work correctly.
15879 lt_compile=`echo "$ac_compile" | $SED \
15880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15882 -e 's:$: $lt_compiler_flag:'`
15883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15884 (eval "$lt_compile" 2>out/conftest.err)
15886 cat out/conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15890 # The compiler can only warn and ignore the option if not recognized
15891 # So say no if there are warnings
15892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15895 lt_cv_prog_compiler_c_o_CXX=yes
15900 # SGI C++ compiler will create directory out/ii_files/ for
15901 # template instantiation
15902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15903 $RM out/* && rmdir out
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15910 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15916 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15917 $as_echo_n "(cached) " >&6
15919 lt_cv_prog_compiler_c_o_CXX=no
15920 $RM -r conftest 2>/dev/null
15924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15926 lt_compiler_flag="-o out/conftest2.$ac_objext"
15927 # Insert the option either (1) after the last *FLAGS variable, or
15928 # (2) before a word containing "conftest.", or (3) at the end.
15929 # Note that $ac_compile itself does not contain backslashes and begins
15930 # with a dollar sign (not a hyphen), so the echo should work correctly.
15931 lt_compile=`echo "$ac_compile" | $SED \
15932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15934 -e 's:$: $lt_compiler_flag:'`
15935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15936 (eval "$lt_compile" 2>out/conftest.err)
15938 cat out/conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15942 # The compiler can only warn and ignore the option if not recognized
15943 # So say no if there are warnings
15944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15947 lt_cv_prog_compiler_c_o_CXX=yes
15952 # SGI C++ compiler will create directory out/ii_files/ for
15953 # template instantiation
15954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15955 $RM out/* && rmdir out
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15962 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15967 hard_links="nottested"
15968 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15969 # do not overwrite the value of need_locks provided by the user
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15971 $as_echo_n "checking if we can lock with hard links... " >&6; }
15974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15976 ln conftest.a conftest.b 2>&5 || hard_links=no
15977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15979 $as_echo "$hard_links" >&6; }
15980 if test "$hard_links" = no; then
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15982 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15992 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15995 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15998 # If we're using GNU nm, then we don't want the "-C" option.
15999 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16000 # Also, AIX nm treats weak defined symbols like other global defined
16001 # symbols, whereas GNU nm marks them as "W".
16002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16003 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'
16005 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'
16009 export_symbols_cmds_CXX="$ltdll_cmds"
16011 cygwin* | mingw* | cegcc*)
16012 case $cc_basename in
16014 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16017 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'
16018 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16022 linux* | k*bsd*-gnu | gnu*)
16023 link_all_deplibs_CXX=no
16026 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16031 $as_echo "$ld_shlibs_CXX" >&6; }
16032 test "$ld_shlibs_CXX" = no && can_build_shared=no
16034 with_gnu_ld_CXX=$with_gnu_ld
16042 # Do we need to explicitly link libc?
16044 case "x$archive_cmds_need_lc_CXX" in
16046 # Assume -lc should be added
16047 archive_cmds_need_lc_CXX=yes
16049 if test "$enable_shared" = yes && test "$GCC" = yes; then
16050 case $archive_cmds_CXX in
16052 # FIXME: we may have to deal with multi-command sequences.
16055 # Test whether the compiler implicitly links with -lc since on some
16056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16057 # to ld, don't add -lc before -lgcc.
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16059 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16060 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16061 $as_echo_n "(cached) " >&6
16064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16067 (eval $ac_compile) 2>&5
16069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16070 test $ac_status = 0; } 2>conftest.err; then
16073 libobjs=conftest.$ac_objext
16075 wl=$lt_prog_compiler_wl_CXX
16076 pic_flag=$lt_prog_compiler_pic_CXX
16082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16083 allow_undefined_flag_CXX=
16084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16085 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16088 test $ac_status = 0; }
16090 lt_cv_archive_cmds_need_lc_CXX=no
16092 lt_cv_archive_cmds_need_lc_CXX=yes
16094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16096 cat conftest.err 1>&5
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16102 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16103 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16174 library_names_spec=
16175 libname_spec='lib$name'
16179 postuninstall_cmds=
16183 shlibpath_overrides_runpath=unknown
16185 dynamic_linker="$host_os ld.so"
16186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16187 need_lib_prefix=unknown
16188 hardcode_into_libs=no
16190 # when you set need_version to no, make sure it does not cause -set_version
16191 # flags to be left without arguments
16192 need_version=unknown
16196 version_type=linux # correct to gnu/linux during the next big refactor
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16198 shlibpath_var=LIBPATH
16200 # AIX 3 has no versioning support, so we append a major version to the name.
16201 soname_spec='${libname}${release}${shared_ext}$major'
16205 version_type=linux # correct to gnu/linux during the next big refactor
16208 hardcode_into_libs=yes
16209 if test "$host_cpu" = ia64; then
16210 # AIX 5 supports IA64
16211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16212 shlibpath_var=LD_LIBRARY_PATH
16214 # With GCC up to 2.95.x, collect2 would create an import file
16215 # for dependence libraries. The import file would start with
16216 # the line `#! .'. This would cause the generated library to
16217 # depend on `.', always an invalid library. This was fixed in
16218 # development snapshots of GCC prior to 3.0.
16220 aix4 | aix4.[01] | aix4.[01].*)
16221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16223 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16226 can_build_shared=no
16230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16231 # soname into executable. Probably we can add versioning support to
16232 # collect2, so additional links can be useful in future.
16233 if test "$aix_use_runtimelinking" = yes; then
16234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16235 # instead of lib<name>.a to let people know that these are not
16236 # typical AIX shared libraries.
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 # We preserve .a as extension for shared libraries through AIX4.2
16240 # and later when we are not doing run time linking.
16241 library_names_spec='${libname}${release}.a $libname.a'
16242 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LIBPATH
16251 # Since July 2007 AmigaOS4 officially supports .so libraries.
16252 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 library_names_spec='$libname.ixlibrary $libname.a'
16257 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16258 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'
16264 library_names_spec='${libname}${shared_ext}'
16265 dynamic_linker="$host_os ld.so"
16266 shlibpath_var=LIBRARY_PATH
16270 version_type=linux # correct to gnu/linux during the next big refactor
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16275 shlibpath_var=LD_LIBRARY_PATH
16276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16278 # the default ld.so.conf also contains /usr/contrib/lib and
16279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16280 # libtool to hard-code these into programs
16283 cygwin* | mingw* | pw32* | cegcc*)
16284 version_type=windows
16289 case $GCC,$cc_basename in
16292 library_names_spec='$libname.dll.a'
16293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16294 postinstall_cmds='base_file=`basename \${file}`~
16295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16296 dldir=$destdir/`dirname \$dlpath`~
16297 test -d \$dldir || mkdir -p \$dldir~
16298 $install_prog $dir/$dlname \$dldir/$dlname~
16299 chmod a+x \$dldir/$dlname~
16300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16304 dlpath=$dir/\$dldll~
16306 shlibpath_overrides_runpath=yes
16310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315 # MinGW DLLs use traditional 'lib' prefix
16316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16319 # pw32 DLLs use 'pw' prefix rather than 'lib'
16320 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16323 dynamic_linker='Win32 ld.exe'
16328 libname_spec='$name'
16329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16330 library_names_spec='${libname}.dll.lib'
16334 sys_lib_search_path_spec=
16337 for lt_path in $LIB
16340 # Let DOS variable expansion print the short 8.3 style file name.
16341 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16342 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16345 # Convert to MSYS style.
16346 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16349 # Convert to unix form, then to dos form, then back to unix form
16350 # but this time dos style (no spaces!) so that the unix form looks
16351 # like /cygdrive/c/PROGRA~1:/cygdr...
16352 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16353 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16354 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16357 sys_lib_search_path_spec="$LIB"
16358 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16359 # It is most probably a Windows format PATH.
16360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16364 # FIXME: find the short name or the path components, as spaces are
16365 # common. (e.g. "Program Files" -> "PROGRA~1")
16369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16370 postinstall_cmds='base_file=`basename \${file}`~
16371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16372 dldir=$destdir/`dirname \$dlpath`~
16373 test -d \$dldir || mkdir -p \$dldir~
16374 $install_prog $dir/$dlname \$dldir/$dlname'
16375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16376 dlpath=$dir/\$dldll~
16378 shlibpath_overrides_runpath=yes
16379 dynamic_linker='Win32 link.exe'
16383 # Assume MSVC wrapper
16384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16385 dynamic_linker='Win32 ld.exe'
16388 # FIXME: first we should search . and the directory the executable is in
16392 darwin* | rhapsody*)
16393 dynamic_linker="$host_os dyld"
16394 version_type=darwin
16397 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16398 soname_spec='${libname}${release}${major}$shared_ext'
16399 shlibpath_overrides_runpath=yes
16400 shlibpath_var=DYLD_LIBRARY_PATH
16401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16407 version_type=linux # correct to gnu/linux during the next big refactor
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 shlibpath_var=LD_LIBRARY_PATH
16415 freebsd* | dragonfly*)
16416 # DragonFly does not have aout. When/if they implement a new
16417 # versioning mechanism, adjust this.
16418 if test -x /usr/bin/objformat; then
16419 objformat=`/usr/bin/objformat`
16422 freebsd[23].*) objformat=aout ;;
16423 *) objformat=elf ;;
16426 version_type=freebsd-$objformat
16427 case $version_type in
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16438 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=yes
16443 freebsd3.[01]* | freebsdelf3.[01]*)
16444 shlibpath_overrides_runpath=yes
16445 hardcode_into_libs=yes
16447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16449 shlibpath_overrides_runpath=no
16450 hardcode_into_libs=yes
16452 *) # from 4.6 on, and DragonFly
16453 shlibpath_overrides_runpath=yes
16454 hardcode_into_libs=yes
16460 version_type=linux # correct to gnu/linux during the next big refactor
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=no
16467 hardcode_into_libs=yes
16471 version_type=linux # correct to gnu/linux during the next big refactor
16474 dynamic_linker="$host_os runtime_loader"
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LIBRARY_PATH
16478 shlibpath_overrides_runpath=yes
16479 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16480 hardcode_into_libs=yes
16483 hpux9* | hpux10* | hpux11*)
16484 # Give a soname corresponding to the major version so that dld.sl refuses to
16485 # link against other versions.
16492 hardcode_into_libs=yes
16493 dynamic_linker="$host_os dld.so"
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 if test "X$HPUX_IA64_MODE" = X32; then
16499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16501 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16507 hardcode_into_libs=yes
16508 dynamic_linker="$host_os dld.sl"
16509 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16518 dynamic_linker="$host_os dld.sl"
16519 shlibpath_var=SHLIB_PATH
16520 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522 soname_spec='${libname}${release}${shared_ext}$major'
16525 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16526 postinstall_cmds='chmod 555 $lib'
16527 # or fails outright, so override atomically:
16528 install_override_mode=555
16532 version_type=linux # correct to gnu/linux during the next big refactor
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16536 soname_spec='${libname}${release}${shared_ext}$major'
16537 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=no
16540 hardcode_into_libs=yes
16543 irix5* | irix6* | nonstopux*)
16545 nonstopux*) version_type=nonstopux ;;
16547 if test "$lt_cv_prog_gnu_ld" = yes; then
16548 version_type=linux # correct to gnu/linux during the next big refactor
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16558 irix5* | nonstopux*)
16559 libsuff= shlibsuff=
16562 case $LD in # libtool.m4 will add one of these switches to LD
16563 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16564 libsuff= shlibsuff= libmagic=32-bit;;
16565 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16566 libsuff=32 shlibsuff=N32 libmagic=N32;;
16567 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16568 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16569 *) libsuff= shlibsuff= libmagic=never-match;;
16573 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16574 shlibpath_overrides_runpath=no
16575 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16576 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16577 hardcode_into_libs=yes
16580 # No shared lib support for Linux oldld, aout, or coff.
16581 linux*oldld* | linux*aout* | linux*coff*)
16585 # This must be glibc/ELF.
16586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16587 version_type=linux # correct to gnu/linux during the next big refactor
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 soname_spec='${libname}${release}${shared_ext}$major'
16592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16593 shlibpath_var=LD_LIBRARY_PATH
16594 shlibpath_overrides_runpath=no
16596 # Some binutils ld are patched to set DT_RUNPATH
16597 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16598 $as_echo_n "(cached) " >&6
16600 lt_cv_shlibpath_overrides_runpath=no
16601 save_LDFLAGS=$LDFLAGS
16602 save_libdir=$libdir
16603 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16604 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16616 if ac_fn_cxx_try_link "$LINENO"; then :
16617 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16618 lt_cv_shlibpath_overrides_runpath=yes
16621 rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623 LDFLAGS=$save_LDFLAGS
16624 libdir=$save_libdir
16628 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16630 # This implies no fast_install, which is unacceptable.
16631 # Some rework will be needed to allow for fast_install
16632 # before this can be enabled.
16633 hardcode_into_libs=yes
16635 # Append ld.so.conf contents to the search path
16636 if test -f /etc/ld.so.conf; then
16637 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' ' '`
16638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16641 # We used to test for /lib/ld.so.1 and disable shared libraries on
16642 # powerpc, because MkLinux only supported shared libraries with the
16643 # GNU dynamic linker. Since this was broken with cross compilers,
16644 # most powerpc-linux boxes support dynamic linking these days and
16645 # people can always --disable-shared, the test was removed, and we
16646 # assume the GNU/Linux dynamic linker is in use.
16647 dynamic_linker='GNU/Linux ld.so'
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=no
16658 hardcode_into_libs=yes
16659 dynamic_linker='NetBSD ld.elf_so'
16666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669 dynamic_linker='NetBSD (a.out) ld.so'
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 dynamic_linker='NetBSD ld.elf_so'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16677 hardcode_into_libs=yes
16681 version_type=linux # correct to gnu/linux during the next big refactor
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=no
16695 hardcode_into_libs=yes
16696 dynamic_linker='ldqnx.so'
16701 sys_lib_dlsearch_path_spec="/usr/lib"
16703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16705 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16706 *) need_version=no ;;
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16713 openbsd2.[89] | openbsd2.[89].*)
16714 shlibpath_overrides_runpath=no
16717 shlibpath_overrides_runpath=yes
16721 shlibpath_overrides_runpath=yes
16726 libname_spec='$name'
16729 library_names_spec='$libname${shared_ext} $libname.a'
16730 dynamic_linker='OS/2 ld.exe'
16731 shlibpath_var=LIBPATH
16734 osf3* | osf4* | osf5*)
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740 shlibpath_var=LD_LIBRARY_PATH
16741 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16742 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16750 version_type=linux # correct to gnu/linux during the next big refactor
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=yes
16757 hardcode_into_libs=yes
16758 # ldd complains unless libraries are executable
16759 postinstall_cmds='chmod +x $lib'
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 if test "$with_gnu_ld" = yes; then
16775 version_type=linux # correct to gnu/linux during the next big refactor
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777 soname_spec='${libname}${release}${shared_ext}$major'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 case $host_vendor in
16781 shlibpath_overrides_runpath=no
16783 runpath_var=LD_RUN_PATH
16791 shlibpath_overrides_runpath=no
16792 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16798 if test -d /usr/nec ;then
16799 version_type=linux # correct to gnu/linux during the next big refactor
16800 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16801 soname_spec='$libname${shared_ext}.$major'
16802 shlibpath_var=LD_LIBRARY_PATH
16806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16807 version_type=freebsd-elf
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 shlibpath_overrides_runpath=yes
16814 hardcode_into_libs=yes
16815 if test "$with_gnu_ld" = yes; then
16816 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16818 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16821 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16825 sys_lib_dlsearch_path_spec='/usr/lib'
16829 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16830 version_type=linux # correct to gnu/linux during the next big refactor
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=no
16836 hardcode_into_libs=yes
16840 version_type=linux # correct to gnu/linux during the next big refactor
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16851 $as_echo "$dynamic_linker" >&6; }
16852 test "$dynamic_linker" = no && can_build_shared=no
16854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16855 if test "$GCC" = yes; then
16856 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16859 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16860 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16862 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16863 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16904 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16905 hardcode_action_CXX=
16906 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16907 test -n "$runpath_var_CXX" ||
16908 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16910 # We can hardcode non-existent directories.
16911 if test "$hardcode_direct_CXX" != no &&
16912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16913 # have to relink, otherwise we might link with an installed library
16914 # when we should be linking with a yet-to-be-installed one
16915 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16916 test "$hardcode_minus_L_CXX" != no; then
16917 # Linking always hardcodes the temporary library directory.
16918 hardcode_action_CXX=relink
16920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16921 hardcode_action_CXX=immediate
16924 # We cannot hardcode anything, or else we can only hardcode existing
16926 hardcode_action_CXX=unsupported
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16929 $as_echo "$hardcode_action_CXX" >&6; }
16931 if test "$hardcode_action_CXX" = relink ||
16932 test "$inherit_rpath_CXX" = yes; then
16933 # Fast installation is not supported
16934 enable_fast_install=no
16935 elif test "$shlibpath_overrides_runpath" = yes ||
16936 test "$enable_shared" = no; then
16937 # Fast installation is not necessary
16938 enable_fast_install=needless
16947 fi # test -n "$compiler"
16950 CFLAGS=$lt_save_CFLAGS
16954 with_gnu_ld=$lt_save_with_gnu_ld
16955 lt_cv_path_LDCXX=$lt_cv_path_LD
16956 lt_cv_path_LD=$lt_save_path_LD
16957 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16958 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16959 fi # test "$_lt_caught_CXX_error" != yes
16962 ac_cpp='$CPP $CPPFLAGS'
16963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16981 ac_config_commands="$ac_config_commands libtool"
16986 # Only expand once:
16989 if test -n "$ac_tool_prefix"; then
16990 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16991 set dummy ${ac_tool_prefix}windres; ac_word=$2
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16993 $as_echo_n "checking for $ac_word... " >&6; }
16994 if ${ac_cv_prog_RC+:} false; then :
16995 $as_echo_n "(cached) " >&6
16997 if test -n "$RC"; then
16998 ac_cv_prog_RC="$RC" # Let the user override the test.
17000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001 for as_dir in $PATH
17004 test -z "$as_dir" && as_dir=.
17005 for ac_exec_ext in '' $ac_executable_extensions; do
17006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17007 ac_cv_prog_RC="${ac_tool_prefix}windres"
17008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17018 if test -n "$RC"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17020 $as_echo "$RC" >&6; }
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023 $as_echo "no" >&6; }
17028 if test -z "$ac_cv_prog_RC"; then
17030 # Extract the first word of "windres", so it can be a program name with args.
17031 set dummy windres; ac_word=$2
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17033 $as_echo_n "checking for $ac_word... " >&6; }
17034 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17035 $as_echo_n "(cached) " >&6
17037 if test -n "$ac_ct_RC"; then
17038 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17041 for as_dir in $PATH
17044 test -z "$as_dir" && as_dir=.
17045 for ac_exec_ext in '' $ac_executable_extensions; do
17046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17047 ac_cv_prog_ac_ct_RC="windres"
17048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17057 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17058 if test -n "$ac_ct_RC"; then
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17060 $as_echo "$ac_ct_RC" >&6; }
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17066 if test "x$ac_ct_RC" = x; then
17069 case $cross_compiling:$ac_tool_warned in
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17073 ac_tool_warned=yes ;;
17078 RC="$ac_cv_prog_RC"
17084 # Source file extension for RC test sources.
17087 # Object file extension for compiled RC test sources.
17091 # Code to be used in simple compile tests
17092 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17094 # Code to be used in simple link tests
17095 lt_simple_link_test_code="$lt_simple_compile_test_code"
17097 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17104 # If no C compiler was specified, use CC.
17107 # If no C compiler flags were specified, use CFLAGS.
17108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17110 # Allow CC to be a program name with arguments.
17114 # save warnings/boilerplate of simple test code
17115 ac_outfile=conftest.$ac_objext
17116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17118 _lt_compiler_boilerplate=`cat conftest.err`
17121 ac_outfile=conftest.$ac_objext
17122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17124 _lt_linker_boilerplate=`cat conftest.err`
17128 # Allow CC to be a program name with arguments.
17130 lt_save_CFLAGS=$CFLAGS
17137 for cc_temp in $compiler""; do
17139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17145 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17147 lt_cv_prog_compiler_c_o_RC=yes
17149 if test -n "$compiler"; then
17158 ac_cpp='$CPP $CPPFLAGS'
17159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17164 CFLAGS=$lt_save_CFLAGS
17167 # For now we hardcode the use of version scripts. It would be better
17168 # to write a test for this or even implement this within libtool.
17169 have_ld_version_script=no
17172 have_ld_version_script=yes
17175 have_ld_version_script=yes
17179 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17184 if test "$have_ld_version_script" = "yes"; then
17185 HAVE_LD_VERSION_SCRIPT_TRUE=
17186 HAVE_LD_VERSION_SCRIPT_FALSE='#'
17188 HAVE_LD_VERSION_SCRIPT_TRUE='#'
17189 HAVE_LD_VERSION_SCRIPT_FALSE=
17197 component_system=None
17198 have_dosish_system=no
17199 have_android_system=no
17204 available_languages="cl cpp python python2 python3 qt"
17205 default_languages="cl cpp python qt"
17208 have_w64_system=yes
17211 have_w32ce_system=yes
17213 *-linux-androideabi)
17214 have_android_system=yes
17218 *-mingw32ce*|*-mingw32*)
17219 have_dosish_system=yes
17220 have_w32_system=yes
17221 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17222 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17223 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17224 G13_DEFAULT='c:\\gnupg\\g13.exe'
17225 #component_system='COM+'
17227 # Check whether --enable-glibtest was given.
17228 if test "${enable_glibtest+set}" = set; then :
17229 enableval=$enable_glibtest;
17231 enable_glibtest=yes
17235 pkg_config_args=glib-2.0
17240 pkg_config_args="$pkg_config_args gmodule-2.0"
17243 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17246 pkg_config_args="$pkg_config_args gobject-2.0"
17249 pkg_config_args="$pkg_config_args gthread-2.0"
17254 # Extract the first word of "pkg-config", so it can be a program name with args.
17255 set dummy pkg-config; ac_word=$2
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17257 $as_echo_n "checking for $ac_word... " >&6; }
17258 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17259 $as_echo_n "(cached) " >&6
17261 case $PKG_CONFIG in
17263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17267 for as_dir in $PATH
17270 test -z "$as_dir" && as_dir=.
17271 for ac_exec_ext in '' $ac_executable_extensions; do
17272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17281 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17286 if test -n "$PKG_CONFIG"; then
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17288 $as_echo "$PKG_CONFIG" >&6; }
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 $as_echo "no" >&6; }
17298 if test x$PKG_CONFIG != xno ; then
17299 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17302 echo *** pkg-config too old; version 0.7 or better required.
17310 min_glib_version=2.0.0
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17312 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17314 if test x$PKG_CONFIG != xno ; then
17315 ## don't try to run the test against uninstalled libtool libs
17316 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17317 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17321 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17328 if test x"$no_glib" = x ; then
17329 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17330 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17331 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17333 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17334 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17335 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17337 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17339 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17340 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17341 if test "x$enable_glibtest" = "xyes" ; then
17342 ac_save_CFLAGS="$CFLAGS"
17343 ac_save_LIBS="$LIBS"
17344 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17345 LIBS="$GLIB_LIBS $LIBS"
17346 rm -f conf.glibtest
17347 if test "$cross_compiling" = yes; then :
17348 echo $ac_n "cross compiling; assumed OK... $ac_c"
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17355 #include <stdlib.h>
17360 int major, minor, micro;
17363 system ("touch conf.glibtest");
17365 /* HP/UX 9 (%@#!) writes to sscanf strings */
17366 tmp_version = g_strdup("$min_glib_version");
17367 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17368 printf("%s, bad version string\n", "$min_glib_version");
17372 if ((glib_major_version != $glib_config_major_version) ||
17373 (glib_minor_version != $glib_config_minor_version) ||
17374 (glib_micro_version != $glib_config_micro_version))
17376 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17377 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17378 glib_major_version, glib_minor_version, glib_micro_version);
17379 printf ("*** was found! If pkg-config was correct, then it is best\n");
17380 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17381 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17382 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17383 printf("*** required on your system.\n");
17384 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17385 printf("*** to point to the correct configuration files\n");
17387 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17388 (glib_minor_version != GLIB_MINOR_VERSION) ||
17389 (glib_micro_version != GLIB_MICRO_VERSION))
17391 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17392 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17393 printf("*** library (version %d.%d.%d)\n",
17394 glib_major_version, glib_minor_version, glib_micro_version);
17398 if ((glib_major_version > major) ||
17399 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17400 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17406 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17407 glib_major_version, glib_minor_version, glib_micro_version);
17408 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17409 major, minor, micro);
17410 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17412 printf("*** If you have already installed a sufficiently new version, this error\n");
17413 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17414 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17415 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17416 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17417 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17418 printf("*** so that the correct libraries are found at run-time))\n");
17425 if ac_fn_c_try_run "$LINENO"; then :
17430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17431 conftest.$ac_objext conftest.beam conftest.$ac_ext
17434 CFLAGS="$ac_save_CFLAGS"
17435 LIBS="$ac_save_LIBS"
17438 if test "x$no_glib" = x ; then
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17440 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444 $as_echo "no" >&6; }
17445 if test "$PKG_CONFIG" = "no" ; then
17446 echo "*** A new enough version of pkg-config was not found."
17447 echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17449 if test -f conf.glibtest ; then
17452 echo "*** Could not run GLIB test program, checking why..."
17453 ac_save_CFLAGS="$CFLAGS"
17454 ac_save_LIBS="$LIBS"
17455 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17456 LIBS="$LIBS $GLIB_LIBS"
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17466 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17471 if ac_fn_c_try_link "$LINENO"; then :
17472 echo "*** The test program compiled, but did not run. This usually means"
17473 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17474 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17475 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17476 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17477 echo "*** is required on your system"
17479 echo "*** If you have an old version installed, it is best to remove it, although"
17480 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17482 echo "*** The test program failed to compile or link. See the file config.log for the"
17483 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17485 rm -f core conftest.err conftest.$ac_objext \
17486 conftest$ac_exeext conftest.$ac_ext
17487 CFLAGS="$ac_save_CFLAGS"
17488 LIBS="$ac_save_LIBS"
17503 rm -f conf.glibtest
17505 # Check whether --enable-w32-glib was given.
17506 if test "${enable_w32_glib+set}" = set; then :
17507 enableval=$enable_w32_glib; build_w32_glib=$enableval
17513 # XXX: Probably use exec-prefix here?
17514 # GPG_DEFAULT='/usr/bin/gpg'
17515 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17516 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17517 # G13_DEFAULT='/usr/bin/g13'
17521 if test "$have_dosish_system" = yes; then
17523 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17526 if test "$have_dosish_system" = yes; then
17527 HAVE_DOSISH_SYSTEM_TRUE=
17528 HAVE_DOSISH_SYSTEM_FALSE='#'
17530 HAVE_DOSISH_SYSTEM_TRUE='#'
17531 HAVE_DOSISH_SYSTEM_FALSE=
17535 if test "$have_w32_system" = yes; then
17537 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17540 if test "$have_w32_system" = yes; then
17541 HAVE_W32_SYSTEM_TRUE=
17542 HAVE_W32_SYSTEM_FALSE='#'
17544 HAVE_W32_SYSTEM_TRUE='#'
17545 HAVE_W32_SYSTEM_FALSE=
17549 if test "$have_w64_system" = yes; then
17551 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17554 if test "$have_w64_system" = yes; then
17555 HAVE_W64_SYSTEM_TRUE=
17556 HAVE_W64_SYSTEM_FALSE='#'
17558 HAVE_W64_SYSTEM_TRUE='#'
17559 HAVE_W64_SYSTEM_FALSE=
17563 if test "$have_w32ce_system" = yes; then
17565 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17568 if test "$have_w32ce_system" = yes; then
17569 HAVE_W32CE_SYSTEM_TRUE=
17570 HAVE_W32CE_SYSTEM_FALSE='#'
17572 HAVE_W32CE_SYSTEM_TRUE='#'
17573 HAVE_W32CE_SYSTEM_FALSE=
17577 if test "$have_android_system" = yes; then
17579 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17582 if test "$have_android_system" = yes; then
17583 HAVE_ANDROID_SYSTEM_TRUE=
17584 HAVE_ANDROID_SYSTEM_FALSE='#'
17586 HAVE_ANDROID_SYSTEM_TRUE='#'
17587 HAVE_ANDROID_SYSTEM_FALSE=
17591 if test "$build_w32_glib" = yes; then
17592 BUILD_W32_GLIB_TRUE=
17593 BUILD_W32_GLIB_FALSE='#'
17595 BUILD_W32_GLIB_TRUE='#'
17596 BUILD_W32_GLIB_FALSE=
17601 # Check whether --enable-fixed-path was given.
17602 if test "${enable_fixed_path+set}" = set; then :
17603 enableval=$enable_fixed_path; fixed_search_path="$enableval"
17605 fixed_search_path=""
17608 if test x$fixed_search_path != x ; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define FIXED_SEARCH_PATH "$fixed_search_path"
17617 # Note: You need to declare all possible langauges also in
17618 # lang/Makefile.am's DIST_SUBDIRS.
17619 # Check whether --enable-languages was given.
17620 if test "${enable_languages+set}" = set; then :
17621 enableval=$enable_languages; enabled_languages=`echo $enableval | \
17622 tr ',:' ' ' | tr 'A-Z' 'a-z' | \
17625 enabled_languages="maybe"
17628 if test "x$enabled_languages" = "x" \
17629 -o "$enabled_languages" = "no"; then
17633 # If languages are explicitly set missing requirements
17634 # for the languages are treated as errors otherwise
17635 # there will be a warning.
17636 explicit_languages=1
17637 if test "x$enabled_languages" = "xmaybe"; then
17638 explicit_languages=0
17639 enabled_languages="$default_languages"
17642 for language in $enabled_languages; do
17645 list=$available_languages
17649 if test "x$name" = "x$n"; then
17654 if test "$found" = "0"; then
17655 as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17661 # Enable C++ 11 if cpp language is requested
17664 list=$enabled_languages
17668 if test "x$name" = "x$n"; then
17673 if test "$found" = "1"; then
17674 ax_cxx_compile_cxx11_required=false
17676 ac_cpp='$CXXCPP $CPPFLAGS'
17677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17682 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17683 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17684 $as_echo_n "(cached) " >&6
17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h. */
17690 // If the compiler admits that it is not ready for C++11, why torture it?
17691 // Hopefully, this will speed up the test.
17693 #ifndef __cplusplus
17695 #error "This is not a C++ compiler"
17697 #elif __cplusplus < 201103L
17699 #error "This is not a C++11 compiler"
17706 namespace test_static_assert
17709 template <typename T>
17712 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17717 namespace test_final_override
17722 virtual void f() {}
17725 struct Derived : public Base
17727 virtual void f() override {}
17732 namespace test_double_right_angle_brackets
17735 template < typename T >
17738 typedef check<void> single_type;
17739 typedef check<check<void>> double_type;
17740 typedef check<check<check<void>>> triple_type;
17741 typedef check<check<check<check<void>>>> quadruple_type;
17745 namespace test_decltype
17758 namespace test_type_deduction
17761 template < typename T1, typename T2 >
17764 static const bool value = false;
17767 template < typename T >
17768 struct is_same<T, T>
17770 static const bool value = true;
17773 template < typename T1, typename T2 >
17775 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17781 test(const int c, volatile int v)
17783 static_assert(is_same<int, decltype(0)>::value == true, "");
17784 static_assert(is_same<int, decltype(c)>::value == false, "");
17785 static_assert(is_same<int, decltype(v)>::value == false, "");
17788 auto sumi = ac + av + 'x';
17789 auto sumf = ac + av + 1.0;
17790 static_assert(is_same<int, decltype(ac)>::value == true, "");
17791 static_assert(is_same<int, decltype(av)>::value == true, "");
17792 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17793 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17794 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17795 return (sumf > 0.0) ? sumi : add(c, v);
17800 namespace test_noexcept
17803 int f() { return 0; }
17804 int g() noexcept { return 0; }
17806 static_assert(noexcept(f()) == false, "");
17807 static_assert(noexcept(g()) == true, "");
17811 namespace test_constexpr
17814 template < typename CharT >
17815 unsigned long constexpr
17816 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17818 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17821 template < typename CharT >
17822 unsigned long constexpr
17823 strlen_c(const CharT *const s) noexcept
17825 return strlen_c_r(s, 0UL);
17828 static_assert(strlen_c("") == 0UL, "");
17829 static_assert(strlen_c("1") == 1UL, "");
17830 static_assert(strlen_c("example") == 7UL, "");
17831 static_assert(strlen_c("another\0example") == 7UL, "");
17835 namespace test_rvalue_references
17841 static constexpr int value = N;
17844 answer<1> f(int&) { return answer<1>(); }
17845 answer<2> f(const int&) { return answer<2>(); }
17846 answer<3> f(int&&) { return answer<3>(); }
17853 static_assert(decltype(f(i))::value == 1, "");
17854 static_assert(decltype(f(c))::value == 2, "");
17855 static_assert(decltype(f(0))::value == 3, "");
17860 namespace test_uniform_initialization
17865 static const int zero {};
17866 static const int one {1};
17869 static_assert(test::zero == 0, "");
17870 static_assert(test::one == 1, "");
17874 namespace test_lambdas
17880 auto lambda1 = [](){};
17881 auto lambda2 = lambda1;
17889 auto a = [](int i, int j){ return i + j; }(1, 2);
17890 auto b = []() -> int { return '0'; }();
17891 auto c = [=](){ return a + b; }();
17892 auto d = [&](){ return c; }();
17893 auto e = [a, &b](int x) mutable {
17894 const auto identity = [](int y){ return y; };
17895 for (auto i = 0; i < a; ++i)
17897 return x + identity(a + b);
17899 return a + b + c + d + e;
17905 const auto nullary = [](){ return 0; };
17906 const auto unary = [](int x){ return x; };
17907 using nullary_t = decltype(nullary);
17908 using unary_t = decltype(unary);
17909 const auto higher1st = [](nullary_t f){ return f(); };
17910 const auto higher2nd = [unary](nullary_t f1){
17911 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17913 return higher1st(nullary) + higher2nd(nullary)(unary);
17918 namespace test_variadic_templates
17924 template <int N0, int... N1toN>
17925 struct sum<N0, N1toN...>
17927 static constexpr auto value = N0 + sum<N1toN...>::value;
17933 static constexpr auto value = 0;
17936 static_assert(sum<>::value == 0, "");
17937 static_assert(sum<1>::value == 1, "");
17938 static_assert(sum<23>::value == 23, "");
17939 static_assert(sum<1, 2>::value == 3, "");
17940 static_assert(sum<5, 5, 11>::value == 21, "");
17941 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17945 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17946 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17947 // because of this.
17948 namespace test_template_alias_sfinae
17953 template<typename T>
17954 using member = typename T::member_type;
17956 template<typename T>
17959 template<typename T>
17960 void func(member<T>*) {}
17964 void test() { func<foo>(0); }
17968 } // namespace cxx11
17970 #endif // __cplusplus >= 201103L
17975 if ac_fn_cxx_try_compile "$LINENO"; then :
17976 ax_cv_cxx_compile_cxx11=yes
17978 ax_cv_cxx_compile_cxx11=no
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17983 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17984 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17990 if test x$ac_success = xno; then
17991 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
17992 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17994 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17995 if eval \${$cachevar+:} false; then :
17996 $as_echo_n "(cached) " >&6
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18004 // If the compiler admits that it is not ready for C++11, why torture it?
18005 // Hopefully, this will speed up the test.
18007 #ifndef __cplusplus
18009 #error "This is not a C++ compiler"
18011 #elif __cplusplus < 201103L
18013 #error "This is not a C++11 compiler"
18020 namespace test_static_assert
18023 template <typename T>
18026 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18031 namespace test_final_override
18036 virtual void f() {}
18039 struct Derived : public Base
18041 virtual void f() override {}
18046 namespace test_double_right_angle_brackets
18049 template < typename T >
18052 typedef check<void> single_type;
18053 typedef check<check<void>> double_type;
18054 typedef check<check<check<void>>> triple_type;
18055 typedef check<check<check<check<void>>>> quadruple_type;
18059 namespace test_decltype
18072 namespace test_type_deduction
18075 template < typename T1, typename T2 >
18078 static const bool value = false;
18081 template < typename T >
18082 struct is_same<T, T>
18084 static const bool value = true;
18087 template < typename T1, typename T2 >
18089 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18095 test(const int c, volatile int v)
18097 static_assert(is_same<int, decltype(0)>::value == true, "");
18098 static_assert(is_same<int, decltype(c)>::value == false, "");
18099 static_assert(is_same<int, decltype(v)>::value == false, "");
18102 auto sumi = ac + av + 'x';
18103 auto sumf = ac + av + 1.0;
18104 static_assert(is_same<int, decltype(ac)>::value == true, "");
18105 static_assert(is_same<int, decltype(av)>::value == true, "");
18106 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18107 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18108 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18109 return (sumf > 0.0) ? sumi : add(c, v);
18114 namespace test_noexcept
18117 int f() { return 0; }
18118 int g() noexcept { return 0; }
18120 static_assert(noexcept(f()) == false, "");
18121 static_assert(noexcept(g()) == true, "");
18125 namespace test_constexpr
18128 template < typename CharT >
18129 unsigned long constexpr
18130 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18132 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18135 template < typename CharT >
18136 unsigned long constexpr
18137 strlen_c(const CharT *const s) noexcept
18139 return strlen_c_r(s, 0UL);
18142 static_assert(strlen_c("") == 0UL, "");
18143 static_assert(strlen_c("1") == 1UL, "");
18144 static_assert(strlen_c("example") == 7UL, "");
18145 static_assert(strlen_c("another\0example") == 7UL, "");
18149 namespace test_rvalue_references
18155 static constexpr int value = N;
18158 answer<1> f(int&) { return answer<1>(); }
18159 answer<2> f(const int&) { return answer<2>(); }
18160 answer<3> f(int&&) { return answer<3>(); }
18167 static_assert(decltype(f(i))::value == 1, "");
18168 static_assert(decltype(f(c))::value == 2, "");
18169 static_assert(decltype(f(0))::value == 3, "");
18174 namespace test_uniform_initialization
18179 static const int zero {};
18180 static const int one {1};
18183 static_assert(test::zero == 0, "");
18184 static_assert(test::one == 1, "");
18188 namespace test_lambdas
18194 auto lambda1 = [](){};
18195 auto lambda2 = lambda1;
18203 auto a = [](int i, int j){ return i + j; }(1, 2);
18204 auto b = []() -> int { return '0'; }();
18205 auto c = [=](){ return a + b; }();
18206 auto d = [&](){ return c; }();
18207 auto e = [a, &b](int x) mutable {
18208 const auto identity = [](int y){ return y; };
18209 for (auto i = 0; i < a; ++i)
18211 return x + identity(a + b);
18213 return a + b + c + d + e;
18219 const auto nullary = [](){ return 0; };
18220 const auto unary = [](int x){ return x; };
18221 using nullary_t = decltype(nullary);
18222 using unary_t = decltype(unary);
18223 const auto higher1st = [](nullary_t f){ return f(); };
18224 const auto higher2nd = [unary](nullary_t f1){
18225 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18227 return higher1st(nullary) + higher2nd(nullary)(unary);
18232 namespace test_variadic_templates
18238 template <int N0, int... N1toN>
18239 struct sum<N0, N1toN...>
18241 static constexpr auto value = N0 + sum<N1toN...>::value;
18247 static constexpr auto value = 0;
18250 static_assert(sum<>::value == 0, "");
18251 static_assert(sum<1>::value == 1, "");
18252 static_assert(sum<23>::value == 23, "");
18253 static_assert(sum<1, 2>::value == 3, "");
18254 static_assert(sum<5, 5, 11>::value == 21, "");
18255 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18259 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18260 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18261 // because of this.
18262 namespace test_template_alias_sfinae
18267 template<typename T>
18268 using member = typename T::member_type;
18270 template<typename T>
18273 template<typename T>
18274 void func(member<T>*) {}
18278 void test() { func<foo>(0); }
18282 } // namespace cxx11
18284 #endif // __cplusplus >= 201103L
18289 if ac_fn_cxx_try_compile "$LINENO"; then :
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297 eval ac_res=\$$cachevar
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18299 $as_echo "$ac_res" >&6; }
18300 if eval test x\$$cachevar = xyes; then
18302 CXXCPP="$CXXCPP $switch"
18309 ac_cpp='$CPP $CPPFLAGS'
18310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18314 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18315 if test x$ac_success = xno; then
18316 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18319 if test x$ac_success = xno; then
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18322 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18326 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18331 if test "$HAVE_CXX11" != "1"; then
18332 if test "$explicit_languages" = "1"; then
18335 *** A compiler with c++11 support is required for the c++ binding.
18338 enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18339 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18342 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18344 $as_echo "$as_me: WARNING:
18346 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18352 # Check that if qt is enabled cpp also is enabled
18355 list=$enabled_languages
18359 if test "x$name" = "x$n"; then
18364 if test "$found" = "1"; then
18365 # We need to ensure that in the langauge order qt comes after cpp
18366 # so we remove qt first and explicitly add it as last list member.
18367 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18370 list=$enabled_languages
18374 if test "x$name" = "x$n"; then
18379 if test "$found" = "0"; then
18382 *** Qt language binding depends on cpp binding.
18387 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18388 if test -n "$ac_tool_prefix"; then
18389 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18390 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18392 $as_echo_n "checking for $ac_word... " >&6; }
18393 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18394 $as_echo_n "(cached) " >&6
18396 case $PKG_CONFIG in
18398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402 for as_dir in $PATH
18405 test -z "$as_dir" && as_dir=.
18406 for ac_exec_ext in '' $ac_executable_extensions; do
18407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18419 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18420 if test -n "$PKG_CONFIG"; then
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18422 $as_echo "$PKG_CONFIG" >&6; }
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18425 $as_echo "no" >&6; }
18430 if test -z "$ac_cv_path_PKG_CONFIG"; then
18431 ac_pt_PKG_CONFIG=$PKG_CONFIG
18432 # Extract the first word of "pkg-config", so it can be a program name with args.
18433 set dummy pkg-config; ac_word=$2
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18435 $as_echo_n "checking for $ac_word... " >&6; }
18436 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18437 $as_echo_n "(cached) " >&6
18439 case $ac_pt_PKG_CONFIG in
18441 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18445 for as_dir in $PATH
18448 test -z "$as_dir" && as_dir=.
18449 for ac_exec_ext in '' $ac_executable_extensions; do
18450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18451 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18462 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18463 if test -n "$ac_pt_PKG_CONFIG"; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18465 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18468 $as_echo "no" >&6; }
18471 if test "x$ac_pt_PKG_CONFIG" = x; then
18474 case $cross_compiling:$ac_tool_warned in
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18478 ac_tool_warned=yes ;;
18480 PKG_CONFIG=$ac_pt_PKG_CONFIG
18483 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18487 if test -n "$PKG_CONFIG"; then
18488 _pkg_min_version=0.9.0
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18490 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18491 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18493 $as_echo "yes" >&6; }
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496 $as_echo "no" >&6; }
18502 have_qt5_libs="no";
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18507 $as_echo_n "checking for GPGME_QT... " >&6; }
18509 if test -n "$PKG_CONFIG"; then
18510 if test -n "$GPGME_QT_CFLAGS"; then
18511 pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18513 if test -n "$PKG_CONFIG" && \
18514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18515 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18518 test $ac_status = 0; }; then
18519 pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18527 if test -n "$PKG_CONFIG"; then
18528 if test -n "$GPGME_QT_LIBS"; then
18529 pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18531 if test -n "$PKG_CONFIG" && \
18532 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18533 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; }; then
18537 pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18548 if test $pkg_failed = yes; then
18550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18551 _pkg_short_errors_supported=yes
18553 _pkg_short_errors_supported=no
18555 if test $_pkg_short_errors_supported = yes; then
18556 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18558 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18560 # Put the nasty error message in config.log where it belongs
18561 echo "$GPGME_QT_PKG_ERRORS" >&5
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18566 elif test $pkg_failed = untried; then
18569 GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18570 GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18572 $as_echo "yes" >&6; }
18573 have_qt5_libs="yes"
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18579 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18581 if test -n "$PKG_CONFIG"; then
18582 if test -n "$GPGME_QTTEST_CFLAGS"; then
18583 pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18585 if test -n "$PKG_CONFIG" && \
18586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18587 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18590 test $ac_status = 0; }; then
18591 pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18599 if test -n "$PKG_CONFIG"; then
18600 if test -n "$GPGME_QTTEST_LIBS"; then
18601 pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18603 if test -n "$PKG_CONFIG" && \
18604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18605 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18608 test $ac_status = 0; }; then
18609 pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18620 if test $pkg_failed = yes; then
18622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18623 _pkg_short_errors_supported=yes
18625 _pkg_short_errors_supported=no
18627 if test $_pkg_short_errors_supported = yes; then
18628 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18630 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18632 # Put the nasty error message in config.log where it belongs
18633 echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18636 $as_echo "no" >&6; }
18637 have_qt5test_libs="no"
18638 elif test $pkg_failed = untried; then
18639 have_qt5test_libs="no"
18641 GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18642 GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18644 $as_echo "yes" >&6; }
18645 have_qt5test_libs="yes"
18648 if ! test "$have_w32_system" = yes; then
18649 if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18650 GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18653 if test "$have_qt5_libs" = "yes"; then
18654 if test -n "$ac_tool_prefix"; then
18655 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18656 set dummy ${ac_tool_prefix}moc; ac_word=$2
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18658 $as_echo_n "checking for $ac_word... " >&6; }
18659 if ${ac_cv_prog_MOC+:} false; then :
18660 $as_echo_n "(cached) " >&6
18662 if test -n "$MOC"; then
18663 ac_cv_prog_MOC="$MOC" # Let the user override the test.
18665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18669 test -z "$as_dir" && as_dir=.
18670 for ac_exec_ext in '' $ac_executable_extensions; do
18671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672 ac_cv_prog_MOC="${ac_tool_prefix}moc"
18673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18682 MOC=$ac_cv_prog_MOC
18683 if test -n "$MOC"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18685 $as_echo "$MOC" >&6; }
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18693 if test -z "$ac_cv_prog_MOC"; then
18695 # Extract the first word of "moc", so it can be a program name with args.
18696 set dummy moc; ac_word=$2
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18698 $as_echo_n "checking for $ac_word... " >&6; }
18699 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18700 $as_echo_n "(cached) " >&6
18702 if test -n "$ac_ct_MOC"; then
18703 ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706 for as_dir in $PATH
18709 test -z "$as_dir" && as_dir=.
18710 for ac_exec_ext in '' $ac_executable_extensions; do
18711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712 ac_cv_prog_ac_ct_MOC="moc"
18713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18723 if test -n "$ac_ct_MOC"; then
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18725 $as_echo "$ac_ct_MOC" >&6; }
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728 $as_echo "no" >&6; }
18731 if test "x$ac_ct_MOC" = x; then
18734 case $cross_compiling:$ac_tool_warned in
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18738 ac_tool_warned=yes ;;
18743 MOC="$ac_cv_prog_MOC"
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18747 $as_echo_n "checking moc version... " >&6; }
18748 mocversion=`$MOC -v 2>&1`
18749 mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
18750 if test x"$mocversiongrep" != x"$mocversion"; then
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753 # moc was not the qt5 one, try with moc-qt5
18754 if test -n "$ac_tool_prefix"; then
18755 # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18756 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18758 $as_echo_n "checking for $ac_word... " >&6; }
18759 if ${ac_cv_prog_MOC2+:} false; then :
18760 $as_echo_n "(cached) " >&6
18762 if test -n "$MOC2"; then
18763 ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18766 for as_dir in $PATH
18769 test -z "$as_dir" && as_dir=.
18770 for ac_exec_ext in '' $ac_executable_extensions; do
18771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18772 ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18782 MOC2=$ac_cv_prog_MOC2
18783 if test -n "$MOC2"; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
18785 $as_echo "$MOC2" >&6; }
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18788 $as_echo "no" >&6; }
18793 if test -z "$ac_cv_prog_MOC2"; then
18795 # Extract the first word of "moc-qt5", so it can be a program name with args.
18796 set dummy moc-qt5; ac_word=$2
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18798 $as_echo_n "checking for $ac_word... " >&6; }
18799 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
18800 $as_echo_n "(cached) " >&6
18802 if test -n "$ac_ct_MOC2"; then
18803 ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
18805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806 for as_dir in $PATH
18809 test -z "$as_dir" && as_dir=.
18810 for ac_exec_ext in '' $ac_executable_extensions; do
18811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18812 ac_cv_prog_ac_ct_MOC2="moc-qt5"
18813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18822 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
18823 if test -n "$ac_ct_MOC2"; then
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
18825 $as_echo "$ac_ct_MOC2" >&6; }
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18831 if test "x$ac_ct_MOC2" = x; then
18834 case $cross_compiling:$ac_tool_warned in
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18838 ac_tool_warned=yes ;;
18843 MOC2="$ac_cv_prog_MOC2"
18846 mocversion=`$MOC2 -v 2>&1`
18847 mocversiongrep=`echo $mocversion | grep "Qt 5\|moc-qt5 5\|moc 5"`
18848 if test x"$mocversiongrep" != x"$mocversion"; then
18849 if test -n "$ac_tool_prefix"; then
18850 # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
18851 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18853 $as_echo_n "checking for $ac_word... " >&6; }
18854 if ${ac_cv_prog_QTCHOOSER+:} false; then :
18855 $as_echo_n "(cached) " >&6
18857 if test -n "$QTCHOOSER"; then
18858 ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
18860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18861 for as_dir in $PATH
18864 test -z "$as_dir" && as_dir=.
18865 for ac_exec_ext in '' $ac_executable_extensions; do
18866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18867 ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
18868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18877 QTCHOOSER=$ac_cv_prog_QTCHOOSER
18878 if test -n "$QTCHOOSER"; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
18880 $as_echo "$QTCHOOSER" >&6; }
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883 $as_echo "no" >&6; }
18888 if test -z "$ac_cv_prog_QTCHOOSER"; then
18889 ac_ct_QTCHOOSER=$QTCHOOSER
18890 # Extract the first word of "qtchooser", so it can be a program name with args.
18891 set dummy qtchooser; ac_word=$2
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18893 $as_echo_n "checking for $ac_word... " >&6; }
18894 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
18895 $as_echo_n "(cached) " >&6
18897 if test -n "$ac_ct_QTCHOOSER"; then
18898 ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
18900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18901 for as_dir in $PATH
18904 test -z "$as_dir" && as_dir=.
18905 for ac_exec_ext in '' $ac_executable_extensions; do
18906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18907 ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
18908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18917 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
18918 if test -n "$ac_ct_QTCHOOSER"; then
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
18920 $as_echo "$ac_ct_QTCHOOSER" >&6; }
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18923 $as_echo "no" >&6; }
18926 if test "x$ac_ct_QTCHOOSER" = x; then
18929 case $cross_compiling:$ac_tool_warned in
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18933 ac_tool_warned=yes ;;
18935 QTCHOOSER=$ac_ct_QTCHOOSER
18938 QTCHOOSER="$ac_cv_prog_QTCHOOSER"
18941 qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
18942 mocversion=`$qt5tooldir/moc -v 2>&1`
18943 mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
18944 if test x"$mocversiongrep" != x"$mocversion"; then
18945 # no valid moc found
18946 have_qt5_libs="no";
18948 MOC=$qt5tooldir/moc
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
18955 $as_echo "$mocversion" >&6; }
18956 OLDCPPFLAGS=$CPPFLAGS
18957 CPPFLAGS=$GPGME_QT_CFLAGS
18959 LIBS=$GPGME_QT_LIBS
18961 ac_cpp='$CXXCPP $CPPFLAGS'
18962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
18967 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
18968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h. */
18971 #include <QCoreApplication>
18972 int main (int argc, char **argv) {
18973 QCoreApplication app(argc, argv);
18977 if ac_fn_cxx_try_link "$LINENO"; then :
18978 have_qt5_libs='yes'
18982 rm -f core conftest.err conftest.$ac_objext \
18983 conftest$ac_exeext conftest.$ac_ext
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
18985 $as_echo "$have_qt5_libs" >&6; }
18987 ac_cpp='$CPP $CPPFLAGS'
18988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18992 CPPFLAGS=$OLDCPPFLAGS
18996 if test "$have_qt5_libs" != "yes"; then
18997 if test "$explicit_languages" = "1"; then
19000 *** Qt5 (Qt5Core) is required for Qt binding.
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19005 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19007 $as_echo "$as_me: WARNING:
19009 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19013 enabled_languages=`echo $enabled_languages qt`
19015 for ac_prog in doxygen
19017 # Extract the first word of "$ac_prog", so it can be a program name with args.
19018 set dummy $ac_prog; ac_word=$2
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19020 $as_echo_n "checking for $ac_word... " >&6; }
19021 if ${ac_cv_prog_DOXYGEN+:} false; then :
19022 $as_echo_n "(cached) " >&6
19024 if test -n "$DOXYGEN"; then
19025 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19031 test -z "$as_dir" && as_dir=.
19032 for ac_exec_ext in '' $ac_executable_extensions; do
19033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19034 ac_cv_prog_DOXYGEN="$ac_prog"
19035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19044 DOXYGEN=$ac_cv_prog_DOXYGEN
19045 if test -n "$DOXYGEN"; then
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19047 $as_echo "$DOXYGEN" >&6; }
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19054 test -n "$DOXYGEN" && break
19057 if test -z "$DOXYGEN";
19058 # This is not highlighted becase it's not really important.
19059 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19060 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19064 # Extract the first word of "$ac_prog", so it can be a program name with args.
19065 set dummy $ac_prog; ac_word=$2
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19067 $as_echo_n "checking for $ac_word... " >&6; }
19068 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19069 $as_echo_n "(cached) " >&6
19071 if test -n "$GRAPHVIZ"; then
19072 ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19075 for as_dir in $PATH
19078 test -z "$as_dir" && as_dir=.
19079 for ac_exec_ext in '' $ac_executable_extensions; do
19080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19081 ac_cv_prog_GRAPHVIZ="$ac_prog"
19082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19091 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19092 if test -n "$GRAPHVIZ"; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19094 $as_echo "$GRAPHVIZ" >&6; }
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19097 $as_echo "no" >&6; }
19101 test -n "$GRAPHVIZ" && break
19104 if test -z "$GRAPHVIZ";
19105 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19106 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19110 if test -n "$DOXYGEN"; then
19112 HAVE_DOXYGEN_FALSE='#'
19114 HAVE_DOXYGEN_TRUE='#'
19115 HAVE_DOXYGEN_FALSE=
19118 if test -n "$GRAPHVIZ"; then
19128 list=$enabled_languages
19132 if test "x$name" = "x$n"; then
19140 list=$enabled_languages
19144 if test "x$name" = "x$n"; then
19152 list=$enabled_languages
19156 if test "x$name" = "x$n"; then
19162 if test "$found_py" = "1" -o "$found_py2" = "1" -o "$found_py3" = "1"; then
19164 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19165 for ac_prog in swig swig2.0
19167 # Extract the first word of "$ac_prog", so it can be a program name with args.
19168 set dummy $ac_prog; ac_word=$2
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19170 $as_echo_n "checking for $ac_word... " >&6; }
19171 if ${ac_cv_path_SWIG+:} false; then :
19172 $as_echo_n "(cached) " >&6
19176 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19180 for as_dir in $PATH
19183 test -z "$as_dir" && as_dir=.
19184 for ac_exec_ext in '' $ac_executable_extensions; do
19185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19186 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19197 SWIG=$ac_cv_path_SWIG
19198 if test -n "$SWIG"; then
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19200 $as_echo "$SWIG" >&6; }
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19203 $as_echo "no" >&6; }
19207 test -n "$SWIG" && break
19210 if test -z "$SWIG" ; then
19212 elif test -n "" ; then
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19214 $as_echo_n "checking SWIG version... " >&6; }
19215 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19217 $as_echo "$swig_version" >&6; }
19218 if test -n "$swig_version" ; then
19219 # Calculate the required version number components
19221 required_major=`echo $required | sed 's/[^0-9].*//'`
19222 if test -z "$required_major" ; then
19225 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19226 required_minor=`echo $required | sed 's/[^0-9].*//'`
19227 if test -z "$required_minor" ; then
19230 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19231 required_patch=`echo $required | sed 's/[^0-9].*//'`
19232 if test -z "$required_patch" ; then
19235 # Calculate the available version number components
19236 available=$swig_version
19237 available_major=`echo $available | sed 's/[^0-9].*//'`
19238 if test -z "$available_major" ; then
19241 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19242 available_minor=`echo $available | sed 's/[^0-9].*//'`
19243 if test -z "$available_minor" ; then
19246 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19247 available_patch=`echo $available | sed 's/[^0-9].*//'`
19248 if test -z "$available_patch" ; then
19251 # Convert the version tuple into a single number for easier comparison.
19252 # Using base 100 should be safe since SWIG internally uses BCD values
19253 # to encode its version number.
19254 required_swig_vernum=`expr $required_major \* 10000 \
19255 \+ $required_minor \* 100 \+ $required_patch`
19256 available_swig_vernum=`expr $available_major \* 10000 \
19257 \+ $available_minor \* 100 \+ $available_patch`
19259 if test $available_swig_vernum -lt $required_swig_vernum; then
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
19261 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19266 $as_echo_n "checking for SWIG library... " >&6; }
19267 SWIG_LIB=`$SWIG -swiglib`
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19269 $as_echo "$SWIG_LIB" >&6; }
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19274 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19281 if test -z "$SWIG"; then
19282 if test "$explicit_languages" = "1"; then
19285 *** You need SWIG to build the Python bindings.
19288 enabled_languages=$(echo $enabled_languages | sed 's/python//')
19291 # Reset all the stuff, just to be sure.
19295 unset PYTHON_VERSION
19296 unset PYTHON_CPPFLAGS
19297 unset PYTHON_LDFLAGS
19298 unset PYTHON_SITE_PKG
19299 unset PYTHON_EXTRA_LIBS
19300 unset PYTHON_EXTRA_LDFLAGS
19301 unset ac_cv_path_PYTHON
19302 unset am_cv_pathless_PYTHON
19303 unset am_cv_python_version
19304 unset am_cv_python_platform
19305 unset am_cv_python_pythondir
19306 unset am_cv_python_pyexecdir
19308 if test "$found_py" = "1" -o "$found_py2" = "1"; then
19315 if test -n "$PYTHON"; then
19316 # If the user set $PYTHON, use it and don't search something else.
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19318 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19320 # split strings by '.' and convert to numeric. Append some zeros
19321 # because we need at least 4 digits for the hex conversion.
19322 # map returns an iterator in Python 3.0 and a list in 2.x
19323 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19325 # xrange is not present in Python 3.0 and range returns an iterator
19326 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19327 sys.exit(sys.hexversion < minverhex)"
19328 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19329 ($PYTHON -c "$prog") >&5 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; then :
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19334 $as_echo "yes" >&6; }
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337 $as_echo "no" >&6; }
19338 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19340 am_display_PYTHON=$PYTHON
19342 # Otherwise, try each interpreter until we find one that satisfies
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19345 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19346 if ${am_cv_pathless_PYTHON+:} false; then :
19347 $as_echo_n "(cached) " >&6
19350 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
19351 test "$am_cv_pathless_PYTHON" = none && break
19353 # split strings by '.' and convert to numeric. Append some zeros
19354 # because we need at least 4 digits for the hex conversion.
19355 # map returns an iterator in Python 3.0 and a list in 2.x
19356 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19358 # xrange is not present in Python 3.0 and range returns an iterator
19359 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19360 sys.exit(sys.hexversion < minverhex)"
19361 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19362 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; then :
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19371 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19372 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19373 if test "$am_cv_pathless_PYTHON" = none; then
19376 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19377 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19379 $as_echo_n "checking for $ac_word... " >&6; }
19380 if ${ac_cv_path_PYTHON+:} false; then :
19381 $as_echo_n "(cached) " >&6
19385 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19389 for as_dir in $PATH
19392 test -z "$as_dir" && as_dir=.
19393 for ac_exec_ext in '' $ac_executable_extensions; do
19394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19395 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19406 PYTHON=$ac_cv_path_PYTHON
19407 if test -n "$PYTHON"; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19409 $as_echo "$PYTHON" >&6; }
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19412 $as_echo "no" >&6; }
19417 am_display_PYTHON=$am_cv_pathless_PYTHON
19421 if test "$PYTHON" = :; then
19422 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19427 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19428 if ${am_cv_python_version+:} false; then :
19429 $as_echo_n "(cached) " >&6
19431 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19434 $as_echo "$am_cv_python_version" >&6; }
19435 PYTHON_VERSION=$am_cv_python_version
19439 PYTHON_PREFIX='${prefix}'
19441 PYTHON_EXEC_PREFIX='${exec_prefix}'
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19446 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19447 if ${am_cv_python_platform+:} false; then :
19448 $as_echo_n "(cached) " >&6
19450 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19453 $as_echo "$am_cv_python_platform" >&6; }
19454 PYTHON_PLATFORM=$am_cv_python_platform
19457 # Just factor out some code duplication.
19458 am_python_setup_sysconfig="\
19460 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19461 # with python 3.x. See automake bug#10227.
19464 except ImportError:
19465 can_use_sysconfig = 0
19467 can_use_sysconfig = 1
19468 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19469 # <https://github.com/pypa/virtualenv/issues/118>
19471 from platform import python_implementation
19472 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19473 can_use_sysconfig = 0
19474 except ImportError:
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19479 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19480 if ${am_cv_python_pythondir+:} false; then :
19481 $as_echo_n "(cached) " >&6
19483 if test "x$prefix" = xNONE
19485 am_py_prefix=$ac_default_prefix
19487 am_py_prefix=$prefix
19489 am_cv_python_pythondir=`$PYTHON -c "
19490 $am_python_setup_sysconfig
19491 if can_use_sysconfig:
19492 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19494 from distutils import sysconfig
19495 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19496 sys.stdout.write(sitedir)"`
19497 case $am_cv_python_pythondir in
19499 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19500 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19503 case $am_py_prefix in
19506 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19514 $as_echo "$am_cv_python_pythondir" >&6; }
19515 pythondir=$am_cv_python_pythondir
19519 pkgpythondir=\${pythondir}/$PACKAGE
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19523 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19524 if ${am_cv_python_pyexecdir+:} false; then :
19525 $as_echo_n "(cached) " >&6
19527 if test "x$exec_prefix" = xNONE
19529 am_py_exec_prefix=$am_py_prefix
19531 am_py_exec_prefix=$exec_prefix
19533 am_cv_python_pyexecdir=`$PYTHON -c "
19534 $am_python_setup_sysconfig
19535 if can_use_sysconfig:
19536 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19538 from distutils import sysconfig
19539 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19540 sys.stdout.write(sitedir)"`
19541 case $am_cv_python_pyexecdir in
19542 $am_py_exec_prefix*)
19543 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19544 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19547 case $am_py_exec_prefix in
19550 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19558 $as_echo "$am_cv_python_pyexecdir" >&6; }
19559 pyexecdir=$am_cv_python_pyexecdir
19563 pkgpyexecdir=\${pyexecdir}/$PACKAGE
19572 # Allow the use of a (user set) custom python version
19576 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19577 set dummy python$PYTHON_VERSION; ac_word=$2
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19579 $as_echo_n "checking for $ac_word... " >&6; }
19580 if ${ac_cv_path_PYTHON+:} false; then :
19581 $as_echo_n "(cached) " >&6
19585 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19592 test -z "$as_dir" && as_dir=.
19593 for ac_exec_ext in '' $ac_executable_extensions; do
19594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19595 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19606 PYTHON=$ac_cv_path_PYTHON
19607 if test -n "$PYTHON"; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19609 $as_echo "$PYTHON" >&6; }
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612 $as_echo "no" >&6; }
19616 if test -z "$PYTHON"; then
19617 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19622 # Check for a version of Python >= 2.1.0
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19625 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19626 ac_supports_python_ver=`$PYTHON -c "import sys; \
19627 ver = sys.version.split ()[0]; \
19628 print (ver >= '2.1.0')"`
19629 if test "$ac_supports_python_ver" != "True"; then
19630 if test -z "$PYTHON_NOVERSIONCHECK"; then
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19636 This version of the AC_PYTHON_DEVEL macro
19637 doesn't work properly with versions of Python before
19638 2.1.0. You may need to re-run configure, setting the
19639 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19640 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19641 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19642 to something else than an empty string.
19644 See \`config.log' for more details" "$LINENO" 5; }
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19647 $as_echo "skip at user request" >&6; }
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19651 $as_echo "yes" >&6; }
19655 # if the macro parameter ``version'' is set, honour it
19657 if test -n ""; then
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19659 $as_echo_n "checking for a version of Python ... " >&6; }
19660 ac_supports_python_ver=`$PYTHON -c "import sys; \
19661 ver = sys.version.split ()[0]; \
19663 if test "$ac_supports_python_ver" = "True"; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19665 $as_echo "yes" >&6; }
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668 $as_echo "no" >&6; }
19669 as_fn_error $? "this package requires Python .
19670 If you have it installed, but it isn't the default Python
19671 interpreter in your system path, please pass the PYTHON_VERSION
19672 variable to configure. See \`\`configure --help'' for reference.
19679 # Check if you have distutils, else fail
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19682 $as_echo_n "checking for the distutils Python package... " >&6; }
19683 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19684 if test -z "$ac_distutils_result"; then
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19686 $as_echo "yes" >&6; }
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 $as_echo "no" >&6; }
19690 as_fn_error $? "cannot import Python module \"distutils\".
19691 Please check your Python installation. The error was:
19692 $ac_distutils_result" "$LINENO" 5
19697 # Check for Python include path
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19700 $as_echo_n "checking for Python include path... " >&6; }
19701 if test -z "$PYTHON_CPPFLAGS"; then
19702 python_path=`$PYTHON -c "import distutils.sysconfig; \
19703 print (distutils.sysconfig.get_python_inc ());"`
19704 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19705 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19706 if test -n "${python_path}"; then
19707 if test "${plat_python_path}" != "${python_path}"; then
19708 python_path="-I$python_path -I$plat_python_path"
19710 python_path="-I$python_path"
19713 PYTHON_CPPFLAGS=$python_path
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19716 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19720 # Check for Python library path
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19723 $as_echo_n "checking for Python library path... " >&6; }
19724 if test -z "$PYTHON_LDFLAGS"; then
19725 # (makes two attempts to ensure we've got a version number
19726 # from the interpreter)
19727 ac_python_version=`cat<<EOD | $PYTHON -
19729 # join all versioning strings, on some systems
19730 # major/minor numbers could be in different list elements
19731 from distutils.sysconfig import *
19732 e = get_config_var('VERSION')
19737 if test -z "$ac_python_version"; then
19738 if test -n "$PYTHON_VERSION"; then
19739 ac_python_version=$PYTHON_VERSION
19741 ac_python_version=`$PYTHON -c "import sys; \
19742 print (sys.version[:3])"`
19746 # Make the versioning information available to the compiler
19748 cat >>confdefs.h <<_ACEOF
19749 #define HAVE_PYTHON "$ac_python_version"
19753 # First, the library directory:
19754 ac_python_libdir=`cat<<EOD | $PYTHON -
19756 # There should be only one
19757 import distutils.sysconfig
19758 e = distutils.sysconfig.get_config_var('LIBDIR')
19763 # Now, for the library:
19764 ac_python_library=`cat<<EOD | $PYTHON -
19766 import distutils.sysconfig
19767 c = distutils.sysconfig.get_config_vars()
19768 if 'LDVERSION' in c:
19769 print ('python'+c['LDVERSION'])
19771 print ('python'+c['VERSION'])
19774 # This small piece shamelessly adapted from PostgreSQL python macro;
19775 # credits goes to momjian, I think. I'd like to put the right name
19776 # in the credits, if someone can point me in the right direction... ?
19778 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19780 # use the official shared library
19781 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19782 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19784 # old way: use libpython from python_configdir
19785 ac_python_libdir=`$PYTHON -c \
19786 "from distutils.sysconfig import get_python_lib as f; \
19788 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19789 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19792 if test -z "PYTHON_LDFLAGS"; then
19794 Cannot determine location of your Python DSO. Please check it was installed with
19795 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19800 $as_echo "$PYTHON_LDFLAGS" >&6; }
19804 # Check for site packages
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
19807 $as_echo_n "checking for Python site-packages path... " >&6; }
19808 if test -z "$PYTHON_SITE_PKG"; then
19809 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
19810 print (distutils.sysconfig.get_python_lib(0,0));"`
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
19813 $as_echo "$PYTHON_SITE_PKG" >&6; }
19817 # libraries which must be linked in when embedding
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
19820 $as_echo_n "checking python extra libraries... " >&6; }
19821 if test -z "$PYTHON_EXTRA_LIBS"; then
19822 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
19823 conf = distutils.sysconfig.get_config_var; \
19824 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
19827 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
19831 # linking flags needed when embedding
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
19834 $as_echo_n "checking python extra linking flags... " >&6; }
19835 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
19836 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
19837 conf = distutils.sysconfig.get_config_var; \
19838 print (conf('LINKFORSHARED'))"`
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
19841 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
19845 # final check to see if everything compiles alright
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
19848 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
19849 # save current global flags
19850 ac_save_LIBS="$LIBS"
19851 ac_save_CPPFLAGS="$CPPFLAGS"
19852 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
19853 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
19855 ac_cpp='$CPP $CPPFLAGS'
19856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19863 #include <Python.h>
19873 if ac_fn_c_try_link "$LINENO"; then :
19878 rm -f core conftest.err conftest.$ac_objext \
19879 conftest$ac_exeext conftest.$ac_ext
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19886 # turn back to default flags
19887 CPPFLAGS="$ac_save_CPPFLAGS"
19888 LIBS="$ac_save_LIBS"
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
19891 $as_echo "$pythonexists" >&6; }
19893 if test ! "x$pythonexists" = "xyes"; then
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19895 Could not link test program to Python. Maybe the main Python library has been
19896 installed in some non-standard library path. If so, pass it to configure,
19897 via the LDFLAGS environment variable.
19898 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
19899 ============================================================================
19900 You probably have to install the development version of the Python package
19901 for your distribution. The exact name of this package varies among them.
19902 ============================================================================
19904 $as_echo "$as_me: WARNING:
19905 Could not link test program to Python. Maybe the main Python library has been
19906 installed in some non-standard library path. If so, pass it to configure,
19907 via the LDFLAGS environment variable.
19908 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
19909 ============================================================================
19910 You probably have to install the development version of the Python package
19911 for your distribution. The exact name of this package varies among them.
19912 ============================================================================
19921 if test "$PYTHON_VERSION"; then
19922 PYTHONS="$(echo $PYTHONS $PYTHON)"
19923 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
19927 if test "$found_py" = "1" -o "$found_py3" = "1"; then
19928 # Reset everything, so that we can look for another Python.
19930 unset PYTHON_VERSION
19931 unset PYTHON_CPPFLAGS
19932 unset PYTHON_LDFLAGS
19933 unset PYTHON_SITE_PKG
19934 unset PYTHON_EXTRA_LIBS
19935 unset PYTHON_EXTRA_LDFLAGS
19936 unset ac_cv_path_PYTHON
19937 unset am_cv_pathless_PYTHON
19938 unset am_cv_python_version
19939 unset am_cv_python_platform
19940 unset am_cv_python_pythondir
19941 unset am_cv_python_pyexecdir
19948 if test -n "$PYTHON"; then
19949 # If the user set $PYTHON, use it and don't search something else.
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
19951 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
19953 # split strings by '.' and convert to numeric. Append some zeros
19954 # because we need at least 4 digits for the hex conversion.
19955 # map returns an iterator in Python 3.0 and a list in 2.x
19956 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
19958 # xrange is not present in Python 3.0 and range returns an iterator
19959 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19960 sys.exit(sys.hexversion < minverhex)"
19961 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19962 ($PYTHON -c "$prog") >&5 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; then :
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19967 $as_echo "yes" >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970 $as_echo "no" >&6; }
19971 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19973 am_display_PYTHON=$PYTHON
19975 # Otherwise, try each interpreter until we find one that satisfies
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
19978 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
19979 if ${am_cv_pathless_PYTHON+:} false; then :
19980 $as_echo_n "(cached) " >&6
19983 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
19984 test "$am_cv_pathless_PYTHON" = none && break
19986 # split strings by '.' and convert to numeric. Append some zeros
19987 # because we need at least 4 digits for the hex conversion.
19988 # map returns an iterator in Python 3.0 and a list in 2.x
19989 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
19991 # xrange is not present in Python 3.0 and range returns an iterator
19992 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19993 sys.exit(sys.hexversion < minverhex)"
19994 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19995 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; then :
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20004 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20005 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20006 if test "$am_cv_pathless_PYTHON" = none; then
20009 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20010 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20012 $as_echo_n "checking for $ac_word... " >&6; }
20013 if ${ac_cv_path_PYTHON+:} false; then :
20014 $as_echo_n "(cached) " >&6
20018 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20025 test -z "$as_dir" && as_dir=.
20026 for ac_exec_ext in '' $ac_executable_extensions; do
20027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20028 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20039 PYTHON=$ac_cv_path_PYTHON
20040 if test -n "$PYTHON"; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20042 $as_echo "$PYTHON" >&6; }
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20050 am_display_PYTHON=$am_cv_pathless_PYTHON
20054 if test "$PYTHON" = :; then
20055 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20060 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20061 if ${am_cv_python_version+:} false; then :
20062 $as_echo_n "(cached) " >&6
20064 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20067 $as_echo "$am_cv_python_version" >&6; }
20068 PYTHON_VERSION=$am_cv_python_version
20072 PYTHON_PREFIX='${prefix}'
20074 PYTHON_EXEC_PREFIX='${exec_prefix}'
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20079 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20080 if ${am_cv_python_platform+:} false; then :
20081 $as_echo_n "(cached) " >&6
20083 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20086 $as_echo "$am_cv_python_platform" >&6; }
20087 PYTHON_PLATFORM=$am_cv_python_platform
20090 # Just factor out some code duplication.
20091 am_python_setup_sysconfig="\
20093 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20094 # with python 3.x. See automake bug#10227.
20097 except ImportError:
20098 can_use_sysconfig = 0
20100 can_use_sysconfig = 1
20101 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20102 # <https://github.com/pypa/virtualenv/issues/118>
20104 from platform import python_implementation
20105 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20106 can_use_sysconfig = 0
20107 except ImportError:
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20112 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20113 if ${am_cv_python_pythondir+:} false; then :
20114 $as_echo_n "(cached) " >&6
20116 if test "x$prefix" = xNONE
20118 am_py_prefix=$ac_default_prefix
20120 am_py_prefix=$prefix
20122 am_cv_python_pythondir=`$PYTHON -c "
20123 $am_python_setup_sysconfig
20124 if can_use_sysconfig:
20125 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20127 from distutils import sysconfig
20128 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20129 sys.stdout.write(sitedir)"`
20130 case $am_cv_python_pythondir in
20132 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20133 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20136 case $am_py_prefix in
20139 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20147 $as_echo "$am_cv_python_pythondir" >&6; }
20148 pythondir=$am_cv_python_pythondir
20152 pkgpythondir=\${pythondir}/$PACKAGE
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20156 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20157 if ${am_cv_python_pyexecdir+:} false; then :
20158 $as_echo_n "(cached) " >&6
20160 if test "x$exec_prefix" = xNONE
20162 am_py_exec_prefix=$am_py_prefix
20164 am_py_exec_prefix=$exec_prefix
20166 am_cv_python_pyexecdir=`$PYTHON -c "
20167 $am_python_setup_sysconfig
20168 if can_use_sysconfig:
20169 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20171 from distutils import sysconfig
20172 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20173 sys.stdout.write(sitedir)"`
20174 case $am_cv_python_pyexecdir in
20175 $am_py_exec_prefix*)
20176 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20177 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20180 case $am_py_exec_prefix in
20183 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20191 $as_echo "$am_cv_python_pyexecdir" >&6; }
20192 pyexecdir=$am_cv_python_pyexecdir
20196 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20205 # Allow the use of a (user set) custom python version
20209 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20210 set dummy python$PYTHON_VERSION; ac_word=$2
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20212 $as_echo_n "checking for $ac_word... " >&6; }
20213 if ${ac_cv_path_PYTHON+:} false; then :
20214 $as_echo_n "(cached) " >&6
20218 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222 for as_dir in $PATH
20225 test -z "$as_dir" && as_dir=.
20226 for ac_exec_ext in '' $ac_executable_extensions; do
20227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20228 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20239 PYTHON=$ac_cv_path_PYTHON
20240 if test -n "$PYTHON"; then
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20242 $as_echo "$PYTHON" >&6; }
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20245 $as_echo "no" >&6; }
20249 if test -z "$PYTHON"; then
20250 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20255 # Check for a version of Python >= 2.1.0
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20258 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20259 ac_supports_python_ver=`$PYTHON -c "import sys; \
20260 ver = sys.version.split ()[0]; \
20261 print (ver >= '2.1.0')"`
20262 if test "$ac_supports_python_ver" != "True"; then
20263 if test -z "$PYTHON_NOVERSIONCHECK"; then
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20265 $as_echo "no" >&6; }
20266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20269 This version of the AC_PYTHON_DEVEL macro
20270 doesn't work properly with versions of Python before
20271 2.1.0. You may need to re-run configure, setting the
20272 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20273 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20274 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20275 to something else than an empty string.
20277 See \`config.log' for more details" "$LINENO" 5; }
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20280 $as_echo "skip at user request" >&6; }
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20284 $as_echo "yes" >&6; }
20288 # if the macro parameter ``version'' is set, honour it
20290 if test -n ""; then
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20292 $as_echo_n "checking for a version of Python ... " >&6; }
20293 ac_supports_python_ver=`$PYTHON -c "import sys; \
20294 ver = sys.version.split ()[0]; \
20296 if test "$ac_supports_python_ver" = "True"; then
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20298 $as_echo "yes" >&6; }
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20301 $as_echo "no" >&6; }
20302 as_fn_error $? "this package requires Python .
20303 If you have it installed, but it isn't the default Python
20304 interpreter in your system path, please pass the PYTHON_VERSION
20305 variable to configure. See \`\`configure --help'' for reference.
20312 # Check if you have distutils, else fail
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20315 $as_echo_n "checking for the distutils Python package... " >&6; }
20316 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20317 if test -z "$ac_distutils_result"; then
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20319 $as_echo "yes" >&6; }
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20322 $as_echo "no" >&6; }
20323 as_fn_error $? "cannot import Python module \"distutils\".
20324 Please check your Python installation. The error was:
20325 $ac_distutils_result" "$LINENO" 5
20330 # Check for Python include path
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20333 $as_echo_n "checking for Python include path... " >&6; }
20334 if test -z "$PYTHON_CPPFLAGS"; then
20335 python_path=`$PYTHON -c "import distutils.sysconfig; \
20336 print (distutils.sysconfig.get_python_inc ());"`
20337 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20338 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20339 if test -n "${python_path}"; then
20340 if test "${plat_python_path}" != "${python_path}"; then
20341 python_path="-I$python_path -I$plat_python_path"
20343 python_path="-I$python_path"
20346 PYTHON_CPPFLAGS=$python_path
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20349 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20353 # Check for Python library path
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20356 $as_echo_n "checking for Python library path... " >&6; }
20357 if test -z "$PYTHON_LDFLAGS"; then
20358 # (makes two attempts to ensure we've got a version number
20359 # from the interpreter)
20360 ac_python_version=`cat<<EOD | $PYTHON -
20362 # join all versioning strings, on some systems
20363 # major/minor numbers could be in different list elements
20364 from distutils.sysconfig import *
20365 e = get_config_var('VERSION')
20370 if test -z "$ac_python_version"; then
20371 if test -n "$PYTHON_VERSION"; then
20372 ac_python_version=$PYTHON_VERSION
20374 ac_python_version=`$PYTHON -c "import sys; \
20375 print (sys.version[:3])"`
20379 # Make the versioning information available to the compiler
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_PYTHON "$ac_python_version"
20386 # First, the library directory:
20387 ac_python_libdir=`cat<<EOD | $PYTHON -
20389 # There should be only one
20390 import distutils.sysconfig
20391 e = distutils.sysconfig.get_config_var('LIBDIR')
20396 # Now, for the library:
20397 ac_python_library=`cat<<EOD | $PYTHON -
20399 import distutils.sysconfig
20400 c = distutils.sysconfig.get_config_vars()
20401 if 'LDVERSION' in c:
20402 print ('python'+c['LDVERSION'])
20404 print ('python'+c['VERSION'])
20407 # This small piece shamelessly adapted from PostgreSQL python macro;
20408 # credits goes to momjian, I think. I'd like to put the right name
20409 # in the credits, if someone can point me in the right direction... ?
20411 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20413 # use the official shared library
20414 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20415 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20417 # old way: use libpython from python_configdir
20418 ac_python_libdir=`$PYTHON -c \
20419 "from distutils.sysconfig import get_python_lib as f; \
20421 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20422 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20425 if test -z "PYTHON_LDFLAGS"; then
20427 Cannot determine location of your Python DSO. Please check it was installed with
20428 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20433 $as_echo "$PYTHON_LDFLAGS" >&6; }
20437 # Check for site packages
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20440 $as_echo_n "checking for Python site-packages path... " >&6; }
20441 if test -z "$PYTHON_SITE_PKG"; then
20442 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20443 print (distutils.sysconfig.get_python_lib(0,0));"`
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20446 $as_echo "$PYTHON_SITE_PKG" >&6; }
20450 # libraries which must be linked in when embedding
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20453 $as_echo_n "checking python extra libraries... " >&6; }
20454 if test -z "$PYTHON_EXTRA_LIBS"; then
20455 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20456 conf = distutils.sysconfig.get_config_var; \
20457 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20460 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20464 # linking flags needed when embedding
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20467 $as_echo_n "checking python extra linking flags... " >&6; }
20468 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20469 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20470 conf = distutils.sysconfig.get_config_var; \
20471 print (conf('LINKFORSHARED'))"`
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20474 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20478 # final check to see if everything compiles alright
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20481 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20482 # save current global flags
20483 ac_save_LIBS="$LIBS"
20484 ac_save_CPPFLAGS="$CPPFLAGS"
20485 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20486 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20488 ac_cpp='$CPP $CPPFLAGS'
20489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20496 #include <Python.h>
20506 if ac_fn_c_try_link "$LINENO"; then :
20511 rm -f core conftest.err conftest.$ac_objext \
20512 conftest$ac_exeext conftest.$ac_ext
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519 # turn back to default flags
20520 CPPFLAGS="$ac_save_CPPFLAGS"
20521 LIBS="$ac_save_LIBS"
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20524 $as_echo "$pythonexists" >&6; }
20526 if test ! "x$pythonexists" = "xyes"; then
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20528 Could not link test program to Python. Maybe the main Python library has been
20529 installed in some non-standard library path. If so, pass it to configure,
20530 via the LDFLAGS environment variable.
20531 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20532 ============================================================================
20533 You probably have to install the development version of the Python package
20534 for your distribution. The exact name of this package varies among them.
20535 ============================================================================
20537 $as_echo "$as_me: WARNING:
20538 Could not link test program to Python. Maybe the main Python library has been
20539 installed in some non-standard library path. If so, pass it to configure,
20540 via the LDFLAGS environment variable.
20541 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20542 ============================================================================
20543 You probably have to install the development version of the Python package
20544 for your distribution. The exact name of this package varies among them.
20545 ============================================================================
20554 if test "$PYTHON_VERSION"; then
20555 PYTHONS="$(echo $PYTHONS $PYTHON)"
20556 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20560 if test "$PYTHON_VERSIONS"; then
20561 enabled_languages_v=$(echo $enabled_languages | sed "s/python\([23]\)\?/python ($PYTHON_VERSIONS)/")
20562 enabled_languages=$(echo $enabled_languages | sed "s/python\([23]\)\?/python/")
20564 if test "$explicit_languages" = "1"; then
20567 *** Please install the python development packages.
20570 enabled_languages=$(echo $enabled_languages | sed 's/python//')
20576 PYTHON_VERSIONS=$PYTHON_VERSIONS
20581 ENABLED_LANGUAGES=$enabled_languages
20585 # Provide information about the build.
20587 BUILD_REVISION="f06220b"
20590 cat >>confdefs.h <<_ACEOF
20591 #define BUILD_REVISION "$BUILD_REVISION"
20595 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
20596 BUILD_FILEVERSION="${BUILD_FILEVERSION}61538"
20599 # Check whether --enable-build-timestamp was given.
20600 if test "${enable_build_timestamp+set}" = set; then :
20601 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
20602 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
20604 BUILD_TIMESTAMP="$enableval"
20607 BUILD_TIMESTAMP="<none>"
20612 cat >>confdefs.h <<_ACEOF
20613 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
20619 # Options to disable some regression tests
20621 run_gpgconf_test="yes"
20622 # Check whether --enable-gpgconf-test was given.
20623 if test "${enable_gpgconf_test+set}" = set; then :
20624 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
20627 if test "$run_gpgconf_test" = "yes"; then
20628 RUN_GPGCONF_TESTS_TRUE=
20629 RUN_GPGCONF_TESTS_FALSE='#'
20631 RUN_GPGCONF_TESTS_TRUE='#'
20632 RUN_GPGCONF_TESTS_FALSE=
20637 # Check whether --enable-gpg-test was given.
20638 if test "${enable_gpg_test+set}" = set; then :
20639 enableval=$enable_gpg_test; run_gpg_test=$enableval
20642 if test "$run_gpg_test" = "yes"; then
20643 RUN_GPG_TESTS_TRUE=
20644 RUN_GPG_TESTS_FALSE='#'
20646 RUN_GPG_TESTS_TRUE='#'
20647 RUN_GPG_TESTS_FALSE=
20651 run_gpgsm_test="yes"
20652 # Check whether --enable-gpgsm-test was given.
20653 if test "${enable_gpgsm_test+set}" = set; then :
20654 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
20657 if test "$run_gpgsm_test" = "yes"; then
20658 RUN_GPGSM_TESTS_TRUE=
20659 RUN_GPGSM_TESTS_FALSE='#'
20661 RUN_GPGSM_TESTS_TRUE='#'
20662 RUN_GPGSM_TESTS_FALSE=
20667 # Check whether --enable-g13-test was given.
20668 if test "${enable_g13_test+set}" = set; then :
20669 enableval=$enable_g13_test; run_g13_test=$enableval
20672 if test "$run_g13_test" = "yes"; then
20673 RUN_G13_TESTS_TRUE=
20674 RUN_G13_TESTS_FALSE='#'
20676 RUN_G13_TESTS_TRUE='#'
20677 RUN_G13_TESTS_FALSE=
20682 # Checks for header files.
20686 for ac_header in $ac_header_list
20688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20692 cat >>confdefs.h <<_ACEOF
20693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20721 $as_echo_n "checking for inline... " >&6; }
20722 if ${ac_cv_c_inline+:} false; then :
20723 $as_echo_n "(cached) " >&6
20726 for ac_kw in inline __inline__ __inline; do
20727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h. */
20729 #ifndef __cplusplus
20731 static $ac_kw foo_t static_foo () {return 0; }
20732 $ac_kw foo_t foo () {return 0; }
20736 if ac_fn_c_try_compile "$LINENO"; then :
20737 ac_cv_c_inline=$ac_kw
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 test "$ac_cv_c_inline" != no && break
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20745 $as_echo "$ac_cv_c_inline" >&6; }
20747 case $ac_cv_c_inline in
20750 case $ac_cv_c_inline in
20752 *) ac_val=$ac_cv_c_inline;;
20754 cat >>confdefs.h <<_ACEOF
20755 #ifndef __cplusplus
20756 #define inline $ac_val
20762 # The cast to long int works around a bug in the HP C Compiler
20763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20765 # This bug is HP SR number 8606223364.
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20767 $as_echo_n "checking size of unsigned int... " >&6; }
20768 if ${ac_cv_sizeof_unsigned_int+:} false; then :
20769 $as_echo_n "(cached) " >&6
20771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20774 if test "$ac_cv_type_unsigned_int" = yes; then
20775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20777 as_fn_error 77 "cannot compute sizeof (unsigned int)
20778 See \`config.log' for more details" "$LINENO" 5; }
20780 ac_cv_sizeof_unsigned_int=0
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20786 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20790 cat >>confdefs.h <<_ACEOF
20791 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20795 # Check whether --enable-largefile was given.
20796 if test "${enable_largefile+set}" = set; then :
20797 enableval=$enable_largefile;
20800 if test "$enable_largefile" != no; then
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20803 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20804 if ${ac_cv_sys_largefile_CC+:} false; then :
20805 $as_echo_n "(cached) " >&6
20807 ac_cv_sys_largefile_CC=no
20808 if test "$GCC" != yes; then
20811 # IRIX 6.2 and later do not support large files by default,
20812 # so use the C compiler's -n32 option if that helps.
20813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814 /* end confdefs.h. */
20815 #include <sys/types.h>
20816 /* Check that off_t can represent 2**63 - 1 correctly.
20817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20818 since some C++ compilers masquerading as C compilers
20819 incorrectly reject 9223372036854775807. */
20820 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20822 && LARGE_OFF_T % 2147483647 == 1)
20832 if ac_fn_c_try_compile "$LINENO"; then :
20835 rm -f core conftest.err conftest.$ac_objext
20837 if ac_fn_c_try_compile "$LINENO"; then :
20838 ac_cv_sys_largefile_CC=' -n32'; break
20840 rm -f core conftest.err conftest.$ac_objext
20844 rm -f conftest.$ac_ext
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20848 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
20849 if test "$ac_cv_sys_largefile_CC" != no; then
20850 CC=$CC$ac_cv_sys_largefile_CC
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20854 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20855 if ${ac_cv_sys_file_offset_bits+:} false; then :
20856 $as_echo_n "(cached) " >&6
20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h. */
20861 #include <sys/types.h>
20862 /* Check that off_t can represent 2**63 - 1 correctly.
20863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20864 since some C++ compilers masquerading as C compilers
20865 incorrectly reject 9223372036854775807. */
20866 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20868 && LARGE_OFF_T % 2147483647 == 1)
20878 if ac_fn_c_try_compile "$LINENO"; then :
20879 ac_cv_sys_file_offset_bits=no; break
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20883 /* end confdefs.h. */
20884 #define _FILE_OFFSET_BITS 64
20885 #include <sys/types.h>
20886 /* Check that off_t can represent 2**63 - 1 correctly.
20887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20888 since some C++ compilers masquerading as C compilers
20889 incorrectly reject 9223372036854775807. */
20890 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20892 && LARGE_OFF_T % 2147483647 == 1)
20902 if ac_fn_c_try_compile "$LINENO"; then :
20903 ac_cv_sys_file_offset_bits=64; break
20905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 ac_cv_sys_file_offset_bits=unknown
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20911 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20912 case $ac_cv_sys_file_offset_bits in #(
20915 cat >>confdefs.h <<_ACEOF
20916 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20921 if test $ac_cv_sys_file_offset_bits = unknown; then
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20923 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20924 if ${ac_cv_sys_large_files+:} false; then :
20925 $as_echo_n "(cached) " >&6
20928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20929 /* end confdefs.h. */
20930 #include <sys/types.h>
20931 /* Check that off_t can represent 2**63 - 1 correctly.
20932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20933 since some C++ compilers masquerading as C compilers
20934 incorrectly reject 9223372036854775807. */
20935 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20937 && LARGE_OFF_T % 2147483647 == 1)
20947 if ac_fn_c_try_compile "$LINENO"; then :
20948 ac_cv_sys_large_files=no; break
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h. */
20953 #define _LARGE_FILES 1
20954 #include <sys/types.h>
20955 /* Check that off_t can represent 2**63 - 1 correctly.
20956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20957 since some C++ compilers masquerading as C compilers
20958 incorrectly reject 9223372036854775807. */
20959 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20961 && LARGE_OFF_T % 2147483647 == 1)
20971 if ac_fn_c_try_compile "$LINENO"; then :
20972 ac_cv_sys_large_files=1; break
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 ac_cv_sys_large_files=unknown
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20980 $as_echo "$ac_cv_sys_large_files" >&6; }
20981 case $ac_cv_sys_large_files in #(
20984 cat >>confdefs.h <<_ACEOF
20985 #define _LARGE_FILES $ac_cv_sys_large_files
20995 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20996 if test "x$ac_cv_type_off_t" = xyes; then :
21000 cat >>confdefs.h <<_ACEOF
21001 #define off_t long int
21007 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
21008 if test "x$ac_cv_type_uintptr_t" = xyes; then :
21010 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
21013 for ac_type in 'unsigned int' 'unsigned long int' \
21014 'unsigned long long int'; do
21015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h. */
21017 $ac_includes_default
21021 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21022 test_array [0] = 0;
21023 return test_array [0];
21029 if ac_fn_c_try_compile "$LINENO"; then :
21031 cat >>confdefs.h <<_ACEOF
21032 #define uintptr_t $ac_type
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 test -z "$ac_type" && break
21044 # A simple compile time check in gpgme.h for GNU/Linux systems that
21045 # prevents a file offset bits mismatch between gpgme and the application.
21046 NEED__FILE_OFFSET_BITS=0
21047 if test "$have_w32_system" != yes; then
21048 case "$ac_cv_sys_file_offset_bits" in
21049 "" | no | unknown) ;;
21051 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
21057 # Figure out platform dependent typedefs for gpgme.h
21058 if test "$have_w32_system" = yes; then
21059 INSERT__TYPEDEFS_FOR_GPGME_H="
21061 # include <stdint.h>
21062 typedef int64_t gpgme_off_t;
21063 typedef int64_t gpgme_ssize_t;
21065 typedef long gpgme_off_t;
21066 typedef long gpgme_ssize_t;
21067 #endif /* _WIN32 */"
21068 API__OFF_T="gpgme_off_t"
21069 API__SSIZE_T="gpgme_ssize_t"
21071 INSERT__TYPEDEFS_FOR_GPGME_H="
21072 #include <sys/types.h>
21073 typedef off_t gpgme_off_t;
21074 typedef ssize_t gpgme_ssize_t;"
21076 API__SSIZE_T="ssize_t"
21085 # Checks for compiler features.
21086 if test "$GCC" = yes; then
21087 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
21088 if test "$USE_MAINTAINER_MODE" = "yes"; then
21089 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
21091 # If -Wno-missing-field-initializers is supported we can enable a
21092 # a bunch of really useful warnings.
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
21094 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
21095 _gcc_cflags_save=$CFLAGS
21096 CFLAGS="-Wno-missing-field-initializers"
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21108 if ac_fn_c_try_compile "$LINENO"; then :
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21115 $as_echo "$_gcc_wopt" >&6; }
21116 CFLAGS=$_gcc_cflags_save;
21117 if test x"$_gcc_wopt" = xyes ; then
21118 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
21119 CFLAGS="$CFLAGS -Wwrite-strings"
21120 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21121 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
21122 CFLAGS="$CFLAGS -Wno-sign-compare"
21124 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
21127 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
21128 _gcc_cflags_save=$CFLAGS
21129 CFLAGS="-Wpointer-arith"
21130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h. */
21141 if ac_fn_c_try_compile "$LINENO"; then :
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21148 $as_echo "$_gcc_wopt" >&6; }
21149 CFLAGS=$_gcc_cflags_save;
21150 if test x"$_gcc_wopt" = xyes ; then
21151 CFLAGS="$CFLAGS -Wpointer-arith"
21154 if test "$have_w32_system" = yes; then
21155 CFLAGS="$CFLAGS -mms-bitfields"
21159 # Only used for debugging, so no serious test needed (for actual
21160 # functionality you have to test libc as well, this only tests the
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
21163 $as_echo_n "checking for __thread... " >&6; }
21164 if ${gpgme_cv_tls_works+:} false; then :
21165 $as_echo_n "(cached) " >&6
21167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21178 if ac_fn_c_try_compile "$LINENO"; then :
21179 gpgme_cv_tls_works=yes
21181 gpgme_cv_tls_works=no
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
21186 $as_echo "$gpgme_cv_tls_works" >&6; }
21187 if test "$gpgme_cv_tls_works" = yes; then
21189 $as_echo "#define HAVE_TLS 1" >>confdefs.h
21194 # Checks for library functions.
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
21196 $as_echo "$as_me: checking for libraries" >&6;}
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21199 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21200 if ${ac_cv_sys_largefile_source+:} false; then :
21201 $as_echo_n "(cached) " >&6
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21206 #include <sys/types.h> /* for off_t */
21211 int (*fp) (FILE *, off_t, int) = fseeko;
21212 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21217 if ac_fn_c_try_link "$LINENO"; then :
21218 ac_cv_sys_largefile_source=no; break
21220 rm -f core conftest.err conftest.$ac_objext \
21221 conftest$ac_exeext conftest.$ac_ext
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224 #define _LARGEFILE_SOURCE 1
21225 #include <sys/types.h> /* for off_t */
21230 int (*fp) (FILE *, off_t, int) = fseeko;
21231 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21236 if ac_fn_c_try_link "$LINENO"; then :
21237 ac_cv_sys_largefile_source=1; break
21239 rm -f core conftest.err conftest.$ac_objext \
21240 conftest$ac_exeext conftest.$ac_ext
21241 ac_cv_sys_largefile_source=unknown
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21246 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21247 case $ac_cv_sys_largefile_source in #(
21250 cat >>confdefs.h <<_ACEOF
21251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21257 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21258 # in glibc 2.1.3, but that breaks too many other things.
21259 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21260 if test $ac_cv_sys_largefile_source != unknown; then
21262 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21267 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
21268 if test "x$ac_cv_func_vasprintf" = xyes; then :
21269 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
21272 case " $LIBOBJS " in
21273 *" vasprintf.$ac_objext "* ) ;;
21274 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
21281 if test "$ac_cv_func_vasprintf" != yes; then
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
21283 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
21284 if ${gnupg_cv_must_copy_va_byval+:} false; then :
21285 $as_echo_n "(cached) " >&6
21288 if test "$cross_compiling" = yes; then
21289 gnupg_cv_must_copy_va_byval=no
21291 gnupg_cv_must_copy_va_byval=no
21292 if test "$cross_compiling" = yes; then :
21293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21295 as_fn_error $? "cannot run test program while cross compiling
21296 See \`config.log' for more details" "$LINENO" 5; }
21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21301 #include <stdarg.h>
21302 void f (int i, ...)
21304 va_list args1, args2;
21305 va_start (args1, i);
21307 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
21320 if ac_fn_c_try_run "$LINENO"; then :
21321 gnupg_cv_must_copy_va_byval=yes
21323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21324 conftest.$ac_objext conftest.beam conftest.$ac_ext
21331 if test "$gnupg_cv_must_copy_va_byval" = yes; then
21333 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
21336 if test "$cross_compiling" = yes; then
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
21338 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
21341 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
21346 # Try to find a thread-safe version of ttyname().
21347 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
21348 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
21354 cat >>confdefs.h <<_ACEOF
21355 #define HAVE_DECL_TTYNAME_R $ac_have_decl
21359 for ac_header in unistd.h
21361 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21362 if test "x$ac_cv_header_unistd_h" = xyes; then :
21363 cat >>confdefs.h <<_ACEOF
21364 #define HAVE_UNISTD_H 1
21373 if test $ac_cv_have_decl_ttyname_r = no; then
21374 HAVE_DECL_TTYNAME_R=0
21377 for ac_func in ttyname_r
21379 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
21380 if test "x$ac_cv_func_ttyname_r" = xyes; then :
21381 cat >>confdefs.h <<_ACEOF
21382 #define HAVE_TTYNAME_R 1
21388 if test $ac_cv_func_ttyname_r = no; then
21390 case " $LIBOBJS " in
21391 *" ttyname_r.$ac_objext "* ) ;;
21392 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21397 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
21402 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
21403 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
21404 $as_echo_n "(cached) " >&6
21406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407 /* end confdefs.h. */
21408 #include <stddef.h>
21409 #include <unistd.h>
21413 *ttyname_r (0, NULL, 0);
21419 if ac_fn_c_try_compile "$LINENO"; then :
21420 gnupg_cv_func_ttyname_r_posix=no
21422 gnupg_cv_func_ttyname_r_posix=yes
21424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
21428 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
21429 if test $gnupg_cv_func_ttyname_r_posix = no; then
21430 case " $LIBOBJS " in
21431 *" ttyname_r.$ac_objext "* ) ;;
21432 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21436 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21438 elif test "$have_android_system" = yes; then
21439 # Android has ttyname and ttyname_r but they are only stubs and
21440 # print an annoying warning message. Thus we need to replace
21441 # ttyname_r with our own dummy function.
21442 case " $LIBOBJS " in
21443 *" ttyname_r.$ac_objext "* ) ;;
21444 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21448 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21452 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
21456 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
21457 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
21458 $as_echo_n "(cached) " >&6
21462 # Guess no on Solaris.
21463 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
21464 # Guess no on OSF/1.
21465 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
21466 # Guess yes otherwise.
21467 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
21469 if test "$cross_compiling" = yes; then :
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21476 #include <unistd.h>
21482 char buf[31]; /* use any size < 128 here */
21484 fd = open ("/dev/tty", O_RDONLY);
21487 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
21489 else if (ttyname_r (fd, buf, 1) == 0)
21494 if ac_fn_c_try_run "$LINENO"; then :
21495 gnupg_cv_func_ttyname_r_works=yes
21498 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
21501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21502 conftest.$ac_objext conftest.beam conftest.$ac_ext
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
21508 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
21509 case "$gnupg_cv_func_ttyname_r_works" in
21511 *) case " $LIBOBJS " in
21512 *" ttyname_r.$ac_objext "* ) ;;
21513 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
21517 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
21520 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
21527 if test "$ac_cv_func_ttyname_r" != yes; then
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21530 *** ttyname() is not thread-safe and ttyname_r() does not exist
21532 $as_echo "$as_me: WARNING:
21534 *** ttyname() is not thread-safe and ttyname_r() does not exist
21538 # Try to find a thread-safe version of getenv().
21539 have_thread_safe_getenv=no
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
21542 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
21543 if ${ac_cv_gnu_library_2_1+:} false; then :
21544 $as_echo_n "(cached) " >&6
21546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21547 /* end confdefs.h. */
21549 #include <features.h>
21550 #ifdef __GNU_LIBRARY__
21551 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21558 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21559 ac_cv_gnu_library_2_1=yes
21561 ac_cv_gnu_library_2_1=no
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
21569 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
21571 GLIBC21="$ac_cv_gnu_library_2_1"
21574 if test $GLIBC21 = yes; then
21575 have_thread_safe_getenv=yes
21577 if test $have_thread_safe_getenv = yes; then
21579 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
21583 for ac_func in getenv_r
21585 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
21586 if test "x$ac_cv_func_getenv_r" = xyes; then :
21587 cat >>confdefs.h <<_ACEOF
21588 #define HAVE_GETENV_R 1
21594 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21597 *** getenv() is not thread-safe and getenv_r() does not exist
21599 $as_echo "$as_me: WARNING:
21601 *** getenv() is not thread-safe and getenv_r() does not exist
21605 # For converting time strings to seconds since Epoch, we need the timegm
21607 for ac_func in timegm
21609 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
21610 if test "x$ac_cv_func_timegm" = xyes; then :
21611 cat >>confdefs.h <<_ACEOF
21612 #define HAVE_TIMEGM 1
21618 if test "$ac_cv_func_timegm" != yes; then
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21621 *** timegm() not available - a non-thread-safe kludge will be used
21622 *** and the TZ variable might be changed at runtime.
21624 $as_echo "$as_me: WARNING:
21626 *** timegm() not available - a non-thread-safe kludge will be used
21627 *** and the TZ variable might be changed at runtime.
21631 for ac_func in setlocale
21633 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
21634 if test "x$ac_cv_func_setlocale" = xyes; then :
21635 cat >>confdefs.h <<_ACEOF
21636 #define HAVE_SETLOCALE 1
21643 # Checking for libgpg-error.
21646 gpg_error_config_prefix=""
21648 # Check whether --with-libgpg-error-prefix was given.
21649 if test "${with_libgpg_error_prefix+set}" = set; then :
21650 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
21655 # Check whether --with-gpg-error-prefix was given.
21656 if test "${with_gpg_error_prefix+set}" = set; then :
21657 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
21661 if test x"${GPG_ERROR_CONFIG}" = x ; then
21662 if test x"${gpg_error_config_prefix}" != x ; then
21663 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
21665 case "${SYSROOT}" in
21667 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
21668 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
21675 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
21681 # Extract the first word of "gpg-error-config", so it can be a program name with args.
21682 set dummy gpg-error-config; ac_word=$2
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21684 $as_echo_n "checking for $ac_word... " >&6; }
21685 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
21686 $as_echo_n "(cached) " >&6
21688 case $GPG_ERROR_CONFIG in
21690 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
21693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21694 for as_dir in $PATH
21697 test -z "$as_dir" && as_dir=.
21698 for ac_exec_ext in '' $ac_executable_extensions; do
21699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21700 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21708 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
21712 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
21713 if test -n "$GPG_ERROR_CONFIG"; then
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
21715 $as_echo "$GPG_ERROR_CONFIG" >&6; }
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21718 $as_echo "no" >&6; }
21722 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
21724 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
21726 if test "$GPG_ERROR_CONFIG" != "no" \
21727 && test -f "$GPG_ERROR_CONFIG" ; then
21728 req_major=`echo $min_gpg_error_version | \
21729 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
21730 req_minor=`echo $min_gpg_error_version | \
21731 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
21732 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
21733 major=`echo $gpg_error_config_version | \
21734 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
21735 minor=`echo $gpg_error_config_version | \
21736 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
21737 if test "$major" -gt "$req_major"; then
21740 if test "$major" -eq "$req_major"; then
21741 if test "$minor" -ge "$req_minor"; then
21747 if test $ok = yes; then
21748 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
21749 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
21750 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
21751 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
21753 $as_echo "yes ($gpg_error_config_version)" >&6; }
21755 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
21756 if test x"$gpg_error_config_host" != xnone ; then
21757 if test x"$gpg_error_config_host" != x"$host" ; then
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21760 *** The config script $GPG_ERROR_CONFIG was
21761 *** built for $gpg_error_config_host and thus may not match the
21762 *** used host $host.
21763 *** You may want to use the configure option --with-gpg-error-prefix
21764 *** to specify a matching config script or use \$SYSROOT.
21766 $as_echo "$as_me: WARNING:
21768 *** The config script $GPG_ERROR_CONFIG was
21769 *** built for $gpg_error_config_host and thus may not match the
21770 *** used host $host.
21771 *** You may want to use the configure option --with-gpg-error-prefix
21772 *** to specify a matching config script or use \$SYSROOT.
21774 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
21778 GPG_ERROR_CFLAGS=""
21780 GPG_ERROR_MT_CFLAGS=""
21781 GPG_ERROR_MT_LIBS=""
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21783 $as_echo "no" >&6; }
21792 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
21795 # And for libassuan.
21799 # Check whether --with-libassuan-prefix was given.
21800 if test "${with_libassuan_prefix+set}" = set; then :
21801 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
21803 libassuan_config_prefix=""
21806 if test x$libassuan_config_prefix != x ; then
21807 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
21808 if test x${LIBASSUAN_CONFIG+set} != xset ; then
21809 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
21813 if test -n "$ac_tool_prefix"; then
21814 # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
21815 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
21819 $as_echo_n "(cached) " >&6
21821 case $LIBASSUAN_CONFIG in
21823 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21830 test -z "$as_dir" && as_dir=.
21831 for ac_exec_ext in '' $ac_executable_extensions; do
21832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21833 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21844 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
21845 if test -n "$LIBASSUAN_CONFIG"; then
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
21847 $as_echo "$LIBASSUAN_CONFIG" >&6; }
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21855 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
21856 ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
21857 # Extract the first word of "libassuan-config", so it can be a program name with args.
21858 set dummy libassuan-config; ac_word=$2
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21860 $as_echo_n "checking for $ac_word... " >&6; }
21861 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
21862 $as_echo_n "(cached) " >&6
21864 case $ac_pt_LIBASSUAN_CONFIG in
21866 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
21869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21870 for as_dir in $PATH
21873 test -z "$as_dir" && as_dir=.
21874 for ac_exec_ext in '' $ac_executable_extensions; do
21875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21876 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21887 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
21888 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
21890 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21893 $as_echo "no" >&6; }
21896 if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
21897 LIBASSUAN_CONFIG="no"
21899 case $cross_compiling:$ac_tool_warned in
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21903 ac_tool_warned=yes ;;
21905 LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
21908 LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
21912 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
21913 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
21914 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
21915 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
21917 req_libassuan_api=0
21918 min_libassuan_version="$tmp"
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
21922 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
21924 if test "$LIBASSUAN_CONFIG" != "no" \
21925 && test -f "$LIBASSUAN_CONFIG" ; then
21926 req_major=`echo $min_libassuan_version | \
21927 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
21928 req_minor=`echo $min_libassuan_version | \
21929 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
21930 req_micro=`echo $min_libassuan_version | \
21931 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
21933 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
21934 major=`echo $libassuan_config_version | \
21935 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
21936 minor=`echo $libassuan_config_version | \
21937 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
21938 micro=`echo $libassuan_config_version | \
21939 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
21941 if test "$major" -gt "$req_major"; then
21944 if test "$major" -eq "$req_major"; then
21945 if test "$minor" -gt "$req_minor"; then
21948 if test "$minor" -eq "$req_minor"; then
21949 if test "$micro" -ge "$req_micro"; then
21958 if test $ok = yes; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
21960 $as_echo "yes ($libassuan_config_version)" >&6; }
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21966 if test $ok = yes; then
21967 if test "$req_libassuan_api" -gt 0 ; then
21968 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
21969 if test "$tmp" -gt 0 ; then
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
21971 $as_echo_n "checking LIBASSUAN API version... " >&6; }
21972 if test "$req_libassuan_api" -eq "$tmp" ; then
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
21974 $as_echo "okay" >&6; }
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
21978 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
21984 if test $ok = yes; then
21985 if test x"$host" != x ; then
21986 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
21987 if test x"$libassuan_config_host" != xnone ; then
21988 if test x"$libassuan_config_host" != x"$host" ; then
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21991 *** The config script $LIBASSUAN_CONFIG was
21992 *** built for $libassuan_config_host and thus may not match the
21993 *** used host $host.
21994 *** You may want to use the configure option --with-libassuan-prefix
21995 *** to specify a matching config script.
21997 $as_echo "$as_me: WARNING:
21999 *** The config script $LIBASSUAN_CONFIG was
22000 *** built for $libassuan_config_host and thus may not match the
22001 *** used host $host.
22002 *** You may want to use the configure option --with-libassuan-prefix
22003 *** to specify a matching config script.
22010 if test $ok = yes; then
22011 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
22012 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
22015 LIBASSUAN_CFLAGS=""
22022 if test "$have_libassuan" = "yes"; then
22024 cat >>confdefs.h <<_ACEOF
22025 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
22035 # Check for funopen
22036 for ac_func in funopen
22038 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
22039 if test "x$ac_cv_func_funopen" = xyes; then :
22040 cat >>confdefs.h <<_ACEOF
22041 #define HAVE_FUNOPEN 1
22047 if test $ac_cv_func_funopen != yes; then
22048 # No funopen but we can implement that in terms of fopencookie.
22049 for ac_func in fopencookie
22051 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
22052 if test "x$ac_cv_func_fopencookie" = xyes; then :
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_FOPENCOOKIE 1
22060 if test $ac_cv_func_fopencookie = yes; then
22061 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
22062 if test "x$ac_cv_func_funopen" = xyes; then :
22063 $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
22066 case " $LIBOBJS " in
22067 *" funopen.$ac_objext "* ) ;;
22068 *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22078 *** No implementation of fopencookie or funopen available
22080 $as_echo "$as_me: WARNING:
22082 *** No implementation of fopencookie or funopen available
22087 # Check for getgid etc
22088 for ac_func in getgid getegid
22090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22093 cat >>confdefs.h <<_ACEOF
22094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22102 # Replacement functions.
22103 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
22104 if test "x$ac_cv_func_stpcpy" = xyes; then :
22105 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
22108 case " $LIBOBJS " in
22109 *" stpcpy.$ac_objext "* ) ;;
22110 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
22117 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
22118 if test "x$ac_cv_func_setenv" = xyes; then :
22119 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
22122 case " $LIBOBJS " in
22123 *" setenv.$ac_objext "* ) ;;
22124 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
22132 # Assuan check for descriptor passing.
22133 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
22134 #include <stdlib.h>
22135 #include <stddef.h>
22137 #include <sys/types.h>
22138 #include <sys/socket.h>
22139 #include <sys/un.h>
22141 #include <sys/uio.h>
22143 #include <unistd.h>
22146 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
22147 supports_descriptor_passing=yes
22149 supports_descriptor_passing=no
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22152 *** Data structure for sending ancillary data missing.
22153 *** Descriptor passing won't work.
22155 $as_echo "$as_me: WARNING:
22157 *** Data structure for sending ancillary data missing.
22158 *** Descriptor passing won't work.
22166 use_descriptor_passing=no
22169 use_descriptor_passing=yes
22172 # Check whether --enable-fd-passing was given.
22173 if test "${enable_fd_passing+set}" = set; then :
22174 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
22178 if test "$supports_descriptor_passing" != "yes"; then
22179 use_descriptor_passing=no
22182 if test "$use_descriptor_passing" = "yes"; then
22184 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
22188 if test "$use_descriptor_passing" = "yes"; then
22189 USE_DESCRIPTOR_PASSING_TRUE=
22190 USE_DESCRIPTOR_PASSING_FALSE='#'
22192 USE_DESCRIPTOR_PASSING_TRUE='#'
22193 USE_DESCRIPTOR_PASSING_FALSE=
22199 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
22202 if test "$uiserver" != "no"; then
22204 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
22207 if test "$uiserver" != "no"; then
22208 HAVE_UISERVER_TRUE=
22209 HAVE_UISERVER_FALSE='#'
22211 HAVE_UISERVER_TRUE='#'
22212 HAVE_UISERVER_FALSE=
22217 # Add a few constants to help porting to W32
22223 # Substitution used for gpgme-config
22224 GPGME_CONFIG_LIBS="-lgpgme"
22225 GPGME_CONFIG_CFLAGS=""
22226 GPGME_CONFIG_HOST="$host"
22227 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
22234 # Frob'da Variables
22235 LTLIBOBJS=`echo "$LIBOBJS" |
22236 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22239 # Some checks for gpgme-tool
22240 # Done at top: AC_CHECK_HEADER([argp.h])
22241 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
22243 if test "x$ac_cv_type_error_t" = xyes; then :
22245 cat >>confdefs.h <<_ACEOF
22246 #define HAVE_ERROR_T 1
22252 $as_echo "#define error_t int" >>confdefs.h
22258 # A substitution to set generated files in a Emacs buffer to read-only.
22259 emacs_local_vars_begin='Local Variables:'
22261 emacs_local_vars_read_only='buffer-read-only: t'
22263 emacs_local_vars_end='End:'
22268 if test "$have_gpg_error" = "no"; then
22270 { $as_echo "$as_me:${as_lineno-$LINENO}:
22272 *** You need libgpg-error to build this program.
22273 ** This library is for example available at
22274 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
22275 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
22279 *** You need libgpg-error to build this program.
22280 ** This library is for example available at
22281 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
22282 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
22285 if test "$have_libassuan" = "no"; then
22287 { $as_echo "$as_me:${as_lineno-$LINENO}:
22289 *** You need libassuan to build this program.
22290 *** This library is for example available at
22291 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
22292 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
22296 *** You need libassuan to build this program.
22297 *** This library is for example available at
22298 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
22299 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
22303 if test "$die" = "yes"; then
22306 *** Required libraries not found. Please consult the above messages
22307 *** and install them before running configure again.
22313 # Create config files
22315 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"
22317 ac_config_files="$ac_config_files src/gpgme-config"
22319 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
22321 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
22323 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
22325 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
22327 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
22329 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
22331 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
22333 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
22335 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
22337 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
22339 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
22341 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
22343 if test -z "$HAVE_DOXYGEN_TRUE"; then :
22344 ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
22347 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
22349 ac_config_files="$ac_config_files lang/python/Makefile lang/python/gpg/version.py lang/python/tests/Makefile"
22351 ac_config_files="$ac_config_files lang/python/setup.py"
22353 cat >confcache <<\_ACEOF
22354 # This file is a shell script that caches the results of configure
22355 # tests run on this system so they can be shared between configure
22356 # scripts and configure runs, see configure's option --config-cache.
22357 # It is not useful on other systems. If it contains results you don't
22358 # want to keep, you may remove or edit it.
22360 # config.status only pays attention to the cache file if you give it
22361 # the --recheck option to rerun configure.
22363 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22365 # following values.
22369 # The following way of writing the cache mishandles newlines in values,
22370 # but we know of no workaround that is simple, portable, and efficient.
22371 # So, we kill variables containing newlines.
22372 # Ultrix sh set writes to stderr and can't be redirected directly,
22373 # and sets the high bit in the cache file unless we assign to the vars.
22375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22376 eval ac_val=\$$ac_var
22380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22384 _ | IFS | as_nl) ;; #(
22385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22386 *) { eval $ac_var=; unset $ac_var;} ;;
22392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22393 *${as_nl}ac_space=\ *)
22394 # `set' does not quote correctly, so add quotes: double-quote
22395 # substitution turns \\\\ into \\, and sed turns \\ into \.
22398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22401 # `set' quotes correctly as required by POSIX, so do not add quotes.
22402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22415 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22416 if test -w "$cache_file"; then
22417 if test "x$cache_file" != "x/dev/null"; then
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22419 $as_echo "$as_me: updating cache $cache_file" >&6;}
22420 if test ! -f "$cache_file" || test -h "$cache_file"; then
22421 cat confcache >"$cache_file"
22423 case $cache_file in #(
22425 mv -f confcache "$cache_file"$$ &&
22426 mv -f "$cache_file"$$ "$cache_file" ;; #(
22428 mv -f confcache "$cache_file" ;;
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22434 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22440 # Let make expand exec_prefix.
22441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22443 DEFS=-DHAVE_CONFIG_H
22448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22449 # 1. Remove the extension, and $U if already installed.
22450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22453 # will be set to the directory where LIBOBJS objects are built.
22454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22457 LIBOBJS=$ac_libobjs
22459 LTLIBOBJS=$ac_ltlibobjs
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22463 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22464 if test -n "$am_sleep_pid"; then
22465 # Hide warnings about reused PIDs.
22466 wait $am_sleep_pid 2>/dev/null
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22469 $as_echo "done" >&6; }
22470 if test -n "$EXEEXT"; then
22472 am__EXEEXT_FALSE='#'
22474 am__EXEEXT_TRUE='#'
22478 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22479 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22482 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22483 as_fn_error $? "conditional \"AMDEP\" was never defined.
22484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22486 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22487 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22490 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22491 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22494 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22495 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22498 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
22499 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
22500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22502 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
22503 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
22504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22506 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
22507 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
22508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22510 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
22511 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
22512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22514 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
22515 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
22516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22518 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
22519 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
22520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22522 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
22523 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
22524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22526 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
22527 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
22528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22530 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
22531 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
22532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22534 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
22535 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
22536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22538 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
22539 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
22540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22542 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
22543 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
22544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22546 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
22547 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
22548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22550 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
22551 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
22552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22555 : "${CONFIG_STATUS=./config.status}"
22557 ac_clean_files_save=$ac_clean_files
22558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22564 # Generated by $as_me.
22565 # Run this file to recreate the current configuration.
22566 # Compiler output produced by configure, useful for debugging
22567 # configure, is in config.log if it exists.
22570 ac_cs_recheck=false
22573 SHELL=\${CONFIG_SHELL-$SHELL}
22576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22577 ## -------------------- ##
22578 ## M4sh Initialization. ##
22579 ## -------------------- ##
22581 # Be more Bourne compatible
22582 DUALCASE=1; export DUALCASE # for MKS sh
22583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22587 # is contrary to our usage. Disable this feature.
22588 alias -g '${1+"$@"}'='"$@"'
22589 setopt NO_GLOB_SUBST
22591 case `(set -o) 2>/dev/null` in #(
22603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22607 # Prefer a ksh shell builtin over an external printf program on Solaris,
22608 # but without wasting forks for bash or zsh.
22609 if test -z "$BASH_VERSION$ZSH_VERSION" \
22610 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22611 as_echo='print -r --'
22612 as_echo_n='print -rn --'
22613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22614 as_echo='printf %s\n'
22615 as_echo_n='printf %s'
22617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22619 as_echo_n='/usr/ucb/echo -n'
22621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22622 as_echo_n_body='eval
22626 expr "X$arg" : "X\\(.*\\)$as_nl";
22627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22631 export as_echo_n_body
22632 as_echo_n='sh -c $as_echo_n_body as_echo'
22634 export as_echo_body
22635 as_echo='sh -c $as_echo_body as_echo'
22638 # The user is always right.
22639 if test "${PATH_SEPARATOR+set}" != set; then
22641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22649 # We need space, tab and new line, in precisely that order. Quoting is
22650 # there to prevent editors from complaining about space-tab.
22651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22652 # splitting by setting IFS to empty value.)
22655 # Find who we are. Look in the path if we contain no directory separator.
22658 *[\\/]* ) as_myself=$0 ;;
22659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22660 for as_dir in $PATH
22663 test -z "$as_dir" && as_dir=.
22664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22670 # We did not find ourselves, most probably we were run as `sh COMMAND'
22671 # in which case we are not to be found in the path.
22672 if test "x$as_myself" = x; then
22675 if test ! -f "$as_myself"; then
22676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22680 # Unset variables that we do not need and which cause bugs (e.g. in
22681 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22682 # suppresses any "Segmentation fault" message there. '((' could
22683 # trigger a bug in pdksh 5.2.14.
22684 for as_var in BASH_ENV ENV MAIL MAILPATH
22685 do eval test x\${$as_var+set} = xset \
22686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22702 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22703 # ----------------------------------------
22704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22706 # script with STATUS, using 1 if that was 0.
22709 as_status=$1; test $as_status -eq 0 && as_status=1
22711 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22714 $as_echo "$as_me: error: $2" >&2
22715 as_fn_exit $as_status
22719 # as_fn_set_status STATUS
22720 # -----------------------
22721 # Set $? to STATUS, without forking.
22722 as_fn_set_status ()
22725 } # as_fn_set_status
22727 # as_fn_exit STATUS
22728 # -----------------
22729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22733 as_fn_set_status $1
22739 # Portably unset VAR.
22742 { eval $1=; unset $1;}
22744 as_unset=as_fn_unset
22745 # as_fn_append VAR VALUE
22746 # ----------------------
22747 # Append the text in VALUE to the end of the definition contained in VAR. Take
22748 # advantage of any shell optimizations that allow amortized linear growth over
22749 # repeated appends, instead of the typical quadratic growth present in naive
22751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22752 eval 'as_fn_append ()
22763 # as_fn_arith ARG...
22764 # ------------------
22765 # Perform arithmetic evaluation on the ARGs, and store the result in the
22766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22767 # must be portable across $(()) and expr.
22768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22769 eval 'as_fn_arith ()
22776 as_val=`expr "$@" || test $? -eq 1`
22781 if expr a : '\(a\)' >/dev/null 2>&1 &&
22782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22789 as_basename=basename
22794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22800 as_me=`$as_basename -- "$0" ||
22801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22802 X"$0" : 'X\(//\)$' \| \
22803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22805 sed '/^.*\/\([^/][^/]*\)\/*$/{
22819 # Avoid depending upon Character Ranges.
22820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22823 as_cr_digits='0123456789'
22824 as_cr_alnum=$as_cr_Letters$as_cr_digits
22826 ECHO_C= ECHO_N= ECHO_T=
22827 case `echo -n x` in #(((((
22829 case `echo 'xy\c'` in
22830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22839 rm -f conf$$ conf$$.exe conf$$.file
22840 if test -d conf$$.dir; then
22841 rm -f conf$$.dir/conf$$.file
22844 mkdir conf$$.dir 2>/dev/null
22846 if (echo >conf$$.file) 2>/dev/null; then
22847 if ln -s conf$$.file conf$$ 2>/dev/null; then
22849 # ... but there are two gotchas:
22850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22852 # In both cases, we have to default to `cp -pR'.
22853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22855 elif ln conf$$.file conf$$ 2>/dev/null; then
22863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22864 rmdir conf$$.dir 2>/dev/null
22869 # Create "$as_dir" as a directory, including parents if necessary.
22874 -*) as_dir=./$as_dir;;
22876 test -d "$as_dir" || eval $as_mkdir_p || {
22880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22881 *) as_qdir=$as_dir;;
22883 as_dirs="'$as_qdir' $as_dirs"
22884 as_dir=`$as_dirname -- "$as_dir" ||
22885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22886 X"$as_dir" : 'X\(//\)[^/]' \| \
22887 X"$as_dir" : 'X\(//\)$' \| \
22888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22889 $as_echo X"$as_dir" |
22890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22894 /^X\(\/\/\)[^/].*/{
22907 test -d "$as_dir" && break
22909 test -z "$as_dirs" || eval "mkdir $as_dirs"
22910 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22914 if mkdir -p . 2>/dev/null; then
22915 as_mkdir_p='mkdir -p "$as_dir"'
22917 test -d ./-p && rmdir ./-p
22922 # as_fn_executable_p FILE
22923 # -----------------------
22924 # Test if FILE is an executable regular file.
22925 as_fn_executable_p ()
22927 test -f "$1" && test -x "$1"
22928 } # as_fn_executable_p
22929 as_test_x='test -x'
22930 as_executable_p=as_fn_executable_p
22932 # Sed expression to map a string onto a valid CPP name.
22933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22935 # Sed expression to map a string onto a valid variable name.
22936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22940 ## ----------------------------------- ##
22941 ## Main body of $CONFIG_STATUS script. ##
22942 ## ----------------------------------- ##
22944 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22947 # Save the log message, to keep $0 and so on meaningful, and to
22948 # report actual input values of CONFIG_FILES etc. instead of their
22949 # values after options handling.
22951 This file was extended by gpgme $as_me 1.8.0, which was
22952 generated by GNU Autoconf 2.69. Invocation command line was
22954 CONFIG_FILES = $CONFIG_FILES
22955 CONFIG_HEADERS = $CONFIG_HEADERS
22956 CONFIG_LINKS = $CONFIG_LINKS
22957 CONFIG_COMMANDS = $CONFIG_COMMANDS
22960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22965 case $ac_config_files in *"
22966 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22969 case $ac_config_headers in *"
22970 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22975 # Files that config.status was made for.
22976 config_files="$ac_config_files"
22977 config_headers="$ac_config_headers"
22978 config_commands="$ac_config_commands"
22982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22984 \`$as_me' instantiates files and other configuration actions
22985 from templates according to the current configuration. Unless the files
22986 and actions are specified as TAGs, all are instantiated by default.
22988 Usage: $0 [OPTION]... [TAG]...
22990 -h, --help print this help, then exit
22991 -V, --version print version number and configuration settings, then exit
22992 --config print configuration, then exit
22993 -q, --quiet, --silent
22994 do not print progress messages
22995 -d, --debug don't remove temporary files
22996 --recheck update $as_me by reconfiguring in the same conditions
22997 --file=FILE[:TEMPLATE]
22998 instantiate the configuration file FILE
22999 --header=FILE[:TEMPLATE]
23000 instantiate the configuration header FILE
23002 Configuration files:
23005 Configuration headers:
23008 Configuration commands:
23011 Report bugs to <http://bugs.gnupg.org>."
23014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23015 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23017 gpgme config.status 1.8.0
23018 configured by $0, generated by GNU Autoconf 2.69,
23019 with options \\"\$ac_cs_config\\"
23021 Copyright (C) 2012 Free Software Foundation, Inc.
23022 This config.status script is free software; the Free Software Foundation
23023 gives unlimited permission to copy, distribute and modify it."
23030 test -n "\$AWK" || AWK=awk
23033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23034 # The default lists apply if the user does not specify any file.
23040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23041 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23045 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23057 # Handling of the options.
23058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23060 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23061 $as_echo "$ac_cs_version"; exit ;;
23062 --config | --confi | --conf | --con | --co | --c )
23063 $as_echo "$ac_cs_config"; exit ;;
23064 --debug | --debu | --deb | --de | --d | -d )
23066 --file | --fil | --fi | --f )
23069 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23070 '') as_fn_error $? "missing file argument" ;;
23072 as_fn_append CONFIG_FILES " '$ac_optarg'"
23073 ac_need_defaults=false;;
23074 --header | --heade | --head | --hea )
23077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23079 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23080 ac_need_defaults=false;;
23082 # Conflict between --help and --header
23083 as_fn_error $? "ambiguous option: \`$1'
23084 Try \`$0 --help' for more information.";;
23085 --help | --hel | -h )
23086 $as_echo "$ac_cs_usage"; exit ;;
23087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23088 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23091 # This is an error.
23092 -*) as_fn_error $? "unrecognized option: \`$1'
23093 Try \`$0 --help' for more information." ;;
23095 *) as_fn_append ac_config_targets " $1"
23096 ac_need_defaults=false ;;
23102 ac_configure_extra_args=
23104 if $ac_cs_silent; then
23106 ac_configure_extra_args="$ac_configure_extra_args --silent"
23110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23111 if \$ac_cs_recheck; then
23112 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23114 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23115 CONFIG_SHELL='$SHELL'
23116 export CONFIG_SHELL
23121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23125 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23126 ## Running $as_me. ##
23132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23136 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23139 # The HP-UX ksh and POSIX shell print the target directory to stdout
23140 # if CDPATH is set.
23141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23143 sed_quote_subst='$sed_quote_subst'
23144 double_quote_subst='$double_quote_subst'
23145 delay_variable_subst='$delay_variable_subst'
23146 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23147 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23148 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23149 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23150 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23151 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23152 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23153 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23154 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23155 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23156 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23157 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23158 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23159 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23160 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23161 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23162 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23163 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23164 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23165 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23166 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23167 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23168 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23169 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23170 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23171 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23172 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23173 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23174 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23175 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23176 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23177 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23178 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23179 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23180 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23181 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23182 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23183 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23184 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23185 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23186 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23187 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23188 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23189 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23190 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23191 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23192 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23193 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23194 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23195 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23196 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23197 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23198 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23199 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23200 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23201 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23202 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23203 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"`'
23204 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23205 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23206 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23207 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23208 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23209 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23210 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23211 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23212 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23213 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23214 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23215 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23216 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23217 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23218 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23219 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23220 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23221 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23222 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23223 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23224 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23225 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23226 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23227 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23228 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23229 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23230 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23231 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23232 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23233 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23234 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23235 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23236 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23237 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23238 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23239 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23240 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23241 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23242 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23243 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23244 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23245 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23246 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23247 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23248 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23249 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23250 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23251 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23252 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23253 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23254 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23255 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23256 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23257 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23258 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23259 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23260 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23261 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23262 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23263 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23264 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23265 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23266 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23267 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23268 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23269 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23270 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23271 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23272 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23273 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23274 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23275 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23276 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23277 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23278 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23279 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23280 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23281 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23282 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23283 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23284 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
23285 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23286 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
23287 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23288 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
23289 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23290 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23291 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23292 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
23293 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23294 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
23295 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23296 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
23297 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23298 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
23299 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23300 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
23301 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23302 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
23303 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23304 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
23305 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23306 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
23307 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23308 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
23309 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23310 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23311 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23312 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23313 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23314 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
23315 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23316 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
23317 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23318 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
23319 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23320 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23321 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23322 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23323 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23324 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
23325 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23326 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23327 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23328 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
23329 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23330 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23331 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23332 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23333 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23334 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23335 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23336 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
23337 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23338 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
23339 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23340 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
23341 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23342 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
23343 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23344 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
23345 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23346 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
23347 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23348 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
23349 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23350 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
23351 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23352 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
23353 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23354 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
23355 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23356 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23357 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23358 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23359 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23360 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23361 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23362 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23363 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23364 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
23365 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23366 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
23367 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23368 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
23369 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23370 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
23371 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23372 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
23373 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23374 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
23375 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23376 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
23377 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23378 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
23381 LTCFLAGS='$LTCFLAGS'
23382 compiler='$compiler_DEFAULT'
23384 # A function that is used when there is no print builtin or printf.
23385 func_fallback_echo ()
23387 eval 'cat <<_LTECHO_EOF
23392 # Quote evaled strings.
23409 deplibs_check_method \
23413 sharedlib_from_linklib_cmd \
23416 archiver_list_spec \
23422 lt_cv_sys_global_symbol_pipe \
23423 lt_cv_sys_global_symbol_to_cdecl \
23424 lt_cv_sys_global_symbol_to_c_name_address \
23425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23426 nm_file_list_spec \
23427 lt_prog_compiler_no_builtin_flag \
23428 lt_prog_compiler_pic \
23429 lt_prog_compiler_wl \
23430 lt_prog_compiler_static \
23431 lt_cv_prog_compiler_c_o \
23440 export_dynamic_flag_spec \
23441 whole_archive_flag_spec \
23442 compiler_needs_object \
23444 allow_undefined_flag \
23445 no_undefined_flag \
23446 hardcode_libdir_flag_spec \
23447 hardcode_libdir_separator \
23451 variables_saved_for_relink \
23453 library_names_spec \
23455 install_override_mode \
23459 compiler_lib_search_dirs \
23464 compiler_lib_search_path \
23471 lt_prog_compiler_no_builtin_flag_CXX \
23472 lt_prog_compiler_no_builtin_flag_RC \
23473 lt_prog_compiler_pic_CXX \
23474 lt_prog_compiler_pic_RC \
23475 lt_prog_compiler_wl_CXX \
23476 lt_prog_compiler_wl_RC \
23477 lt_prog_compiler_static_CXX \
23478 lt_prog_compiler_static_RC \
23479 lt_cv_prog_compiler_c_o_CXX \
23480 lt_cv_prog_compiler_c_o_RC \
23481 export_dynamic_flag_spec_CXX \
23482 export_dynamic_flag_spec_RC \
23483 whole_archive_flag_spec_CXX \
23484 whole_archive_flag_spec_RC \
23485 compiler_needs_object_CXX \
23486 compiler_needs_object_RC \
23489 allow_undefined_flag_CXX \
23490 allow_undefined_flag_RC \
23491 no_undefined_flag_CXX \
23492 no_undefined_flag_RC \
23493 hardcode_libdir_flag_spec_CXX \
23494 hardcode_libdir_flag_spec_RC \
23495 hardcode_libdir_separator_CXX \
23496 hardcode_libdir_separator_RC \
23497 exclude_expsyms_CXX \
23498 exclude_expsyms_RC \
23499 include_expsyms_CXX \
23500 include_expsyms_RC \
23501 file_list_spec_CXX \
23502 file_list_spec_RC \
23503 compiler_lib_search_dirs_CXX \
23504 compiler_lib_search_dirs_RC \
23505 predep_objects_CXX \
23506 predep_objects_RC \
23507 postdep_objects_CXX \
23508 postdep_objects_RC \
23513 compiler_lib_search_path_CXX \
23514 compiler_lib_search_path_RC; do
23515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23516 *[\\\\\\\`\\"\\\$]*)
23517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23525 # Double-quote double-evaled strings.
23526 for var in reload_cmds \
23527 old_postinstall_cmds \
23528 old_postuninstall_cmds \
23530 extract_expsyms_cmds \
23531 old_archive_from_new_cmds \
23532 old_archive_from_expsyms_cmds \
23534 archive_expsym_cmds \
23536 module_expsym_cmds \
23537 export_symbols_cmds \
23541 postuninstall_cmds \
23543 sys_lib_search_path_spec \
23544 sys_lib_dlsearch_path_spec \
23547 old_archive_cmds_CXX \
23548 old_archive_cmds_RC \
23549 old_archive_from_new_cmds_CXX \
23550 old_archive_from_new_cmds_RC \
23551 old_archive_from_expsyms_cmds_CXX \
23552 old_archive_from_expsyms_cmds_RC \
23555 archive_expsym_cmds_CXX \
23556 archive_expsym_cmds_RC \
23559 module_expsym_cmds_CXX \
23560 module_expsym_cmds_RC \
23561 export_symbols_cmds_CXX \
23562 export_symbols_cmds_RC \
23565 postlink_cmds_CXX \
23566 postlink_cmds_RC; do
23567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23568 *[\\\\\\\`\\"\\\$]*)
23569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23577 ac_aux_dir='$ac_aux_dir'
23578 xsi_shell='$xsi_shell'
23579 lt_shell_append='$lt_shell_append'
23581 # See if we are running on zsh, and set the options which allow our
23582 # commands through without removal of \ escapes INIT.
23583 if test -n "\${ZSH_VERSION+set}" ; then
23584 setopt NO_GLOB_SUBST
23590 TIMESTAMP='$TIMESTAMP'
23603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23605 # Handling of arguments.
23606 for ac_config_target in $ac_config_targets
23608 case $ac_config_target in
23609 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23610 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23611 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23613 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23614 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23615 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
23616 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
23617 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
23618 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23619 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
23620 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
23621 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
23622 "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
23623 "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
23624 "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
23625 "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
23626 "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
23627 "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
23628 "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
23629 "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
23630 "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
23631 "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
23632 "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
23633 "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
23634 "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
23635 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
23636 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
23637 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
23638 "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
23639 "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
23640 "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
23641 "lang/python/gpg/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/gpg/version.py" ;;
23642 "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
23643 "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
23645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23650 # If the user did not use the arguments to specify the items to instantiate,
23651 # then the envvar interface is used. Set only those that are not.
23652 # We use the long form for the default assignment because of an extremely
23653 # bizarre bug on SunOS 4.1.3.
23654 if $ac_need_defaults; then
23655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23660 # Have a temporary directory for convenience. Make it in the build tree
23661 # simply because there is no reason against having it here, and in addition,
23662 # creating and moving files from /tmp can sometimes cause problems.
23663 # Hook for its removal unless debugging.
23664 # Note that there is a small window in which the directory will not be cleaned:
23665 # after its creation but before its name has been assigned to `$tmp'.
23669 trap 'exit_status=$?
23670 : "${ac_tmp:=$tmp}"
23671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23673 trap 'as_fn_exit 1' 1 2 13 15
23675 # Create a (secure) tmp directory for tmp files.
23678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23682 tmp=./conf$$-$RANDOM
23683 (umask 077 && mkdir "$tmp")
23684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23687 # Set up the scripts for CONFIG_FILES section.
23688 # No need to generate them if there are no CONFIG_FILES.
23689 # This happens for instance with `./config.status config.h'.
23690 if test -n "$CONFIG_FILES"; then
23693 ac_cr=`echo X | tr X '\015'`
23694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23695 # But we know of no other shell where ac_cr would be empty at this
23696 # point, so we can use a bashism as a fallback.
23697 if test "x$ac_cr" = x; then
23698 eval ac_cr=\$\'\\r\'
23700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23704 ac_cs_awk_cr=$ac_cr
23707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23712 echo "cat >conf$$subs.awk <<_ACEOF" &&
23713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23715 } >conf$$subs.sh ||
23716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23719 for ac_last_try in false false false false false :; do
23720 . ./conf$$subs.sh ||
23721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23724 if test $ac_delim_n = $ac_delim_num; then
23726 elif $ac_last_try; then
23727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23732 rm -f conf$$subs.sh
23734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23739 s/^/S["/; s/!.*/"]=/
23749 s/\(.\{148\}\)..*/\1/
23751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23763 s/\(.\{148\}\)..*/\1/
23765 s/["\\]/\\&/g; s/^/"/; s/$/"/
23769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23774 ' <conf$$subs.awk | sed '
23779 ' >>$CONFIG_STATUS || ac_write_fail=1
23780 rm -f conf$$subs.awk
23781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23784 for (key in S) S_is_set[key] = 1
23790 nfields = split(line, field, "@")
23792 len = length(field[1])
23793 for (i = 2; i < nfields; i++) {
23795 keylen = length(key)
23796 if (S_is_set[key]) {
23798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23799 len += length(value) + length(field[++i])
23810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23821 # trailing colons and then remove the whole line if VPATH becomes empty
23822 # (actually we leave an empty line to preserve line numbers).
23823 if test "x$srcdir" = x.; then
23824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23843 fi # test -n "$CONFIG_FILES"
23845 # Set up the scripts for CONFIG_HEADERS section.
23846 # No need to generate them if there are no CONFIG_HEADERS.
23847 # This happens for instance with `./config.status Makefile'.
23848 if test -n "$CONFIG_HEADERS"; then
23849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23853 # Transform confdefs.h into an awk script `defines.awk', embedded as
23854 # here-document in config.status, that substitutes the proper values into
23855 # config.h.in to produce config.h.
23857 # Create a delimiter string that does not exist in confdefs.h, to ease
23858 # handling of long lines.
23860 for ac_last_try in false false :; do
23861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23862 if test -z "$ac_tt"; then
23864 elif $ac_last_try; then
23865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23871 # For the awk script, D is an array of macro values keyed by name,
23872 # likewise P contains macro parameters if any. Preserve backslash
23873 # newline sequences.
23875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23877 s/.\{148\}/&'"$ac_delim"'/g
23880 s/^[ ]*#[ ]*define[ ][ ]*/ /
23887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23894 D["\1"]=" \3\\\\\\n"\\/p
23896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23901 s/.\{148\}/&'"$ac_delim"'/g
23906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23911 ' <confdefs.h | sed '
23912 s/'"$ac_delim"'/"\\\
23913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23916 for (key in D) D_is_set[key] = 1
23919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23921 split(line, arg, " ")
23922 if (arg[1] == "#") {
23926 defundef = substr(arg[1], 2)
23929 split(mac1, mac2, "(") #)
23931 prefix = substr(line, 1, index(line, defundef) - 1)
23932 if (D_is_set[macro]) {
23933 # Preserve the white space surrounding the "#".
23934 print prefix "define", macro P[macro] D[macro]
23937 # Replace #undef with comments. This is necessary, for example,
23938 # in the case of _POSIX_SOURCE, which is predefined and required
23939 # on some systems where configure will not decide to define it.
23940 if (defundef == "undef") {
23941 print "/*", prefix defundef, macro, "*/"
23949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23951 fi # test -n "$CONFIG_HEADERS"
23954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23959 :[FHLC]) ac_mode=$ac_tag; continue;;
23961 case $ac_mode$ac_tag in
23963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23964 :[FH]-) ac_tag=-:-;;
23965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23982 -) ac_f="$ac_tmp/stdin";;
23983 *) # Look for the file first in the build tree, then in the source tree
23984 # (if the path is not absolute). The absolute path cannot be DOS-style,
23985 # because $ac_f cannot contain `:'.
23989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23994 as_fn_append ac_file_inputs " '$ac_f'"
23997 # Let's still pretend it is `configure' which instantiates (i.e., don't
23998 # use $as_me), people would be surprised to read:
23999 # /* config.h. Generated by config.status. */
24000 configure_input='Generated from '`
24001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24003 if test x"$ac_file" != x-; then
24004 configure_input="$ac_file. $configure_input"
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24006 $as_echo "$as_me: creating $ac_file" >&6;}
24008 # Neutralize special characters interpreted by sed in replacement strings.
24009 case $configure_input in #(
24010 *\&* | *\|* | *\\* )
24011 ac_sed_conf_input=`$as_echo "$configure_input" |
24012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24013 *) ac_sed_conf_input=$configure_input;;
24017 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24023 ac_dir=`$as_dirname -- "$ac_file" ||
24024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24025 X"$ac_file" : 'X\(//\)[^/]' \| \
24026 X"$ac_file" : 'X\(//\)$' \| \
24027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24028 $as_echo X"$ac_file" |
24029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24033 /^X\(\/\/\)[^/].*/{
24046 as_dir="$ac_dir"; as_fn_mkdir_p
24050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24053 # A ".." for each directory in $ac_dir_suffix.
24054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24055 case $ac_top_builddir_sub in
24056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24060 ac_abs_top_builddir=$ac_pwd
24061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24062 # for backward compatibility:
24063 ac_top_builddir=$ac_top_build_prefix
24066 .) # We are building in place.
24068 ac_top_srcdir=$ac_top_builddir_sub
24069 ac_abs_top_srcdir=$ac_pwd ;;
24070 [\\/]* | ?:[\\/]* ) # Absolute name.
24071 ac_srcdir=$srcdir$ac_dir_suffix;
24072 ac_top_srcdir=$srcdir
24073 ac_abs_top_srcdir=$srcdir ;;
24074 *) # Relative name.
24075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24076 ac_top_srcdir=$ac_top_build_prefix$srcdir
24077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24092 ac_MKDIR_P=$MKDIR_P
24094 [\\/$]* | ?:[\\/]* ) ;;
24095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24100 # If the template does not know about datarootdir, expand it.
24101 # FIXME: This hack should be removed a few years after 2.60.
24102 ac_datarootdir_hack=; ac_datarootdir_seen=
24113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24114 *datarootdir*) ac_datarootdir_seen=yes;;
24115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24120 ac_datarootdir_hack='
24121 s&@datadir@&$datadir&g
24122 s&@docdir@&$docdir&g
24123 s&@infodir@&$infodir&g
24124 s&@localedir@&$localedir&g
24125 s&@mandir@&$mandir&g
24126 s&\\\${datarootdir}&$datarootdir&g' ;;
24130 # Neutralize VPATH when `$srcdir' = `.'.
24131 # Shell code in configure.ac might set extrasub.
24132 # FIXME: do we really want to maintain this feature?
24133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24134 ac_sed_extra="$ac_vpsub
24137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24140 s|@configure_input@|$ac_sed_conf_input|;t t
24141 s&@top_builddir@&$ac_top_builddir_sub&;t t
24142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24143 s&@srcdir@&$ac_srcdir&;t t
24144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24145 s&@top_srcdir@&$ac_top_srcdir&;t t
24146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24147 s&@builddir@&$ac_builddir&;t t
24148 s&@abs_builddir@&$ac_abs_builddir&;t t
24149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24150 s&@INSTALL@&$ac_INSTALL&;t t
24151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24152 $ac_datarootdir_hack
24154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24162 which seems to be undefined. Please make sure it is defined" >&5
24163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24164 which seems to be undefined. Please make sure it is defined" >&2;}
24166 rm -f "$ac_tmp/stdin"
24168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24177 if test x"$ac_file" != x-; then
24179 $as_echo "/* $configure_input */" \
24180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24181 } >"$ac_tmp/config.h" \
24182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24188 mv "$ac_tmp/config.h" "$ac_file" \
24189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24192 $as_echo "/* $configure_input */" \
24193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24194 || as_fn_error $? "could not create -" "$LINENO" 5
24196 # Compute "$ac_file"'s index in $config_headers.
24199 for _am_header in $config_headers :; do
24200 case $_am_header in
24201 $_am_arg | $_am_arg:* )
24204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24209 X"$_am_arg" : 'X\(//\)[^/]' \| \
24210 X"$_am_arg" : 'X\(//\)$' \| \
24211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24212 $as_echo X"$_am_arg" |
24213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24217 /^X\(\/\/\)[^/].*/{
24229 s/.*/./; q'`/stamp-h$_am_stamp_count
24232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24233 $as_echo "$as_me: executing $ac_file commands" >&6;}
24238 case $ac_file$ac_mode in
24239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24240 # Older Autoconf quotes --file arguments for eval, but not when files
24241 # are listed without --file. Let's play safe and only enable the eval
24242 # if we detect the quoting.
24243 case $CONFIG_FILES in
24244 *\'*) eval set x "$CONFIG_FILES" ;;
24245 *) set x $CONFIG_FILES ;;
24250 # Strip MF so we end up with the name of the file.
24251 mf=`echo "$mf" | sed -e 's/:.*$//'`
24252 # Check whether this is an Automake generated Makefile or not.
24253 # We used to match only the files named 'Makefile.in', but
24254 # some people rename them; so instead we look at the file content.
24255 # Grep'ing the first line is not enough: some people post-process
24256 # each Makefile.in and add a new line on top of each file to say so.
24257 # Grep'ing the whole file is not good either: AIX grep has a line
24258 # limit of 2048, but all sed's we know have understand at least 4000.
24259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24260 dirpart=`$as_dirname -- "$mf" ||
24261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24262 X"$mf" : 'X\(//\)[^/]' \| \
24263 X"$mf" : 'X\(//\)$' \| \
24264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24270 /^X\(\/\/\)[^/].*/{
24286 # Extract the definition of DEPDIR, am__include, and am__quote
24287 # from the Makefile without running 'make'.
24288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24289 test -z "$DEPDIR" && continue
24290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24291 test -z "$am__include" && continue
24292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24293 # Find all dependency output files, they are included files with
24294 # $(DEPDIR) in their names. We invoke sed twice because it is the
24295 # simplest approach to changing $(DEPDIR) to its actual value in the
24297 for file in `sed -n "
24298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24300 # Make sure the directory exists.
24301 test -f "$dirpart/$file" && continue
24302 fdir=`$as_dirname -- "$file" ||
24303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24304 X"$file" : 'X\(//\)[^/]' \| \
24305 X"$file" : 'X\(//\)$' \| \
24306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24307 $as_echo X"$file" |
24308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24312 /^X\(\/\/\)[^/].*/{
24325 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24326 # echo "creating $dirpart/$file"
24327 echo '# dummy' > "$dirpart/$file"
24334 # See if we are running on zsh, and set the options which allow our
24335 # commands through without removal of \ escapes.
24336 if test -n "${ZSH_VERSION+set}" ; then
24337 setopt NO_GLOB_SUBST
24340 cfgfile="${ofile}T"
24341 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24344 cat <<_LT_EOF >> "$cfgfile"
24347 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24348 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24350 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24352 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24353 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24355 # Written by Gordon Matzigkeit, 1996
24357 # This file is part of GNU Libtool.
24359 # GNU Libtool is free software; you can redistribute it and/or
24360 # modify it under the terms of the GNU General Public License as
24361 # published by the Free Software Foundation; either version 2 of
24362 # the License, or (at your option) any later version.
24364 # As a special exception to the GNU General Public License,
24365 # if you distribute this file as part of a program or library that
24366 # is built using GNU Libtool, you may include this file under the
24367 # same distribution terms that you use for the rest of that program.
24369 # GNU Libtool is distributed in the hope that it will be useful,
24370 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24371 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24372 # GNU General Public License for more details.
24374 # You should have received a copy of the GNU General Public License
24375 # along with GNU Libtool; see the file COPYING. If not, a copy
24376 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
24377 # obtained by writing to the Free Software Foundation, Inc.,
24378 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24381 # The names of the tagged configurations supported by this script.
24382 available_tags="CXX RC "
24384 # ### BEGIN LIBTOOL CONFIG
24386 # Which release of libtool.m4 was used?
24387 macro_version=$macro_version
24388 macro_revision=$macro_revision
24390 # Assembler program.
24393 # DLL creation program.
24394 DLLTOOL=$lt_DLLTOOL
24396 # Object dumper program.
24397 OBJDUMP=$lt_OBJDUMP
24399 # Whether or not to build static libraries.
24400 build_old_libs=$enable_static
24402 # Whether or not to build shared libraries.
24403 build_libtool_libs=$enable_shared
24405 # What type of objects to build.
24408 # Whether or not to optimize for fast installation.
24409 fast_install=$enable_fast_install
24411 # Shell to use when invoking shell scripts.
24414 # An echo program that protects backslashes.
24417 # The PATH separator for the build system.
24418 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24421 host_alias=$host_alias
24425 # The build system.
24426 build_alias=$build_alias
24430 # A sed program that does not truncate output.
24433 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24434 Xsed="\$SED -e 1s/^X//"
24436 # A grep program that handles long lines.
24442 # A literal string matcher.
24445 # A BSD- or MS-compatible name lister.
24448 # Whether we need soft or hard links.
24451 # What is the maximum length of a command?
24452 max_cmd_len=$max_cmd_len
24454 # Object file suffix (normally "o").
24457 # Executable file suffix (normally "").
24460 # whether the shell understands "unset".
24463 # turn spaces into newlines.
24466 # turn newlines into spaces.
24469 # convert \$build file names to \$host format.
24470 to_host_file_cmd=$lt_cv_to_host_file_cmd
24472 # convert \$build files to toolchain format.
24473 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24475 # Method to check whether dependent libraries are shared objects.
24476 deplibs_check_method=$lt_deplibs_check_method
24478 # Command to use when deplibs_check_method = "file_magic".
24479 file_magic_cmd=$lt_file_magic_cmd
24481 # How to find potential files when deplibs_check_method = "file_magic".
24482 file_magic_glob=$lt_file_magic_glob
24484 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24485 want_nocaseglob=$lt_want_nocaseglob
24487 # Command to associate shared and link libraries.
24488 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24493 # Flags to create an archive.
24494 AR_FLAGS=$lt_AR_FLAGS
24496 # How to feed a file listing to the archiver.
24497 archiver_list_spec=$lt_archiver_list_spec
24499 # A symbol stripping program.
24502 # Commands used to install an old-style archive.
24504 old_postinstall_cmds=$lt_old_postinstall_cmds
24505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24507 # Whether to use a lock for old archive extraction.
24508 lock_old_archive_extraction=$lock_old_archive_extraction
24513 # LTCC compiler flags.
24514 LTCFLAGS=$lt_CFLAGS
24516 # Take the output of nm and produce a listing of raw symbols and C names.
24517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24519 # Transform the output of nm in a proper C declaration.
24520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24522 # Transform the output of nm in a C name address pair.
24523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24525 # Transform the output of nm in a C name address pair when lib prefix is needed.
24526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24528 # Specify filename containing input files for \$NM.
24529 nm_file_list_spec=$lt_nm_file_list_spec
24531 # The root where to search for dependent libraries,and in which our libraries should be installed.
24532 lt_sysroot=$lt_sysroot
24534 # The name of the directory that contains temporary libtool files.
24537 # Used to examine libraries when file_magic_cmd begins with "file".
24538 MAGIC_CMD=$MAGIC_CMD
24540 # Must we lock files when doing compilation?
24541 need_locks=$lt_need_locks
24544 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24546 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24547 DSYMUTIL=$lt_DSYMUTIL
24549 # Tool to change global to local symbols on Mac OS X.
24552 # Tool to manipulate fat objects and archives on Mac OS X.
24555 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24558 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24559 OTOOL64=$lt_OTOOL64
24561 # Old archive suffix (normally "a").
24564 # Shared library suffix (normally ".so").
24565 shrext_cmds=$lt_shrext_cmds
24567 # The commands to extract the exported symbol list from a shared archive.
24568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24570 # Variables whose values should be saved in libtool wrapper scripts and
24571 # restored at link time.
24572 variables_saved_for_relink=$lt_variables_saved_for_relink
24574 # Do we need the "lib" prefix for modules?
24575 need_lib_prefix=$need_lib_prefix
24577 # Do we need a version for libraries?
24578 need_version=$need_version
24580 # Library versioning type.
24581 version_type=$version_type
24583 # Shared library runtime path variable.
24584 runpath_var=$runpath_var
24586 # Shared library path variable.
24587 shlibpath_var=$shlibpath_var
24589 # Is shlibpath searched before the hard-coded library search path?
24590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24592 # Format of library name prefix.
24593 libname_spec=$lt_libname_spec
24595 # List of archive names. First name is the real one, the rest are links.
24596 # The last name is the one that the linker finds with -lNAME
24597 library_names_spec=$lt_library_names_spec
24599 # The coded name of the library, if different from the real name.
24600 soname_spec=$lt_soname_spec
24602 # Permission mode override for installation of shared libraries.
24603 install_override_mode=$lt_install_override_mode
24605 # Command to use after installation of a shared archive.
24606 postinstall_cmds=$lt_postinstall_cmds
24608 # Command to use after uninstallation of a shared archive.
24609 postuninstall_cmds=$lt_postuninstall_cmds
24611 # Commands used to finish a libtool library installation in a directory.
24612 finish_cmds=$lt_finish_cmds
24614 # As "finish_cmds", except a single script fragment to be evaled but
24616 finish_eval=$lt_finish_eval
24618 # Whether we should hardcode library paths into libraries.
24619 hardcode_into_libs=$hardcode_into_libs
24621 # Compile-time system search path for libraries.
24622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24624 # Run-time system search path for libraries.
24625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24627 # Whether dlopen is supported.
24628 dlopen_support=$enable_dlopen
24630 # Whether dlopen of programs is supported.
24631 dlopen_self=$enable_dlopen_self
24633 # Whether dlopen of statically linked programs is supported.
24634 dlopen_self_static=$enable_dlopen_self_static
24636 # Commands to strip libraries.
24637 old_striplib=$lt_old_striplib
24638 striplib=$lt_striplib
24641 # The linker used to build libraries.
24644 # How to create reloadable object files.
24645 reload_flag=$lt_reload_flag
24646 reload_cmds=$lt_reload_cmds
24648 # Commands used to build an old-style archive.
24649 old_archive_cmds=$lt_old_archive_cmds
24651 # A language specific compiler.
24654 # Is the compiler the GNU compiler?
24657 # Compiler flag to turn off builtin functions.
24658 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24660 # Additional compiler flags for building library objects.
24661 pic_flag=$lt_lt_prog_compiler_pic
24663 # How to pass a linker flag through the compiler.
24664 wl=$lt_lt_prog_compiler_wl
24666 # Compiler flag to prevent dynamic linking.
24667 link_static_flag=$lt_lt_prog_compiler_static
24669 # Does compiler simultaneously support -c and -o options?
24670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24672 # Whether or not to add -lc for building shared libraries.
24673 build_libtool_need_lc=$archive_cmds_need_lc
24675 # Whether or not to disallow shared libs when runtime libs are static.
24676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24678 # Compiler flag to allow reflexive dlopens.
24679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24681 # Compiler flag to generate shared objects directly from archives.
24682 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24684 # Whether the compiler copes with passing no objects directly.
24685 compiler_needs_object=$lt_compiler_needs_object
24687 # Create an old-style archive from a shared archive.
24688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24690 # Create a temporary old-style archive to link instead of a shared archive.
24691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24693 # Commands used to build a shared archive.
24694 archive_cmds=$lt_archive_cmds
24695 archive_expsym_cmds=$lt_archive_expsym_cmds
24697 # Commands used to build a loadable module if different from building
24698 # a shared archive.
24699 module_cmds=$lt_module_cmds
24700 module_expsym_cmds=$lt_module_expsym_cmds
24702 # Whether we are building with GNU ld or not.
24703 with_gnu_ld=$lt_with_gnu_ld
24705 # Flag that allows shared libraries with undefined symbols to be built.
24706 allow_undefined_flag=$lt_allow_undefined_flag
24708 # Flag that enforces no undefined symbols.
24709 no_undefined_flag=$lt_no_undefined_flag
24711 # Flag to hardcode \$libdir into a binary during linking.
24712 # This must work even if \$libdir does not exist
24713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24715 # Whether we need a single "-rpath" flag with a separated argument.
24716 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24719 # DIR into the resulting binary.
24720 hardcode_direct=$hardcode_direct
24722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24723 # DIR into the resulting binary and the resulting library dependency is
24724 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24725 # library is relocated.
24726 hardcode_direct_absolute=$hardcode_direct_absolute
24728 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24729 # into the resulting binary.
24730 hardcode_minus_L=$hardcode_minus_L
24732 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24733 # into the resulting binary.
24734 hardcode_shlibpath_var=$hardcode_shlibpath_var
24736 # Set to "yes" if building a shared library automatically hardcodes DIR
24737 # into the library and all subsequent libraries and executables linked
24739 hardcode_automatic=$hardcode_automatic
24741 # Set to yes if linker adds runtime paths of dependent libraries
24742 # to runtime path list.
24743 inherit_rpath=$inherit_rpath
24745 # Whether libtool must link a program against all its dependency libraries.
24746 link_all_deplibs=$link_all_deplibs
24748 # Set to "yes" if exported symbols are required.
24749 always_export_symbols=$always_export_symbols
24751 # The commands to list exported symbols.
24752 export_symbols_cmds=$lt_export_symbols_cmds
24754 # Symbols that should not be listed in the preloaded symbols.
24755 exclude_expsyms=$lt_exclude_expsyms
24757 # Symbols that must always be exported.
24758 include_expsyms=$lt_include_expsyms
24760 # Commands necessary for linking programs (against libraries) with templates.
24761 prelink_cmds=$lt_prelink_cmds
24763 # Commands necessary for finishing linking programs.
24764 postlink_cmds=$lt_postlink_cmds
24766 # Specify filename containing input files.
24767 file_list_spec=$lt_file_list_spec
24769 # How to hardcode a shared library path into an executable.
24770 hardcode_action=$hardcode_action
24772 # The directories searched by this compiler when creating a shared library.
24773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24775 # Dependencies to place before and after the objects being linked to
24776 # create a shared library.
24777 predep_objects=$lt_predep_objects
24778 postdep_objects=$lt_postdep_objects
24779 predeps=$lt_predeps
24780 postdeps=$lt_postdeps
24782 # The library search path used internally by the compiler when linking
24783 # a shared library.
24784 compiler_lib_search_path=$lt_compiler_lib_search_path
24786 # ### END LIBTOOL CONFIG
24792 cat <<\_LT_EOF >> "$cfgfile"
24793 # AIX sometimes has problems with the GCC collect2 program. For some
24794 # reason, if we set the COLLECT_NAMES environment variable, the problems
24795 # vanish in a puff of smoke.
24796 if test "X${COLLECT_NAMES+set}" != Xset; then
24798 export COLLECT_NAMES
24805 ltmain="$ac_aux_dir/ltmain.sh"
24808 # We use sed instead of cat because bash on DJGPP gets confused if
24809 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24810 # text mode, it properly converts lines to CR/LF. This bash problem
24811 # is reportedly fixed, but why not run on old versions too?
24812 sed '$q' "$ltmain" >> "$cfgfile" \
24813 || (rm -f "$cfgfile"; exit 1)
24815 if test x"$xsi_shell" = xyes; then
24816 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24820 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24821 \ * ) func_dirname_result="${3}" ;;\
24823 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24824 && mv -f "$cfgfile.tmp" "$cfgfile" \
24825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24826 test 0 -eq $? || _lt_function_replace_fail=:
24829 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24832 \ func_basename_result="${1##*/}"\
24833 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24834 && mv -f "$cfgfile.tmp" "$cfgfile" \
24835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24836 test 0 -eq $? || _lt_function_replace_fail=:
24839 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24840 func_dirname_and_basename ()\
24843 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24844 \ * ) func_dirname_result="${3}" ;;\
24846 \ func_basename_result="${1##*/}"\
24847 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24848 && mv -f "$cfgfile.tmp" "$cfgfile" \
24849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24850 test 0 -eq $? || _lt_function_replace_fail=:
24853 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24856 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24857 \ # positional parameters, so assign one to ordinary parameter first.\
24858 \ func_stripname_result=${3}\
24859 \ func_stripname_result=${func_stripname_result#"${1}"}\
24860 \ func_stripname_result=${func_stripname_result%"${2}"}\
24861 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24862 && mv -f "$cfgfile.tmp" "$cfgfile" \
24863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24864 test 0 -eq $? || _lt_function_replace_fail=:
24867 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24868 func_split_long_opt ()\
24870 \ func_split_long_opt_name=${1%%=*}\
24871 \ func_split_long_opt_arg=${1#*=}\
24872 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24873 && mv -f "$cfgfile.tmp" "$cfgfile" \
24874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24875 test 0 -eq $? || _lt_function_replace_fail=:
24878 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24879 func_split_short_opt ()\
24881 \ func_split_short_opt_arg=${1#??}\
24882 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24883 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24884 && mv -f "$cfgfile.tmp" "$cfgfile" \
24885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24886 test 0 -eq $? || _lt_function_replace_fail=:
24889 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24893 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24894 \ *) func_lo2o_result=${1} ;;\
24896 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24897 && mv -f "$cfgfile.tmp" "$cfgfile" \
24898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24899 test 0 -eq $? || _lt_function_replace_fail=:
24902 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24905 func_xform_result=${1%.*}.lo\
24906 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24907 && mv -f "$cfgfile.tmp" "$cfgfile" \
24908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24909 test 0 -eq $? || _lt_function_replace_fail=:
24912 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24915 func_arith_result=$(( $* ))\
24916 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24917 && mv -f "$cfgfile.tmp" "$cfgfile" \
24918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24919 test 0 -eq $? || _lt_function_replace_fail=:
24922 sed -e '/^func_len ()$/,/^} # func_len /c\
24925 func_len_result=${#1}\
24926 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24927 && mv -f "$cfgfile.tmp" "$cfgfile" \
24928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24929 test 0 -eq $? || _lt_function_replace_fail=:
24933 if test x"$lt_shell_append" = xyes; then
24934 sed -e '/^func_append ()$/,/^} # func_append /c\
24937 eval "${1}+=\\${2}"\
24938 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24939 && mv -f "$cfgfile.tmp" "$cfgfile" \
24940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24941 test 0 -eq $? || _lt_function_replace_fail=:
24944 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24945 func_append_quoted ()\
24947 \ func_quote_for_eval "${2}"\
24948 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24949 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24950 && mv -f "$cfgfile.tmp" "$cfgfile" \
24951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24952 test 0 -eq $? || _lt_function_replace_fail=:
24955 # Save a `func_append' function call where possible by direct use of '+='
24956 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24957 && mv -f "$cfgfile.tmp" "$cfgfile" \
24958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24959 test 0 -eq $? || _lt_function_replace_fail=:
24961 # Save a `func_append' function call even when '+=' is not available
24962 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24963 && mv -f "$cfgfile.tmp" "$cfgfile" \
24964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24965 test 0 -eq $? || _lt_function_replace_fail=:
24968 if test x"$_lt_function_replace_fail" = x":"; then
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24970 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24974 mv -f "$cfgfile" "$ofile" ||
24975 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24979 cat <<_LT_EOF >> "$ofile"
24981 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24983 # The linker used to build libraries.
24986 # How to create reloadable object files.
24987 reload_flag=$lt_reload_flag_CXX
24988 reload_cmds=$lt_reload_cmds_CXX
24990 # Commands used to build an old-style archive.
24991 old_archive_cmds=$lt_old_archive_cmds_CXX
24993 # A language specific compiler.
24994 CC=$lt_compiler_CXX
24996 # Is the compiler the GNU compiler?
24999 # Compiler flag to turn off builtin functions.
25000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25002 # Additional compiler flags for building library objects.
25003 pic_flag=$lt_lt_prog_compiler_pic_CXX
25005 # How to pass a linker flag through the compiler.
25006 wl=$lt_lt_prog_compiler_wl_CXX
25008 # Compiler flag to prevent dynamic linking.
25009 link_static_flag=$lt_lt_prog_compiler_static_CXX
25011 # Does compiler simultaneously support -c and -o options?
25012 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25014 # Whether or not to add -lc for building shared libraries.
25015 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25017 # Whether or not to disallow shared libs when runtime libs are static.
25018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25020 # Compiler flag to allow reflexive dlopens.
25021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25023 # Compiler flag to generate shared objects directly from archives.
25024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25026 # Whether the compiler copes with passing no objects directly.
25027 compiler_needs_object=$lt_compiler_needs_object_CXX
25029 # Create an old-style archive from a shared archive.
25030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25032 # Create a temporary old-style archive to link instead of a shared archive.
25033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25035 # Commands used to build a shared archive.
25036 archive_cmds=$lt_archive_cmds_CXX
25037 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25039 # Commands used to build a loadable module if different from building
25040 # a shared archive.
25041 module_cmds=$lt_module_cmds_CXX
25042 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25044 # Whether we are building with GNU ld or not.
25045 with_gnu_ld=$lt_with_gnu_ld_CXX
25047 # Flag that allows shared libraries with undefined symbols to be built.
25048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25050 # Flag that enforces no undefined symbols.
25051 no_undefined_flag=$lt_no_undefined_flag_CXX
25053 # Flag to hardcode \$libdir into a binary during linking.
25054 # This must work even if \$libdir does not exist
25055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25057 # Whether we need a single "-rpath" flag with a separated argument.
25058 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25060 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25061 # DIR into the resulting binary.
25062 hardcode_direct=$hardcode_direct_CXX
25064 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25065 # DIR into the resulting binary and the resulting library dependency is
25066 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25067 # library is relocated.
25068 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25070 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25071 # into the resulting binary.
25072 hardcode_minus_L=$hardcode_minus_L_CXX
25074 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25075 # into the resulting binary.
25076 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25078 # Set to "yes" if building a shared library automatically hardcodes DIR
25079 # into the library and all subsequent libraries and executables linked
25081 hardcode_automatic=$hardcode_automatic_CXX
25083 # Set to yes if linker adds runtime paths of dependent libraries
25084 # to runtime path list.
25085 inherit_rpath=$inherit_rpath_CXX
25087 # Whether libtool must link a program against all its dependency libraries.
25088 link_all_deplibs=$link_all_deplibs_CXX
25090 # Set to "yes" if exported symbols are required.
25091 always_export_symbols=$always_export_symbols_CXX
25093 # The commands to list exported symbols.
25094 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25096 # Symbols that should not be listed in the preloaded symbols.
25097 exclude_expsyms=$lt_exclude_expsyms_CXX
25099 # Symbols that must always be exported.
25100 include_expsyms=$lt_include_expsyms_CXX
25102 # Commands necessary for linking programs (against libraries) with templates.
25103 prelink_cmds=$lt_prelink_cmds_CXX
25105 # Commands necessary for finishing linking programs.
25106 postlink_cmds=$lt_postlink_cmds_CXX
25108 # Specify filename containing input files.
25109 file_list_spec=$lt_file_list_spec_CXX
25111 # How to hardcode a shared library path into an executable.
25112 hardcode_action=$hardcode_action_CXX
25114 # The directories searched by this compiler when creating a shared library.
25115 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25117 # Dependencies to place before and after the objects being linked to
25118 # create a shared library.
25119 predep_objects=$lt_predep_objects_CXX
25120 postdep_objects=$lt_postdep_objects_CXX
25121 predeps=$lt_predeps_CXX
25122 postdeps=$lt_postdeps_CXX
25124 # The library search path used internally by the compiler when linking
25125 # a shared library.
25126 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25128 # ### END LIBTOOL TAG CONFIG: CXX
25132 cat <<_LT_EOF >> "$ofile"
25134 # ### BEGIN LIBTOOL TAG CONFIG: RC
25136 # The linker used to build libraries.
25139 # How to create reloadable object files.
25140 reload_flag=$lt_reload_flag_RC
25141 reload_cmds=$lt_reload_cmds_RC
25143 # Commands used to build an old-style archive.
25144 old_archive_cmds=$lt_old_archive_cmds_RC
25146 # A language specific compiler.
25149 # Is the compiler the GNU compiler?
25152 # Compiler flag to turn off builtin functions.
25153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25155 # Additional compiler flags for building library objects.
25156 pic_flag=$lt_lt_prog_compiler_pic_RC
25158 # How to pass a linker flag through the compiler.
25159 wl=$lt_lt_prog_compiler_wl_RC
25161 # Compiler flag to prevent dynamic linking.
25162 link_static_flag=$lt_lt_prog_compiler_static_RC
25164 # Does compiler simultaneously support -c and -o options?
25165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25167 # Whether or not to add -lc for building shared libraries.
25168 build_libtool_need_lc=$archive_cmds_need_lc_RC
25170 # Whether or not to disallow shared libs when runtime libs are static.
25171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25173 # Compiler flag to allow reflexive dlopens.
25174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25176 # Compiler flag to generate shared objects directly from archives.
25177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25179 # Whether the compiler copes with passing no objects directly.
25180 compiler_needs_object=$lt_compiler_needs_object_RC
25182 # Create an old-style archive from a shared archive.
25183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25185 # Create a temporary old-style archive to link instead of a shared archive.
25186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25188 # Commands used to build a shared archive.
25189 archive_cmds=$lt_archive_cmds_RC
25190 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25192 # Commands used to build a loadable module if different from building
25193 # a shared archive.
25194 module_cmds=$lt_module_cmds_RC
25195 module_expsym_cmds=$lt_module_expsym_cmds_RC
25197 # Whether we are building with GNU ld or not.
25198 with_gnu_ld=$lt_with_gnu_ld_RC
25200 # Flag that allows shared libraries with undefined symbols to be built.
25201 allow_undefined_flag=$lt_allow_undefined_flag_RC
25203 # Flag that enforces no undefined symbols.
25204 no_undefined_flag=$lt_no_undefined_flag_RC
25206 # Flag to hardcode \$libdir into a binary during linking.
25207 # This must work even if \$libdir does not exist
25208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25210 # Whether we need a single "-rpath" flag with a separated argument.
25211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25213 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25214 # DIR into the resulting binary.
25215 hardcode_direct=$hardcode_direct_RC
25217 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25218 # DIR into the resulting binary and the resulting library dependency is
25219 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25220 # library is relocated.
25221 hardcode_direct_absolute=$hardcode_direct_absolute_RC
25223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25224 # into the resulting binary.
25225 hardcode_minus_L=$hardcode_minus_L_RC
25227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25228 # into the resulting binary.
25229 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25231 # Set to "yes" if building a shared library automatically hardcodes DIR
25232 # into the library and all subsequent libraries and executables linked
25234 hardcode_automatic=$hardcode_automatic_RC
25236 # Set to yes if linker adds runtime paths of dependent libraries
25237 # to runtime path list.
25238 inherit_rpath=$inherit_rpath_RC
25240 # Whether libtool must link a program against all its dependency libraries.
25241 link_all_deplibs=$link_all_deplibs_RC
25243 # Set to "yes" if exported symbols are required.
25244 always_export_symbols=$always_export_symbols_RC
25246 # The commands to list exported symbols.
25247 export_symbols_cmds=$lt_export_symbols_cmds_RC
25249 # Symbols that should not be listed in the preloaded symbols.
25250 exclude_expsyms=$lt_exclude_expsyms_RC
25252 # Symbols that must always be exported.
25253 include_expsyms=$lt_include_expsyms_RC
25255 # Commands necessary for linking programs (against libraries) with templates.
25256 prelink_cmds=$lt_prelink_cmds_RC
25258 # Commands necessary for finishing linking programs.
25259 postlink_cmds=$lt_postlink_cmds_RC
25261 # Specify filename containing input files.
25262 file_list_spec=$lt_file_list_spec_RC
25264 # How to hardcode a shared library path into an executable.
25265 hardcode_action=$hardcode_action_RC
25267 # The directories searched by this compiler when creating a shared library.
25268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
25270 # Dependencies to place before and after the objects being linked to
25271 # create a shared library.
25272 predep_objects=$lt_predep_objects_RC
25273 postdep_objects=$lt_postdep_objects_RC
25274 predeps=$lt_predeps_RC
25275 postdeps=$lt_postdeps_RC
25277 # The library search path used internally by the compiler when linking
25278 # a shared library.
25279 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25281 # ### END LIBTOOL TAG CONFIG: RC
25285 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
25286 "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
25294 ac_clean_files=$ac_clean_files_save
25296 test $ac_write_fail = 0 ||
25297 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25300 # configure is writing to config.log, and then calls config.status.
25301 # config.status does its own redirection, appending to config.log.
25302 # Unfortunately, on DOS this fails, as config.log is still kept open
25303 # by configure, so config.status won't be able to write to it; its
25304 # output is simply discarded. So we exec the FD to /dev/null,
25305 # effectively closing config.log, so it can be properly (re)opened and
25306 # appended to by config.status. When coming back to configure, we
25307 # need to make the FD available again.
25308 if test "$no_create" != yes; then
25310 ac_config_status_args=
25311 test "$silent" = yes &&
25312 ac_config_status_args="$ac_config_status_args --quiet"
25314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25317 # would make configure fail if this is the last instruction.
25318 $ac_cs_success || as_fn_exit 1
25320 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25322 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25327 GPGME v${VERSION} has been configured as follows:
25329 Revision: f06220b (61538)
25332 UI Server: $uiserver
25333 FD Passing: $use_descriptor_passing
25335 Language bindings: ${enabled_languages_v:-$enabled_languages}
25337 if test "x${gpg_config_script_warn}" != x; then
25339 Mismatches between the target platform and the to
25340 be used libraries have been been detected for:
25341 ${gpg_config_script_warn}
25342 Please check above for warning messages.