2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.15.1.
5 # Report bugs to <https://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='gpgme'
593 PACKAGE_VERSION='1.15.1'
594 PACKAGE_STRING='gpgme 1.15.1'
595 PACKAGE_BUGREPORT='https://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
664 INSERT__TYPEDEFS_FOR_GPGME_H
665 NEED__FILE_OFFSET_BITS
668 RUN_GPGSM_TESTS_FALSE
672 RUN_GPGCONF_TESTS_FALSE
673 RUN_GPGCONF_TESTS_TRUE
711 HAVE_MACOS_SYSTEM_FALSE
712 HAVE_MACOS_SYSTEM_TRUE
713 HAVE_ANDROID_SYSTEM_FALSE
714 HAVE_ANDROID_SYSTEM_TRUE
715 HAVE_W64_SYSTEM_FALSE
717 HAVE_W32_SYSTEM_FALSE
719 HAVE_DOSISH_SYSTEM_FALSE
720 HAVE_DOSISH_SYSTEM_TRUE
727 HAVE_LD_VERSION_SCRIPT_FALSE
728 HAVE_LD_VERSION_SCRIPT_TRUE
763 LDADD_FOR_TESTS_KLUDGE
793 MAINTAINER_MODE_FALSE
807 INSTALL_STRIP_PROGRAM
822 LIBQGPGME_LT_REVISION
825 LIBGPGMEPP_LT_REVISION
827 LIBGPGMEPP_LT_CURRENT
859 program_transform_name
873 enable_option_checking
875 enable_maintainer_mode
876 enable_dependency_tracking
888 enable_build_timestamp
894 with_libgpg_error_prefix
895 with_gpg_error_prefix
896 with_libassuan_prefix
898 enable_linux_getdents
900 ac_precious_vars='build_alias
924 # Initialize some variables set by options.
926 ac_init_version=false
927 ac_unrecognized_opts=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 runstatedir='${localstatedir}/run'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1016 -datadir | --datadir | --datadi | --datad)
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1028 -disable-* | --disable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1042 eval enable_$ac_useropt=no ;;
1044 -docdir | --docdir | --docdi | --doc | --do)
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1054 -enable-* | --enable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099 htmldir=$ac_optarg ;;
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1113 -libdir | --libdir | --libdi | --libd)
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1204 -psdir | --psdir | --psdi | --psd | --ps)
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1213 -runstatedir | --runstatedir | --runstatedi | --runstated \
1214 | --runstate | --runstat | --runsta | --runst | --runs \
1215 | --run | --ru | --r)
1216 ac_prev=runstatedir ;;
1217 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1218 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1219 | --run=* | --ru=* | --r=*)
1220 runstatedir=$ac_optarg ;;
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1241 -site=* | --site=* | --sit=*)
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1281 eval with_$ac_useropt=\$ac_optarg ;;
1283 -without-* | --without-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1297 eval with_$ac_useropt=no ;;
1300 # Obsolete; use --with-x.
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1318 Try \`$0 --help' for more information"
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
1324 case $ac_envvar in #(
1325 '' | [0-9]* | *[!_$as_cr_alnum]* )
1326 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 as_fn_error $? "missing argument to $ac_option"
1347 if test -n "$ac_unrecognized_opts"; then
1348 case $enable_option_checking in
1350 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 # Check all directory arguments for consistency.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir runstatedir
1361 eval ac_val=\$$ac_var
1362 # Remove trailing slashes.
1365 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366 eval $ac_var=\$ac_val;;
1368 # Be sure to have absolute directory names.
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1381 target=$target_alias
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 as_fn_error $? "working directory cannot be determined"
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 as_fn_error $? "pwd does not report name of working directory"
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures gpgme 1.15.1 to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking ...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/gpgme]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of gpgme 1.15.1:";;
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --enable-silent-rules less verbose build output (undo: "make V=1")
1552 --disable-silent-rules verbose build output (undo: "make V=0")
1553 --enable-maintainer-mode
1554 enable make rules and dependencies not useful (and
1555 sometimes confusing) to the casual installer
1556 --enable-dependency-tracking
1557 do not reject slow dependency extractors
1558 --disable-dependency-tracking
1559 speeds up one-time build
1560 --enable-static[=PKGS] build static libraries [default=no]
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --disable-libtool-lock avoid locking (might break parallel builds)
1565 --disable-glibtest do not try to compile and run a test GLIB program
1566 --enable-w32-glib build GPGME Glib for W32
1567 --enable-fixed-path=PATH
1568 locate binaries only via this PATH
1569 --enable-languages=languages
1570 enable only specific language bindings
1571 --enable-build-timestamp
1572 set an explicit build timestamp for reproducibility.
1573 (default is the current time in ISO-8601 format)
1574 --disable-gpgconf-test disable GPGCONF regression test
1575 --disable-gpg-test disable GPG regression test
1576 --disable-gpgsm-test disable GPGSM regression test
1577 --disable-g13-test disable G13 regression test
1578 --disable-largefile omit support for large files
1579 --disable-fd-passing do not use FD passing
1580 --disable-linux-getdents
1581 do not use SYS_getdents on Linux
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-sysroot=DIR Search for dependent libraries within DIR
1590 (or the compiler's sysroot if not specified).
1591 --with-libgpg-error-prefix=PFX
1592 prefix where GPG Error is installed (optional)
1594 --with-libassuan-prefix=PFX
1595 prefix where LIBASSUAN is installed (optional)
1597 Some influential environment variables:
1598 SYSROOT locate config scripts also below that directory
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
1603 LIBS libraries to pass to the linker, e.g. -l<library>
1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
1610 build system C compiler
1611 CXXCPP C++ preprocessor
1612 PKG_CONFIG path to pkg-config utility
1614 C compiler flags for GPGME_QT, overriding pkg-config
1616 linker flags for GPGME_QT, overriding pkg-config
1618 C compiler flags for GPGME_QTTEST, overriding pkg-config
1620 linker flags for GPGME_QTTEST, overriding pkg-config
1621 PYTHON the Python interpreter
1623 The installed Python version to use, for example '2.3'. This
1624 string will be appended to the Python interpreter canonical
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to <https://bugs.gnupg.org>.
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1660 .) # We are building in place.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1693 gpgme configure 1.15.1
1694 generated by GNU Autoconf 2.69
1696 Copyright (C) 2012 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } > conftest.i && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1787 ac_fn_c_check_header_mongrel ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if eval \${$3+:} false; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1800 # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1811 ac_header_compiler=no
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1827 ac_header_preproc=no
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1833 # So? What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ( $as_echo "## ------------------------------------- ##
1853 ## Report this to https://bugs.gnupg.org ##
1854 ## ------------------------------------- ##"
1855 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1863 eval "$3=\$ac_header_compiler"
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 } # ac_fn_c_check_header_mongrel
1873 # ac_fn_c_try_run LINENO
1874 # ----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876 # that executables *can* be run.
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>&5
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891 { { case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_try") 2>&5
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; }; }; then :
1903 $as_echo "$as_me: program exited with status $ac_status" >&5
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=$ac_status
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_header_compile
1946 # ac_fn_c_try_link LINENO
1947 # -----------------------
1948 # Try to link conftest.$ac_ext, and return whether this succeeded.
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 rm -f conftest.$ac_objext conftest$ac_exeext
1953 if { { ac_try="$ac_link"
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_link") 2>conftest.err
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && {
1969 test -z "$ac_c_werror_flag" ||
1970 test ! -s conftest.err
1971 } && test -s conftest$ac_exeext && {
1972 test "$cross_compiling" = yes ||
1973 test -x conftest$ac_exeext
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1982 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984 # interfere with the next link command; also delete a directory that is
1985 # left behind by Apple's compiler. We do this before executing the actions.
1986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1990 } # ac_fn_c_try_link
1992 # ac_fn_cxx_try_compile LINENO
1993 # ----------------------------
1994 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_compile ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext
1999 if { { ac_try="$ac_compile"
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_compile") 2>conftest.err
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest.$ac_objext; then :
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
2028 } # ac_fn_cxx_try_compile
2030 # ac_fn_c_check_func LINENO FUNC VAR
2031 # ----------------------------------
2032 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033 ac_fn_c_check_func ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2053 # include <limits.h>
2055 # include <assert.h>
2060 /* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined __stub_$2 || defined __stub___$2
2082 if ac_fn_c_try_link "$LINENO"; then :
2087 rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_func
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } > conftest.i && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status $ac_retval
2132 } # ac_fn_cxx_try_cpp
2134 # ac_fn_cxx_try_link LINENO
2135 # -------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_cxx_try_link ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 test -x conftest$ac_exeext
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2178 } # ac_fn_cxx_try_link
2180 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2181 # --------------------------------------------
2182 # Tries to find the compile-time value of EXPR in a program that includes
2183 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2185 ac_fn_c_compute_int ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if test "$cross_compiling" = yes; then
2189 # Depending upon the size, compute the lo and hi bounds.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2215 return test_array [0];
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_hi=$ac_mid; break
2224 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2225 if test $ac_lo -le $ac_mid; then
2229 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) < 0)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2259 return test_array [0];
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_lo=$ac_mid; break
2268 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2269 if test $ac_mid -le $ac_hi; then
2273 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 # Binary search between lo and hi bounds.
2284 while test "x$ac_lo" != "x$ac_hi"; do
2285 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 return test_array [0];
2300 if ac_fn_c_try_compile "$LINENO"; then :
2303 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2315 static long int longval () { return $2; }
2316 static unsigned long int ulongval () { return $2; }
2323 FILE *f = fopen ("conftest.val", "w");
2328 long int i = longval ();
2331 fprintf (f, "%ld", i);
2335 unsigned long int i = ulongval ();
2338 fprintf (f, "%lu", i);
2340 /* Do not output a trailing newline, as this causes \r\n confusion
2341 on some platforms. */
2342 return ferror (f) || fclose (f) != 0;
2348 if ac_fn_c_try_run "$LINENO"; then :
2349 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2354 conftest.$ac_objext conftest.beam conftest.$ac_ext
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 as_fn_set_status $ac_retval
2361 } # ac_fn_c_compute_int
2363 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2364 # -------------------------------------------
2365 # Tests whether TYPE exists after having included INCLUDES, setting cache
2366 # variable VAR accordingly.
2367 ac_fn_c_check_type ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if eval \${$3+:} false; then :
2373 $as_echo_n "(cached) " >&6
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2401 if ac_fn_c_try_compile "$LINENO"; then :
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 } # ac_fn_c_check_type
2417 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2418 # ---------------------------------------------
2419 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2421 ac_fn_c_check_decl ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 as_decl_name=`echo $2|sed 's/ *(.*//'`
2425 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2427 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2428 if eval \${$3+:} false; then :
2429 $as_echo_n "(cached) " >&6
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2437 #ifndef $as_decl_name
2439 (void) $as_decl_use;
2441 (void) $as_decl_name;
2449 if ac_fn_c_try_compile "$LINENO"; then :
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 } # ac_fn_c_check_decl
2463 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2464 # ----------------------------------------------------
2465 # Tries to find if the field MEMBER exists in type AGGR, after including
2466 # INCLUDES, setting cache variable VAR accordingly.
2467 ac_fn_c_check_member ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2471 $as_echo_n "checking for $2.$3... " >&6; }
2472 if eval \${$4+:} false; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2488 if ac_fn_c_try_compile "$LINENO"; then :
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2498 if (sizeof ac_aggr.$3)
2504 if ac_fn_c_try_compile "$LINENO"; then :
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518 } # ac_fn_c_check_member
2519 cat >config.log <<_ACEOF
2520 This file contains any messages produced by compilers while
2521 running configure, to aid debugging if configure makes a mistake.
2523 It was created by gpgme $as_me 1.15.1, which was
2524 generated by GNU Autoconf 2.69. Invocation command line was
2536 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2537 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2538 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2539 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2540 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2542 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2543 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2545 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2546 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2547 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2548 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2549 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2550 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2551 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 $as_echo "PATH: $as_dir"
2576 # Keep a trace of the command line.
2577 # Strip out --no-create and --no-recursion so they do not pile up.
2578 # Strip out --silent because we don't want to record it for future runs.
2579 # Also quote any args containing shell meta-characters.
2580 # Make two passes to allow for proper duplicate-argument suppression.
2584 ac_must_keep_next=false
2590 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2592 | -silent | --silent | --silen | --sile | --sil)
2595 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2600 as_fn_append ac_configure_args1 " '$ac_arg'"
2601 if test $ac_must_keep_next = true; then
2602 ac_must_keep_next=false # Got value, back to normal.
2605 *=* | --config-cache | -C | -disable-* | --disable-* \
2606 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2607 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2608 | -with-* | --with-* | -without-* | --without-* | --x)
2609 case "$ac_configure_args0 " in
2610 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2613 -* ) ac_must_keep_next=true ;;
2616 as_fn_append ac_configure_args " '$ac_arg'"
2621 { ac_configure_args0=; unset ac_configure_args0;}
2622 { ac_configure_args1=; unset ac_configure_args1;}
2624 # When interrupted or exit'd, cleanup temporary files, and complete
2625 # config.log. We remove comments because anyway the quotes in there
2626 # would cause problems or look ugly.
2627 # WARNING: Use '\'' to represent an apostrophe within the trap.
2628 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2629 trap 'exit_status=$?
2630 # Save into config.log some information that might help in debugging.
2634 $as_echo "## ---------------- ##
2635 ## Cache variables. ##
2636 ## ---------------- ##"
2638 # The following way of writing the cache mishandles newlines in values,
2640 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2641 eval ac_val=\$$ac_var
2645 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2649 _ | IFS | as_nl) ;; #(
2650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2651 *) { eval $ac_var=; unset $ac_var;} ;;
2656 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2657 *${as_nl}ac_space=\ *)
2659 "s/'\''/'\''\\\\'\'''\''/g;
2660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2670 $as_echo "## ----------------- ##
2671 ## Output variables. ##
2672 ## ----------------- ##"
2674 for ac_var in $ac_subst_vars
2676 eval ac_val=\$$ac_var
2678 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2680 $as_echo "$ac_var='\''$ac_val'\''"
2684 if test -n "$ac_subst_files"; then
2685 $as_echo "## ------------------- ##
2686 ## File substitutions. ##
2687 ## ------------------- ##"
2689 for ac_var in $ac_subst_files
2691 eval ac_val=\$$ac_var
2693 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2695 $as_echo "$ac_var='\''$ac_val'\''"
2700 if test -s confdefs.h; then
2701 $as_echo "## ----------- ##
2708 test "$ac_signal" != 0 &&
2709 $as_echo "$as_me: caught signal $ac_signal"
2710 $as_echo "$as_me: exit $exit_status"
2712 rm -f core *.core core.conftest.* &&
2713 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2716 for ac_signal in 1 2 13 15; do
2717 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2721 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2722 rm -f -r conftest* confdefs.h
2724 $as_echo "/* confdefs.h */" > confdefs.h
2726 # Predefined preprocessor variables.
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_NAME "$PACKAGE_NAME"
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_STRING "$PACKAGE_STRING"
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_URL "$PACKAGE_URL"
2753 # Let the site file select an alternate cache file if it wants to.
2754 # Prefer an explicitly selected file to automatically selected ones.
2757 if test -n "$CONFIG_SITE"; then
2758 # We do not want a PATH search for config.site.
2759 case $CONFIG_SITE in #((
2760 -*) ac_site_file1=./$CONFIG_SITE;;
2761 */*) ac_site_file1=$CONFIG_SITE;;
2762 *) ac_site_file1=./$CONFIG_SITE;;
2764 elif test "x$prefix" != xNONE; then
2765 ac_site_file1=$prefix/share/config.site
2766 ac_site_file2=$prefix/etc/config.site
2768 ac_site_file1=$ac_default_prefix/share/config.site
2769 ac_site_file2=$ac_default_prefix/etc/config.site
2771 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2773 test "x$ac_site_file" = xNONE && continue
2774 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2776 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2777 sed 's/^/| /' "$ac_site_file" >&5
2779 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 as_fn_error $? "failed to load site script $ac_site_file
2782 See \`config.log' for more details" "$LINENO" 5; }
2786 if test -r "$cache_file"; then
2787 # Some versions of bash will fail to source /dev/null (special files
2788 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2789 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2791 $as_echo "$as_me: loading cache $cache_file" >&6;}
2793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2794 *) . "./$cache_file";;
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2799 $as_echo "$as_me: creating cache $cache_file" >&6;}
2803 as_fn_append ac_header_list " locale.h"
2804 as_fn_append ac_header_list " sys/select.h"
2805 as_fn_append ac_header_list " sys/uio.h"
2806 as_fn_append ac_header_list " argp.h"
2807 as_fn_append ac_header_list " stdint.h"
2808 as_fn_append ac_header_list " unistd.h"
2809 as_fn_append ac_header_list " sys/time.h"
2810 as_fn_append ac_header_list " sys/types.h"
2811 as_fn_append ac_header_list " sys/stat.h"
2812 # Check that the precious variables saved in the cache have kept the same
2814 ac_cache_corrupted=false
2815 for ac_var in $ac_precious_vars; do
2816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2817 eval ac_new_set=\$ac_env_${ac_var}_set
2818 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2819 eval ac_new_val=\$ac_env_${ac_var}_value
2820 case $ac_old_set,$ac_new_set in
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2823 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2824 ac_cache_corrupted=: ;;
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2827 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2828 ac_cache_corrupted=: ;;
2831 if test "x$ac_old_val" != "x$ac_new_val"; then
2832 # differences in whitespace do not lead to failure.
2833 ac_old_val_w=`echo x $ac_old_val`
2834 ac_new_val_w=`echo x $ac_new_val`
2835 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2837 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2838 ac_cache_corrupted=:
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2841 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2842 eval $ac_var=\$ac_old_val
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2845 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2847 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2850 # Pass precious variables to config.status.
2851 if test "$ac_new_set" = set; then
2853 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2854 *) ac_arg=$ac_var=$ac_new_val ;;
2856 case " $ac_configure_args " in
2857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2858 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2862 if $ac_cache_corrupted; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2866 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2867 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 # LT Version numbers, remember to change them just *before* a release.
2882 # (Code changed: REVISION++)
2883 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2884 # (Interfaces added: AGE++)
2885 # (Interfaces removed: AGE=0)
2887 LIBGPGME_LT_CURRENT=35
2889 LIBGPGME_LT_REVISION=1
2891 # If there is an ABI break in gpgmepp or qgpgme also bump the
2892 # version in IMPORTED_LOCATION in the GpgmeppConfig-w32.cmake.in.in
2894 LIBGPGMEPP_LT_CURRENT=18
2895 LIBGPGMEPP_LT_AGE=12
2896 LIBGPGMEPP_LT_REVISION=1
2898 LIBQGPGME_LT_CURRENT=12
2900 LIBQGPGME_LT_REVISION=1
2901 ################################################
2915 # If the API is changed in an incompatible way: increment the next counter.
2916 GPGME_CONFIG_API_VERSION=1
2917 ##############################################
2919 NEED_GPG_ERROR_VERSION=1.36
2920 NEED_LIBASSUAN_API=2
2921 NEED_LIBASSUAN_VERSION=2.4.2
2929 for ac_dir in build-aux "$srcdir"/build-aux; do
2930 if test -f "$ac_dir/install-sh"; then
2932 ac_install_sh="$ac_aux_dir/install-sh -c"
2934 elif test -f "$ac_dir/install.sh"; then
2936 ac_install_sh="$ac_aux_dir/install.sh -c"
2938 elif test -f "$ac_dir/shtool"; then
2940 ac_install_sh="$ac_aux_dir/shtool install -c"
2944 if test -z "$ac_aux_dir"; then
2945 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2959 ac_config_headers="$ac_config_headers conf/config.h"
2961 am__api_version='1.16'
2963 # Find a good install program. We prefer a C program (faster),
2964 # so one script is as good as another. But avoid the broken or
2965 # incompatible versions:
2966 # SysV /etc/install, /usr/sbin/install
2967 # SunOS /usr/etc/install
2968 # IRIX /sbin/install
2970 # AmigaOS /C/install, which installs bootblocks on floppy discs
2971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2974 # OS/2's system install, which has a completely different semantic
2975 # ./install, which can be erroneously created by make from ./install.sh.
2976 # Reject install programs that cannot install multiple files.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2979 if test -z "$INSTALL"; then
2980 if ${ac_cv_path_install+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 # Account for people who put trailing slashes in PATH elements.
2989 case $as_dir/ in #((
2990 ./ | .// | /[cC]/* | \
2991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2992 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2995 # OSF1 and SCO ODT 3.0 have their own names for install.
2996 # Don't use installbsd from OSF since it installs stuff as root
2998 for ac_prog in ginstall scoinst install; do
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3001 if test $ac_prog = install &&
3002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3003 # AIX install. It has an incompatible calling convention.
3005 elif test $ac_prog = install &&
3006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3007 # program-specific install script used by HP pwplus--don't use.
3010 rm -rf conftest.one conftest.two conftest.dir
3011 echo one > conftest.one
3012 echo two > conftest.two
3014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3015 test -s conftest.one && test -s conftest.two &&
3016 test -s conftest.dir/conftest.one &&
3017 test -s conftest.dir/conftest.two
3019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3032 rm -rf conftest.one conftest.two conftest.dir
3035 if test "${ac_cv_path_install+set}" = set; then
3036 INSTALL=$ac_cv_path_install
3038 # As a last resort, use the slow shell script. Don't cache a
3039 # value for INSTALL within a source directory, because that will
3040 # break other packages using the cache if that directory is
3041 # removed, or if the value is a relative name.
3042 INSTALL=$ac_install_sh
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3046 $as_echo "$INSTALL" >&6; }
3048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3049 # It thinks the first close brace ends the variable substitution.
3050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3057 $as_echo_n "checking whether build environment is sane... " >&6; }
3058 # Reject unsafe characters in $srcdir or the absolute working directory
3059 # name. Accept space and tab only in the latter.
3063 *[\\\"\#\$\&\'\`$am_lf]*)
3064 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3067 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3068 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3071 # Do 'set' in a subshell so we don't clobber the current shell's
3072 # arguments. Must try -L first in case configure is actually a
3073 # symlink; some systems play weird games with the mod time of symlinks
3074 # (eg FreeBSD returns the mod time of the symlink's containing
3078 for am_try in 1 2; do
3079 echo "timestamp, slept: $am_has_slept" > conftest.file
3080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3081 if test "$*" = "X"; then
3083 set X `ls -t "$srcdir/configure" conftest.file`
3085 if test "$*" != "X $srcdir/configure conftest.file" \
3086 && test "$*" != "X conftest.file $srcdir/configure"; then
3088 # If neither matched, then we have a broken ls. This can happen
3089 # if, for instance, CONFIG_SHELL is bash and it inherits a
3090 # broken ls alias from the environment. This has actually
3091 # happened. Such a system could not be considered "sane".
3092 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3093 alias in your environment" "$LINENO" 5
3095 if test "$2" = conftest.file || test $am_try -eq 2; then
3102 test "$2" = conftest.file
3108 as_fn_error $? "newly created file is older than distributed files!
3109 Check your system clock" "$LINENO" 5
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113 # If we didn't sleep, we still need to ensure time stamps of config.status and
3114 # generated files are strictly newer.
3116 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3123 test "$program_prefix" != NONE &&
3124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3125 # Use a double $ so make ignores it.
3126 test "$program_suffix" != NONE &&
3127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3128 # Double any \ or $.
3129 # By default was `s,x,x', remove it if useless.
3130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3133 # Expand $ac_aux_dir to an absolute path.
3134 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3136 if test x"${MISSING+set}" != xset; then
3139 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3141 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3144 # Use eval to expand $SHELL
3145 if eval "$MISSING --is-lightweight"; then
3146 am_missing_run="$MISSING "
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3150 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3153 if test x"${install_sh+set}" != xset; then
3156 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3158 install_sh="\${SHELL} $am_aux_dir/install-sh"
3162 # Installed binaries are usually stripped using 'strip' when the user
3163 # run "make install-strip". However 'strip' might not be the right
3164 # tool to use in cross-compilation environments, therefore Automake
3165 # will honor the 'STRIP' environment variable to overrule this program.
3166 if test "$cross_compiling" != no; then
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}strip; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_STRIP+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$STRIP"; then
3176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 STRIP=$ac_cv_prog_STRIP
3196 if test -n "$STRIP"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198 $as_echo "$STRIP" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3206 if test -z "$ac_cv_prog_STRIP"; then
3208 # Extract the first word of "strip", so it can be a program name with args.
3209 set dummy strip; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$ac_ct_STRIP"; then
3216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_ac_ct_STRIP="strip"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3236 if test -n "$ac_ct_STRIP"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3238 $as_echo "$ac_ct_STRIP" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3244 if test "x$ac_ct_STRIP" = x; then
3247 case $cross_compiling:$ac_tool_warned in
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3256 STRIP="$ac_cv_prog_STRIP"
3260 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3263 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3264 if test -z "$MKDIR_P"; then
3265 if ${ac_cv_path_mkdir+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3272 test -z "$as_dir" && as_dir=.
3273 for ac_prog in mkdir gmkdir; do
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3276 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3277 'mkdir (GNU coreutils) '* | \
3278 'mkdir (coreutils) '* | \
3279 'mkdir (fileutils) '4.1*)
3280 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3290 test -d ./--version && rmdir ./--version
3291 if test "${ac_cv_path_mkdir+set}" = set; then
3292 MKDIR_P="$ac_cv_path_mkdir -p"
3294 # As a last resort, use the slow shell script. Don't cache a
3295 # value for MKDIR_P within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the value is a relative name.
3298 MKDIR_P="$ac_install_sh -d"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3302 $as_echo "$MKDIR_P" >&6; }
3304 for ac_prog in gawk mawk nawk awk
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_AWK+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$AWK"; then
3314 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_AWK="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$AWK"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336 $as_echo "$AWK" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3343 test -n "$AWK" && break
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3347 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3349 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3351 $as_echo_n "(cached) " >&6
3353 cat >conftest.make <<\_ACEOF
3356 @echo '@@@%%%=$(MAKE)=@@@%%%'
3358 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3361 eval ac_cv_prog_make_${ac_make}_set=yes;;
3363 eval ac_cv_prog_make_${ac_make}_set=no;;
3367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 SET_MAKE="MAKE=${MAKE-make}"
3377 rm -rf .tst 2>/dev/null
3378 mkdir .tst 2>/dev/null
3379 if test -d .tst; then
3384 rmdir .tst 2>/dev/null
3386 # Check whether --enable-silent-rules was given.
3387 if test "${enable_silent_rules+set}" = set; then :
3388 enableval=$enable_silent_rules;
3391 case $enable_silent_rules in # (((
3392 yes) AM_DEFAULT_VERBOSITY=0;;
3393 no) AM_DEFAULT_VERBOSITY=1;;
3394 *) AM_DEFAULT_VERBOSITY=1;;
3396 am_make=${MAKE-make}
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3398 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3399 if ${am_cv_make_support_nested_variables+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 if $as_echo 'TRUE=$(BAR$(V))
3408 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3409 am_cv_make_support_nested_variables=yes
3411 am_cv_make_support_nested_variables=no
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3415 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3416 if test $am_cv_make_support_nested_variables = yes; then
3418 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3420 AM_V=$AM_DEFAULT_VERBOSITY
3421 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3425 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3426 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3427 # is not polluted with repeated "-I."
3428 am__isrc=' -I$(srcdir)'
3429 # test to see if srcdir already configured
3430 if test -f $srcdir/config.status; then
3431 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3435 # test whether we have cygpath
3436 if test -z "$CYGPATH_W"; then
3437 if (cygpath --version) >/dev/null 2>/dev/null; then
3438 CYGPATH_W='cygpath -w'
3445 # Define the identity of the package.
3450 cat >>confdefs.h <<_ACEOF
3451 #define PACKAGE "$PACKAGE"
3455 cat >>confdefs.h <<_ACEOF
3456 #define VERSION "$VERSION"
3459 # Some tools Automake needs.
3461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3475 # For better backward compatibility. To be removed once Automake 1.9.x
3476 # dies out for good. For more background, see:
3477 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3478 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3479 mkdir_p='$(MKDIR_P)'
3481 # We need awk for the "check" target (and possibly the TAP driver). The
3482 # system "awk" is bad on some platforms.
3483 # Always define AMTAR for backward compatibility. Yes, it's still used
3484 # in the wild :-( We should find a proper way to deprecate it ...
3488 # We'll loop over all known methods to create a tar archive until one works.
3489 _am_tools='gnutar pax cpio none'
3491 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3498 # POSIX will say in a future version that running "rm -f" with no argument
3499 # is OK; and we want to be able to make that assumption in our Makefile
3500 # recipes. So use an aggressive probe to check that the usage we want is
3501 # actually supported "in the wild" to an acceptable degree.
3502 # See automake bug#10828.
3503 # To make any issue more visible, cause the running configure to be aborted
3504 # by default if the 'rm' program in use doesn't match our expectations; the
3505 # user can still override this though.
3506 if rm -f && rm -fr && rm -rf; then : OK; else
3510 Your 'rm' program seems unable to run without file operands specified
3511 on the command line, even when the '-f' option is present. This is contrary
3512 to the behaviour of most rm programs out there, and not conforming with
3513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3515 Please tell bug-automake@gnu.org about your system, including the value
3516 of your $PATH and any error possibly output before this message. This
3517 can help us improve future automake versions.
3520 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3521 echo 'Configuration will proceed anyway, since you have set the' >&2
3522 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3526 Aborting the configuration process, to ensure you take notice of the issue.
3528 You can download and install GNU coreutils to get an 'rm' implementation
3529 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3531 If you want to complete the configuration process using your problematic
3532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533 to "yes", and re-run configure.
3536 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3542 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3543 # Check whether --enable-maintainer-mode was given.
3544 if test "${enable_maintainer_mode+set}" = set; then :
3545 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3547 USE_MAINTAINER_MODE=no
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3551 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3552 if test $USE_MAINTAINER_MODE = yes; then
3553 MAINTAINER_MODE_TRUE=
3554 MAINTAINER_MODE_FALSE='#'
3556 MAINTAINER_MODE_TRUE='#'
3557 MAINTAINER_MODE_FALSE=
3560 MAINT=$MAINTAINER_MODE_TRUE
3563 # Make sure we can run config.sub.
3564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568 $as_echo_n "checking build system type... " >&6; }
3569 if ${ac_cv_build+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_build_alias=$build_alias
3573 test "x$ac_build_alias" = x &&
3574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575 test "x$ac_build_alias" = x &&
3576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 $as_echo "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3588 ac_save_IFS=$IFS; IFS='-'
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602 $as_echo_n "checking host system type... " >&6; }
3603 if ${ac_cv_host+:} false; then :
3604 $as_echo_n "(cached) " >&6
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615 $as_echo "$ac_cv_host" >&6; }
3618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3621 ac_save_IFS=$IFS; IFS='-'
3627 # Remember, the first character of IFS is used to create $*,
3628 # except with old shells:
3631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634 # Check whether --enable-silent-rules was given.
3635 if test "${enable_silent_rules+set}" = set; then :
3636 enableval=$enable_silent_rules;
3639 case $enable_silent_rules in # (((
3640 yes) AM_DEFAULT_VERBOSITY=0;;
3641 no) AM_DEFAULT_VERBOSITY=1;;
3642 *) AM_DEFAULT_VERBOSITY=1;;
3644 am_make=${MAKE-make}
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3646 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3647 if ${am_cv_make_support_nested_variables+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 if $as_echo 'TRUE=$(BAR$(V))
3656 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3657 am_cv_make_support_nested_variables=yes
3659 am_cv_make_support_nested_variables=no
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3663 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3664 if test $am_cv_make_support_nested_variables = yes; then
3666 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3668 AM_V=$AM_DEFAULT_VERBOSITY
3669 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3675 # Enable GNU extensions on systems that have them.
3676 DEPDIR="${am__leading_dot}deps"
3678 ac_config_commands="$ac_config_commands depfiles"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3681 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3682 cat > confinc.mk << 'END'
3684 @echo this is the am__doit target >confinc.out
3689 # BSD make does it like this.
3690 echo '.include "confinc.mk" # ignored' > confmf.BSD
3691 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3692 echo 'include confinc.mk # ignored' > confmf.GNU
3694 for s in GNU BSD; do
3695 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3696 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }
3700 case $?:`cat confinc.out 2>/dev/null` in #(
3701 '0:this is the am__doit target') :
3704 am__include='.include' am__quote='"' ;; #(
3706 am__include='include' am__quote='' ;;
3711 if test "$am__include" != "#"; then
3712 _am_result="yes ($s style)"
3716 rm -f confinc.* confmf.*
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3718 $as_echo "${_am_result}" >&6; }
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then :
3722 enableval=$enable_dependency_tracking;
3725 if test "x$enable_dependency_tracking" != xno; then
3726 am_depcomp="$ac_aux_dir/depcomp"
3730 if test "x$enable_dependency_tracking" != xno; then
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 if test -n "$ac_tool_prefix"; then
3745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if ${ac_cv_prog_CC+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3783 if test -z "$ac_cv_prog_CC"; then
3785 # Extract the first word of "gcc", so it can be a program name with args.
3786 set dummy gcc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_CC="gcc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813 if test -n "$ac_ct_CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815 $as_echo "$ac_ct_CC" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3821 if test "x$ac_ct_CC" = x; then
3824 case $cross_compiling:$ac_tool_warned in
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828 ac_tool_warned=yes ;;
3836 if test -z "$CC"; then
3837 if test -n "$ac_tool_prefix"; then
3838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3839 set dummy ${ac_tool_prefix}cc; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_CC+:} false; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -n "$CC"; then
3846 ac_cv_prog_CC="$CC" # Let the user override the test.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_CC="${ac_tool_prefix}cc"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 if test -n "$CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868 $as_echo "$CC" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3877 if test -z "$CC"; then
3878 # Extract the first word of "cc", so it can be a program name with args.
3879 set dummy cc; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_CC+:} false; then :
3883 $as_echo_n "(cached) " >&6
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3897 ac_prog_rejected=yes
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 if test $ac_prog_rejected = yes; then
3909 # We found a bogon in the path, so make sure we never use it.
3910 set dummy $ac_cv_prog_CC
3912 if test $# != 0; then
3913 # We chose a different compiler from the bogus one.
3914 # However, it has the same basename, so the bogon will be chosen
3915 # first if we set CC to just the basename; use the full file name.
3917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3933 if test -z "$CC"; then
3934 if test -n "$ac_tool_prefix"; then
3935 for ac_prog in cl.exe
3937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_CC+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 if test -n "$CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 test -n "$CC" && break
3977 if test -z "$CC"; then
3979 for ac_prog in cl.exe
3981 # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -n "$ac_ct_CC"; then
3989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_ac_ct_CC="$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4009 if test -n "$ac_ct_CC"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4011 $as_echo "$ac_ct_CC" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4018 test -n "$ac_ct_CC" && break
4021 if test "x$ac_ct_CC" = x; then
4024 case $cross_compiling:$ac_tool_warned in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "no acceptable C compiler found in \$PATH
4040 See \`config.log' for more details" "$LINENO" 5; }
4042 # Provide some information about the compiler.
4043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 for ac_option in --version -v -V -qversion; do
4047 { { ac_try="$ac_compiler $ac_option >&5"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053 $as_echo "$ac_try_echo"; } >&5
4054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4056 if test -s conftest.err; then
4058 ... rest of stderr output deleted ...
4059 10q' conftest.err >conftest.er1
4060 cat conftest.er1 >&5
4062 rm -f conftest.er1 conftest.err
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 ac_clean_files_save=$ac_clean_files
4079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080 # Try to create an executable without -o first, disregard a.out.
4081 # It will help us diagnose broken compilers, and finding out an intuition
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084 $as_echo_n "checking whether the C compiler works... " >&6; }
4085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4087 # The possible output files:
4088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091 for ac_file in $ac_files
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4100 if { { ac_try="$ac_link_default"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link_default") 2>&5
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4114 # so that the user can short-circuit this test for compilers unknown to
4116 for ac_file in $ac_files ''
4118 test -f "$ac_file" || continue
4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4123 # We found the default executable, but exeext='' is most
4127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4131 # We set ac_cv_exeext here because the later test for it is not
4132 # safe: cross compilers may not add the suffix if given an `-o'
4133 # argument, so we may need to know it at that point already.
4134 # Even if this section looks crufty: it has the advantage of
4141 test "$ac_cv_exeext" = no && ac_cv_exeext=
4146 if test -z "$ac_file"; then :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error 77 "C compiler cannot create executables
4155 See \`config.log' for more details" "$LINENO" 5; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158 $as_echo "yes" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161 $as_echo_n "checking for C compiler default output file name... " >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163 $as_echo "$ac_file" >&6; }
4164 ac_exeext=$ac_cv_exeext
4166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167 ac_clean_files=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169 $as_echo_n "checking for suffix of executables... " >&6; }
4170 if { { ac_try="$ac_link"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_link") 2>&5
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }; then :
4181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4183 # work properly (i.e., refer to `conftest.exe'), while it won't with
4185 for ac_file in conftest.exe conftest conftest.*; do
4186 test -f "$ac_file" || continue
4188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198 See \`config.log' for more details" "$LINENO" 5; }
4200 rm -f conftest conftest$ac_cv_exeext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202 $as_echo "$ac_cv_exeext" >&6; }
4204 rm -f conftest.$ac_ext
4205 EXEEXT=$ac_cv_exeext
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4213 FILE *f = fopen ("conftest.out", "w");
4214 return ferror (f) || fclose (f) != 0;
4220 ac_clean_files="$ac_clean_files conftest.out"
4221 # Check that the compiler produces executables we can run. If not, either
4222 # the compiler is broken, or we cross compile.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224 $as_echo_n "checking whether we are cross compiling... " >&6; }
4225 if test "$cross_compiling" != yes; then
4226 { { ac_try="$ac_link"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237 if { ac_try='./conftest$ac_cv_exeext'
4238 { { case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_try") 2>&5
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; }; then
4250 if test "$cross_compiling" = maybe; then
4253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "cannot run C compiled programs.
4256 If you meant to cross compile, use \`--host'.
4257 See \`config.log' for more details" "$LINENO" 5; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262 $as_echo "$cross_compiling" >&6; }
4264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265 ac_clean_files=$ac_clean_files_save
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if ${ac_cv_objext+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_compile") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details" "$LINENO" 5; }
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if ${ac_cv_c_compiler_gnu+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if ${ac_cv_prog_cc_g+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4405 if ac_fn_c_try_compile "$LINENO"; then :
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4426 if test "$GCC" = yes; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if ${ac_cv_prog_cc_c89+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_cv_prog_cc_c89=no
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4445 struct buf { int x; };
4446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447 static char *e (p, i)
4453 static char *f (char * (*g) (char **, int), char **p, ...)
4458 s = g (p, va_arg (v,int));
4463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4464 function prototypes and stuff, but not '\xHH' hex character constants.
4465 These don't provoke an error unfortunately, instead are silently treated
4466 as 'x'. The following induces an error, until -std is added to get
4467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4468 array size at least. It's necessary to write '\x00'==0 to get something
4469 that's true only with -std. */
4470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473 inside strings and character constants. */
4475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477 int test (int i, double x);
4478 struct s1 {int (*f) (int a);};
4479 struct s2 {int (*f) (double a);};
4480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494 CC="$ac_save_CC $ac_arg"
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_prog_cc_c89=$ac_arg
4498 rm -f core conftest.err conftest.$ac_objext
4499 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 rm -f conftest.$ac_ext
4506 case "x$ac_cv_prog_cc_c89" in
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509 $as_echo "none needed" >&6; } ;;
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512 $as_echo "unsupported" >&6; } ;;
4514 CC="$CC $ac_cv_prog_cc_c89"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 if test "x$ac_cv_prog_cc_c89" != xno; then :
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535 if ${am_cv_prog_cc_c_o+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4549 # Make sure it works both with $CC and with simple cc.
4550 # Following AC_PROG_CC_C_O, we do the test twice because some
4551 # compilers refuse to overwrite an existing .o file with -o,
4552 # though they will create one.
4553 am_cv_prog_cc_c_o=yes
4555 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } \
4560 && test -f conftest2.$ac_objext; then
4563 am_cv_prog_cc_c_o=no
4567 rm -f core conftest*
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4572 if test "$am_cv_prog_cc_c_o" != yes; then
4573 # Losing compiler, so override with the script.
4574 # FIXME: It is wrong to rewrite CC.
4575 # But if we don't then we get into trouble of one sort or another.
4576 # A longer-term fix would be to have automake use am__CC in this case,
4577 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578 CC="$am_aux_dir/compile $CC"
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 depcc="$CC" am_compiler_list=
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590 $as_echo_n "checking dependency style of $depcc... " >&6; }
4591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595 # We make a subdir and do the tests there. Otherwise we can end up
4596 # making bogus files that we don't know about and never remove. For
4597 # instance it was reported that on HP-UX the gcc test will end up
4598 # making a dummy file named 'D' -- because '-MD' means "put the output
4602 # Copy depcomp to subdir because otherwise we won't find it if we're
4603 # using a relative directory.
4604 cp "$am_depcomp" conftest.dir
4606 # We will build objects and dependencies in a subdirectory because
4607 # it helps to detect inapplicable dependency modes. For instance
4608 # both Tru64's cc and ICC support -MD to output dependencies as a
4609 # side effect of compilation, but ICC will put the dependencies in
4610 # the current directory while Tru64 will put them in the object
4614 am_cv_CC_dependencies_compiler_type=none
4615 if test "$am_compiler_list" = ""; then
4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4619 case " $depcc " in #(
4620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4623 for depmode in $am_compiler_list; do
4624 # Setup a source with many dependencies, because some compilers
4625 # like to wrap large dependency lists on column 80 (with \), and
4626 # we should not choose a depcomp mode which is confused by this.
4628 # We need to recreate these files for each test, as the compiler may
4629 # overwrite some of them when testing with obscure command lines.
4630 # This happens at least with the AIX C compiler.
4632 for i in 1 2 3 4 5 6; do
4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635 # Solaris 10 /bin/sh.
4636 echo '/* dummy */' > sub/conftst$i.h
4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4640 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641 # mode. It turns out that the SunPro C++ compiler does not properly
4642 # handle '-M -o', and we need to detect this. Also, some Intel
4643 # versions had trouble with output in subdirs.
4644 am__obj=sub/conftest.${OBJEXT-o}
4645 am__minus_obj="-o $am__obj"
4648 # This depmode causes a compiler race in universal mode.
4649 test "$am__universal" = false || continue
4652 # After this tag, mechanisms are not by side-effect, so they'll
4653 # only be used when explicitly requested.
4654 if test "x$enable_dependency_tracking" = xyes; then
4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661 # This compiler won't grok '-c -o', but also, the minuso test has
4662 # not run yet. These depmodes are late enough in the game, and
4663 # so weak that their functioning should not be impacted.
4664 am__obj=conftest.${OBJEXT-o}
4669 if depmode=$depmode \
4670 source=sub/conftest.c object=$am__obj \
4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673 >/dev/null 2>conftest.err &&
4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678 # icc doesn't choke on unknown options, it will just issue warnings
4679 # or remarks (even with -Werror). So we grep stderr for any message
4680 # that says an option was ignored or not supported.
4681 # When given -MP, icc 7.0 and 7.1 complain thusly:
4682 # icc: Command line warning: ignoring option '-M'; no argument required
4683 # The diagnosis changed in icc 8.0:
4684 # icc: Command line remark: option '-MP' not supported
4685 if (grep 'ignoring option' conftest.err ||
4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687 am_cv_CC_dependencies_compiler_type=$depmode
4696 am_cv_CC_dependencies_compiler_type=none
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4705 test "x$enable_dependency_tracking" != xno \
4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4708 am__fastdepCC_FALSE='#'
4710 am__fastdepCC_TRUE='#'
4711 am__fastdepCC_FALSE=
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4723 # On Suns, sometimes $CPP names a directory.
4724 if test -n "$CPP" && test -d "$CPP"; then
4727 if test -z "$CPP"; then
4728 if ${ac_cv_prog_CPP+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 # Double quotes because CPP needs to be expanded
4732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4735 for ac_c_preproc_warn_flag in '' yes
4737 # Use a header file that comes with gcc, so configuring glibc
4738 # with a fresh cross-compiler works.
4739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740 # <limits.h> exists even on freestanding compilers.
4741 # On the NeXT, cc -E runs the code through the compiler's parser,
4742 # not just through cpp. "Syntax error" is here to catch this case.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4746 # include <limits.h>
4748 # include <assert.h>
4752 if ac_fn_c_try_cpp "$LINENO"; then :
4755 # Broken: fails on valid input.
4758 rm -f conftest.err conftest.i conftest.$ac_ext
4760 # OK, works on sane cases. Now check whether nonexistent headers
4761 # can be detected and how.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <ac_nonexistent.h>
4766 if ac_fn_c_try_cpp "$LINENO"; then :
4767 # Broken: success on invalid input.
4770 # Passes both tests.
4774 rm -f conftest.err conftest.i conftest.$ac_ext
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.i conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then :
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4792 $as_echo "$CPP" >&6; }
4794 for ac_c_preproc_warn_flag in '' yes
4796 # Use a header file that comes with gcc, so configuring glibc
4797 # with a fresh cross-compiler works.
4798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799 # <limits.h> exists even on freestanding compilers.
4800 # On the NeXT, cc -E runs the code through the compiler's parser,
4801 # not just through cpp. "Syntax error" is here to catch this case.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4805 # include <limits.h>
4807 # include <assert.h>
4811 if ac_fn_c_try_cpp "$LINENO"; then :
4814 # Broken: fails on valid input.
4817 rm -f conftest.err conftest.i conftest.$ac_ext
4819 # OK, works on sane cases. Now check whether nonexistent headers
4820 # can be detected and how.
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <ac_nonexistent.h>
4825 if ac_fn_c_try_cpp "$LINENO"; then :
4826 # Broken: success on invalid input.
4829 # Passes both tests.
4833 rm -f conftest.err conftest.i conftest.$ac_ext
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.i conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then :
4841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details" "$LINENO" 5; }
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4856 if ${ac_cv_path_GREP+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -z "$GREP"; then
4860 ac_path_GREP_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in grep ggrep; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4870 as_fn_executable_p "$ac_path_GREP" || continue
4871 # Check for GNU ac_path_GREP and select it if it is found.
4872 # Check for GNU $ac_path_GREP
4873 case `"$ac_path_GREP" --version 2>&1` in
4875 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4878 $as_echo_n 0123456789 >"conftest.in"
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'GREP' >> "conftest.nl"
4885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_GREP="$ac_path_GREP"
4891 ac_path_GREP_max=$ac_count
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899 $ac_path_GREP_found && break 3
4904 if test -z "$ac_cv_path_GREP"; then
4905 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 ac_cv_path_GREP=$GREP
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4913 $as_echo "$ac_cv_path_GREP" >&6; }
4914 GREP="$ac_cv_path_GREP"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4918 $as_echo_n "checking for egrep... " >&6; }
4919 if ${ac_cv_path_EGREP+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4923 then ac_cv_path_EGREP="$GREP -E"
4925 if test -z "$EGREP"; then
4926 ac_path_EGREP_found=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4932 test -z "$as_dir" && as_dir=.
4933 for ac_prog in egrep; do
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4936 as_fn_executable_p "$ac_path_EGREP" || continue
4937 # Check for GNU ac_path_EGREP and select it if it is found.
4938 # Check for GNU $ac_path_EGREP
4939 case `"$ac_path_EGREP" --version 2>&1` in
4941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4944 $as_echo_n 0123456789 >"conftest.in"
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
4950 $as_echo 'EGREP' >> "conftest.nl"
4951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953 as_fn_arith $ac_count + 1 && ac_count=$as_val
4954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_EGREP="$ac_path_EGREP"
4957 ac_path_EGREP_max=$ac_count
4959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4965 $ac_path_EGREP_found && break 3
4970 if test -z "$ac_cv_path_EGREP"; then
4971 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974 ac_cv_path_EGREP=$EGREP
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4980 $as_echo "$ac_cv_path_EGREP" >&6; }
4981 EGREP="$ac_cv_path_EGREP"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4985 $as_echo_n "checking for ANSI C header files... " >&6; }
4986 if ${ac_cv_header_stdc+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_header_stdc=yes
5007 ac_cv_header_stdc=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 if test $ac_cv_header_stdc = yes; then
5012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 $EGREP "memchr" >/dev/null 2>&1; then :
5022 ac_cv_header_stdc=no
5028 if test $ac_cv_header_stdc = yes; then
5029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036 $EGREP "free" >/dev/null 2>&1; then :
5039 ac_cv_header_stdc=no
5045 if test $ac_cv_header_stdc = yes; then
5046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5047 if test "$cross_compiling" = yes; then :
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 #if ((' ' & 0x0FF) == 0x020)
5055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5058 # define ISLOWER(c) \
5059 (('a' <= (c) && (c) <= 'i') \
5060 || ('j' <= (c) && (c) <= 'r') \
5061 || ('s' <= (c) && (c) <= 'z'))
5062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5070 for (i = 0; i < 256; i++)
5071 if (XOR (islower (i), ISLOWER (i))
5072 || toupper (i) != TOUPPER (i))
5077 if ac_fn_c_try_run "$LINENO"; then :
5080 ac_cv_header_stdc=no
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5083 conftest.$ac_objext conftest.beam conftest.$ac_ext
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5089 $as_echo "$ac_cv_header_stdc" >&6; }
5090 if test $ac_cv_header_stdc = yes; then
5092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098 inttypes.h stdint.h unistd.h
5100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5104 cat >>confdefs.h <<_ACEOF
5105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5115 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5122 if test "$MINIX" = yes; then
5124 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5127 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5130 $as_echo "#define _MINIX 1" >>confdefs.h
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5136 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5137 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5143 # define __EXTENSIONS__ 1
5144 $ac_includes_default
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 ac_cv_safe_to_define___extensions__=yes
5156 ac_cv_safe_to_define___extensions__=no
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5162 test $ac_cv_safe_to_define___extensions__ = yes &&
5163 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5165 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5167 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5169 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5171 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5175 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5178 if test -n "$LD_LIBRARY_PATH"; then
5179 saved_LDFLAGS="$LDFLAGS"
5180 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5181 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5183 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 int main (void) { return 0; }
5190 if ac_fn_c_try_link "$LINENO"; then :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5192 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 LDADD_FOR_TESTS_KLUDGE=""
5199 rm -f core conftest.err conftest.$ac_objext \
5200 conftest$ac_exeext conftest.$ac_ext
5201 LDFLAGS="$saved_LDFLAGS"
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_CC+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -n "$CC"; then
5223 ac_cv_prog_CC="$CC" # Let the user override the test.
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 if test -n "$CC"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5245 $as_echo "$CC" >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5253 if test -z "$ac_cv_prog_CC"; then
5255 # Extract the first word of "gcc", so it can be a program name with args.
5256 set dummy gcc; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$ac_ct_CC"; then
5263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_ac_ct_CC="gcc"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5291 if test "x$ac_ct_CC" = x; then
5294 case $cross_compiling:$ac_tool_warned in
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned=yes ;;
5306 if test -z "$CC"; then
5307 if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5309 set dummy ${ac_tool_prefix}cc; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_CC+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$CC"; then
5316 ac_cv_prog_CC="$CC" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_CC="${ac_tool_prefix}cc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 if test -n "$CC"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5338 $as_echo "$CC" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5347 if test -z "$CC"; then
5348 # Extract the first word of "cc", so it can be a program name with args.
5349 set dummy cc; 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.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5367 ac_prog_rejected=yes
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 if test $ac_prog_rejected = yes; then
5379 # We found a bogon in the path, so make sure we never use it.
5380 set dummy $ac_cv_prog_CC
5382 if test $# != 0; then
5383 # We chose a different compiler from the bogus one.
5384 # However, it has the same basename, so the bogon will be chosen
5385 # first if we set CC to just the basename; use the full file name.
5387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5393 if test -n "$CC"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5395 $as_echo "$CC" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5403 if test -z "$CC"; then
5404 if test -n "$ac_tool_prefix"; then
5405 for ac_prog in cl.exe
5407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_CC+:} false; then :
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$CC"; then
5415 ac_cv_prog_CC="$CC" # Let the user override the test.
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 if test -n "$CC"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5437 $as_echo "$CC" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5444 test -n "$CC" && break
5447 if test -z "$CC"; then
5449 for ac_prog in cl.exe
5451 # Extract the first word of "$ac_prog", so it can be a program name with args.
5452 set dummy $ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5456 $as_echo_n "(cached) " >&6
5458 if test -n "$ac_ct_CC"; then
5459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_ac_ct_CC="$ac_prog"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5479 if test -n "$ac_ct_CC"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5481 $as_echo "$ac_ct_CC" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5488 test -n "$ac_ct_CC" && break
5491 if test "x$ac_ct_CC" = x; then
5494 case $cross_compiling:$ac_tool_warned in
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5507 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5509 as_fn_error $? "no acceptable C compiler found in \$PATH
5510 See \`config.log' for more details" "$LINENO" 5; }
5512 # Provide some information about the compiler.
5513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5516 for ac_option in --version -v -V -qversion; do
5517 { { ac_try="$ac_compiler $ac_option >&5"
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5523 $as_echo "$ac_try_echo"; } >&5
5524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5526 if test -s conftest.err; then
5528 ... rest of stderr output deleted ...
5529 10q' conftest.err >conftest.er1
5530 cat conftest.er1 >&5
5532 rm -f conftest.er1 conftest.err
5533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534 test $ac_status = 0; }
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5539 if ${ac_cv_c_compiler_gnu+:} false; then :
5540 $as_echo_n "(cached) " >&6
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5556 if ac_fn_c_try_compile "$LINENO"; then :
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5566 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5567 if test $ac_compiler_gnu = yes; then
5572 ac_test_CFLAGS=${CFLAGS+set}
5573 ac_save_CFLAGS=$CFLAGS
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5575 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5576 if ${ac_cv_prog_cc_g+:} false; then :
5577 $as_echo_n "(cached) " >&6
5579 ac_save_c_werror_flag=$ac_c_werror_flag
5580 ac_c_werror_flag=yes
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5594 if ac_fn_c_try_compile "$LINENO"; then :
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5609 if ac_fn_c_try_compile "$LINENO"; then :
5612 ac_c_werror_flag=$ac_save_c_werror_flag
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5625 if ac_fn_c_try_compile "$LINENO"; then :
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 ac_c_werror_flag=$ac_save_c_werror_flag
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5636 $as_echo "$ac_cv_prog_cc_g" >&6; }
5637 if test "$ac_test_CFLAGS" = set; then
5638 CFLAGS=$ac_save_CFLAGS
5639 elif test $ac_cv_prog_cc_g = yes; then
5640 if test "$GCC" = yes; then
5646 if test "$GCC" = yes; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5654 if ${ac_cv_prog_cc_c89+:} false; then :
5655 $as_echo_n "(cached) " >&6
5657 ac_cv_prog_cc_c89=no
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5665 struct buf { int x; };
5666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5667 static char *e (p, i)
5673 static char *f (char * (*g) (char **, int), char **p, ...)
5678 s = g (p, va_arg (v,int));
5683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5684 function prototypes and stuff, but not '\xHH' hex character constants.
5685 These don't provoke an error unfortunately, instead are silently treated
5686 as 'x'. The following induces an error, until -std is added to get
5687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5688 array size at least. It's necessary to write '\x00'==0 to get something
5689 that's true only with -std. */
5690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5693 inside strings and character constants. */
5695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5697 int test (int i, double x);
5698 struct s1 {int (*f) (int a);};
5699 struct s2 {int (*f) (double a);};
5700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5706 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5714 CC="$ac_save_CC $ac_arg"
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_prog_cc_c89=$ac_arg
5718 rm -f core conftest.err conftest.$ac_objext
5719 test "x$ac_cv_prog_cc_c89" != "xno" && break
5721 rm -f conftest.$ac_ext
5726 case "x$ac_cv_prog_cc_c89" in
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5729 $as_echo "none needed" >&6; } ;;
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5732 $as_echo "unsupported" >&6; } ;;
5734 CC="$CC $ac_cv_prog_cc_c89"
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5736 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5738 if test "x$ac_cv_prog_cc_c89" != xno; then :
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 ac_cpp='$CPP $CPPFLAGS'
5750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5754 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5755 if ${am_cv_prog_cc_c_o+:} false; then :
5756 $as_echo_n "(cached) " >&6
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5769 # Make sure it works both with $CC and with simple cc.
5770 # Following AC_PROG_CC_C_O, we do the test twice because some
5771 # compilers refuse to overwrite an existing .o file with -o,
5772 # though they will create one.
5773 am_cv_prog_cc_c_o=yes
5775 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5776 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } \
5780 && test -f conftest2.$ac_objext; then
5783 am_cv_prog_cc_c_o=no
5787 rm -f core conftest*
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5791 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5792 if test "$am_cv_prog_cc_c_o" != yes; then
5793 # Losing compiler, so override with the script.
5794 # FIXME: It is wrong to rewrite CC.
5795 # But if we don't then we get into trouble of one sort or another.
5796 # A longer-term fix would be to have automake use am__CC in this case,
5797 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5798 CC="$am_aux_dir/compile $CC"
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807 depcc="$CC" am_compiler_list=
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5810 $as_echo_n "checking dependency style of $depcc... " >&6; }
5811 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5812 $as_echo_n "(cached) " >&6
5814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5815 # We make a subdir and do the tests there. Otherwise we can end up
5816 # making bogus files that we don't know about and never remove. For
5817 # instance it was reported that on HP-UX the gcc test will end up
5818 # making a dummy file named 'D' -- because '-MD' means "put the output
5822 # Copy depcomp to subdir because otherwise we won't find it if we're
5823 # using a relative directory.
5824 cp "$am_depcomp" conftest.dir
5826 # We will build objects and dependencies in a subdirectory because
5827 # it helps to detect inapplicable dependency modes. For instance
5828 # both Tru64's cc and ICC support -MD to output dependencies as a
5829 # side effect of compilation, but ICC will put the dependencies in
5830 # the current directory while Tru64 will put them in the object
5834 am_cv_CC_dependencies_compiler_type=none
5835 if test "$am_compiler_list" = ""; then
5836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5839 case " $depcc " in #(
5840 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5843 for depmode in $am_compiler_list; do
5844 # Setup a source with many dependencies, because some compilers
5845 # like to wrap large dependency lists on column 80 (with \), and
5846 # we should not choose a depcomp mode which is confused by this.
5848 # We need to recreate these files for each test, as the compiler may
5849 # overwrite some of them when testing with obscure command lines.
5850 # This happens at least with the AIX C compiler.
5852 for i in 1 2 3 4 5 6; do
5853 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5854 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5855 # Solaris 10 /bin/sh.
5856 echo '/* dummy */' > sub/conftst$i.h
5858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5860 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5861 # mode. It turns out that the SunPro C++ compiler does not properly
5862 # handle '-M -o', and we need to detect this. Also, some Intel
5863 # versions had trouble with output in subdirs.
5864 am__obj=sub/conftest.${OBJEXT-o}
5865 am__minus_obj="-o $am__obj"
5868 # This depmode causes a compiler race in universal mode.
5869 test "$am__universal" = false || continue
5872 # After this tag, mechanisms are not by side-effect, so they'll
5873 # only be used when explicitly requested.
5874 if test "x$enable_dependency_tracking" = xyes; then
5880 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5881 # This compiler won't grok '-c -o', but also, the minuso test has
5882 # not run yet. These depmodes are late enough in the game, and
5883 # so weak that their functioning should not be impacted.
5884 am__obj=conftest.${OBJEXT-o}
5889 if depmode=$depmode \
5890 source=sub/conftest.c object=$am__obj \
5891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5892 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5893 >/dev/null 2>conftest.err &&
5894 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898 # icc doesn't choke on unknown options, it will just issue warnings
5899 # or remarks (even with -Werror). So we grep stderr for any message
5900 # that says an option was ignored or not supported.
5901 # When given -MP, icc 7.0 and 7.1 complain thusly:
5902 # icc: Command line warning: ignoring option '-M'; no argument required
5903 # The diagnosis changed in icc 8.0:
5904 # icc: Command line remark: option '-MP' not supported
5905 if (grep 'ignoring option' conftest.err ||
5906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907 am_cv_CC_dependencies_compiler_type=$depmode
5916 am_cv_CC_dependencies_compiler_type=none
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5921 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5925 test "x$enable_dependency_tracking" != xno \
5926 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5928 am__fastdepCC_FALSE='#'
5930 am__fastdepCC_TRUE='#'
5931 am__fastdepCC_FALSE=
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5942 # On Suns, sometimes $CPP names a directory.
5943 if test -n "$CPP" && test -d "$CPP"; then
5946 if test -z "$CPP"; then
5947 if ${ac_cv_prog_CPP+:} false; then :
5948 $as_echo_n "(cached) " >&6
5950 # Double quotes because CPP needs to be expanded
5951 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5954 for ac_c_preproc_warn_flag in '' yes
5956 # Use a header file that comes with gcc, so configuring glibc
5957 # with a fresh cross-compiler works.
5958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959 # <limits.h> exists even on freestanding compilers.
5960 # On the NeXT, cc -E runs the code through the compiler's parser,
5961 # not just through cpp. "Syntax error" is here to catch this case.
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5965 # include <limits.h>
5967 # include <assert.h>
5971 if ac_fn_c_try_cpp "$LINENO"; then :
5974 # Broken: fails on valid input.
5977 rm -f conftest.err conftest.i conftest.$ac_ext
5979 # OK, works on sane cases. Now check whether nonexistent headers
5980 # can be detected and how.
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #include <ac_nonexistent.h>
5985 if ac_fn_c_try_cpp "$LINENO"; then :
5986 # Broken: success on invalid input.
5989 # Passes both tests.
5993 rm -f conftest.err conftest.i conftest.$ac_ext
5996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5997 rm -f conftest.i conftest.err conftest.$ac_ext
5998 if $ac_preproc_ok; then :
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6011 $as_echo "$CPP" >&6; }
6013 for ac_c_preproc_warn_flag in '' yes
6015 # Use a header file that comes with gcc, so configuring glibc
6016 # with a fresh cross-compiler works.
6017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018 # <limits.h> exists even on freestanding compilers.
6019 # On the NeXT, cc -E runs the code through the compiler's parser,
6020 # not just through cpp. "Syntax error" is here to catch this case.
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6024 # include <limits.h>
6026 # include <assert.h>
6030 if ac_fn_c_try_cpp "$LINENO"; then :
6033 # Broken: fails on valid input.
6036 rm -f conftest.err conftest.i conftest.$ac_ext
6038 # OK, works on sane cases. Now check whether nonexistent headers
6039 # can be detected and how.
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #include <ac_nonexistent.h>
6044 if ac_fn_c_try_cpp "$LINENO"; then :
6045 # Broken: success on invalid input.
6048 # Passes both tests.
6052 rm -f conftest.err conftest.i conftest.$ac_ext
6055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056 rm -f conftest.i conftest.err conftest.$ac_ext
6057 if $ac_preproc_ok; then :
6060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6062 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6063 See \`config.log' for more details" "$LINENO" 5; }
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073 ac_cpp='$CXXCPP $CPPFLAGS'
6074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6077 if test -z "$CXX"; then
6078 if test -n "$CCC"; then
6081 if test -n "$ac_tool_prefix"; then
6082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_prog_CXX+:} false; then :
6089 $as_echo_n "(cached) " >&6
6091 if test -n "$CXX"; then
6092 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 if test -n "$CXX"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6114 $as_echo "$CXX" >&6; }
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6121 test -n "$CXX" && break
6124 if test -z "$CXX"; then
6126 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6128 # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 if test -n "$ac_ct_CXX"; then
6136 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_CXX="$ac_prog"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6156 if test -n "$ac_ct_CXX"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6158 $as_echo "$ac_ct_CXX" >&6; }
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6165 test -n "$ac_ct_CXX" && break
6168 if test "x$ac_ct_CXX" = x; then
6171 case $cross_compiling:$ac_tool_warned in
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6183 # Provide some information about the compiler.
6184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6187 for ac_option in --version -v -V -qversion; do
6188 { { ac_try="$ac_compiler $ac_option >&5"
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6194 $as_echo "$ac_try_echo"; } >&5
6195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6197 if test -s conftest.err; then
6199 ... rest of stderr output deleted ...
6200 10q' conftest.err >conftest.er1
6201 cat conftest.er1 >&5
6203 rm -f conftest.er1 conftest.err
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6209 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6210 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6227 if ac_fn_cxx_try_compile "$LINENO"; then :
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6237 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6238 if test $ac_compiler_gnu = yes; then
6243 ac_test_CXXFLAGS=${CXXFLAGS+set}
6244 ac_save_CXXFLAGS=$CXXFLAGS
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6246 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6247 if ${ac_cv_prog_cxx_g+:} false; then :
6248 $as_echo_n "(cached) " >&6
6250 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6251 ac_cxx_werror_flag=yes
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266 ac_cv_prog_cxx_g=yes
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6280 if ac_fn_cxx_try_compile "$LINENO"; then :
6283 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6296 if ac_fn_cxx_try_compile "$LINENO"; then :
6297 ac_cv_prog_cxx_g=yes
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6307 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6308 if test "$ac_test_CXXFLAGS" = set; then
6309 CXXFLAGS=$ac_save_CXXFLAGS
6310 elif test $ac_cv_prog_cxx_g = yes; then
6311 if test "$GXX" = yes; then
6317 if test "$GXX" = yes; then
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329 depcc="$CXX" am_compiler_list=
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6332 $as_echo_n "checking dependency style of $depcc... " >&6; }
6333 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6337 # We make a subdir and do the tests there. Otherwise we can end up
6338 # making bogus files that we don't know about and never remove. For
6339 # instance it was reported that on HP-UX the gcc test will end up
6340 # making a dummy file named 'D' -- because '-MD' means "put the output
6344 # Copy depcomp to subdir because otherwise we won't find it if we're
6345 # using a relative directory.
6346 cp "$am_depcomp" conftest.dir
6348 # We will build objects and dependencies in a subdirectory because
6349 # it helps to detect inapplicable dependency modes. For instance
6350 # both Tru64's cc and ICC support -MD to output dependencies as a
6351 # side effect of compilation, but ICC will put the dependencies in
6352 # the current directory while Tru64 will put them in the object
6356 am_cv_CXX_dependencies_compiler_type=none
6357 if test "$am_compiler_list" = ""; then
6358 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6361 case " $depcc " in #(
6362 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6365 for depmode in $am_compiler_list; do
6366 # Setup a source with many dependencies, because some compilers
6367 # like to wrap large dependency lists on column 80 (with \), and
6368 # we should not choose a depcomp mode which is confused by this.
6370 # We need to recreate these files for each test, as the compiler may
6371 # overwrite some of them when testing with obscure command lines.
6372 # This happens at least with the AIX C compiler.
6374 for i in 1 2 3 4 5 6; do
6375 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6376 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6377 # Solaris 10 /bin/sh.
6378 echo '/* dummy */' > sub/conftst$i.h
6380 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6382 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6383 # mode. It turns out that the SunPro C++ compiler does not properly
6384 # handle '-M -o', and we need to detect this. Also, some Intel
6385 # versions had trouble with output in subdirs.
6386 am__obj=sub/conftest.${OBJEXT-o}
6387 am__minus_obj="-o $am__obj"
6390 # This depmode causes a compiler race in universal mode.
6391 test "$am__universal" = false || continue
6394 # After this tag, mechanisms are not by side-effect, so they'll
6395 # only be used when explicitly requested.
6396 if test "x$enable_dependency_tracking" = xyes; then
6402 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6403 # This compiler won't grok '-c -o', but also, the minuso test has
6404 # not run yet. These depmodes are late enough in the game, and
6405 # so weak that their functioning should not be impacted.
6406 am__obj=conftest.${OBJEXT-o}
6411 if depmode=$depmode \
6412 source=sub/conftest.c object=$am__obj \
6413 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6414 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6415 >/dev/null 2>conftest.err &&
6416 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6417 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6418 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6419 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6420 # icc doesn't choke on unknown options, it will just issue warnings
6421 # or remarks (even with -Werror). So we grep stderr for any message
6422 # that says an option was ignored or not supported.
6423 # When given -MP, icc 7.0 and 7.1 complain thusly:
6424 # icc: Command line warning: ignoring option '-M'; no argument required
6425 # The diagnosis changed in icc 8.0:
6426 # icc: Command line remark: option '-MP' not supported
6427 if (grep 'ignoring option' conftest.err ||
6428 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6429 am_cv_CXX_dependencies_compiler_type=$depmode
6438 am_cv_CXX_dependencies_compiler_type=none
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6443 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6444 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6447 test "x$enable_dependency_tracking" != xno \
6448 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6449 am__fastdepCXX_TRUE=
6450 am__fastdepCXX_FALSE='#'
6452 am__fastdepCXX_TRUE='#'
6453 am__fastdepCXX_FALSE=
6458 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6459 for ac_prog in gitlog-to-changelog
6461 # Extract the first word of "$ac_prog", so it can be a program name with args.
6462 set dummy $ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 if test -n "$GITLOG_TO_CHANGELOG"; then
6469 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6489 if test -n "$GITLOG_TO_CHANGELOG"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6491 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6498 test -n "$GITLOG_TO_CHANGELOG" && break
6500 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6507 VERSION_NUMBER=0x010f01
6510 # We need to compile and run a program on the build machine. A
6511 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6512 # the AC archive is broken for autoconf 2.57. Given that there is no
6513 # newer version of that macro, we assume that it is also broken for
6514 # autoconf 2.61 and thus we use a simple but usually sufficient
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6517 $as_echo_n "checking for cc for build... " >&6; }
6518 if test "$cross_compiling" = "yes"; then
6519 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6521 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6524 $as_echo "$CC_FOR_BUILD" >&6; }
6528 # Don't default to build static libs.
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6533 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6538 macro_version='2.4.2'
6539 macro_revision='1.3337'
6553 ltmain="$ac_aux_dir/ltmain.sh"
6555 # Backslashify metacharacters that are still active within
6556 # double-quoted strings.
6557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6559 # Same as above, but do not quote variable references.
6560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6562 # Sed substitution to delay expansion of an escaped shell variable in a
6563 # double_quote_subst'ed string.
6564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6566 # Sed substitution to delay expansion of an escaped single quote.
6567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6569 # Sed substitution to avoid accidental globbing in evaled expressions
6570 no_glob_subst='s/\*/\\\*/g'
6572 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6574 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6577 $as_echo_n "checking how to print strings... " >&6; }
6578 # Test print first, because it will be a builtin if present.
6579 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6580 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6582 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6585 # Use this function as a fallback that always works.
6586 func_fallback_echo ()
6588 eval 'cat <<_LTECHO_EOF
6592 ECHO='func_fallback_echo'
6595 # func_echo_all arg...
6596 # Invoke $ECHO with all args, space-separated.
6603 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6604 $as_echo "printf" >&6; } ;;
6605 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6606 $as_echo "print -r" >&6; } ;;
6607 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6608 $as_echo "cat" >&6; } ;;
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6626 if ${ac_cv_path_SED+:} false; then :
6627 $as_echo_n "(cached) " >&6
6629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6630 for ac_i in 1 2 3 4 5 6 7; do
6631 ac_script="$ac_script$as_nl$ac_script"
6633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6634 { ac_script=; unset ac_script;}
6635 if test -z "$SED"; then
6636 ac_path_SED_found=false
6637 # Loop through the user's path and test for each of PROGNAME-LIST
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 for ac_prog in sed gsed; do
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6646 as_fn_executable_p "$ac_path_SED" || continue
6647 # Check for GNU ac_path_SED and select it if it is found.
6648 # Check for GNU $ac_path_SED
6649 case `"$ac_path_SED" --version 2>&1` in
6651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6654 $as_echo_n 0123456789 >"conftest.in"
6657 cat "conftest.in" "conftest.in" >"conftest.tmp"
6658 mv "conftest.tmp" "conftest.in"
6659 cp "conftest.in" "conftest.nl"
6660 $as_echo '' >> "conftest.nl"
6661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6663 as_fn_arith $ac_count + 1 && ac_count=$as_val
6664 if test $ac_count -gt ${ac_path_SED_max-0}; then
6665 # Best one so far, save it but keep looking for a better one
6666 ac_cv_path_SED="$ac_path_SED"
6667 ac_path_SED_max=$ac_count
6669 # 10*(2^10) chars as input seems more than enough
6670 test $ac_count -gt 10 && break
6672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6675 $ac_path_SED_found && break 3
6680 if test -z "$ac_cv_path_SED"; then
6681 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6689 $as_echo "$ac_cv_path_SED" >&6; }
6690 SED="$ac_cv_path_SED"
6693 test -z "$SED" && SED=sed
6694 Xsed="$SED -e 1s/^X//"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6707 $as_echo_n "checking for fgrep... " >&6; }
6708 if ${ac_cv_path_FGREP+:} false; then :
6709 $as_echo_n "(cached) " >&6
6711 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6712 then ac_cv_path_FGREP="$GREP -F"
6714 if test -z "$FGREP"; then
6715 ac_path_FGREP_found=false
6716 # Loop through the user's path and test for each of PROGNAME-LIST
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6721 test -z "$as_dir" && as_dir=.
6722 for ac_prog in fgrep; do
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6725 as_fn_executable_p "$ac_path_FGREP" || continue
6726 # Check for GNU ac_path_FGREP and select it if it is found.
6727 # Check for GNU $ac_path_FGREP
6728 case `"$ac_path_FGREP" --version 2>&1` in
6730 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6733 $as_echo_n 0123456789 >"conftest.in"
6736 cat "conftest.in" "conftest.in" >"conftest.tmp"
6737 mv "conftest.tmp" "conftest.in"
6738 cp "conftest.in" "conftest.nl"
6739 $as_echo 'FGREP' >> "conftest.nl"
6740 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6742 as_fn_arith $ac_count + 1 && ac_count=$as_val
6743 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6744 # Best one so far, save it but keep looking for a better one
6745 ac_cv_path_FGREP="$ac_path_FGREP"
6746 ac_path_FGREP_max=$ac_count
6748 # 10*(2^10) chars as input seems more than enough
6749 test $ac_count -gt 10 && break
6751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6754 $ac_path_FGREP_found && break 3
6759 if test -z "$ac_cv_path_FGREP"; then
6760 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6763 ac_cv_path_FGREP=$FGREP
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6769 $as_echo "$ac_cv_path_FGREP" >&6; }
6770 FGREP="$ac_cv_path_FGREP"
6773 test -z "$GREP" && GREP=grep
6793 # Check whether --with-gnu-ld was given.
6794 if test "${with_gnu_ld+set}" = set; then :
6795 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6801 if test "$GCC" = yes; then
6802 # Check if gcc -print-prog-name=ld gives a path.
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6804 $as_echo_n "checking for ld used by $CC... " >&6; }
6807 # gcc leaves a trailing carriage return which upsets mingw
6808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6813 # Accept absolute paths.
6815 re_direlt='/[^/][^/]*/\.\./'
6816 # Canonicalize the pathname of ld
6817 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6818 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6819 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6821 test -z "$LD" && LD="$ac_prog"
6824 # If it fails, then pretend we aren't using GCC.
6828 # If it is relative, then search for the first ld in PATH.
6832 elif test "$with_gnu_ld" = yes; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6834 $as_echo_n "checking for GNU ld... " >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6837 $as_echo_n "checking for non-GNU ld... " >&6; }
6839 if ${lt_cv_path_LD+:} false; then :
6840 $as_echo_n "(cached) " >&6
6842 if test -z "$LD"; then
6843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6844 for ac_dir in $PATH; do
6846 test -z "$ac_dir" && ac_dir=.
6847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6848 lt_cv_path_LD="$ac_dir/$ac_prog"
6849 # Check to see if the program is GNU ld. I'd rather use --version,
6850 # but apparently some variants of GNU ld only accept -v.
6851 # Break only if it was the GNU/non-GNU ld that we prefer.
6852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6853 *GNU* | *'with BFD'*)
6854 test "$with_gnu_ld" != no && break
6857 test "$with_gnu_ld" != yes && break
6864 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6869 if test -n "$LD"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6871 $as_echo "$LD" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6879 if ${lt_cv_prog_gnu_ld+:} false; then :
6880 $as_echo_n "(cached) " >&6
6882 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6883 case `$LD -v 2>&1 </dev/null` in
6884 *GNU* | *'with BFD'*)
6885 lt_cv_prog_gnu_ld=yes
6888 lt_cv_prog_gnu_ld=no
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6893 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6894 with_gnu_ld=$lt_cv_prog_gnu_ld
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6905 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6906 if ${lt_cv_path_NM+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 if test -n "$NM"; then
6910 # Let the user override the test.
6913 lt_nm_to_check="${ac_tool_prefix}nm"
6914 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6915 lt_nm_to_check="$lt_nm_to_check nm"
6917 for lt_tmp_nm in $lt_nm_to_check; do
6918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6919 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6921 test -z "$ac_dir" && ac_dir=.
6922 tmp_nm="$ac_dir/$lt_tmp_nm"
6923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6924 # Check to see if the nm accepts a BSD-compat flag.
6925 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6926 # nm: unknown option "B" ignored
6927 # Tru64's nm complains that /dev/null is an invalid object file
6928 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6929 */dev/null* | *'Invalid file or object type'*)
6930 lt_cv_path_NM="$tmp_nm -B"
6934 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6936 lt_cv_path_NM="$tmp_nm -p"
6940 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6941 continue # so that we can try to find one that supports BSD flags
6950 : ${lt_cv_path_NM=no}
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6954 $as_echo "$lt_cv_path_NM" >&6; }
6955 if test "$lt_cv_path_NM" != "no"; then
6958 # Didn't find any BSD compatible name lister, look for dumpbin.
6959 if test -n "$DUMPBIN"; then :
6960 # Let the user override the test.
6962 if test -n "$ac_tool_prefix"; then
6963 for ac_prog in dumpbin "link -dump"
6965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_DUMPBIN+:} false; then :
6970 $as_echo_n "(cached) " >&6
6972 if test -n "$DUMPBIN"; then
6973 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 DUMPBIN=$ac_cv_prog_DUMPBIN
6993 if test -n "$DUMPBIN"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6995 $as_echo "$DUMPBIN" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7002 test -n "$DUMPBIN" && break
7005 if test -z "$DUMPBIN"; then
7006 ac_ct_DUMPBIN=$DUMPBIN
7007 for ac_prog in dumpbin "link -dump"
7009 # Extract the first word of "$ac_prog", so it can be a program name with args.
7010 set dummy $ac_prog; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 if test -n "$ac_ct_DUMPBIN"; then
7017 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7037 if test -n "$ac_ct_DUMPBIN"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7039 $as_echo "$ac_ct_DUMPBIN" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7046 test -n "$ac_ct_DUMPBIN" && break
7049 if test "x$ac_ct_DUMPBIN" = x; then
7052 case $cross_compiling:$ac_tool_warned in
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7058 DUMPBIN=$ac_ct_DUMPBIN
7062 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7064 DUMPBIN="$DUMPBIN -symbols"
7072 if test "$DUMPBIN" != ":"; then
7076 test -z "$NM" && NM=nm
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7084 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7085 if ${lt_cv_nm_interface+:} false; then :
7086 $as_echo_n "(cached) " >&6
7088 lt_cv_nm_interface="BSD nm"
7089 echo "int some_variable = 0;" > conftest.$ac_ext
7090 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7091 (eval "$ac_compile" 2>conftest.err)
7092 cat conftest.err >&5
7093 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7094 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7095 cat conftest.err >&5
7096 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7097 cat conftest.out >&5
7098 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7099 lt_cv_nm_interface="MS dumpbin"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7104 $as_echo "$lt_cv_nm_interface" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7107 $as_echo_n "checking whether ln -s works... " >&6; }
7109 if test "$LN_S" = "ln -s"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7111 $as_echo "yes" >&6; }
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7114 $as_echo "no, using $LN_S" >&6; }
7117 # find the maximum length of command line arguments
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7119 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7120 if ${lt_cv_sys_max_cmd_len+:} false; then :
7121 $as_echo_n "(cached) " >&6
7128 # On DJGPP, this test can blow up pretty badly due to problems in libc
7129 # (any single argument exceeding 2000 bytes causes a buffer overrun
7130 # during glob expansion). Even if it were fixed, the result of this
7131 # check would be larger than it should be.
7132 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7136 # Under GNU Hurd, this test is not required because there is
7137 # no limit to the length of command line arguments.
7138 # Libtool will interpret -1 as no limit whatsoever
7139 lt_cv_sys_max_cmd_len=-1;
7142 cygwin* | mingw* | cegcc*)
7143 # On Win9x/ME, this test blows up -- it succeeds, but takes
7144 # about 5 minutes as the teststring grows exponentially.
7145 # Worse, since 9x/ME are not pre-emptively multitasking,
7146 # you end up with a "frozen" computer, even though with patience
7147 # the test eventually succeeds (with a max line length of 256k).
7148 # Instead, let's just punt: use the minimum linelength reported by
7149 # all of the supported platforms: 8192 (on NT/2K/XP).
7150 lt_cv_sys_max_cmd_len=8192;
7154 # On MiNT this can take a long time and run out of memory.
7155 lt_cv_sys_max_cmd_len=8192;
7159 # On AmigaOS with pdksh, this test takes hours, literally.
7160 # So we just punt and use a minimum line length of 8192.
7161 lt_cv_sys_max_cmd_len=8192;
7164 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7165 # This has been around since 386BSD, at least. Likely further.
7166 if test -x /sbin/sysctl; then
7167 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7168 elif test -x /usr/sbin/sysctl; then
7169 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7171 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7173 # And add a safety zone
7174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7179 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7180 lt_cv_sys_max_cmd_len=196608
7184 # The test takes a long time on OS/2.
7185 lt_cv_sys_max_cmd_len=8192
7189 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7190 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7191 # nice to cause kernel panics so lets avoid the loop below.
7192 # First set a reasonable default.
7193 lt_cv_sys_max_cmd_len=16384
7195 if test -x /sbin/sysconfig; then
7196 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7197 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7202 lt_cv_sys_max_cmd_len=102400
7204 sysv5* | sco5v6* | sysv4.2uw2*)
7205 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7206 if test -n "$kargmax"; then
7207 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7209 lt_cv_sys_max_cmd_len=32768
7213 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7214 if test -n "$lt_cv_sys_max_cmd_len"; then
7215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7218 # Make teststring a little bigger before we do anything with it.
7219 # a 1K string should be a reasonable start.
7220 for i in 1 2 3 4 5 6 7 8 ; do
7221 teststring=$teststring$teststring
7223 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7224 # If test is not a shell built-in, we'll probably end up computing a
7225 # maximum length that is only half of the actual maximum length, but
7227 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7228 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7229 test $i != 17 # 1/2 MB should be enough
7232 teststring=$teststring$teststring
7234 # Only check the string length outside the loop.
7235 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7237 # Add a significant safety factor because C++ compilers can tack on
7238 # massive amounts of additional arguments before passing them to the
7239 # linker. It appears as though 1/2 is a usable value.
7240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7247 if test -n $lt_cv_sys_max_cmd_len ; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7249 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7252 $as_echo "none" >&6; }
7254 max_cmd_len=$lt_cv_sys_max_cmd_len
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7266 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7267 # Try some XSI features
7270 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7272 && eval 'test $(( 1 + 1 )) -eq 2 \
7273 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7276 $as_echo "$xsi_shell" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7280 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7282 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7284 && lt_shell_append=yes
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7286 $as_echo "$lt_shell_append" >&6; }
7289 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7299 # test EBCDIC or ASCII
7300 case `echo X|tr X '\101'` in
7301 A) # ASCII based system
7302 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7303 lt_SP2NL='tr \040 \012'
7304 lt_NL2SP='tr \015\012 \040\040'
7306 *) # EBCDIC based system
7307 lt_SP2NL='tr \100 \n'
7308 lt_NL2SP='tr \r\n \100\100'
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7321 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7322 if ${lt_cv_to_host_file_cmd+:} false; then :
7323 $as_echo_n "(cached) " >&6
7328 *-*-mingw* ) # actually msys
7329 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7332 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7334 * ) # otherwise, assume *nix
7335 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7341 *-*-mingw* ) # actually msys
7342 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7345 lt_cv_to_host_file_cmd=func_convert_file_noop
7347 * ) # otherwise, assume *nix
7348 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7352 * ) # unhandled hosts (and "normal" native builds)
7353 lt_cv_to_host_file_cmd=func_convert_file_noop
7359 to_host_file_cmd=$lt_cv_to_host_file_cmd
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7361 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7368 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7369 if ${lt_cv_to_tool_file_cmd+:} false; then :
7370 $as_echo_n "(cached) " >&6
7372 #assume ordinary cross tools, or native build.
7373 lt_cv_to_tool_file_cmd=func_convert_file_noop
7377 *-*-mingw* ) # actually msys
7378 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7386 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7388 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7395 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7396 if ${lt_cv_ld_reload_flag+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 lt_cv_ld_reload_flag='-r'
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7402 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7403 reload_flag=$lt_cv_ld_reload_flag
7404 case $reload_flag in
7406 *) reload_flag=" $reload_flag" ;;
7408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7410 cygwin* | mingw* | pw32* | cegcc*)
7411 if test "$GCC" != yes; then
7416 if test "$GCC" = yes; then
7417 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7419 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_OBJDUMP+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$OBJDUMP"; then
7441 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 OBJDUMP=$ac_cv_prog_OBJDUMP
7461 if test -n "$OBJDUMP"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7463 $as_echo "$OBJDUMP" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7471 if test -z "$ac_cv_prog_OBJDUMP"; then
7472 ac_ct_OBJDUMP=$OBJDUMP
7473 # Extract the first word of "objdump", so it can be a program name with args.
7474 set dummy objdump; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7478 $as_echo_n "(cached) " >&6
7480 if test -n "$ac_ct_OBJDUMP"; then
7481 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7501 if test -n "$ac_ct_OBJDUMP"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7503 $as_echo "$ac_ct_OBJDUMP" >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7509 if test "x$ac_ct_OBJDUMP" = x; then
7512 case $cross_compiling:$ac_tool_warned in
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7518 OBJDUMP=$ac_ct_OBJDUMP
7521 OBJDUMP="$ac_cv_prog_OBJDUMP"
7524 test -z "$OBJDUMP" && OBJDUMP=objdump
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7532 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7533 if ${lt_cv_deplibs_check_method+:} false; then :
7534 $as_echo_n "(cached) " >&6
7536 lt_cv_file_magic_cmd='$MAGIC_CMD'
7537 lt_cv_file_magic_test_file=
7538 lt_cv_deplibs_check_method='unknown'
7539 # Need to set the preceding variable on all platforms that support
7540 # interlibrary dependencies.
7541 # 'none' -- dependencies not supported.
7542 # `unknown' -- same as none, but documents that we really don't know.
7543 # 'pass_all' -- all dependencies passed with no checks.
7544 # 'test_compile' -- check by making test program.
7545 # 'file_magic [[regex]]' -- check by looking for files in library path
7546 # which responds to the $file_magic_cmd with a given extended regex.
7547 # If you have `file' or equivalent on your system and you're not sure
7548 # whether `pass_all' will *always* work, you probably want this one.
7552 lt_cv_deplibs_check_method=pass_all
7556 lt_cv_deplibs_check_method=pass_all
7560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7561 lt_cv_file_magic_cmd='/usr/bin/file -L'
7562 lt_cv_file_magic_test_file=/shlib/libc.so
7566 # func_win32_libid is a shell function defined in ltmain.sh
7567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7568 lt_cv_file_magic_cmd='func_win32_libid'
7572 # Base MSYS/MinGW do not provide the 'file' command needed by
7573 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7574 # unless we find 'file', for example because we are cross-compiling.
7575 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7576 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7578 lt_cv_file_magic_cmd='func_win32_libid'
7580 # Keep this pattern in sync with the one in func_win32_libid.
7581 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7582 lt_cv_file_magic_cmd='$OBJDUMP -f'
7587 # use the weaker test based on 'objdump'. See mingw*.
7588 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7589 lt_cv_file_magic_cmd='$OBJDUMP -f'
7592 darwin* | rhapsody*)
7593 lt_cv_deplibs_check_method=pass_all
7596 freebsd* | dragonfly*)
7597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7600 # Not sure whether the presence of OpenBSD here was a mistake.
7601 # Let's accept both of them until this is cleared up.
7602 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7603 lt_cv_file_magic_cmd=/usr/bin/file
7604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7608 lt_cv_deplibs_check_method=pass_all
7613 lt_cv_deplibs_check_method=pass_all
7617 lt_cv_deplibs_check_method=pass_all
7620 hpux10.20* | hpux11*)
7621 lt_cv_file_magic_cmd=/usr/bin/file
7624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7628 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]'
7629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7643 irix5* | irix6* | nonstopux*)
7645 *-32|*"-32 ") libmagic=32-bit;;
7646 *-n32|*"-n32 ") libmagic=N32;;
7647 *-64|*"-64 ") libmagic=64-bit;;
7648 *) libmagic=never-match;;
7650 lt_cv_deplibs_check_method=pass_all
7653 # This must be glibc/ELF.
7654 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7655 lt_cv_deplibs_check_method=pass_all
7658 netbsd* | netbsdelf*-gnu)
7659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7668 lt_cv_file_magic_cmd=/usr/bin/file
7669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7673 lt_cv_deplibs_check_method=pass_all
7677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7684 osf3* | osf4* | osf5*)
7685 lt_cv_deplibs_check_method=pass_all
7689 lt_cv_deplibs_check_method=pass_all
7693 lt_cv_deplibs_check_method=pass_all
7696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7697 lt_cv_deplibs_check_method=pass_all
7701 case $host_vendor in
7703 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]'
7704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7707 lt_cv_deplibs_check_method=pass_all
7710 lt_cv_file_magic_cmd='/bin/file'
7711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7714 lt_cv_file_magic_cmd='/bin/file'
7715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7716 lt_cv_file_magic_test_file=/lib/libc.so
7719 lt_cv_deplibs_check_method=pass_all
7722 lt_cv_deplibs_check_method=pass_all
7728 lt_cv_deplibs_check_method=pass_all
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7734 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7738 if test "$build" = "$host"; then
7741 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7744 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7750 file_magic_cmd=$lt_cv_file_magic_cmd
7751 deplibs_check_method=$lt_cv_deplibs_check_method
7752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7775 if test -n "$ac_tool_prefix"; then
7776 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7777 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_DLLTOOL+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 if test -n "$DLLTOOL"; then
7784 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 DLLTOOL=$ac_cv_prog_DLLTOOL
7804 if test -n "$DLLTOOL"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7806 $as_echo "$DLLTOOL" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7814 if test -z "$ac_cv_prog_DLLTOOL"; then
7815 ac_ct_DLLTOOL=$DLLTOOL
7816 # Extract the first word of "dlltool", so it can be a program name with args.
7817 set dummy dlltool; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 if test -n "$ac_ct_DLLTOOL"; then
7824 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7844 if test -n "$ac_ct_DLLTOOL"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7846 $as_echo "$ac_ct_DLLTOOL" >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7852 if test "x$ac_ct_DLLTOOL" = x; then
7855 case $cross_compiling:$ac_tool_warned in
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7861 DLLTOOL=$ac_ct_DLLTOOL
7864 DLLTOOL="$ac_cv_prog_DLLTOOL"
7867 test -z "$DLLTOOL" && DLLTOOL=dlltool
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7876 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7877 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7878 $as_echo_n "(cached) " >&6
7880 lt_cv_sharedlib_from_linklib_cmd='unknown'
7883 cygwin* | mingw* | pw32* | cegcc*)
7884 # two different shell functions defined in ltmain.sh
7885 # decide which to use based on capabilities of $DLLTOOL
7886 case `$DLLTOOL --help 2>&1` in
7887 *--identify-strict*)
7888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7896 # fallback: assume linklib IS sharedlib
7897 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7903 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7904 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7905 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7913 if test -n "$ac_tool_prefix"; then
7916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_AR+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 if test -n "$AR"; then
7924 ac_cv_prog_AR="$AR" # Let the user override the test.
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 if test -n "$AR"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946 $as_echo "$AR" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7953 test -n "$AR" && break
7956 if test -z "$AR"; then
7960 # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 if test -n "$ac_ct_AR"; then
7968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_ac_ct_AR="$ac_prog"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7988 if test -n "$ac_ct_AR"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7990 $as_echo "$ac_ct_AR" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7997 test -n "$ac_ct_AR" && break
8000 if test "x$ac_ct_AR" = x; then
8003 case $cross_compiling:$ac_tool_warned in
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007 ac_tool_warned=yes ;;
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8027 $as_echo_n "checking for archiver @FILE support... " >&6; }
8028 if ${lt_cv_ar_at_file+:} false; then :
8029 $as_echo_n "(cached) " >&6
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044 echo conftest.$ac_objext > conftest.lst
8045 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8047 (eval $lt_ar_try) 2>&5
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }
8051 if test "$ac_status" -eq 0; then
8052 # Ensure the archiver fails upon bogus file names.
8053 rm -f conftest.$ac_objext libconftest.a
8054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8055 (eval $lt_ar_try) 2>&5
8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }
8059 if test "$ac_status" -ne 0; then
8063 rm -f conftest.* libconftest.a
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8070 $as_echo "$lt_cv_ar_at_file" >&6; }
8072 if test "x$lt_cv_ar_at_file" = xno; then
8075 archiver_list_spec=$lt_cv_ar_at_file
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}strip; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_STRIP+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$STRIP"; then
8093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 STRIP=$ac_cv_prog_STRIP
8113 if test -n "$STRIP"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8115 $as_echo "$STRIP" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8123 if test -z "$ac_cv_prog_STRIP"; then
8125 # Extract the first word of "strip", so it can be a program name with args.
8126 set dummy strip; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 if test -n "$ac_ct_STRIP"; then
8133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_ac_ct_STRIP="strip"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8153 if test -n "$ac_ct_STRIP"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8155 $as_echo "$ac_ct_STRIP" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8161 if test "x$ac_ct_STRIP" = x; then
8164 case $cross_compiling:$ac_tool_warned in
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8173 STRIP="$ac_cv_prog_STRIP"
8176 test -z "$STRIP" && STRIP=:
8183 if test -n "$ac_tool_prefix"; then
8184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_RANLIB+:} false; then :
8189 $as_echo_n "(cached) " >&6
8191 if test -n "$RANLIB"; then
8192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 RANLIB=$ac_cv_prog_RANLIB
8212 if test -n "$RANLIB"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8214 $as_echo "$RANLIB" >&6; }
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8222 if test -z "$ac_cv_prog_RANLIB"; then
8223 ac_ct_RANLIB=$RANLIB
8224 # Extract the first word of "ranlib", so it can be a program name with args.
8225 set dummy ranlib; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8229 $as_echo_n "(cached) " >&6
8231 if test -n "$ac_ct_RANLIB"; then
8232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_ac_ct_RANLIB="ranlib"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8252 if test -n "$ac_ct_RANLIB"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8254 $as_echo "$ac_ct_RANLIB" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8260 if test "x$ac_ct_RANLIB" = x; then
8263 case $cross_compiling:$ac_tool_warned in
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267 ac_tool_warned=yes ;;
8269 RANLIB=$ac_ct_RANLIB
8272 RANLIB="$ac_cv_prog_RANLIB"
8275 test -z "$RANLIB" && RANLIB=:
8282 # Determine commands to create old-style static archives.
8283 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8284 old_postinstall_cmds='chmod 644 $oldlib'
8285 old_postuninstall_cmds=
8287 if test -n "$RANLIB"; then
8290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8293 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8296 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8301 lock_old_archive_extraction=yes ;;
8303 lock_old_archive_extraction=no ;;
8344 # If no C compiler was specified, use CC.
8347 # If no C compiler flags were specified, use CFLAGS.
8348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8350 # Allow CC to be a program name with arguments.
8354 # Check for command to grab the raw symbol name followed by C symbol from nm.
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8356 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8357 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8358 $as_echo_n "(cached) " >&6
8361 # These are sane defaults that work on at least a few old systems.
8362 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8364 # Character class describing NM global symbol codes.
8365 symcode='[BCDEGRST]'
8367 # Regexp to match symbols that can be accessed directly from C.
8368 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8370 # Define system-specific variables.
8375 cygwin* | mingw* | pw32* | cegcc*)
8376 symcode='[ABCDGISTW]'
8379 if test "$host_cpu" = ia64; then
8380 symcode='[ABCDEGRST]'
8384 symcode='[BCDEGRST]'
8387 symcode='[BCDEGQRST]'
8398 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8406 # If we're using GNU nm, then use its standard symbol codes.
8407 case `$NM -V 2>&1` in
8408 *GNU* | *'with BFD'*)
8409 symcode='[ABCDGIRSTW]' ;;
8412 # Transform an extracted symbol line into a proper C declaration.
8413 # Some systems (esp. on ia64) link data and code symbols differently,
8414 # so use this general approach.
8415 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8417 # Transform an extracted symbol line into symbol name and symbol address
8418 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8419 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'"
8421 # Handle CRLF in mingw tool chain
8425 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8429 # Try without a prefix underscore, then with it.
8430 for ac_symprfx in "" "_"; do
8432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8433 symxfrm="\\1 $ac_symprfx\\2 \\2"
8435 # Write the raw and C identifiers.
8436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8437 # Fake it for dumpbin and say T for any non-static function
8438 # and D for any global variable.
8439 # Also find C++ and __fastcall symbols from MSVC++,
8440 # which start with @ or ?.
8441 lt_cv_sys_global_symbol_pipe="$AWK '"\
8442 " {last_section=section; section=\$ 3};"\
8443 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8444 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8445 " \$ 0!~/External *\|/{next};"\
8446 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8447 " {if(hide[section]) next};"\
8448 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8449 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8450 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8451 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8452 " ' prfx=^$ac_symprfx"
8454 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8456 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8458 # Check to see that the pipe works correctly.
8462 cat > conftest.$ac_ext <<_LT_EOF
8467 void nm_test_func(void);
8468 void nm_test_func(void){}
8472 int main(){nm_test_var='a';nm_test_func();return(0);}
8475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8476 (eval $ac_compile) 2>&5
8478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8479 test $ac_status = 0; }; then
8480 # Now try to grab the symbols.
8482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8483 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8486 test $ac_status = 0; } && test -s "$nlist"; then
8487 # Try sorting and uniquifying the output.
8488 if sort "$nlist" | uniq > "$nlist"T; then
8489 mv -f "$nlist"T "$nlist"
8494 # Make sure that we snagged all the symbols we need.
8495 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8496 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8497 cat <<_LT_EOF > conftest.$ac_ext
8498 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8499 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8500 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8501 relocations are performed -- see ld's documentation on pseudo-relocs. */
8502 # define LT_DLSYM_CONST
8503 #elif defined(__osf__)
8504 /* This system does not cope well with relocations in const data. */
8505 # define LT_DLSYM_CONST
8507 # define LT_DLSYM_CONST const
8515 # Now generate the symbol file.
8516 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8518 cat <<_LT_EOF >> conftest.$ac_ext
8520 /* The mapping between symbol names and symbols. */
8521 LT_DLSYM_CONST struct {
8525 lt__PROGRAM__LTX_preloaded_symbols[] =
8527 { "@PROGRAM@", (void *) 0 },
8529 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8530 cat <<\_LT_EOF >> conftest.$ac_ext
8534 /* This works around a problem in FreeBSD linker */
8535 #ifdef FREEBSD_WORKAROUND
8536 static const void *lt_preloaded_setup() {
8537 return lt__PROGRAM__LTX_preloaded_symbols;
8545 # Now try linking the two files.
8546 mv conftest.$ac_objext conftstm.$ac_objext
8547 lt_globsym_save_LIBS=$LIBS
8548 lt_globsym_save_CFLAGS=$CFLAGS
8549 LIBS="conftstm.$ac_objext"
8550 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8552 (eval $ac_link) 2>&5
8554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8558 LIBS=$lt_globsym_save_LIBS
8559 CFLAGS=$lt_globsym_save_CFLAGS
8561 echo "cannot find nm_test_func in $nlist" >&5
8564 echo "cannot find nm_test_var in $nlist" >&5
8567 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8570 echo "$progname: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8573 rm -rf conftest* conftst*
8575 # Do not use the global_symbol_pipe unless it works.
8576 if test "$pipe_works" = yes; then
8579 lt_cv_sys_global_symbol_pipe=
8585 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8586 lt_cv_sys_global_symbol_to_cdecl=
8588 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8590 $as_echo "failed" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8593 $as_echo "ok" >&6; }
8596 # Response file support.
8597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8598 nm_file_list_spec='@'
8599 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8600 nm_file_list_spec='@'
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8630 $as_echo_n "checking for sysroot... " >&6; }
8632 # Check whether --with-sysroot was given.
8633 if test "${with_sysroot+set}" = set; then :
8634 withval=$with_sysroot;
8641 case ${with_sysroot} in #(
8643 if test "$GCC" = yes; then
8644 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8648 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8654 $as_echo "${with_sysroot}" >&6; }
8655 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8660 $as_echo "${lt_sysroot:-no}" >&6; }
8666 # Check whether --enable-libtool-lock was given.
8667 if test "${enable_libtool_lock+set}" = set; then :
8668 enableval=$enable_libtool_lock;
8671 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8673 # Some flags need to be propagated to the compiler or linker for good
8677 # Find out which ABI we are using.
8678 echo 'int i;' > conftest.$ac_ext
8679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8680 (eval $ac_compile) 2>&5
8682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683 test $ac_status = 0; }; then
8684 case `/usr/bin/file conftest.$ac_objext` in
8696 # Find out which ABI we are using.
8697 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8699 (eval $ac_compile) 2>&5
8701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8702 test $ac_status = 0; }; then
8703 if test "$lt_cv_prog_gnu_ld" = yes; then
8704 case `/usr/bin/file conftest.$ac_objext` in
8706 LD="${LD-ld} -melf32bsmip"
8709 LD="${LD-ld} -melf32bmipn32"
8712 LD="${LD-ld} -melf64bmip"
8716 case `/usr/bin/file conftest.$ac_objext` in
8732 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8733 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8734 # Find out which ABI we are using.
8735 echo 'int i;' > conftest.$ac_ext
8736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8737 (eval $ac_compile) 2>&5
8739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740 test $ac_status = 0; }; then
8741 case `/usr/bin/file conftest.o` in
8744 x86_64-*kfreebsd*-gnu)
8745 LD="${LD-ld} -m elf_i386_fbsd"
8748 LD="${LD-ld} -m elf_i386"
8751 LD="${LD-ld} -m elf32lppclinux"
8754 LD="${LD-ld} -m elf32ppclinux"
8757 LD="${LD-ld} -m elf_s390"
8760 LD="${LD-ld} -m elf32_sparc"
8766 x86_64-*kfreebsd*-gnu)
8767 LD="${LD-ld} -m elf_x86_64_fbsd"
8770 LD="${LD-ld} -m elf_x86_64"
8773 LD="${LD-ld} -m elf64lppc"
8776 LD="${LD-ld} -m elf64ppc"
8778 s390*-*linux*|s390*-*tpf*)
8779 LD="${LD-ld} -m elf64_s390"
8782 LD="${LD-ld} -m elf64_sparc"
8792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8793 SAVE_CFLAGS="$CFLAGS"
8794 CFLAGS="$CFLAGS -belf"
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8797 if ${lt_cv_cc_needs_belf+:} false; then :
8798 $as_echo_n "(cached) " >&6
8801 ac_cpp='$CPP $CPPFLAGS'
8802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 lt_cv_cc_needs_belf=yes
8820 lt_cv_cc_needs_belf=no
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8825 ac_cpp='$CPP $CPPFLAGS'
8826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8835 CFLAGS="$SAVE_CFLAGS"
8839 # Find out which ABI we are using.
8840 echo 'int i;' > conftest.$ac_ext
8841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8842 (eval $ac_compile) 2>&5
8844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8845 test $ac_status = 0; }; then
8846 case `/usr/bin/file conftest.o` in
8848 case $lt_cv_prog_gnu_ld in
8852 LD="${LD-ld} -m elf_x86_64"
8855 LD="${LD-ld} -m elf64_sparc"
8858 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8859 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8864 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8876 need_locks="$enable_libtool_lock"
8878 if test -n "$ac_tool_prefix"; then
8879 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8880 set dummy ${ac_tool_prefix}mt; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8884 $as_echo_n "(cached) " >&6
8886 if test -n "$MANIFEST_TOOL"; then
8887 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8907 if test -n "$MANIFEST_TOOL"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8909 $as_echo "$MANIFEST_TOOL" >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8917 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8918 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8919 # Extract the first word of "mt", so it can be a program name with args.
8920 set dummy mt; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 if test -n "$ac_ct_MANIFEST_TOOL"; then
8927 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8947 if test -n "$ac_ct_MANIFEST_TOOL"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8949 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8955 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8958 case $cross_compiling:$ac_tool_warned in
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8962 ac_tool_warned=yes ;;
8964 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8967 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8970 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8972 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8973 if ${lt_cv_path_mainfest_tool+:} false; then :
8974 $as_echo_n "(cached) " >&6
8976 lt_cv_path_mainfest_tool=no
8977 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8978 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8979 cat conftest.err >&5
8980 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8981 lt_cv_path_mainfest_tool=yes
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8986 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8987 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8997 rhapsody* | darwin*)
8998 if test -n "$ac_tool_prefix"; then
8999 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9000 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9004 $as_echo_n "(cached) " >&6
9006 if test -n "$DSYMUTIL"; then
9007 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9027 if test -n "$DSYMUTIL"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9029 $as_echo "$DSYMUTIL" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9037 if test -z "$ac_cv_prog_DSYMUTIL"; then
9038 ac_ct_DSYMUTIL=$DSYMUTIL
9039 # Extract the first word of "dsymutil", so it can be a program name with args.
9040 set dummy dsymutil; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9044 $as_echo_n "(cached) " >&6
9046 if test -n "$ac_ct_DSYMUTIL"; then
9047 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9067 if test -n "$ac_ct_DSYMUTIL"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9069 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9075 if test "x$ac_ct_DSYMUTIL" = x; then
9078 case $cross_compiling:$ac_tool_warned in
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9082 ac_tool_warned=yes ;;
9084 DSYMUTIL=$ac_ct_DSYMUTIL
9087 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9090 if test -n "$ac_tool_prefix"; then
9091 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9092 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_prog_NMEDIT+:} false; then :
9096 $as_echo_n "(cached) " >&6
9098 if test -n "$NMEDIT"; then
9099 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 NMEDIT=$ac_cv_prog_NMEDIT
9119 if test -n "$NMEDIT"; then
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9121 $as_echo "$NMEDIT" >&6; }
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9129 if test -z "$ac_cv_prog_NMEDIT"; then
9130 ac_ct_NMEDIT=$NMEDIT
9131 # Extract the first word of "nmedit", so it can be a program name with args.
9132 set dummy nmedit; ac_word=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9136 $as_echo_n "(cached) " >&6
9138 if test -n "$ac_ct_NMEDIT"; then
9139 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 test -z "$as_dir" && as_dir=.
9146 for ac_exec_ext in '' $ac_executable_extensions; do
9147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9159 if test -n "$ac_ct_NMEDIT"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9161 $as_echo "$ac_ct_NMEDIT" >&6; }
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9167 if test "x$ac_ct_NMEDIT" = x; then
9170 case $cross_compiling:$ac_tool_warned in
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9174 ac_tool_warned=yes ;;
9176 NMEDIT=$ac_ct_NMEDIT
9179 NMEDIT="$ac_cv_prog_NMEDIT"
9182 if test -n "$ac_tool_prefix"; then
9183 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9184 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186 $as_echo_n "checking for $ac_word... " >&6; }
9187 if ${ac_cv_prog_LIPO+:} false; then :
9188 $as_echo_n "(cached) " >&6
9190 if test -n "$LIPO"; then
9191 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 test -z "$as_dir" && as_dir=.
9198 for ac_exec_ext in '' $ac_executable_extensions; do
9199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9200 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 LIPO=$ac_cv_prog_LIPO
9211 if test -n "$LIPO"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9213 $as_echo "$LIPO" >&6; }
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9221 if test -z "$ac_cv_prog_LIPO"; then
9223 # Extract the first word of "lipo", so it can be a program name with args.
9224 set dummy lipo; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9228 $as_echo_n "(cached) " >&6
9230 if test -n "$ac_ct_LIPO"; then
9231 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 test -z "$as_dir" && as_dir=.
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240 ac_cv_prog_ac_ct_LIPO="lipo"
9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9250 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9251 if test -n "$ac_ct_LIPO"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9253 $as_echo "$ac_ct_LIPO" >&6; }
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9259 if test "x$ac_ct_LIPO" = x; then
9262 case $cross_compiling:$ac_tool_warned in
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9266 ac_tool_warned=yes ;;
9271 LIPO="$ac_cv_prog_LIPO"
9274 if test -n "$ac_tool_prefix"; then
9275 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9276 set dummy ${ac_tool_prefix}otool; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if ${ac_cv_prog_OTOOL+:} false; then :
9280 $as_echo_n "(cached) " >&6
9282 if test -n "$OTOOL"; then
9283 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9302 OTOOL=$ac_cv_prog_OTOOL
9303 if test -n "$OTOOL"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9305 $as_echo "$OTOOL" >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9313 if test -z "$ac_cv_prog_OTOOL"; then
9315 # Extract the first word of "otool", so it can be a program name with args.
9316 set dummy otool; ac_word=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9320 $as_echo_n "(cached) " >&6
9322 if test -n "$ac_ct_OTOOL"; then
9323 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_ac_ct_OTOOL="otool"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9343 if test -n "$ac_ct_OTOOL"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9345 $as_echo "$ac_ct_OTOOL" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9351 if test "x$ac_ct_OTOOL" = x; then
9354 case $cross_compiling:$ac_tool_warned in
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9358 ac_tool_warned=yes ;;
9363 OTOOL="$ac_cv_prog_OTOOL"
9366 if test -n "$ac_tool_prefix"; then
9367 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9368 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370 $as_echo_n "checking for $ac_word... " >&6; }
9371 if ${ac_cv_prog_OTOOL64+:} false; then :
9372 $as_echo_n "(cached) " >&6
9374 if test -n "$OTOOL64"; then
9375 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9384 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 OTOOL64=$ac_cv_prog_OTOOL64
9395 if test -n "$OTOOL64"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9397 $as_echo "$OTOOL64" >&6; }
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9405 if test -z "$ac_cv_prog_OTOOL64"; then
9406 ac_ct_OTOOL64=$OTOOL64
9407 # Extract the first word of "otool64", so it can be a program name with args.
9408 set dummy otool64; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9412 $as_echo_n "(cached) " >&6
9414 if test -n "$ac_ct_OTOOL64"; then
9415 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424 ac_cv_prog_ac_ct_OTOOL64="otool64"
9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9434 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9435 if test -n "$ac_ct_OTOOL64"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9437 $as_echo "$ac_ct_OTOOL64" >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9443 if test "x$ac_ct_OTOOL64" = x; then
9446 case $cross_compiling:$ac_tool_warned in
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9450 ac_tool_warned=yes ;;
9452 OTOOL64=$ac_ct_OTOOL64
9455 OTOOL64="$ac_cv_prog_OTOOL64"
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9485 $as_echo_n "checking for -single_module linker flag... " >&6; }
9486 if ${lt_cv_apple_cc_single_mod+:} false; then :
9487 $as_echo_n "(cached) " >&6
9489 lt_cv_apple_cc_single_mod=no
9490 if test -z "${LT_MULTI_MODULE}"; then
9491 # By default we will add the -single_module flag. You can override
9492 # by either setting the environment variable LT_MULTI_MODULE
9493 # non-empty at configure time, or by adding -multi_module to the
9495 rm -rf libconftest.dylib*
9496 echo "int foo(void){return 1;}" > conftest.c
9497 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9498 -dynamiclib -Wl,-single_module conftest.c" >&5
9499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9500 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9502 # If there is a non-empty error log, and "single_module"
9503 # appears in it, assume the flag caused a linker warning
9504 if test -s conftest.err && $GREP single_module conftest.err; then
9505 cat conftest.err >&5
9506 # Otherwise, if the output was created with a 0 exit code from
9507 # the compiler, it worked.
9508 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9509 lt_cv_apple_cc_single_mod=yes
9511 cat conftest.err >&5
9513 rm -rf libconftest.dylib*
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9518 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9522 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9523 $as_echo_n "(cached) " >&6
9525 lt_cv_ld_exported_symbols_list=no
9526 save_LDFLAGS=$LDFLAGS
9527 echo "_main" > conftest.sym
9528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9540 if ac_fn_c_try_link "$LINENO"; then :
9541 lt_cv_ld_exported_symbols_list=yes
9543 lt_cv_ld_exported_symbols_list=no
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LDFLAGS="$save_LDFLAGS"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9551 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9554 $as_echo_n "checking for -force_load linker flag... " >&6; }
9555 if ${lt_cv_ld_force_load+:} false; then :
9556 $as_echo_n "(cached) " >&6
9558 lt_cv_ld_force_load=no
9559 cat > conftest.c << _LT_EOF
9560 int forced_loaded() { return 2;}
9562 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9563 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9564 echo "$AR cru libconftest.a conftest.o" >&5
9565 $AR cru libconftest.a conftest.o 2>&5
9566 echo "$RANLIB libconftest.a" >&5
9567 $RANLIB libconftest.a 2>&5
9568 cat > conftest.c << _LT_EOF
9569 int main() { return 0;}
9571 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9572 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9574 if test -s conftest.err && $GREP force_load conftest.err; then
9575 cat conftest.err >&5
9576 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9577 lt_cv_ld_force_load=yes
9579 cat conftest.err >&5
9581 rm -f conftest.err libconftest.a conftest conftest.c
9582 rm -rf conftest.dSYM
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9586 $as_echo "$lt_cv_ld_force_load" >&6; }
9588 rhapsody* | darwin1.[012])
9589 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9592 darwin*) # darwin 5.x on
9593 # if running on 10.5 or later, the deployment target defaults
9594 # to the OS version, if on x86, and 10.4, the deployment
9595 # target defaults to 10.4. Don't you love it?
9596 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9597 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9600 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9602 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9606 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9607 _lt_dar_single_mod='$single_module'
9609 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9610 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9612 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9614 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9615 _lt_dsymutil='~$DSYMUTIL $lib || :'
9622 for ac_header in dlfcn.h
9624 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9626 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9627 cat >>confdefs.h <<_ACEOF
9628 #define HAVE_DLFCN_H 1
9638 func_stripname_cnf ()
9641 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9642 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9644 } # func_stripname_cnf
9651 enable_win32_dll=yes
9654 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9655 if test -n "$ac_tool_prefix"; then
9656 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9657 set dummy ${ac_tool_prefix}as; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_prog_AS+:} false; then :
9661 $as_echo_n "(cached) " >&6
9663 if test -n "$AS"; then
9664 ac_cv_prog_AS="$AS" # Let the user override the test.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673 ac_cv_prog_AS="${ac_tool_prefix}as"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 if test -n "$AS"; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9686 $as_echo "$AS" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9694 if test -z "$ac_cv_prog_AS"; then
9696 # Extract the first word of "as", so it can be a program name with args.
9697 set dummy as; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9701 $as_echo_n "(cached) " >&6
9703 if test -n "$ac_ct_AS"; then
9704 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713 ac_cv_prog_ac_ct_AS="as"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9724 if test -n "$ac_ct_AS"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9726 $as_echo "$ac_ct_AS" >&6; }
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9732 if test "x$ac_ct_AS" = x; then
9735 case $cross_compiling:$ac_tool_warned in
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9739 ac_tool_warned=yes ;;
9747 if test -n "$ac_tool_prefix"; then
9748 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9749 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_prog_DLLTOOL+:} false; then :
9753 $as_echo_n "(cached) " >&6
9755 if test -n "$DLLTOOL"; then
9756 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 DLLTOOL=$ac_cv_prog_DLLTOOL
9776 if test -n "$DLLTOOL"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9778 $as_echo "$DLLTOOL" >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9786 if test -z "$ac_cv_prog_DLLTOOL"; then
9787 ac_ct_DLLTOOL=$DLLTOOL
9788 # Extract the first word of "dlltool", so it can be a program name with args.
9789 set dummy dlltool; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9793 $as_echo_n "(cached) " >&6
9795 if test -n "$ac_ct_DLLTOOL"; then
9796 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9816 if test -n "$ac_ct_DLLTOOL"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9818 $as_echo "$ac_ct_DLLTOOL" >&6; }
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9824 if test "x$ac_ct_DLLTOOL" = x; then
9827 case $cross_compiling:$ac_tool_warned in
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9831 ac_tool_warned=yes ;;
9833 DLLTOOL=$ac_ct_DLLTOOL
9836 DLLTOOL="$ac_cv_prog_DLLTOOL"
9839 if test -n "$ac_tool_prefix"; then
9840 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_prog_OBJDUMP+:} false; then :
9845 $as_echo_n "(cached) " >&6
9847 if test -n "$OBJDUMP"; then
9848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 OBJDUMP=$ac_cv_prog_OBJDUMP
9868 if test -n "$OBJDUMP"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9870 $as_echo "$OBJDUMP" >&6; }
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9878 if test -z "$ac_cv_prog_OBJDUMP"; then
9879 ac_ct_OBJDUMP=$OBJDUMP
9880 # Extract the first word of "objdump", so it can be a program name with args.
9881 set dummy objdump; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9885 $as_echo_n "(cached) " >&6
9887 if test -n "$ac_ct_OBJDUMP"; then
9888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9908 if test -n "$ac_ct_OBJDUMP"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9910 $as_echo "$ac_ct_OBJDUMP" >&6; }
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9916 if test "x$ac_ct_OBJDUMP" = x; then
9919 case $cross_compiling:$ac_tool_warned in
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9923 ac_tool_warned=yes ;;
9925 OBJDUMP=$ac_ct_OBJDUMP
9928 OBJDUMP="$ac_cv_prog_OBJDUMP"
9934 test -z "$AS" && AS=as
9940 test -z "$DLLTOOL" && DLLTOOL=dlltool
9946 test -z "$OBJDUMP" && OBJDUMP=objdump
9951 # Check whether --enable-static was given.
9952 if test "${enable_static+set}" = set; then :
9953 enableval=$enable_static; p=${PACKAGE-default}
9955 yes) enable_static=yes ;;
9956 no) enable_static=no ;;
9959 # Look at the argument we got. We use all the common list separators.
9960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9961 for pkg in $enableval; do
9963 if test "X$pkg" = "X$p"; then
9987 # Check whether --enable-shared was given.
9988 if test "${enable_shared+set}" = set; then :
9989 enableval=$enable_shared; p=${PACKAGE-default}
9991 yes) enable_shared=yes ;;
9992 no) enable_shared=no ;;
9995 # Look at the argument we got. We use all the common list separators.
9996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9997 for pkg in $enableval; do
9999 if test "X$pkg" = "X$p"; then
10020 # Check whether --with-pic was given.
10021 if test "${with_pic+set}" = set; then :
10022 withval=$with_pic; lt_p=${PACKAGE-default}
10024 yes|no) pic_mode=$withval ;;
10027 # Look at the argument we got. We use all the common list separators.
10028 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10029 for lt_pkg in $withval; do
10031 if test "X$lt_pkg" = "X$lt_p"; then
10043 test -z "$pic_mode" && pic_mode=default
10051 # Check whether --enable-fast-install was given.
10052 if test "${enable_fast_install+set}" = set; then :
10053 enableval=$enable_fast_install; p=${PACKAGE-default}
10055 yes) enable_fast_install=yes ;;
10056 no) enable_fast_install=no ;;
10058 enable_fast_install=no
10059 # Look at the argument we got. We use all the common list separators.
10060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10061 for pkg in $enableval; do
10063 if test "X$pkg" = "X$p"; then
10064 enable_fast_install=yes
10071 enable_fast_install=yes
10084 # This can be used to rebuild libtool when needed
10085 LIBTOOL_DEPS="$ltmain"
10087 # Always use our own libtool.
10088 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10119 test -z "$LN_S" && LN_S="ln -s"
10134 if test -n "${ZSH_VERSION+set}" ; then
10135 setopt NO_GLOB_SUBST
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10139 $as_echo_n "checking for objdir... " >&6; }
10140 if ${lt_cv_objdir+:} false; then :
10141 $as_echo_n "(cached) " >&6
10143 rm -f .libs 2>/dev/null
10144 mkdir .libs 2>/dev/null
10145 if test -d .libs; then
10148 # MS-DOS does not allow filenames that begin with a dot.
10151 rmdir .libs 2>/dev/null
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10154 $as_echo "$lt_cv_objdir" >&6; }
10155 objdir=$lt_cv_objdir
10161 cat >>confdefs.h <<_ACEOF
10162 #define LT_OBJDIR "$lt_cv_objdir/"
10170 # AIX sometimes has problems with the GCC collect2 program. For some
10171 # reason, if we set the COLLECT_NAMES environment variable, the problems
10172 # vanish in a puff of smoke.
10173 if test "X${COLLECT_NAMES+set}" != Xset; then
10175 export COLLECT_NAMES
10180 # Global variables:
10182 can_build_shared=yes
10184 # All known linkers require a `.a' archive for static linking (except MSVC,
10185 # which needs '.lib').
10188 with_gnu_ld="$lt_cv_prog_gnu_ld"
10191 old_CFLAGS="$CFLAGS"
10193 # Set sane defaults for various variables
10194 test -z "$CC" && CC=cc
10195 test -z "$LTCC" && LTCC=$CC
10196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10197 test -z "$LD" && LD=ld
10198 test -z "$ac_objext" && ac_objext=o
10200 for cc_temp in $compiler""; do
10202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10208 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10211 # Only perform the check for file, if the check method requires it
10212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10213 case $deplibs_check_method in
10215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10217 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10218 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10219 $as_echo_n "(cached) " >&6
10223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10226 lt_save_MAGIC_CMD="$MAGIC_CMD"
10227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10229 for ac_dir in $ac_dummy; do
10231 test -z "$ac_dir" && ac_dir=.
10232 if test -f $ac_dir/${ac_tool_prefix}file; then
10233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10234 if test -n "$file_magic_test_file"; then
10235 case $deplibs_check_method in
10237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10240 $EGREP "$file_magic_regex" > /dev/null; then
10245 *** Warning: the command libtool uses to detect shared libraries,
10246 *** $file_magic_cmd, produces output that libtool cannot recognize.
10247 *** The result is that libtool may fail to recognize shared libraries
10248 *** as such. This will affect the creation of libtool libraries that
10249 *** depend on shared libraries, but programs linked with such libtool
10250 *** libraries will work regardless of this problem. Nevertheless, you
10251 *** may want to report the problem to your system manager and/or to
10252 *** bug-libtool@gnu.org
10262 MAGIC_CMD="$lt_save_MAGIC_CMD"
10267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10268 if test -n "$MAGIC_CMD"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10270 $as_echo "$MAGIC_CMD" >&6; }
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10280 if test -z "$lt_cv_path_MAGIC_CMD"; then
10281 if test -n "$ac_tool_prefix"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10283 $as_echo_n "checking for file... " >&6; }
10284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10285 $as_echo_n "(cached) " >&6
10289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10292 lt_save_MAGIC_CMD="$MAGIC_CMD"
10293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10295 for ac_dir in $ac_dummy; do
10297 test -z "$ac_dir" && ac_dir=.
10298 if test -f $ac_dir/file; then
10299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10300 if test -n "$file_magic_test_file"; then
10301 case $deplibs_check_method in
10303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10306 $EGREP "$file_magic_regex" > /dev/null; then
10311 *** Warning: the command libtool uses to detect shared libraries,
10312 *** $file_magic_cmd, produces output that libtool cannot recognize.
10313 *** The result is that libtool may fail to recognize shared libraries
10314 *** as such. This will affect the creation of libtool libraries that
10315 *** depend on shared libraries, but programs linked with such libtool
10316 *** libraries will work regardless of this problem. Nevertheless, you
10317 *** may want to report the problem to your system manager and/or to
10318 *** bug-libtool@gnu.org
10328 MAGIC_CMD="$lt_save_MAGIC_CMD"
10333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10334 if test -n "$MAGIC_CMD"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10336 $as_echo "$MAGIC_CMD" >&6; }
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10352 # Use C for the default configuration in the libtool script
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10362 # Source file extension for C test sources.
10365 # Object file extension for compiled C test sources.
10369 # Code to be used in simple compile tests
10370 lt_simple_compile_test_code="int some_variable = 0;"
10372 # Code to be used in simple link tests
10373 lt_simple_link_test_code='int main(){return(0);}'
10381 # If no C compiler was specified, use CC.
10384 # If no C compiler flags were specified, use CFLAGS.
10385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10387 # Allow CC to be a program name with arguments.
10390 # Save the default compiler, since it gets overwritten when the other
10391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10392 compiler_DEFAULT=$CC
10394 # save warnings/boilerplate of simple test code
10395 ac_outfile=conftest.$ac_objext
10396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398 _lt_compiler_boilerplate=`cat conftest.err`
10401 ac_outfile=conftest.$ac_objext
10402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10404 _lt_linker_boilerplate=`cat conftest.err`
10409 ## There is no encapsulation within the following macros, do not change
10410 ## the running order or otherwise move them around unless you know exactly
10411 ## what you are doing...
10412 if test -n "$compiler"; then
10414 lt_prog_compiler_no_builtin_flag=
10416 if test "$GCC" = yes; then
10417 case $cc_basename in
10419 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10421 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10425 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10426 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10427 $as_echo_n "(cached) " >&6
10429 lt_cv_prog_compiler_rtti_exceptions=no
10430 ac_outfile=conftest.$ac_objext
10431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10432 lt_compiler_flag="-fno-rtti -fno-exceptions"
10433 # Insert the option either (1) after the last *FLAGS variable, or
10434 # (2) before a word containing "conftest.", or (3) at the end.
10435 # Note that $ac_compile itself does not contain backslashes and begins
10436 # with a dollar sign (not a hyphen), so the echo should work correctly.
10437 # The option is referenced via a variable to avoid confusing sed.
10438 lt_compile=`echo "$ac_compile" | $SED \
10439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441 -e 's:$: $lt_compiler_flag:'`
10442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10443 (eval "$lt_compile" 2>conftest.err)
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 if (exit $ac_status) && test -s "$ac_outfile"; then
10448 # The compiler can only warn and ignore the option if not recognized
10449 # So say no if there are warnings other than the usual output.
10450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10453 lt_cv_prog_compiler_rtti_exceptions=yes
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10460 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10463 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10475 lt_prog_compiler_wl=
10476 lt_prog_compiler_pic=
10477 lt_prog_compiler_static=
10480 if test "$GCC" = yes; then
10481 lt_prog_compiler_wl='-Wl,'
10482 lt_prog_compiler_static='-static'
10486 # All AIX code is PIC.
10487 if test "$host_cpu" = ia64; then
10488 # AIX 5 now supports IA64 processor
10489 lt_prog_compiler_static='-Bstatic'
10496 # see comment about AmigaOS4 .so support
10497 lt_prog_compiler_pic='-fPIC'
10500 # FIXME: we need at least 68020 code to build shared libraries, but
10501 # adding the `-m68020' flag to GCC prevents building anything better,
10503 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10509 # PIC is the default for these OSes.
10512 mingw* | cygwin* | pw32* | os2* | cegcc*)
10513 # This hack is so that the source file can tell whether it is being
10514 # built for inclusion in a dll (and should export symbols for example).
10515 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10516 # (--disable-auto-import) libraries
10517 lt_prog_compiler_pic='-DDLL_EXPORT'
10520 darwin* | rhapsody*)
10521 # PIC is the default on this platform
10522 # Common symbols not allowed in MH_DYLIB files
10523 lt_prog_compiler_pic='-fno-common'
10527 # PIC is the default for Haiku.
10528 # The "-static" flag exists, but is broken.
10529 lt_prog_compiler_static=
10533 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10534 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10535 # sets the default TLS model and affects inlining.
10541 lt_prog_compiler_pic='-fPIC'
10547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10548 # Instead, we relocate shared libraries at runtime.
10552 # Just because we use GCC doesn't mean we suddenly get shared libraries
10553 # on systems that don't support them.
10554 lt_prog_compiler_can_build_shared=no
10559 # QNX uses GNU C++, but need to define -shared option too, otherwise
10560 # it will coredump.
10561 lt_prog_compiler_pic='-fPIC -shared'
10565 if test -d /usr/nec; then
10566 lt_prog_compiler_pic=-Kconform_pic
10571 lt_prog_compiler_pic='-fPIC'
10575 case $cc_basename in
10576 nvcc*) # Cuda Compiler Driver 2.2
10577 lt_prog_compiler_wl='-Xlinker '
10578 if test -n "$lt_prog_compiler_pic"; then
10579 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10584 # PORTME Check for flag to pass linker flags through the system compiler.
10587 lt_prog_compiler_wl='-Wl,'
10588 if test "$host_cpu" = ia64; then
10589 # AIX 5 now supports IA64 processor
10590 lt_prog_compiler_static='-Bstatic'
10592 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10596 mingw* | cygwin* | pw32* | os2* | cegcc*)
10597 # This hack is so that the source file can tell whether it is being
10598 # built for inclusion in a dll (and should export symbols for example).
10599 lt_prog_compiler_pic='-DDLL_EXPORT'
10602 hpux9* | hpux10* | hpux11*)
10603 lt_prog_compiler_wl='-Wl,'
10604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10605 # not for PA HP-UX.
10611 lt_prog_compiler_pic='+Z'
10614 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10615 lt_prog_compiler_static='${wl}-a ${wl}archive'
10618 irix5* | irix6* | nonstopux*)
10619 lt_prog_compiler_wl='-Wl,'
10620 # PIC (with -KPIC) is the default.
10621 lt_prog_compiler_static='-non_shared'
10624 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10625 case $cc_basename in
10626 # old Intel for x86_64 which still supported -KPIC.
10628 lt_prog_compiler_wl='-Wl,'
10629 lt_prog_compiler_pic='-KPIC'
10630 lt_prog_compiler_static='-static'
10632 # icc used to be incompatible with GCC.
10633 # ICC 10 doesn't accept -KPIC any more.
10635 lt_prog_compiler_wl='-Wl,'
10636 lt_prog_compiler_pic='-fPIC'
10637 lt_prog_compiler_static='-static'
10639 # Lahey Fortran 8.1.
10641 lt_prog_compiler_wl='-Wl,'
10642 lt_prog_compiler_pic='--shared'
10643 lt_prog_compiler_static='--static'
10646 # NAG Fortran compiler
10647 lt_prog_compiler_wl='-Wl,-Wl,,'
10648 lt_prog_compiler_pic='-PIC'
10649 lt_prog_compiler_static='-Bstatic'
10651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10652 # Portland Group compilers (*not* the Pentium gcc compiler,
10653 # which looks to be a dead project)
10654 lt_prog_compiler_wl='-Wl,'
10655 lt_prog_compiler_pic='-fpic'
10656 lt_prog_compiler_static='-Bstatic'
10659 lt_prog_compiler_wl='-Wl,'
10660 # All Alpha code is PIC.
10661 lt_prog_compiler_static='-non_shared'
10663 xl* | bgxl* | bgf* | mpixl*)
10664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10665 lt_prog_compiler_wl='-Wl,'
10666 lt_prog_compiler_pic='-qpic'
10667 lt_prog_compiler_static='-qstaticlink'
10670 case `$CC -V 2>&1 | sed 5q` in
10671 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10673 lt_prog_compiler_pic='-KPIC'
10674 lt_prog_compiler_static='-Bstatic'
10675 lt_prog_compiler_wl=''
10677 *Sun\ F* | *Sun*Fortran*)
10678 lt_prog_compiler_pic='-KPIC'
10679 lt_prog_compiler_static='-Bstatic'
10680 lt_prog_compiler_wl='-Qoption ld '
10684 lt_prog_compiler_pic='-KPIC'
10685 lt_prog_compiler_static='-Bstatic'
10686 lt_prog_compiler_wl='-Wl,'
10688 *Intel*\ [CF]*Compiler*)
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_pic='-fPIC'
10691 lt_prog_compiler_static='-static'
10694 lt_prog_compiler_wl='-Wl,'
10695 lt_prog_compiler_pic='-fpic'
10696 lt_prog_compiler_static='-Bstatic'
10704 lt_prog_compiler_pic='-KPIC'
10705 lt_prog_compiler_static='-Bstatic'
10709 # QNX uses GNU C++, but need to define -shared option too, otherwise
10710 # it will coredump.
10711 lt_prog_compiler_pic='-fPIC -shared'
10714 osf3* | osf4* | osf5*)
10715 lt_prog_compiler_wl='-Wl,'
10716 # All OSF/1 code is PIC.
10717 lt_prog_compiler_static='-non_shared'
10721 lt_prog_compiler_static='-non_shared'
10725 lt_prog_compiler_pic='-KPIC'
10726 lt_prog_compiler_static='-Bstatic'
10727 case $cc_basename in
10728 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10729 lt_prog_compiler_wl='-Qoption ld ';;
10731 lt_prog_compiler_wl='-Wl,';;
10736 lt_prog_compiler_wl='-Qoption ld '
10737 lt_prog_compiler_pic='-PIC'
10738 lt_prog_compiler_static='-Bstatic'
10741 sysv4 | sysv4.2uw2* | sysv4.3*)
10742 lt_prog_compiler_wl='-Wl,'
10743 lt_prog_compiler_pic='-KPIC'
10744 lt_prog_compiler_static='-Bstatic'
10748 if test -d /usr/nec ;then
10749 lt_prog_compiler_pic='-Kconform_pic'
10750 lt_prog_compiler_static='-Bstatic'
10754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10755 lt_prog_compiler_wl='-Wl,'
10756 lt_prog_compiler_pic='-KPIC'
10757 lt_prog_compiler_static='-Bstatic'
10761 lt_prog_compiler_wl='-Wl,'
10762 lt_prog_compiler_can_build_shared=no
10766 lt_prog_compiler_pic='-pic'
10767 lt_prog_compiler_static='-Bstatic'
10771 lt_prog_compiler_can_build_shared=no
10777 # For platforms which do not support PIC, -DPIC is meaningless:
10779 lt_prog_compiler_pic=
10782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10787 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10788 if ${lt_cv_prog_compiler_pic+:} false; then :
10789 $as_echo_n "(cached) " >&6
10791 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10794 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10795 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10798 # Check to make sure the PIC flag actually works.
10800 if test -n "$lt_prog_compiler_pic"; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10803 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 lt_cv_prog_compiler_pic_works=no
10807 ac_outfile=conftest.$ac_objext
10808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10810 # Insert the option either (1) after the last *FLAGS variable, or
10811 # (2) before a word containing "conftest.", or (3) at the end.
10812 # Note that $ac_compile itself does not contain backslashes and begins
10813 # with a dollar sign (not a hyphen), so the echo should work correctly.
10814 # The option is referenced via a variable to avoid confusing sed.
10815 lt_compile=`echo "$ac_compile" | $SED \
10816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818 -e 's:$: $lt_compiler_flag:'`
10819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10820 (eval "$lt_compile" 2>conftest.err)
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 if (exit $ac_status) && test -s "$ac_outfile"; then
10825 # The compiler can only warn and ignore the option if not recognized
10826 # So say no if there are warnings other than the usual output.
10827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10830 lt_cv_prog_compiler_pic_works=yes
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10839 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10840 case $lt_prog_compiler_pic in
10842 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10845 lt_prog_compiler_pic=
10846 lt_prog_compiler_can_build_shared=no
10862 # Check to make sure the static flag actually works.
10864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10866 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10867 if ${lt_cv_prog_compiler_static_works+:} false; then :
10868 $as_echo_n "(cached) " >&6
10870 lt_cv_prog_compiler_static_works=no
10871 save_LDFLAGS="$LDFLAGS"
10872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10873 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10875 # The linker can only warn and ignore the option if not recognized
10876 # So say no if there are warnings
10877 if test -s conftest.err; then
10878 # Append any errors to the config.log.
10879 cat conftest.err 1>&5
10880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10882 if diff conftest.exp conftest.er2 >/dev/null; then
10883 lt_cv_prog_compiler_static_works=yes
10886 lt_cv_prog_compiler_static_works=yes
10890 LDFLAGS="$save_LDFLAGS"
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10894 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10896 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10899 lt_prog_compiler_static=
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10909 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10910 if ${lt_cv_prog_compiler_c_o+:} false; then :
10911 $as_echo_n "(cached) " >&6
10913 lt_cv_prog_compiler_c_o=no
10914 $RM -r conftest 2>/dev/null
10918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10920 lt_compiler_flag="-o out/conftest2.$ac_objext"
10921 # Insert the option either (1) after the last *FLAGS variable, or
10922 # (2) before a word containing "conftest.", or (3) at the end.
10923 # Note that $ac_compile itself does not contain backslashes and begins
10924 # with a dollar sign (not a hyphen), so the echo should work correctly.
10925 lt_compile=`echo "$ac_compile" | $SED \
10926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10928 -e 's:$: $lt_compiler_flag:'`
10929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10930 (eval "$lt_compile" 2>out/conftest.err)
10932 cat out/conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10936 # The compiler can only warn and ignore the option if not recognized
10937 # So say no if there are warnings
10938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10941 lt_cv_prog_compiler_c_o=yes
10946 # SGI C++ compiler will create directory out/ii_files/ for
10947 # template instantiation
10948 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10949 $RM out/* && rmdir out
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10956 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10965 if ${lt_cv_prog_compiler_c_o+:} false; then :
10966 $as_echo_n "(cached) " >&6
10968 lt_cv_prog_compiler_c_o=no
10969 $RM -r conftest 2>/dev/null
10973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10975 lt_compiler_flag="-o out/conftest2.$ac_objext"
10976 # Insert the option either (1) after the last *FLAGS variable, or
10977 # (2) before a word containing "conftest.", or (3) at the end.
10978 # Note that $ac_compile itself does not contain backslashes and begins
10979 # with a dollar sign (not a hyphen), so the echo should work correctly.
10980 lt_compile=`echo "$ac_compile" | $SED \
10981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10983 -e 's:$: $lt_compiler_flag:'`
10984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10985 (eval "$lt_compile" 2>out/conftest.err)
10987 cat out/conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10991 # The compiler can only warn and ignore the option if not recognized
10992 # So say no if there are warnings
10993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10996 lt_cv_prog_compiler_c_o=yes
11001 # SGI C++ compiler will create directory out/ii_files/ for
11002 # template instantiation
11003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11004 $RM out/* && rmdir out
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11011 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11016 hard_links="nottested"
11017 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11018 # do not overwrite the value of need_locks provided by the user
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11020 $as_echo_n "checking if we can lock with hard links... " >&6; }
11023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11025 ln conftest.a conftest.b 2>&5 || hard_links=no
11026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11028 $as_echo "$hard_links" >&6; }
11029 if test "$hard_links" = no; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11031 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11044 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11047 allow_undefined_flag=
11048 always_export_symbols=no
11050 archive_expsym_cmds=
11051 compiler_needs_object=no
11052 enable_shared_with_static_runtimes=no
11053 export_dynamic_flag_spec=
11054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11055 hardcode_automatic=no
11057 hardcode_direct_absolute=no
11058 hardcode_libdir_flag_spec=
11059 hardcode_libdir_separator=
11060 hardcode_minus_L=no
11061 hardcode_shlibpath_var=unsupported
11063 link_all_deplibs=unknown
11065 module_expsym_cmds=
11066 old_archive_from_new_cmds=
11067 old_archive_from_expsyms_cmds=
11068 thread_safe_flag_spec=
11069 whole_archive_flag_spec=
11070 # include_expsyms should be a list of space-separated symbols to be *always*
11071 # included in the symbol list
11073 # exclude_expsyms can be an extended regexp of symbols to exclude
11074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11076 # as well as any symbol that contains `d'.
11077 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11079 # platforms (ab)use it in PIC code, but their linkers get confused if
11080 # the symbol is explicitly referenced. Since portable code cannot
11081 # rely on this symbol name, it's probably fine to never include it in
11082 # preloaded symbol tables.
11083 # Exclude shared library initialization/finalization symbols.
11084 extract_expsyms_cmds=
11087 cygwin* | mingw* | pw32* | cegcc*)
11088 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11089 # When not using gcc, we currently assume that we are using
11090 # Microsoft Visual C++.
11091 if test "$GCC" != yes; then
11096 # we just hope/assume this is gcc and not c89 (= MSVC++)
11102 linux* | k*bsd*-gnu | gnu*)
11103 link_all_deplibs=no
11109 # On some targets, GNU ld is compatible enough with the native linker
11110 # that we're better off using the native interface for both.
11111 lt_use_gnu_ld_interface=no
11112 if test "$with_gnu_ld" = yes; then
11115 # The AIX port of GNU ld has always aspired to compatibility
11116 # with the native linker. However, as the warning in the GNU ld
11117 # block says, versions before 2.19.5* couldn't really create working
11118 # shared libraries, regardless of the interface used.
11119 case `$LD -v 2>&1` in
11120 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11121 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11122 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11124 lt_use_gnu_ld_interface=yes
11129 lt_use_gnu_ld_interface=yes
11134 if test "$lt_use_gnu_ld_interface" = yes; then
11135 # If archive_cmds runs LD, not CC, wlarc should be empty
11138 # Set some defaults for GNU ld with shared library support. These
11139 # are reset later if shared libraries are not supported. Putting them
11140 # here allows them to be overridden if necessary.
11141 runpath_var=LD_RUN_PATH
11142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143 export_dynamic_flag_spec='${wl}--export-dynamic'
11144 # ancient GNU ld didn't support --whole-archive et. al.
11145 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11146 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11148 whole_archive_flag_spec=
11150 supports_anon_versioning=no
11151 case `$LD -v 2>&1` in
11152 *GNU\ gold*) supports_anon_versioning=yes ;;
11153 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11154 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11155 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11156 *\ 2.11.*) ;; # other 2.11 versions
11157 *) supports_anon_versioning=yes ;;
11160 # See if GNU ld supports shared libraries.
11163 # On AIX/PPC, the GNU linker is very broken
11164 if test "$host_cpu" != ia64; then
11168 *** Warning: the GNU linker, at least up to release 2.19, is reported
11169 *** to be unable to reliably create shared libraries on AIX.
11170 *** Therefore, libtool is disabling shared libraries support. If you
11171 *** really care for shared libraries, you may want to install binutils
11172 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11173 *** You will then need to restart the configuration process.
11182 # see comment about AmigaOS4 .so support
11183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11184 archive_expsym_cmds=''
11187 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)'
11188 hardcode_libdir_flag_spec='-L$libdir'
11189 hardcode_minus_L=yes
11195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11196 allow_undefined_flag=unsupported
11197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11198 # support --undefined. This deserves some investigation. FIXME
11199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11205 cygwin* | mingw* | pw32* | cegcc*)
11206 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11207 # as there is no search path for DLLs.
11208 hardcode_libdir_flag_spec='-L$libdir'
11209 export_dynamic_flag_spec='${wl}--export-all-symbols'
11210 allow_undefined_flag=unsupported
11211 always_export_symbols=no
11212 enable_shared_with_static_runtimes=yes
11213 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'
11214 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11216 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11218 # If the export-symbols file already is a .def file (1st line
11219 # is EXPORTS), use it as is; otherwise, prepend...
11220 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11221 cp $export_symbols $output_objdir/$soname.def;
11223 echo EXPORTS > $output_objdir/$soname.def;
11224 cat $export_symbols >> $output_objdir/$soname.def;
11226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 link_all_deplibs=yes
11239 hardcode_shlibpath_var=no
11240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11241 export_dynamic_flag_spec='${wl}-E'
11242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11243 # Instead, shared libraries are loaded at an image base (0x10000000 by
11244 # default) and relocated if they conflict, which is a slow very memory
11245 # consuming and fragmenting process. To avoid this, we pick a random,
11246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11249 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'
11252 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11254 if test "$host_os" = linux-dietlibc; then
11255 case $cc_basename in
11256 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11259 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11260 && test "$tmp_diet" = no
11262 tmp_addflag=' $pic_flag'
11263 tmp_sharedflag='-shared'
11264 case $cc_basename,$host_cpu in
11265 pgcc*) # Portland Group C compiler
11266 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'
11267 tmp_addflag=' $pic_flag'
11269 pgf77* | pgf90* | pgf95* | pgfortran*)
11270 # Portland Group f77 and f90 compilers
11271 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'
11272 tmp_addflag=' $pic_flag -Mnomain' ;;
11273 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11274 tmp_addflag=' -i_dynamic' ;;
11275 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11276 tmp_addflag=' -i_dynamic -nofor_main' ;;
11277 ifc* | ifort*) # Intel Fortran compiler
11278 tmp_addflag=' -nofor_main' ;;
11279 lf95*) # Lahey Fortran 8.1
11280 whole_archive_flag_spec=
11281 tmp_sharedflag='--shared' ;;
11282 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11283 tmp_sharedflag='-qmkshrobj'
11285 nvcc*) # Cuda Compiler Driver 2.2
11286 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'
11287 compiler_needs_object=yes
11290 case `$CC -V 2>&1 | sed 5q` in
11291 *Sun\ C*) # Sun C 5.9
11292 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'
11293 compiler_needs_object=yes
11294 tmp_sharedflag='-G' ;;
11295 *Sun\ F*) # Sun Fortran 8.3
11296 tmp_sharedflag='-G' ;;
11298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11300 if test "x$supports_anon_versioning" = xyes; then
11301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11303 echo "local: *; };" >> $output_objdir/$libname.ver~
11304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11307 case $cc_basename in
11308 xlf* | bgf* | bgxlf* | mpixlf*)
11309 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11310 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11312 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11313 if test "x$supports_anon_versioning" = xyes; then
11314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11316 echo "local: *; };" >> $output_objdir/$libname.ver~
11317 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11326 netbsd* | netbsdelf*-gnu)
11327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11328 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11337 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11341 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11342 *** create shared libraries on Solaris systems. Therefore, libtool
11343 *** is disabling shared libraries support. We urge you to upgrade GNU
11344 *** binutils to release 2.9.1 or newer. Another option is to modify
11345 *** your PATH or compiler configuration so that the native linker is
11346 *** used, and then restart.
11349 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11350 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11351 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11358 case `$LD -v 2>&1` in
11359 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11363 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11364 *** reliably create shared libraries on SCO systems. Therefore, libtool
11365 *** is disabling shared libraries support. We urge you to upgrade GNU
11366 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11367 *** your PATH or compiler configuration so that the native linker is
11368 *** used, and then restart.
11373 # For security reasons, it is highly recommended that you always
11374 # use absolute paths for naming shared libraries, and exclude the
11375 # DT_RUNPATH tag from executables and libraries. But doing so
11376 # requires that you compile everything twice, which is a pain.
11377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11389 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11391 hardcode_direct=yes
11392 hardcode_shlibpath_var=no
11396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11405 if test "$ld_shlibs" = no; then
11407 hardcode_libdir_flag_spec=
11408 export_dynamic_flag_spec=
11409 whole_archive_flag_spec=
11412 # PORTME fill in a description of your system's linker (not GNU ld)
11415 allow_undefined_flag=unsupported
11416 always_export_symbols=yes
11417 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'
11418 # Note: this linker hardcodes the directories in LIBPATH if there
11419 # are no directories specified by -L.
11420 hardcode_minus_L=yes
11421 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11422 # Neither direct hardcoding nor static linking is supported with a
11424 hardcode_direct=unsupported
11429 if test "$host_cpu" = ia64; then
11430 # On IA64, the linker does run time linking by default, so we don't
11431 # have to do anything special.
11432 aix_use_runtimelinking=no
11433 exp_sym_flag='-Bexport'
11436 # If we're using GNU nm, then we don't want the "-C" option.
11437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11438 # Also, AIX nm treats weak defined symbols like other global
11439 # defined symbols, whereas GNU nm marks them as "W".
11440 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11441 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'
11443 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'
11445 aix_use_runtimelinking=no
11447 # Test if we are trying to use run time linking or normal
11448 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11449 # need to do runtime linking.
11450 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11451 for ld_flag in $LDFLAGS; do
11452 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11453 aix_use_runtimelinking=yes
11460 exp_sym_flag='-bexport'
11461 no_entry_flag='-bnoentry'
11464 # When large executables or shared objects are built, AIX ld can
11465 # have problems creating the table of contents. If linking a library
11466 # or program results in "error TOC overflow" add -mminimal-toc to
11467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11471 hardcode_direct=yes
11472 hardcode_direct_absolute=yes
11473 hardcode_libdir_separator=':'
11474 link_all_deplibs=yes
11475 file_list_spec='${wl}-f,'
11477 if test "$GCC" = yes; then
11478 case $host_os in aix4.[012]|aix4.[012].*)
11479 # We only want to do this on AIX 4.2 and lower, the check
11480 # below for broken collect2 doesn't work under 4.3+
11481 collect2name=`${CC} -print-prog-name=collect2`
11482 if test -f "$collect2name" &&
11483 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11485 # We have reworked collect2
11488 # We have old collect2
11489 hardcode_direct=unsupported
11490 # It fails to find uninstalled libraries when the uninstalled
11491 # path is not listed in the libpath. Setting hardcode_minus_L
11492 # to unsupported forces relinking
11493 hardcode_minus_L=yes
11494 hardcode_libdir_flag_spec='-L$libdir'
11495 hardcode_libdir_separator=
11499 shared_flag='-shared'
11500 if test "$aix_use_runtimelinking" = yes; then
11501 shared_flag="$shared_flag "'${wl}-G'
11503 link_all_deplibs=no
11506 if test "$host_cpu" = ia64; then
11507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11508 # chokes on -Wl,-G. The following line is correct:
11511 if test "$aix_use_runtimelinking" = yes; then
11512 shared_flag='${wl}-G'
11514 shared_flag='${wl}-bM:SRE'
11519 export_dynamic_flag_spec='${wl}-bexpall'
11520 # It seems that -bexpall does not export symbols beginning with
11521 # underscore (_), so it is better to generate a list of symbols to export.
11522 always_export_symbols=yes
11523 if test "$aix_use_runtimelinking" = yes; then
11524 # Warning - without using the other runtime loading flags (-brtl),
11525 # -berok will link without error, but may produce a broken library.
11526 allow_undefined_flag='-berok'
11527 # Determine the default libpath from the value encoded in an
11528 # empty executable.
11529 if test "${lt_cv_aix_libpath+set}" = set; then
11530 aix_libpath=$lt_cv_aix_libpath
11532 if ${lt_cv_aix_libpath_+:} false; then :
11533 $as_echo_n "(cached) " >&6
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11546 if ac_fn_c_try_link "$LINENO"; then :
11548 lt_aix_libpath_sed='
11549 /Import File Strings/,/^$/ {
11551 s/^0 *\([^ ]*\) *$/\1/
11555 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11556 # Check for a 64-bit object if we didn't find anything.
11557 if test -z "$lt_cv_aix_libpath_"; then
11558 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11561 rm -f core conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11563 if test -z "$lt_cv_aix_libpath_"; then
11564 lt_cv_aix_libpath_="/usr/lib:/lib"
11569 aix_libpath=$lt_cv_aix_libpath_
11572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11573 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"
11575 if test "$host_cpu" = ia64; then
11576 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11577 allow_undefined_flag="-z nodefs"
11578 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"
11580 # Determine the default libpath from the value encoded in an
11581 # empty executable.
11582 if test "${lt_cv_aix_libpath+set}" = set; then
11583 aix_libpath=$lt_cv_aix_libpath
11585 if ${lt_cv_aix_libpath_+:} false; then :
11586 $as_echo_n "(cached) " >&6
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11599 if ac_fn_c_try_link "$LINENO"; then :
11601 lt_aix_libpath_sed='
11602 /Import File Strings/,/^$/ {
11604 s/^0 *\([^ ]*\) *$/\1/
11608 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11609 # Check for a 64-bit object if we didn't find anything.
11610 if test -z "$lt_cv_aix_libpath_"; then
11611 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 if test -z "$lt_cv_aix_libpath_"; then
11617 lt_cv_aix_libpath_="/usr/lib:/lib"
11622 aix_libpath=$lt_cv_aix_libpath_
11625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11626 # Warning - without using the other run time loading flags,
11627 # -berok will link without error, but may produce a broken library.
11628 no_undefined_flag=' ${wl}-bernotok'
11629 allow_undefined_flag=' ${wl}-berok'
11630 if test "$with_gnu_ld" = yes; then
11631 # We only use this code for GNU lds that support --whole-archive.
11632 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11634 # Exported symbols can be pulled into shared objects from archives
11635 whole_archive_flag_spec='$convenience'
11637 archive_cmds_need_lc=yes
11638 # This is similar to how AIX traditionally builds its shared libraries.
11639 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'
11647 # see comment about AmigaOS4 .so support
11648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11649 archive_expsym_cmds=''
11652 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)'
11653 hardcode_libdir_flag_spec='-L$libdir'
11654 hardcode_minus_L=yes
11660 export_dynamic_flag_spec=-rdynamic
11663 cygwin* | mingw* | pw32* | cegcc*)
11664 # When not using gcc, we currently assume that we are using
11665 # Microsoft Visual C++.
11666 # hardcode_libdir_flag_spec is actually meaningless, as there is
11667 # no search path for DLLs.
11668 case $cc_basename in
11671 hardcode_libdir_flag_spec=' '
11672 allow_undefined_flag=unsupported
11673 always_export_symbols=yes
11675 # Tell ltmain to make .lib files, not .a files.
11677 # Tell ltmain to make .dll files, not .so files.
11679 # FIXME: Setting linknames here is a bad hack.
11680 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11681 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11682 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11684 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11686 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11688 # The linker will not automatically build a static lib if we build a DLL.
11689 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11690 enable_shared_with_static_runtimes=yes
11691 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11694 old_postinstall_cmds='chmod 644 $oldlib'
11695 postlink_cmds='lt_outputfile="@OUTPUT@"~
11696 lt_tool_outputfile="@TOOL_OUTPUT@"~
11697 case $lt_outputfile in
11700 lt_outputfile="$lt_outputfile.exe"
11701 lt_tool_outputfile="$lt_tool_outputfile.exe"
11704 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11705 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11706 $RM "$lt_outputfile.manifest";
11710 # Assume MSVC wrapper
11711 hardcode_libdir_flag_spec=' '
11712 allow_undefined_flag=unsupported
11713 # Tell ltmain to make .lib files, not .a files.
11715 # Tell ltmain to make .dll files, not .so files.
11717 # FIXME: Setting linknames here is a bad hack.
11718 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11719 # The linker will automatically build a .lib file if we build a DLL.
11720 old_archive_from_new_cmds='true'
11721 # FIXME: Should let the user specify the lib program.
11722 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11723 enable_shared_with_static_runtimes=yes
11728 darwin* | rhapsody*)
11731 archive_cmds_need_lc=no
11733 hardcode_automatic=yes
11734 hardcode_shlibpath_var=unsupported
11735 if test "$lt_cv_ld_force_load" = "yes"; then
11736 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\"`'
11739 whole_archive_flag_spec=''
11741 link_all_deplibs=yes
11742 allow_undefined_flag="$_lt_dar_allow_undefined"
11743 case $cc_basename in
11744 ifort*) _lt_dar_can_shared=yes ;;
11745 *) _lt_dar_can_shared=$GCC ;;
11747 if test "$_lt_dar_can_shared" = "yes"; then
11748 output_verbose_link_cmd=func_echo_all
11749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11751 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}"
11752 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}"
11761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11762 hardcode_libdir_flag_spec='-L$libdir'
11763 hardcode_shlibpath_var=no
11766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11767 # support. Future versions do this automatically, but an explicit c++rt0.o
11768 # does not break anything, and helps significantly (at the cost of a little
11771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11772 hardcode_libdir_flag_spec='-R$libdir'
11773 hardcode_direct=yes
11774 hardcode_shlibpath_var=no
11777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11780 hardcode_direct=yes
11781 hardcode_minus_L=yes
11782 hardcode_shlibpath_var=no
11785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11786 freebsd* | dragonfly*)
11787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11788 hardcode_libdir_flag_spec='-R$libdir'
11789 hardcode_direct=yes
11790 hardcode_shlibpath_var=no
11794 if test "$GCC" = yes; then
11795 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'
11797 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'
11799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11800 hardcode_libdir_separator=:
11801 hardcode_direct=yes
11803 # hardcode_minus_L: Not really in the search PATH,
11804 # but as the default location of the library.
11805 hardcode_minus_L=yes
11806 export_dynamic_flag_spec='${wl}-E'
11810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11811 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11815 if test "$with_gnu_ld" = no; then
11816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11817 hardcode_libdir_separator=:
11818 hardcode_direct=yes
11819 hardcode_direct_absolute=yes
11820 export_dynamic_flag_spec='${wl}-E'
11821 # hardcode_minus_L: Not really in the search PATH,
11822 # but as the default location of the library.
11823 hardcode_minus_L=yes
11828 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11831 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11837 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11843 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11850 # Older versions of the 11.00 compiler do not understand -b yet
11851 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11853 $as_echo_n "checking if $CC understands -b... " >&6; }
11854 if ${lt_cv_prog_compiler__b+:} false; then :
11855 $as_echo_n "(cached) " >&6
11857 lt_cv_prog_compiler__b=no
11858 save_LDFLAGS="$LDFLAGS"
11859 LDFLAGS="$LDFLAGS -b"
11860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11862 # The linker can only warn and ignore the option if not recognized
11863 # So say no if there are warnings
11864 if test -s conftest.err; then
11865 # Append any errors to the config.log.
11866 cat conftest.err 1>&5
11867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11869 if diff conftest.exp conftest.er2 >/dev/null; then
11870 lt_cv_prog_compiler__b=yes
11873 lt_cv_prog_compiler__b=yes
11877 LDFLAGS="$save_LDFLAGS"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11881 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11883 if test x"$lt_cv_prog_compiler__b" = xyes; then
11884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11892 if test "$with_gnu_ld" = no; then
11893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11894 hardcode_libdir_separator=:
11899 hardcode_shlibpath_var=no
11902 hardcode_direct=yes
11903 hardcode_direct_absolute=yes
11904 export_dynamic_flag_spec='${wl}-E'
11906 # hardcode_minus_L: Not really in the search PATH,
11907 # but as the default location of the library.
11908 hardcode_minus_L=yes
11914 irix5* | irix6* | nonstopux*)
11915 if test "$GCC" = yes; then
11916 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'
11917 # Try to use the -exported_symbol ld option, if it does not
11918 # work, assume that -exports_file does not work either and
11919 # implicitly export all symbols.
11920 # This should be the same for all languages, so no per-tag cache variable.
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11922 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11923 if ${lt_cv_irix_exported_symbol+:} false; then :
11924 $as_echo_n "(cached) " >&6
11926 save_LDFLAGS="$LDFLAGS"
11927 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930 int foo (void) { return 0; }
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 lt_cv_irix_exported_symbol=yes
11935 lt_cv_irix_exported_symbol=no
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LDFLAGS="$save_LDFLAGS"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11942 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11943 if test "$lt_cv_irix_exported_symbol" = yes; then
11944 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'
11947 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'
11948 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'
11950 archive_cmds_need_lc='no'
11951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11952 hardcode_libdir_separator=:
11954 link_all_deplibs=yes
11957 netbsd* | netbsdelf*-gnu)
11958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11963 hardcode_libdir_flag_spec='-R$libdir'
11964 hardcode_direct=yes
11965 hardcode_shlibpath_var=no
11969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11970 hardcode_direct=yes
11971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11972 hardcode_libdir_separator=:
11973 hardcode_shlibpath_var=no
11980 if test -f /usr/libexec/ld.so; then
11981 hardcode_direct=yes
11982 hardcode_shlibpath_var=no
11983 hardcode_direct_absolute=yes
11984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11988 export_dynamic_flag_spec='${wl}-E'
11991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11993 hardcode_libdir_flag_spec='-R$libdir'
11996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12007 hardcode_libdir_flag_spec='-L$libdir'
12008 hardcode_minus_L=yes
12009 allow_undefined_flag=unsupported
12010 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'
12011 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12015 if test "$GCC" = yes; then
12016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12017 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'
12019 allow_undefined_flag=' -expect_unresolved \*'
12020 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'
12022 archive_cmds_need_lc='no'
12023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12024 hardcode_libdir_separator=:
12027 osf4* | osf5*) # as osf3* with the addition of -msym flag
12028 if test "$GCC" = yes; then
12029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12030 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'
12031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12033 allow_undefined_flag=' -expect_unresolved \*'
12034 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'
12035 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~
12036 $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'
12038 # Both c and cxx compiler support -rpath directly
12039 hardcode_libdir_flag_spec='-rpath $libdir'
12041 archive_cmds_need_lc='no'
12042 hardcode_libdir_separator=:
12046 no_undefined_flag=' -z defs'
12047 if test "$GCC" = yes; then
12049 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12051 $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'
12053 case `$CC -V 2>&1` in
12056 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12062 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12064 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12068 hardcode_libdir_flag_spec='-R$libdir'
12069 hardcode_shlibpath_var=no
12071 solaris2.[0-5] | solaris2.[0-5].*) ;;
12073 # The compiler driver will combine and reorder linker options,
12074 # but understands `-z linker_flag'. GCC discards it without `$wl',
12075 # but is careful enough not to reorder.
12076 # Supported since Solaris 2.6 (maybe 2.5.1?)
12077 if test "$GCC" = yes; then
12078 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12080 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12084 link_all_deplibs=yes
12088 if test "x$host_vendor" = xsequent; then
12089 # Use $CC to link under sequent, because it throws in some extra .o
12090 # files that make .init and .fini sections work.
12091 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12093 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12095 hardcode_libdir_flag_spec='-L$libdir'
12096 hardcode_direct=yes
12097 hardcode_minus_L=yes
12098 hardcode_shlibpath_var=no
12102 case $host_vendor in
12104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105 hardcode_direct=yes # is this really true???
12108 ## LD is ld it makes a PLAMLIB
12109 ## CC just makes a GrossModule.
12110 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12111 reload_cmds='$CC -r -o $output$reload_objs'
12115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12116 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12119 runpath_var='LD_RUN_PATH'
12120 hardcode_shlibpath_var=no
12124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12125 hardcode_shlibpath_var=no
12126 export_dynamic_flag_spec='-Bexport'
12130 if test -d /usr/nec; then
12131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132 hardcode_shlibpath_var=no
12133 runpath_var=LD_RUN_PATH
12134 hardcode_runpath_var=yes
12139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12140 no_undefined_flag='${wl}-z,text'
12141 archive_cmds_need_lc=no
12142 hardcode_shlibpath_var=no
12143 runpath_var='LD_RUN_PATH'
12145 if test "$GCC" = yes; then
12146 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154 sysv5* | sco3.2v5* | sco5v6*)
12155 # Note: We can NOT use -z defs as we might desire, because we do not
12156 # link with -lc, and that would cause any symbols used from libc to
12157 # always be unresolved, which means just about no library would
12158 # ever link correctly. If we're not using GNU ld we use -z text
12159 # though, which does catch some bad symbols but isn't as heavy-handed
12161 no_undefined_flag='${wl}-z,text'
12162 allow_undefined_flag='${wl}-z,nodefs'
12163 archive_cmds_need_lc=no
12164 hardcode_shlibpath_var=no
12165 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12166 hardcode_libdir_separator=':'
12167 link_all_deplibs=yes
12168 export_dynamic_flag_spec='${wl}-Bexport'
12169 runpath_var='LD_RUN_PATH'
12171 if test "$GCC" = yes; then
12172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12182 hardcode_libdir_flag_spec='-L$libdir'
12183 hardcode_shlibpath_var=no
12191 if test x$host_vendor = xsni; then
12193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12194 export_dynamic_flag_spec='${wl}-Blargedynsym'
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12201 $as_echo "$ld_shlibs" >&6; }
12202 test "$ld_shlibs" = no && can_build_shared=no
12204 with_gnu_ld=$with_gnu_ld
12221 # Do we need to explicitly link libc?
12223 case "x$archive_cmds_need_lc" in
12225 # Assume -lc should be added
12226 archive_cmds_need_lc=yes
12228 if test "$enable_shared" = yes && test "$GCC" = yes; then
12229 case $archive_cmds in
12231 # FIXME: we may have to deal with multi-command sequences.
12234 # Test whether the compiler implicitly links with -lc since on some
12235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12236 # to ld, don't add -lc before -lgcc.
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12238 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12239 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12240 $as_echo_n "(cached) " >&6
12243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12246 (eval $ac_compile) 2>&5
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; } 2>conftest.err; then
12252 libobjs=conftest.$ac_objext
12254 wl=$lt_prog_compiler_wl
12255 pic_flag=$lt_prog_compiler_pic
12261 lt_save_allow_undefined_flag=$allow_undefined_flag
12262 allow_undefined_flag=
12263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12264 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267 test $ac_status = 0; }
12269 lt_cv_archive_cmds_need_lc=no
12271 lt_cv_archive_cmds_need_lc=yes
12273 allow_undefined_flag=$lt_save_allow_undefined_flag
12275 cat conftest.err 1>&5
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12281 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12282 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12443 if test "$GCC" = yes; then
12445 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12446 *) lt_awk_arg="/^libraries:/" ;;
12449 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12450 *) lt_sed_strip_eq="s,=/,/,g" ;;
12452 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12453 case $lt_search_path_spec in
12455 # if the path contains ";" then we assume it to be the separator
12456 # otherwise default to the standard path separator (i.e. ":") - it is
12457 # assumed that no part of a normal pathname contains ";" but that should
12458 # okay in the real world where ";" in dirpaths is itself problematic.
12459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12465 # Ok, now we have the path, separated by spaces, we can step through it
12466 # and add multilib dir if necessary.
12467 lt_tmp_lt_search_path_spec=
12468 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12469 for lt_sys_path in $lt_search_path_spec; do
12470 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12473 test -d "$lt_sys_path" && \
12474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12477 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12478 BEGIN {RS=" "; FS="/|\n";} {
12481 for (lt_i = NF; lt_i > 0; lt_i--) {
12482 if ($lt_i != "" && $lt_i != ".") {
12483 if ($lt_i == "..") {
12486 if (lt_count == 0) {
12487 lt_foo="/" $lt_i lt_foo;
12494 if (lt_foo != "") { lt_freq[lt_foo]++; }
12495 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12497 # AWK program above erroneously prepends '/' to C:/dos/paths
12500 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12501 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12503 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12507 library_names_spec=
12508 libname_spec='lib$name'
12512 postuninstall_cmds=
12516 shlibpath_overrides_runpath=unknown
12518 dynamic_linker="$host_os ld.so"
12519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12520 need_lib_prefix=unknown
12521 hardcode_into_libs=no
12523 # when you set need_version to no, make sure it does not cause -set_version
12524 # flags to be left without arguments
12525 need_version=unknown
12529 version_type=linux # correct to gnu/linux during the next big refactor
12530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12531 shlibpath_var=LIBPATH
12533 # AIX 3 has no versioning support, so we append a major version to the name.
12534 soname_spec='${libname}${release}${shared_ext}$major'
12538 version_type=linux # correct to gnu/linux during the next big refactor
12541 hardcode_into_libs=yes
12542 if test "$host_cpu" = ia64; then
12543 # AIX 5 supports IA64
12544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12545 shlibpath_var=LD_LIBRARY_PATH
12547 # With GCC up to 2.95.x, collect2 would create an import file
12548 # for dependence libraries. The import file would start with
12549 # the line `#! .'. This would cause the generated library to
12550 # depend on `.', always an invalid library. This was fixed in
12551 # development snapshots of GCC prior to 3.0.
12553 aix4 | aix4.[01] | aix4.[01].*)
12554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12556 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12559 can_build_shared=no
12563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12564 # soname into executable. Probably we can add versioning support to
12565 # collect2, so additional links can be useful in future.
12566 if test "$aix_use_runtimelinking" = yes; then
12567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12568 # instead of lib<name>.a to let people know that these are not
12569 # typical AIX shared libraries.
12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572 # We preserve .a as extension for shared libraries through AIX4.2
12573 # and later when we are not doing run time linking.
12574 library_names_spec='${libname}${release}.a $libname.a'
12575 soname_spec='${libname}${release}${shared_ext}$major'
12577 shlibpath_var=LIBPATH
12584 # Since July 2007 AmigaOS4 officially supports .so libraries.
12585 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589 library_names_spec='$libname.ixlibrary $libname.a'
12590 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12591 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'
12597 library_names_spec='${libname}${shared_ext}'
12598 dynamic_linker="$host_os ld.so"
12599 shlibpath_var=LIBRARY_PATH
12603 version_type=linux # correct to gnu/linux during the next big refactor
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12611 # the default ld.so.conf also contains /usr/contrib/lib and
12612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12613 # libtool to hard-code these into programs
12616 cygwin* | mingw* | pw32* | cegcc*)
12617 version_type=windows
12622 case $GCC,$cc_basename in
12625 library_names_spec='$libname.dll.a'
12626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12627 postinstall_cmds='base_file=`basename \${file}`~
12628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12629 dldir=$destdir/`dirname \$dlpath`~
12630 test -d \$dldir || mkdir -p \$dldir~
12631 $install_prog $dir/$dlname \$dldir/$dlname~
12632 chmod a+x \$dldir/$dlname~
12633 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12634 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12637 dlpath=$dir/\$dldll~
12639 shlibpath_overrides_runpath=yes
12643 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12644 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12649 # MinGW DLLs use traditional 'lib' prefix
12650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12653 # pw32 DLLs use 'pw' prefix rather than 'lib'
12654 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12657 dynamic_linker='Win32 ld.exe'
12662 libname_spec='$name'
12663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664 library_names_spec='${libname}.dll.lib'
12668 sys_lib_search_path_spec=
12671 for lt_path in $LIB
12674 # Let DOS variable expansion print the short 8.3 style file name.
12675 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12676 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12679 # Convert to MSYS style.
12680 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12683 # Convert to unix form, then to dos form, then back to unix form
12684 # but this time dos style (no spaces!) so that the unix form looks
12685 # like /cygdrive/c/PROGRA~1:/cygdr...
12686 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12687 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12688 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12691 sys_lib_search_path_spec="$LIB"
12692 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12693 # It is most probably a Windows format PATH.
12694 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12698 # FIXME: find the short name or the path components, as spaces are
12699 # common. (e.g. "Program Files" -> "PROGRA~1")
12703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12704 postinstall_cmds='base_file=`basename \${file}`~
12705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12706 dldir=$destdir/`dirname \$dlpath`~
12707 test -d \$dldir || mkdir -p \$dldir~
12708 $install_prog $dir/$dlname \$dldir/$dlname'
12709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12710 dlpath=$dir/\$dldll~
12712 shlibpath_overrides_runpath=yes
12713 dynamic_linker='Win32 link.exe'
12717 # Assume MSVC wrapper
12718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12719 dynamic_linker='Win32 ld.exe'
12722 # FIXME: first we should search . and the directory the executable is in
12726 darwin* | rhapsody*)
12727 dynamic_linker="$host_os dyld"
12728 version_type=darwin
12731 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12732 soname_spec='${libname}${release}${major}$shared_ext'
12733 shlibpath_overrides_runpath=yes
12734 shlibpath_var=DYLD_LIBRARY_PATH
12735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12737 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12738 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12742 version_type=linux # correct to gnu/linux during the next big refactor
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12746 soname_spec='${libname}${release}${shared_ext}$major'
12747 shlibpath_var=LD_LIBRARY_PATH
12750 freebsd* | dragonfly*)
12751 # DragonFly does not have aout. When/if they implement a new
12752 # versioning mechanism, adjust this.
12753 if test -x /usr/bin/objformat; then
12754 objformat=`/usr/bin/objformat`
12757 freebsd[23].*) objformat=aout ;;
12758 *) objformat=elf ;;
12761 version_type=freebsd-$objformat
12762 case $version_type in
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12773 shlibpath_var=LD_LIBRARY_PATH
12776 shlibpath_overrides_runpath=yes
12778 freebsd3.[01]* | freebsdelf3.[01]*)
12779 shlibpath_overrides_runpath=yes
12780 hardcode_into_libs=yes
12782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12784 shlibpath_overrides_runpath=no
12785 hardcode_into_libs=yes
12787 *) # from 4.6 on, and DragonFly
12788 shlibpath_overrides_runpath=yes
12789 hardcode_into_libs=yes
12795 version_type=linux # correct to gnu/linux during the next big refactor
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=no
12802 hardcode_into_libs=yes
12806 version_type=linux # correct to gnu/linux during the next big refactor
12809 dynamic_linker="$host_os runtime_loader"
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 shlibpath_var=LIBRARY_PATH
12813 shlibpath_overrides_runpath=yes
12814 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12815 hardcode_into_libs=yes
12818 hpux9* | hpux10* | hpux11*)
12819 # Give a soname corresponding to the major version so that dld.sl refuses to
12820 # link against other versions.
12827 hardcode_into_libs=yes
12828 dynamic_linker="$host_os dld.so"
12829 shlibpath_var=LD_LIBRARY_PATH
12830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832 soname_spec='${libname}${release}${shared_ext}$major'
12833 if test "X$HPUX_IA64_MODE" = X32; then
12834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12842 hardcode_into_libs=yes
12843 dynamic_linker="$host_os dld.sl"
12844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12853 dynamic_linker="$host_os dld.sl"
12854 shlibpath_var=SHLIB_PATH
12855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12860 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12861 postinstall_cmds='chmod 555 $lib'
12862 # or fails outright, so override atomically:
12863 install_override_mode=555
12867 version_type=linux # correct to gnu/linux during the next big refactor
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12871 soname_spec='${libname}${release}${shared_ext}$major'
12872 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=no
12875 hardcode_into_libs=yes
12878 irix5* | irix6* | nonstopux*)
12880 nonstopux*) version_type=nonstopux ;;
12882 if test "$lt_cv_prog_gnu_ld" = yes; then
12883 version_type=linux # correct to gnu/linux during the next big refactor
12890 soname_spec='${libname}${release}${shared_ext}$major'
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12893 irix5* | nonstopux*)
12894 libsuff= shlibsuff=
12897 case $LD in # libtool.m4 will add one of these switches to LD
12898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12899 libsuff= shlibsuff= libmagic=32-bit;;
12900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12901 libsuff=32 shlibsuff=N32 libmagic=N32;;
12902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12904 *) libsuff= shlibsuff= libmagic=never-match;;
12908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12909 shlibpath_overrides_runpath=no
12910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12912 hardcode_into_libs=yes
12915 # No shared lib support for Linux oldld, aout, or coff.
12916 linux*oldld* | linux*aout* | linux*coff*)
12921 version_type=none # Android doesn't support versioned libraries.
12924 library_names_spec='$libname$release$shared_ext'
12925 soname_spec='$libname$release$shared_ext'
12927 shlibpath_var=LD_LIBRARY_PATH
12928 shlibpath_overrides_runpath=yes
12930 # This implies no fast_install, which is unacceptable.
12931 # Some rework will be needed to allow for fast_install
12932 # before this can be enabled.
12933 hardcode_into_libs=yes
12935 dynamic_linker='Android linker'
12936 # Don't embed -rpath directories since the linker doesn't support them.
12937 hardcode_libdir_flag_spec='-L$libdir'
12940 # This must be glibc/ELF.
12941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12942 version_type=linux # correct to gnu/linux during the next big refactor
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 shlibpath_overrides_runpath=no
12951 # Some binutils ld are patched to set DT_RUNPATH
12952 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12953 $as_echo_n "(cached) " >&6
12955 lt_cv_shlibpath_overrides_runpath=no
12956 save_LDFLAGS=$LDFLAGS
12957 save_libdir=$libdir
12958 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12959 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12971 if ac_fn_c_try_link "$LINENO"; then :
12972 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12973 lt_cv_shlibpath_overrides_runpath=yes
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LDFLAGS=$save_LDFLAGS
12979 libdir=$save_libdir
12983 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12985 # This implies no fast_install, which is unacceptable.
12986 # Some rework will be needed to allow for fast_install
12987 # before this can be enabled.
12988 hardcode_into_libs=yes
12990 # Append ld.so.conf contents to the search path
12991 if test -f /etc/ld.so.conf; then
12992 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' ' '`
12993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12996 # We used to test for /lib/ld.so.1 and disable shared libraries on
12997 # powerpc, because MkLinux only supported shared libraries with the
12998 # GNU dynamic linker. Since this was broken with cross compilers,
12999 # most powerpc-linux boxes support dynamic linking these days and
13000 # people can always --disable-shared, the test was removed, and we
13001 # assume the GNU/Linux dynamic linker is in use.
13002 dynamic_linker='GNU/Linux ld.so'
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 shlibpath_overrides_runpath=no
13013 hardcode_into_libs=yes
13014 dynamic_linker='NetBSD ld.elf_so'
13021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13024 dynamic_linker='NetBSD (a.out) ld.so'
13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13027 soname_spec='${libname}${release}${shared_ext}$major'
13028 dynamic_linker='NetBSD ld.elf_so'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 shlibpath_overrides_runpath=yes
13032 hardcode_into_libs=yes
13036 version_type=linux # correct to gnu/linux during the next big refactor
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 shlibpath_overrides_runpath=yes
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 soname_spec='${libname}${release}${shared_ext}$major'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=no
13050 hardcode_into_libs=yes
13051 dynamic_linker='ldqnx.so'
13056 sys_lib_dlsearch_path_spec="/usr/lib"
13058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13061 *) need_version=no ;;
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13068 openbsd2.[89] | openbsd2.[89].*)
13069 shlibpath_overrides_runpath=no
13072 shlibpath_overrides_runpath=yes
13076 shlibpath_overrides_runpath=yes
13081 libname_spec='$name'
13084 library_names_spec='$libname${shared_ext} $libname.a'
13085 dynamic_linker='OS/2 ld.exe'
13086 shlibpath_var=LIBPATH
13089 osf3* | osf4* | osf5*)
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 shlibpath_var=LD_LIBRARY_PATH
13096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13105 version_type=linux # correct to gnu/linux during the next big refactor
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes
13112 hardcode_into_libs=yes
13113 # ldd complains unless libraries are executable
13114 postinstall_cmds='chmod +x $lib'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=yes
13123 if test "$with_gnu_ld" = yes; then
13130 version_type=linux # correct to gnu/linux during the next big refactor
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 case $host_vendor in
13136 shlibpath_overrides_runpath=no
13138 runpath_var=LD_RUN_PATH
13146 shlibpath_overrides_runpath=no
13147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13153 if test -d /usr/nec ;then
13154 version_type=linux # correct to gnu/linux during the next big refactor
13155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13156 soname_spec='$libname${shared_ext}.$major'
13157 shlibpath_var=LD_LIBRARY_PATH
13161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162 version_type=freebsd-elf
13165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13166 soname_spec='${libname}${release}${shared_ext}$major'
13167 shlibpath_var=LD_LIBRARY_PATH
13168 shlibpath_overrides_runpath=yes
13169 hardcode_into_libs=yes
13170 if test "$with_gnu_ld" = yes; then
13171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13180 sys_lib_dlsearch_path_spec='/usr/lib'
13184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13185 version_type=linux # correct to gnu/linux during the next big refactor
13188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13189 shlibpath_var=LD_LIBRARY_PATH
13190 shlibpath_overrides_runpath=no
13191 hardcode_into_libs=yes
13195 version_type=linux # correct to gnu/linux during the next big refactor
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 shlibpath_var=LD_LIBRARY_PATH
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13206 $as_echo "$dynamic_linker" >&6; }
13207 test "$dynamic_linker" = no && can_build_shared=no
13209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13210 if test "$GCC" = yes; then
13211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13215 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13218 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13315 if test -n "$hardcode_libdir_flag_spec" ||
13316 test -n "$runpath_var" ||
13317 test "X$hardcode_automatic" = "Xyes" ; then
13319 # We can hardcode non-existent directories.
13320 if test "$hardcode_direct" != no &&
13321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13322 # have to relink, otherwise we might link with an installed library
13323 # when we should be linking with a yet-to-be-installed one
13324 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13325 test "$hardcode_minus_L" != no; then
13326 # Linking always hardcodes the temporary library directory.
13327 hardcode_action=relink
13329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13330 hardcode_action=immediate
13333 # We cannot hardcode anything, or else we can only hardcode existing
13335 hardcode_action=unsupported
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13338 $as_echo "$hardcode_action" >&6; }
13340 if test "$hardcode_action" = relink ||
13341 test "$inherit_rpath" = yes; then
13342 # Fast installation is not supported
13343 enable_fast_install=no
13344 elif test "$shlibpath_overrides_runpath" = yes ||
13345 test "$enable_shared" = no; then
13346 # Fast installation is not necessary
13347 enable_fast_install=needless
13355 if test "x$enable_dlopen" != xyes; then
13356 enable_dlopen=unknown
13357 enable_dlopen_self=unknown
13358 enable_dlopen_self_static=unknown
13365 lt_cv_dlopen="load_add_on"
13367 lt_cv_dlopen_self=yes
13370 mingw* | pw32* | cegcc*)
13371 lt_cv_dlopen="LoadLibrary"
13376 lt_cv_dlopen="dlopen"
13381 # if libdl is installed we need to link against it
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13384 if ${ac_cv_lib_dl_dlopen+:} false; then :
13385 $as_echo_n "(cached) " >&6
13387 ac_check_lib_save_LIBS=$LIBS
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13407 if ac_fn_c_try_link "$LINENO"; then :
13408 ac_cv_lib_dl_dlopen=yes
13410 ac_cv_lib_dl_dlopen=no
13412 rm -f core conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13418 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13422 lt_cv_dlopen="dyld"
13424 lt_cv_dlopen_self=yes
13431 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13432 if test "x$ac_cv_func_shl_load" = xyes; then :
13433 lt_cv_dlopen="shl_load"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13436 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13437 if ${ac_cv_lib_dld_shl_load+:} false; then :
13438 $as_echo_n "(cached) " >&6
13440 ac_check_lib_save_LIBS=$LIBS
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13445 /* Override any GCC internal prototype to avoid an error.
13446 Use char because int might match the return type of a GCC
13447 builtin and then its argument prototype would still apply. */
13455 return shl_load ();
13460 if ac_fn_c_try_link "$LINENO"; then :
13461 ac_cv_lib_dld_shl_load=yes
13463 ac_cv_lib_dld_shl_load=no
13465 rm -f core conftest.err conftest.$ac_objext \
13466 conftest$ac_exeext conftest.$ac_ext
13467 LIBS=$ac_check_lib_save_LIBS
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13470 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13471 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13474 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13475 if test "x$ac_cv_func_dlopen" = xyes; then :
13476 lt_cv_dlopen="dlopen"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13480 if ${ac_cv_lib_dl_dlopen+:} false; then :
13481 $as_echo_n "(cached) " >&6
13483 ac_check_lib_save_LIBS=$LIBS
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13488 /* Override any GCC internal prototype to avoid an error.
13489 Use char because int might match the return type of a GCC
13490 builtin and then its argument prototype would still apply. */
13503 if ac_fn_c_try_link "$LINENO"; then :
13504 ac_cv_lib_dl_dlopen=yes
13506 ac_cv_lib_dl_dlopen=no
13508 rm -f core conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
13510 LIBS=$ac_check_lib_save_LIBS
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13514 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13518 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13519 if ${ac_cv_lib_svld_dlopen+:} false; then :
13520 $as_echo_n "(cached) " >&6
13522 ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-lsvld $LIBS"
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13527 /* Override any GCC internal prototype to avoid an error.
13528 Use char because int might match the return type of a GCC
13529 builtin and then its argument prototype would still apply. */
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 ac_cv_lib_svld_dlopen=yes
13545 ac_cv_lib_svld_dlopen=no
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13552 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13553 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13557 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13558 if ${ac_cv_lib_dld_dld_link+:} false; then :
13559 $as_echo_n "(cached) " >&6
13561 ac_check_lib_save_LIBS=$LIBS
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13576 return dld_link ();
13581 if ac_fn_c_try_link "$LINENO"; then :
13582 ac_cv_lib_dld_dld_link=yes
13584 ac_cv_lib_dld_dld_link=no
13586 rm -f core conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13591 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13592 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13593 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13614 if test "x$lt_cv_dlopen" != xno; then
13620 case $lt_cv_dlopen in
13622 save_CPPFLAGS="$CPPFLAGS"
13623 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13625 save_LDFLAGS="$LDFLAGS"
13626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13629 LIBS="$lt_cv_dlopen_libs $LIBS"
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13632 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13633 if ${lt_cv_dlopen_self+:} false; then :
13634 $as_echo_n "(cached) " >&6
13636 if test "$cross_compiling" = yes; then :
13637 lt_cv_dlopen_self=cross
13639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13640 lt_status=$lt_dlunknown
13641 cat > conftest.$ac_ext <<_LT_EOF
13642 #line $LINENO "configure"
13643 #include "confdefs.h"
13652 # define LT_DLGLOBAL RTLD_GLOBAL
13655 # define LT_DLGLOBAL DL_GLOBAL
13657 # define LT_DLGLOBAL 0
13661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13662 find out it does not work in some platform. */
13663 #ifndef LT_DLLAZY_OR_NOW
13665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13668 # define LT_DLLAZY_OR_NOW DL_LAZY
13671 # define LT_DLLAZY_OR_NOW RTLD_NOW
13674 # define LT_DLLAZY_OR_NOW DL_NOW
13676 # define LT_DLLAZY_OR_NOW 0
13683 /* When -fvisbility=hidden is used, assume the code has been annotated
13684 correspondingly for the symbols needed. */
13685 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13686 int fnord () __attribute__((visibility("default")));
13689 int fnord () { return 42; }
13692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13693 int status = $lt_dlunknown;
13697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13700 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13701 else puts (dlerror ());
13703 /* dlclose (self); */
13711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13712 (eval $ac_link) 2>&5
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13716 (./conftest; exit; ) >&5 2>/dev/null
13718 case x$lt_status in
13719 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13720 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13721 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13724 # compilation failed
13725 lt_cv_dlopen_self=no
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13733 $as_echo "$lt_cv_dlopen_self" >&6; }
13735 if test "x$lt_cv_dlopen_self" = xyes; then
13736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13738 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13739 if ${lt_cv_dlopen_self_static+:} false; then :
13740 $as_echo_n "(cached) " >&6
13742 if test "$cross_compiling" = yes; then :
13743 lt_cv_dlopen_self_static=cross
13745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13746 lt_status=$lt_dlunknown
13747 cat > conftest.$ac_ext <<_LT_EOF
13748 #line $LINENO "configure"
13749 #include "confdefs.h"
13758 # define LT_DLGLOBAL RTLD_GLOBAL
13761 # define LT_DLGLOBAL DL_GLOBAL
13763 # define LT_DLGLOBAL 0
13767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13768 find out it does not work in some platform. */
13769 #ifndef LT_DLLAZY_OR_NOW
13771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13774 # define LT_DLLAZY_OR_NOW DL_LAZY
13777 # define LT_DLLAZY_OR_NOW RTLD_NOW
13780 # define LT_DLLAZY_OR_NOW DL_NOW
13782 # define LT_DLLAZY_OR_NOW 0
13789 /* When -fvisbility=hidden is used, assume the code has been annotated
13790 correspondingly for the symbols needed. */
13791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13792 int fnord () __attribute__((visibility("default")));
13795 int fnord () { return 42; }
13798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13799 int status = $lt_dlunknown;
13803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13807 else puts (dlerror ());
13809 /* dlclose (self); */
13817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13818 (eval $ac_link) 2>&5
13820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13822 (./conftest; exit; ) >&5 2>/dev/null
13824 case x$lt_status in
13825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13827 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13830 # compilation failed
13831 lt_cv_dlopen_self_static=no
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13839 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13842 CPPFLAGS="$save_CPPFLAGS"
13843 LDFLAGS="$save_LDFLAGS"
13848 case $lt_cv_dlopen_self in
13849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13850 *) enable_dlopen_self=unknown ;;
13853 case $lt_cv_dlopen_self_static in
13854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13855 *) enable_dlopen_self_static=unknown ;;
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13878 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13879 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13883 $as_echo "yes" >&6; }
13885 # FIXME - insert some real tests, host_os isn't really good enough
13888 if test -n "$STRIP" ; then
13889 striplib="$STRIP -x"
13890 old_striplib="$STRIP -S"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892 $as_echo "yes" >&6; }
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13916 # Report which library types will actually be built
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13918 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13920 $as_echo "$can_build_shared" >&6; }
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13923 $as_echo_n "checking whether to build shared libraries... " >&6; }
13924 test "$can_build_shared" = "no" && enable_shared=no
13926 # On AIX, shared libraries and static libraries use the same namespace, and
13927 # are all built from PIC.
13930 test "$enable_shared" = yes && enable_static=no
13931 if test -n "$RANLIB"; then
13932 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933 postinstall_cmds='$RANLIB $lib'
13938 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13939 test "$enable_shared" = yes && enable_static=no
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13944 $as_echo "$enable_shared" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13947 $as_echo_n "checking whether to build static libraries... " >&6; }
13948 # Make sure either enable_shared or enable_static is yes.
13949 test "$enable_shared" = yes || enable_static=yes
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13951 $as_echo "$enable_static" >&6; }
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13966 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13967 (test "X$CXX" != "Xg++"))) ; then
13969 ac_cpp='$CXXCPP $CPPFLAGS'
13970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13974 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13975 if test -z "$CXXCPP"; then
13976 if ${ac_cv_prog_CXXCPP+:} false; then :
13977 $as_echo_n "(cached) " >&6
13979 # Double quotes because CXXCPP needs to be expanded
13980 for CXXCPP in "$CXX -E" "/lib/cpp"
13982 ac_preproc_ok=false
13983 for ac_cxx_preproc_warn_flag in '' yes
13985 # Use a header file that comes with gcc, so configuring glibc
13986 # with a fresh cross-compiler works.
13987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13988 # <limits.h> exists even on freestanding compilers.
13989 # On the NeXT, cc -E runs the code through the compiler's parser,
13990 # not just through cpp. "Syntax error" is here to catch this case.
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 # include <limits.h>
13996 # include <assert.h>
14000 if ac_fn_cxx_try_cpp "$LINENO"; then :
14003 # Broken: fails on valid input.
14006 rm -f conftest.err conftest.i conftest.$ac_ext
14008 # OK, works on sane cases. Now check whether nonexistent headers
14009 # can be detected and how.
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14012 #include <ac_nonexistent.h>
14014 if ac_fn_cxx_try_cpp "$LINENO"; then :
14015 # Broken: success on invalid input.
14018 # Passes both tests.
14022 rm -f conftest.err conftest.i conftest.$ac_ext
14025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14026 rm -f conftest.i conftest.err conftest.$ac_ext
14027 if $ac_preproc_ok; then :
14032 ac_cv_prog_CXXCPP=$CXXCPP
14035 CXXCPP=$ac_cv_prog_CXXCPP
14037 ac_cv_prog_CXXCPP=$CXXCPP
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14040 $as_echo "$CXXCPP" >&6; }
14041 ac_preproc_ok=false
14042 for ac_cxx_preproc_warn_flag in '' yes
14044 # Use a header file that comes with gcc, so configuring glibc
14045 # with a fresh cross-compiler works.
14046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14047 # <limits.h> exists even on freestanding compilers.
14048 # On the NeXT, cc -E runs the code through the compiler's parser,
14049 # not just through cpp. "Syntax error" is here to catch this case.
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14053 # include <limits.h>
14055 # include <assert.h>
14059 if ac_fn_cxx_try_cpp "$LINENO"; then :
14062 # Broken: fails on valid input.
14065 rm -f conftest.err conftest.i conftest.$ac_ext
14067 # OK, works on sane cases. Now check whether nonexistent headers
14068 # can be detected and how.
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071 #include <ac_nonexistent.h>
14073 if ac_fn_cxx_try_cpp "$LINENO"; then :
14074 # Broken: success on invalid input.
14077 # Passes both tests.
14081 rm -f conftest.err conftest.i conftest.$ac_ext
14084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14085 rm -f conftest.i conftest.err conftest.$ac_ext
14086 if $ac_preproc_ok; then :
14089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14091 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14092 See \`config.log' for more details" "$LINENO" 5; }
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14102 _lt_caught_CXX_error=yes
14106 ac_cpp='$CXXCPP $CPPFLAGS'
14107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14111 archive_cmds_need_lc_CXX=no
14112 allow_undefined_flag_CXX=
14113 always_export_symbols_CXX=no
14114 archive_expsym_cmds_CXX=
14115 compiler_needs_object_CXX=no
14116 export_dynamic_flag_spec_CXX=
14117 hardcode_direct_CXX=no
14118 hardcode_direct_absolute_CXX=no
14119 hardcode_libdir_flag_spec_CXX=
14120 hardcode_libdir_separator_CXX=
14121 hardcode_minus_L_CXX=no
14122 hardcode_shlibpath_var_CXX=unsupported
14123 hardcode_automatic_CXX=no
14124 inherit_rpath_CXX=no
14126 module_expsym_cmds_CXX=
14127 link_all_deplibs_CXX=unknown
14128 old_archive_cmds_CXX=$old_archive_cmds
14129 reload_flag_CXX=$reload_flag
14130 reload_cmds_CXX=$reload_cmds
14131 no_undefined_flag_CXX=
14132 whole_archive_flag_spec_CXX=
14133 enable_shared_with_static_runtimes_CXX=no
14135 # Source file extension for C++ test sources.
14138 # Object file extension for compiled C++ test sources.
14142 # No sense in running all these tests if we already determined that
14143 # the CXX compiler isn't working. Some variables (like enable_shared)
14144 # are currently assumed to apply to all compilers on this platform,
14145 # and will be corrupted by setting them based on a non-working compiler.
14146 if test "$_lt_caught_CXX_error" != yes; then
14147 # Code to be used in simple compile tests
14148 lt_simple_compile_test_code="int some_variable = 0;"
14150 # Code to be used in simple link tests
14151 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14153 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14160 # If no C compiler was specified, use CC.
14163 # If no C compiler flags were specified, use CFLAGS.
14164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14166 # Allow CC to be a program name with arguments.
14170 # save warnings/boilerplate of simple test code
14171 ac_outfile=conftest.$ac_objext
14172 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14174 _lt_compiler_boilerplate=`cat conftest.err`
14177 ac_outfile=conftest.$ac_objext
14178 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14180 _lt_linker_boilerplate=`cat conftest.err`
14184 # Allow CC to be a program name with arguments.
14186 lt_save_CFLAGS=$CFLAGS
14190 lt_save_with_gnu_ld=$with_gnu_ld
14191 lt_save_path_LD=$lt_cv_path_LD
14192 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14193 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14195 $as_unset lt_cv_prog_gnu_ld
14197 if test -n "${lt_cv_path_LDCXX+set}"; then
14198 lt_cv_path_LD=$lt_cv_path_LDCXX
14200 $as_unset lt_cv_path_LD
14202 test -z "${LDCXX+set}" || LD=$LDCXX
14207 for cc_temp in $compiler""; do
14209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14215 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14218 if test -n "$compiler"; then
14219 # We don't want -fno-exception when compiling C++ code, so set the
14220 # no_builtin_flag separately
14221 if test "$GXX" = yes; then
14222 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14224 lt_prog_compiler_no_builtin_flag_CXX=
14227 if test "$GXX" = yes; then
14228 # Set up default GNU C++ configuration
14232 # Check whether --with-gnu-ld was given.
14233 if test "${with_gnu_ld+set}" = set; then :
14234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14240 if test "$GCC" = yes; then
14241 # Check if gcc -print-prog-name=ld gives a path.
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14243 $as_echo_n "checking for ld used by $CC... " >&6; }
14246 # gcc leaves a trailing carriage return which upsets mingw
14247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14252 # Accept absolute paths.
14254 re_direlt='/[^/][^/]*/\.\./'
14255 # Canonicalize the pathname of ld
14256 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14257 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14258 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14260 test -z "$LD" && LD="$ac_prog"
14263 # If it fails, then pretend we aren't using GCC.
14267 # If it is relative, then search for the first ld in PATH.
14268 with_gnu_ld=unknown
14271 elif test "$with_gnu_ld" = yes; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14273 $as_echo_n "checking for GNU ld... " >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14276 $as_echo_n "checking for non-GNU ld... " >&6; }
14278 if ${lt_cv_path_LD+:} false; then :
14279 $as_echo_n "(cached) " >&6
14281 if test -z "$LD"; then
14282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14283 for ac_dir in $PATH; do
14285 test -z "$ac_dir" && ac_dir=.
14286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287 lt_cv_path_LD="$ac_dir/$ac_prog"
14288 # Check to see if the program is GNU ld. I'd rather use --version,
14289 # but apparently some variants of GNU ld only accept -v.
14290 # Break only if it was the GNU/non-GNU ld that we prefer.
14291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14292 *GNU* | *'with BFD'*)
14293 test "$with_gnu_ld" != no && break
14296 test "$with_gnu_ld" != yes && break
14303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14307 LD="$lt_cv_path_LD"
14308 if test -n "$LD"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14310 $as_echo "$LD" >&6; }
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14318 if ${lt_cv_prog_gnu_ld+:} false; then :
14319 $as_echo_n "(cached) " >&6
14321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14322 case `$LD -v 2>&1 </dev/null` in
14323 *GNU* | *'with BFD'*)
14324 lt_cv_prog_gnu_ld=yes
14327 lt_cv_prog_gnu_ld=no
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14332 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14333 with_gnu_ld=$lt_cv_prog_gnu_ld
14341 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14342 # archiving commands below assume that GNU ld is being used.
14343 if test "$with_gnu_ld" = yes; then
14344 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345 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'
14347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14350 # If archive_cmds runs LD, not CC, wlarc should be empty
14351 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14352 # investigate it a little bit more. (MM)
14355 # ancient GNU ld didn't support --whole-archive et. al.
14356 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14357 $GREP 'no-whole-archive' > /dev/null; then
14358 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360 whole_archive_flag_spec_CXX=
14366 # A generic and very simple default shared library creation
14367 # command for GNU C++ for the case where it uses the native
14368 # linker, instead of GNU ld. If possible, this setting should
14369 # overridden to take advantage of the native linker features on
14370 # the platform it is being used on.
14371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14374 # Commands to make compiler produce verbose output that lists
14375 # what "hidden" libraries, object files and flags are used when
14376 # linking a shared library.
14377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14385 # PORTME: fill in a description of your system's C++ link characteristics
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14391 # FIXME: insert proper C++ library support
14395 if test "$host_cpu" = ia64; then
14396 # On IA64, the linker does run time linking by default, so we don't
14397 # have to do anything special.
14398 aix_use_runtimelinking=no
14399 exp_sym_flag='-Bexport'
14402 aix_use_runtimelinking=no
14404 # Test if we are trying to use run time linking or normal
14405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14406 # need to do runtime linking.
14407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14408 for ld_flag in $LDFLAGS; do
14411 aix_use_runtimelinking=yes
14419 exp_sym_flag='-bexport'
14420 no_entry_flag='-bnoentry'
14423 # When large executables or shared objects are built, AIX ld can
14424 # have problems creating the table of contents. If linking a library
14425 # or program results in "error TOC overflow" add -mminimal-toc to
14426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14429 archive_cmds_CXX=''
14430 hardcode_direct_CXX=yes
14431 hardcode_direct_absolute_CXX=yes
14432 hardcode_libdir_separator_CXX=':'
14433 link_all_deplibs_CXX=yes
14434 file_list_spec_CXX='${wl}-f,'
14436 if test "$GXX" = yes; then
14437 case $host_os in aix4.[012]|aix4.[012].*)
14438 # We only want to do this on AIX 4.2 and lower, the check
14439 # below for broken collect2 doesn't work under 4.3+
14440 collect2name=`${CC} -print-prog-name=collect2`
14441 if test -f "$collect2name" &&
14442 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14444 # We have reworked collect2
14447 # We have old collect2
14448 hardcode_direct_CXX=unsupported
14449 # It fails to find uninstalled libraries when the uninstalled
14450 # path is not listed in the libpath. Setting hardcode_minus_L
14451 # to unsupported forces relinking
14452 hardcode_minus_L_CXX=yes
14453 hardcode_libdir_flag_spec_CXX='-L$libdir'
14454 hardcode_libdir_separator_CXX=
14457 shared_flag='-shared'
14458 if test "$aix_use_runtimelinking" = yes; then
14459 shared_flag="$shared_flag "'${wl}-G'
14463 if test "$host_cpu" = ia64; then
14464 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14465 # chokes on -Wl,-G. The following line is correct:
14468 if test "$aix_use_runtimelinking" = yes; then
14469 shared_flag='${wl}-G'
14471 shared_flag='${wl}-bM:SRE'
14476 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14477 # It seems that -bexpall does not export symbols beginning with
14478 # underscore (_), so it is better to generate a list of symbols to
14480 always_export_symbols_CXX=yes
14481 if test "$aix_use_runtimelinking" = yes; then
14482 # Warning - without using the other runtime loading flags (-brtl),
14483 # -berok will link without error, but may produce a broken library.
14484 allow_undefined_flag_CXX='-berok'
14485 # Determine the default libpath from the value encoded in an empty
14487 if test "${lt_cv_aix_libpath+set}" = set; then
14488 aix_libpath=$lt_cv_aix_libpath
14490 if ${lt_cv_aix_libpath__CXX+:} false; then :
14491 $as_echo_n "(cached) " >&6
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14504 if ac_fn_cxx_try_link "$LINENO"; then :
14506 lt_aix_libpath_sed='
14507 /Import File Strings/,/^$/ {
14509 s/^0 *\([^ ]*\) *$/\1/
14513 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14514 # Check for a 64-bit object if we didn't find anything.
14515 if test -z "$lt_cv_aix_libpath__CXX"; then
14516 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14519 rm -f core conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14521 if test -z "$lt_cv_aix_libpath__CXX"; then
14522 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14527 aix_libpath=$lt_cv_aix_libpath__CXX
14530 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14532 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"
14534 if test "$host_cpu" = ia64; then
14535 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14536 allow_undefined_flag_CXX="-z nodefs"
14537 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"
14539 # Determine the default libpath from the value encoded in an
14540 # empty executable.
14541 if test "${lt_cv_aix_libpath+set}" = set; then
14542 aix_libpath=$lt_cv_aix_libpath
14544 if ${lt_cv_aix_libpath__CXX+:} false; then :
14545 $as_echo_n "(cached) " >&6
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14558 if ac_fn_cxx_try_link "$LINENO"; then :
14560 lt_aix_libpath_sed='
14561 /Import File Strings/,/^$/ {
14563 s/^0 *\([^ ]*\) *$/\1/
14567 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14568 # Check for a 64-bit object if we didn't find anything.
14569 if test -z "$lt_cv_aix_libpath__CXX"; then
14570 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 if test -z "$lt_cv_aix_libpath__CXX"; then
14576 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14581 aix_libpath=$lt_cv_aix_libpath__CXX
14584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14585 # Warning - without using the other run time loading flags,
14586 # -berok will link without error, but may produce a broken library.
14587 no_undefined_flag_CXX=' ${wl}-bernotok'
14588 allow_undefined_flag_CXX=' ${wl}-berok'
14589 if test "$with_gnu_ld" = yes; then
14590 # We only use this code for GNU lds that support --whole-archive.
14591 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14593 # Exported symbols can be pulled into shared objects from archives
14594 whole_archive_flag_spec_CXX='$convenience'
14596 archive_cmds_need_lc_CXX=yes
14597 # This is similar to how AIX traditionally builds its shared
14599 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'
14605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14606 allow_undefined_flag_CXX=unsupported
14607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14608 # support --undefined. This deserves some investigation. FIXME
14609 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14616 case $cc_basename in
14618 # FIXME: insert proper C++ library support
14624 cygwin* | mingw* | pw32* | cegcc*)
14625 case $GXX,$cc_basename in
14628 # hardcode_libdir_flag_spec is actually meaningless, as there is
14629 # no search path for DLLs.
14630 hardcode_libdir_flag_spec_CXX=' '
14631 allow_undefined_flag_CXX=unsupported
14632 always_export_symbols_CXX=yes
14633 file_list_spec_CXX='@'
14634 # Tell ltmain to make .lib files, not .a files.
14636 # Tell ltmain to make .dll files, not .so files.
14638 # FIXME: Setting linknames here is a bad hack.
14639 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14640 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14641 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14643 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14645 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14647 # The linker will not automatically build a static lib if we build a DLL.
14648 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14649 enable_shared_with_static_runtimes_CXX=yes
14651 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14652 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14653 lt_tool_outputfile="@TOOL_OUTPUT@"~
14654 case $lt_outputfile in
14657 lt_outputfile="$lt_outputfile.exe"
14658 lt_tool_outputfile="$lt_tool_outputfile.exe"
14661 func_to_tool_file "$lt_outputfile"~
14662 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14663 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14664 $RM "$lt_outputfile.manifest";
14669 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14670 # as there is no search path for DLLs.
14671 hardcode_libdir_flag_spec_CXX='-L$libdir'
14672 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14673 allow_undefined_flag_CXX=unsupported
14674 always_export_symbols_CXX=no
14675 enable_shared_with_static_runtimes_CXX=yes
14677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14678 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'
14679 # If the export-symbols file already is a .def file (1st line
14680 # is EXPORTS), use it as is; otherwise, prepend...
14681 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14682 cp $export_symbols $output_objdir/$soname.def;
14684 echo EXPORTS > $output_objdir/$soname.def;
14685 cat $export_symbols >> $output_objdir/$soname.def;
14687 $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'
14694 darwin* | rhapsody*)
14697 archive_cmds_need_lc_CXX=no
14698 hardcode_direct_CXX=no
14699 hardcode_automatic_CXX=yes
14700 hardcode_shlibpath_var_CXX=unsupported
14701 if test "$lt_cv_ld_force_load" = "yes"; then
14702 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\"`'
14705 whole_archive_flag_spec_CXX=''
14707 link_all_deplibs_CXX=yes
14708 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14709 case $cc_basename in
14710 ifort*) _lt_dar_can_shared=yes ;;
14711 *) _lt_dar_can_shared=$GCC ;;
14713 if test "$_lt_dar_can_shared" = "yes"; then
14714 output_verbose_link_cmd=func_echo_all
14715 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}"
14716 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14717 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}"
14718 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}"
14719 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14720 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}"
14721 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}"
14731 case $cc_basename in
14733 # FIXME: insert proper C++ library support
14737 # Green Hills C++ Compiler
14738 # FIXME: insert proper C++ library support
14742 # FIXME: insert proper C++ library support
14749 # C++ shared libraries reported to be fairly broken before
14755 archive_cmds_need_lc_CXX=no
14758 freebsd* | dragonfly*)
14759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14768 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 link_all_deplibs_CXX=yes
14773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14774 hardcode_libdir_separator_CXX=:
14775 export_dynamic_flag_spec_CXX='${wl}-E'
14776 hardcode_direct_CXX=yes
14777 hardcode_minus_L_CXX=yes # Not in the search PATH,
14778 # but as the default
14779 # location of the library.
14781 case $cc_basename in
14783 # FIXME: insert proper C++ library support
14787 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'
14788 # Commands to make compiler produce verbose output that lists
14789 # what "hidden" libraries, object files and flags are used when
14790 # linking a shared library.
14792 # There doesn't appear to be a way to prevent this compiler from
14793 # explicitly linking system object files so we need to strip them
14794 # from the output so that they don't get included in the library
14796 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"'
14799 if test "$GXX" = yes; then
14800 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'
14802 # FIXME: insert proper C++ library support
14810 if test $with_gnu_ld = no; then
14811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14812 hardcode_libdir_separator_CXX=:
14818 export_dynamic_flag_spec_CXX='${wl}-E'
14824 hardcode_direct_CXX=no
14825 hardcode_shlibpath_var_CXX=no
14828 hardcode_direct_CXX=yes
14829 hardcode_direct_absolute_CXX=yes
14830 hardcode_minus_L_CXX=yes # Not in the search PATH,
14831 # but as the default
14832 # location of the library.
14836 case $cc_basename in
14838 # FIXME: insert proper C++ library support
14844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14853 # Commands to make compiler produce verbose output that lists
14854 # what "hidden" libraries, object files and flags are used when
14855 # linking a shared library.
14857 # There doesn't appear to be a way to prevent this compiler from
14858 # explicitly linking system object files so we need to strip them
14859 # from the output so that they don't get included in the library
14861 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"'
14864 if test "$GXX" = yes; then
14865 if test $with_gnu_ld = no; then
14868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14871 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14874 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'
14879 # FIXME: insert proper C++ library support
14887 hardcode_direct_CXX=no
14888 hardcode_shlibpath_var_CXX=no
14889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec_CXX='${wl}-E'
14891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14892 # Instead, shared libraries are loaded at an image base (0x10000000 by
14893 # default) and relocated if they conflict, which is a slow very memory
14894 # consuming and fragmenting process. To avoid this, we pick a random,
14895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14897 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'
14898 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'
14901 case $cc_basename in
14904 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'
14906 # Archives containing C++ object files must be created using
14907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14908 # necessary to make sure instantiated templates are included
14910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14913 if test "$GXX" = yes; then
14914 if test "$with_gnu_ld" = no; then
14915 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'
14917 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'
14920 link_all_deplibs_CXX=yes
14923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14924 hardcode_libdir_separator_CXX=:
14925 inherit_rpath_CXX=yes
14928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14929 case $cc_basename in
14931 # Kuck and Associates, Inc. (KAI) C++ Compiler
14933 # KCC will only create a shared library if the output file
14934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14935 # to its proper name (with version) after linking.
14936 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'
14937 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'
14938 # Commands to make compiler produce verbose output that lists
14939 # what "hidden" libraries, object files and flags are used when
14940 # linking a shared library.
14942 # There doesn't appear to be a way to prevent this compiler from
14943 # explicitly linking system object files so we need to strip them
14944 # from the output so that they don't get included in the library
14946 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"'
14948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14951 # Archives containing C++ object files must be created using
14952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14958 # version 8.0 and above of icpc choke on multiply defined symbols
14959 # if we add $predep_objects and $postdep_objects, however 7.1 and
14960 # earlier do not add the objects themselves.
14961 case `$CC -V 2>&1` in
14963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964 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'
14966 *) # Version 8.0 or newer
14969 ia64*) tmp_idyn=' -i_dynamic';;
14971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972 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'
14975 archive_cmds_need_lc_CXX=no
14976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14981 # Portland Group C++ compiler
14983 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14984 prelink_cmds_CXX='tpldir=Template.dir~
14986 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14987 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14988 old_archive_cmds_CXX='tpldir=Template.dir~
14990 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14991 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14993 archive_cmds_CXX='tpldir=Template.dir~
14995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14996 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14997 archive_expsym_cmds_CXX='tpldir=Template.dir~
14999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15000 $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'
15002 *) # Version 6 and above use weak symbols
15003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15004 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'
15008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15010 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'
15014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015 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'
15017 runpath_var=LD_RUN_PATH
15018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15019 hardcode_libdir_separator_CXX=:
15021 # Commands to make compiler produce verbose output that lists
15022 # what "hidden" libraries, object files and flags are used when
15023 # linking a shared library.
15025 # There doesn't appear to be a way to prevent this compiler from
15026 # explicitly linking system object files so we need to strip them
15027 # from the output so that they don't get included in the library
15029 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'
15031 xl* | mpixl* | bgxl*)
15032 # IBM XL 8.0 on PPC, with GNU ld
15033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15035 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036 if test "x$supports_anon_versioning" = xyes; then
15037 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15039 echo "local: *; };" >> $output_objdir/$libname.ver~
15040 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15044 case `$CC -V 2>&1 | sed 5q` in
15047 no_undefined_flag_CXX=' -zdefs'
15048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15049 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'
15050 hardcode_libdir_flag_spec_CXX='-R$libdir'
15051 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'
15052 compiler_needs_object_CXX=yes
15054 # Not sure whether something based on
15055 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15057 output_verbose_link_cmd='func_echo_all'
15059 # Archives containing C++ object files must be created using
15060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15061 # necessary to make sure instantiated templates are included
15063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15071 # FIXME: insert proper C++ library support
15076 # FIXME: insert proper C++ library support
15081 case $cc_basename in
15083 # FIXME: insert proper C++ library support
15087 # FIXME: insert proper C++ library support
15094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15095 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15097 hardcode_libdir_flag_spec_CXX='-R$libdir'
15098 hardcode_direct_CXX=yes
15099 hardcode_shlibpath_var_CXX=no
15101 # Workaround some broken pre-1.5 toolchains
15102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15110 # C++ shared libraries are fairly broken
15115 if test -f /usr/libexec/ld.so; then
15116 hardcode_direct_CXX=yes
15117 hardcode_shlibpath_var_CXX=no
15118 hardcode_direct_absolute_CXX=yes
15119 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15122 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15123 export_dynamic_flag_spec_CXX='${wl}-E'
15124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15126 output_verbose_link_cmd=func_echo_all
15132 osf3* | osf4* | osf5*)
15133 case $cc_basename in
15135 # Kuck and Associates, Inc. (KAI) C++ Compiler
15137 # KCC will only create a shared library if the output file
15138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15139 # to its proper name (with version) after linking.
15140 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'
15142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15143 hardcode_libdir_separator_CXX=:
15145 # Archives containing C++ object files must be created using
15146 # the KAI C++ compiler.
15148 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15149 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15153 # Rational C++ 2.4.1
15154 # FIXME: insert proper C++ library support
15160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15161 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'
15162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15165 allow_undefined_flag_CXX=' -expect_unresolved \*'
15166 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'
15167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15168 echo "-hidden">> $lib.exp~
15169 $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~
15171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15175 hardcode_libdir_separator_CXX=:
15177 # Commands to make compiler produce verbose output that lists
15178 # what "hidden" libraries, object files and flags are used when
15179 # linking a shared library.
15181 # There doesn't appear to be a way to prevent this compiler from
15182 # explicitly linking system object files so we need to strip them
15183 # from the output so that they don't get included in the library
15185 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"'
15188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15192 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'
15195 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'
15199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15200 hardcode_libdir_separator_CXX=:
15202 # Commands to make compiler produce verbose output that lists
15203 # what "hidden" libraries, object files and flags are used when
15204 # linking a shared library.
15205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15208 # FIXME: insert proper C++ library support
15216 # FIXME: insert proper C++ library support
15221 case $cc_basename in
15224 # FIXME: insert proper C++ library support
15229 # FIXME: insert proper C++ library support
15233 # FIXME: insert proper C++ library support
15240 case $cc_basename in
15242 # Sun C++ 4.2, 5.x and Centerline C++
15243 archive_cmds_need_lc_CXX=yes
15244 no_undefined_flag_CXX=' -zdefs'
15245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15247 $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'
15249 hardcode_libdir_flag_spec_CXX='-R$libdir'
15250 hardcode_shlibpath_var_CXX=no
15252 solaris2.[0-5] | solaris2.[0-5].*) ;;
15254 # The compiler driver will combine and reorder linker options,
15255 # but understands `-z linker_flag'.
15256 # Supported since Solaris 2.6 (maybe 2.5.1?)
15257 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15260 link_all_deplibs_CXX=yes
15262 output_verbose_link_cmd='func_echo_all'
15264 # Archives containing C++ object files must be created using
15265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15266 # necessary to make sure instantiated templates are included
15268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15271 # Green Hills C++ Compiler
15272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15274 # The C++ compiler must be used to create the archive.
15275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15278 # GNU C++ compiler with Solaris linker
15279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15282 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15283 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15284 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15286 # Commands to make compiler produce verbose output that lists
15287 # what "hidden" libraries, object files and flags are used when
15288 # linking a shared library.
15289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15294 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15297 # Commands to make compiler produce verbose output that lists
15298 # what "hidden" libraries, object files and flags are used when
15299 # linking a shared library.
15300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15305 solaris2.[0-5] | solaris2.[0-5].*) ;;
15307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15316 no_undefined_flag_CXX='${wl}-z,text'
15317 archive_cmds_need_lc_CXX=no
15318 hardcode_shlibpath_var_CXX=no
15319 runpath_var='LD_RUN_PATH'
15321 case $cc_basename in
15323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15333 sysv5* | sco3.2v5* | sco5v6*)
15334 # Note: We can NOT use -z defs as we might desire, because we do not
15335 # link with -lc, and that would cause any symbols used from libc to
15336 # always be unresolved, which means just about no library would
15337 # ever link correctly. If we're not using GNU ld we use -z text
15338 # though, which does catch some bad symbols but isn't as heavy-handed
15340 no_undefined_flag_CXX='${wl}-z,text'
15341 allow_undefined_flag_CXX='${wl}-z,nodefs'
15342 archive_cmds_need_lc_CXX=no
15343 hardcode_shlibpath_var_CXX=no
15344 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15345 hardcode_libdir_separator_CXX=':'
15346 link_all_deplibs_CXX=yes
15347 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15348 runpath_var='LD_RUN_PATH'
15350 case $cc_basename in
15352 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15353 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15354 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15355 '"$old_archive_cmds_CXX"
15356 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15357 '"$reload_cmds_CXX"
15360 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15367 case $cc_basename in
15369 # NonStop-UX NCC 3.20
15370 # FIXME: insert proper C++ library support
15374 # FIXME: insert proper C++ library support
15381 # FIXME: insert proper C++ library support
15386 # FIXME: insert proper C++ library support
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15392 $as_echo "$ld_shlibs_CXX" >&6; }
15393 test "$ld_shlibs_CXX" = no && can_build_shared=no
15399 ## There is no encapsulation within the following macros, do not change
15400 ## the running order or otherwise move them around unless you know exactly
15401 ## what you are doing...
15402 # Dependencies to place before and after the object being linked:
15403 predep_objects_CXX=
15404 postdep_objects_CXX=
15407 compiler_lib_search_path_CXX=
15409 cat > conftest.$ac_ext <<_LT_EOF
15413 Foo (void) { a = 0; }
15420 _lt_libdeps_save_CFLAGS=$CFLAGS
15421 case "$CC $CFLAGS " in #(
15422 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15423 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15424 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15428 (eval $ac_compile) 2>&5
15430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431 test $ac_status = 0; }; then
15432 # Parse the compiler output and extract the necessary
15433 # objects, libraries and library flags.
15435 # Sentinel used to keep track of whether or not we are before
15436 # the conftest object file.
15437 pre_test_object_deps_done=no
15439 for p in `eval "$output_verbose_link_cmd"`; do
15440 case ${prev}${p} in
15443 # Some compilers place space between "-{L,R}" and the path.
15444 # Remove the space.
15445 if test $p = "-L" ||
15446 test $p = "-R"; then
15451 # Expand the sysroot to ease extracting the directories later.
15452 if test -z "$prev"; then
15454 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15455 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15456 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15460 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15462 if test "$pre_test_object_deps_done" = no; then
15465 # Internal compiler library paths should come after those
15466 # provided the user. The postdeps already come after the
15467 # user supplied libs so there is no need to process them.
15468 if test -z "$compiler_lib_search_path_CXX"; then
15469 compiler_lib_search_path_CXX="${prev}${p}"
15471 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15474 # The "-l" case would never come before the object being
15475 # linked, so don't bother handling this case.
15478 if test -z "$postdeps_CXX"; then
15479 postdeps_CXX="${prev}${p}"
15481 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15487 *.lto.$objext) ;; # Ignore GCC LTO objects
15489 # This assumes that the test object file only shows up
15490 # once in the compiler output.
15491 if test "$p" = "conftest.$objext"; then
15492 pre_test_object_deps_done=yes
15496 if test "$pre_test_object_deps_done" = no; then
15497 if test -z "$predep_objects_CXX"; then
15498 predep_objects_CXX="$p"
15500 predep_objects_CXX="$predep_objects_CXX $p"
15503 if test -z "$postdep_objects_CXX"; then
15504 postdep_objects_CXX="$p"
15506 postdep_objects_CXX="$postdep_objects_CXX $p"
15511 *) ;; # Ignore the rest.
15519 echo "libtool.m4: error: problem compiling CXX test program"
15522 $RM -f confest.$objext
15523 CFLAGS=$_lt_libdeps_save_CFLAGS
15525 # PORTME: override above test on systems where it is broken
15528 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15529 # hack all around it, let's just trust "g++" to DTRT.
15530 predep_objects_CXX=
15531 postdep_objects_CXX=
15536 case `$CC -V 2>&1 | sed 5q` in
15540 # The more standards-conforming stlport4 library is
15541 # incompatible with the Cstd library. Avoid specifying
15542 # it if it's in CXXFLAGS. Ignore libCrun as
15543 # -library=stlport4 depends on it.
15544 case " $CXX $CXXFLAGS " in
15545 *" -library=stlport4 "*)
15546 solaris_use_stlport4=yes
15550 if test "$solaris_use_stlport4" != yes; then
15551 postdeps_CXX='-library=Cstd -library=Crun'
15558 case $cc_basename in
15560 # The more standards-conforming stlport4 library is
15561 # incompatible with the Cstd library. Avoid specifying
15562 # it if it's in CXXFLAGS. Ignore libCrun as
15563 # -library=stlport4 depends on it.
15564 case " $CXX $CXXFLAGS " in
15565 *" -library=stlport4 "*)
15566 solaris_use_stlport4=yes
15570 # Adding this requires a known-good setup of shared libraries for
15571 # Sun compiler versions before 5.6, else PIC objects from an old
15572 # archive will be linked into the output, leading to subtle bugs.
15573 if test "$solaris_use_stlport4" != yes; then
15574 postdeps_CXX='-library=Cstd -library=Crun'
15582 case " $postdeps_CXX " in
15583 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15585 compiler_lib_search_dirs_CXX=
15586 if test -n "${compiler_lib_search_path_CXX}"; then
15587 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15620 lt_prog_compiler_wl_CXX=
15621 lt_prog_compiler_pic_CXX=
15622 lt_prog_compiler_static_CXX=
15625 # C++ specific cases for pic, static, wl, etc.
15626 if test "$GXX" = yes; then
15627 lt_prog_compiler_wl_CXX='-Wl,'
15628 lt_prog_compiler_static_CXX='-static'
15632 # All AIX code is PIC.
15633 if test "$host_cpu" = ia64; then
15634 # AIX 5 now supports IA64 processor
15635 lt_prog_compiler_static_CXX='-Bstatic'
15642 # see comment about AmigaOS4 .so support
15643 lt_prog_compiler_pic_CXX='-fPIC'
15646 # FIXME: we need at least 68020 code to build shared libraries, but
15647 # adding the `-m68020' flag to GCC prevents building anything better,
15649 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15654 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15655 # PIC is the default for these OSes.
15657 mingw* | cygwin* | os2* | pw32* | cegcc*)
15658 # This hack is so that the source file can tell whether it is being
15659 # built for inclusion in a dll (and should export symbols for example).
15660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15661 # (--disable-auto-import) libraries
15662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15664 darwin* | rhapsody*)
15665 # PIC is the default on this platform
15666 # Common symbols not allowed in MH_DYLIB files
15667 lt_prog_compiler_pic_CXX='-fno-common'
15670 # DJGPP does not support shared libraries at all
15671 lt_prog_compiler_pic_CXX=
15674 # PIC is the default for Haiku.
15675 # The "-static" flag exists, but is broken.
15676 lt_prog_compiler_static_CXX=
15679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15680 # Instead, we relocate shared libraries at runtime.
15683 if test -d /usr/nec; then
15684 lt_prog_compiler_pic_CXX=-Kconform_pic
15688 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15689 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15690 # sets the default TLS model and affects inlining.
15695 lt_prog_compiler_pic_CXX='-fPIC'
15700 # QNX uses GNU C++, but need to define -shared option too, otherwise
15701 # it will coredump.
15702 lt_prog_compiler_pic_CXX='-fPIC -shared'
15705 lt_prog_compiler_pic_CXX='-fPIC'
15711 # All AIX code is PIC.
15712 if test "$host_cpu" = ia64; then
15713 # AIX 5 now supports IA64 processor
15714 lt_prog_compiler_static_CXX='-Bstatic'
15716 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15720 case $cc_basename in
15722 # Green Hills C++ Compiler
15723 # _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"
15727 mingw* | cygwin* | os2* | pw32* | cegcc*)
15728 # This hack is so that the source file can tell whether it is being
15729 # built for inclusion in a dll (and should export symbols for example).
15730 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15733 case $cc_basename in
15735 lt_prog_compiler_pic_CXX='-KPIC'
15738 # Green Hills C++ Compiler
15739 lt_prog_compiler_pic_CXX='-pic'
15745 freebsd* | dragonfly*)
15746 # FreeBSD uses GNU C++
15748 hpux9* | hpux10* | hpux11*)
15749 case $cc_basename in
15751 lt_prog_compiler_wl_CXX='-Wl,'
15752 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15753 if test "$host_cpu" != ia64; then
15754 lt_prog_compiler_pic_CXX='+Z'
15758 lt_prog_compiler_wl_CXX='-Wl,'
15759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15765 lt_prog_compiler_pic_CXX='+Z'
15774 # This is c89, which is MS Visual C++ (no shared libs)
15775 # Anyone wants to do a port?
15777 irix5* | irix6* | nonstopux*)
15778 case $cc_basename in
15780 lt_prog_compiler_wl_CXX='-Wl,'
15781 lt_prog_compiler_static_CXX='-non_shared'
15782 # CC pic flag -KPIC is the default.
15788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15789 case $cc_basename in
15792 lt_prog_compiler_wl_CXX='--backend -Wl,'
15793 lt_prog_compiler_pic_CXX='-fPIC'
15796 # old Intel C++ for x86_64 which still supported -KPIC.
15797 lt_prog_compiler_wl_CXX='-Wl,'
15798 lt_prog_compiler_pic_CXX='-KPIC'
15799 lt_prog_compiler_static_CXX='-static'
15802 # Intel C++, used to be incompatible with GCC.
15803 # ICC 10 doesn't accept -KPIC any more.
15804 lt_prog_compiler_wl_CXX='-Wl,'
15805 lt_prog_compiler_pic_CXX='-fPIC'
15806 lt_prog_compiler_static_CXX='-static'
15809 # Portland Group C++ compiler
15810 lt_prog_compiler_wl_CXX='-Wl,'
15811 lt_prog_compiler_pic_CXX='-fpic'
15812 lt_prog_compiler_static_CXX='-Bstatic'
15816 # Make sure the PIC flag is empty. It appears that all Alpha
15817 # Linux and Compaq Tru64 Unix objects are PIC.
15818 lt_prog_compiler_pic_CXX=
15819 lt_prog_compiler_static_CXX='-non_shared'
15821 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15822 # IBM XL 8.0, 9.0 on PPC and BlueGene
15823 lt_prog_compiler_wl_CXX='-Wl,'
15824 lt_prog_compiler_pic_CXX='-qpic'
15825 lt_prog_compiler_static_CXX='-qstaticlink'
15828 case `$CC -V 2>&1 | sed 5q` in
15831 lt_prog_compiler_pic_CXX='-KPIC'
15832 lt_prog_compiler_static_CXX='-Bstatic'
15833 lt_prog_compiler_wl_CXX='-Qoption ld '
15844 case $cc_basename in
15846 lt_prog_compiler_pic_CXX='-W c,exportall'
15852 netbsd* | netbsdelf*-gnu)
15855 # QNX uses GNU C++, but need to define -shared option too, otherwise
15856 # it will coredump.
15857 lt_prog_compiler_pic_CXX='-fPIC -shared'
15859 osf3* | osf4* | osf5*)
15860 case $cc_basename in
15862 lt_prog_compiler_wl_CXX='--backend -Wl,'
15865 # Rational C++ 2.4.1
15866 lt_prog_compiler_pic_CXX='-pic'
15869 # Digital/Compaq C++
15870 lt_prog_compiler_wl_CXX='-Wl,'
15871 # Make sure the PIC flag is empty. It appears that all Alpha
15872 # Linux and Compaq Tru64 Unix objects are PIC.
15873 lt_prog_compiler_pic_CXX=
15874 lt_prog_compiler_static_CXX='-non_shared'
15883 case $cc_basename in
15885 # Sun C++ 4.2, 5.x and Centerline C++
15886 lt_prog_compiler_pic_CXX='-KPIC'
15887 lt_prog_compiler_static_CXX='-Bstatic'
15888 lt_prog_compiler_wl_CXX='-Qoption ld '
15891 # Green Hills C++ Compiler
15892 lt_prog_compiler_pic_CXX='-PIC'
15899 case $cc_basename in
15902 lt_prog_compiler_pic_CXX='-pic'
15903 lt_prog_compiler_static_CXX='-Bstatic'
15907 lt_prog_compiler_pic_CXX='-pic'
15913 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15914 case $cc_basename in
15916 lt_prog_compiler_wl_CXX='-Wl,'
15917 lt_prog_compiler_pic_CXX='-KPIC'
15918 lt_prog_compiler_static_CXX='-Bstatic'
15923 case $cc_basename in
15925 # NonStop-UX NCC 3.20
15926 lt_prog_compiler_pic_CXX='-KPIC'
15935 lt_prog_compiler_can_build_shared_CXX=no
15941 # For platforms which do not support PIC, -DPIC is meaningless:
15943 lt_prog_compiler_pic_CXX=
15946 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15951 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15952 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15953 $as_echo_n "(cached) " >&6
15955 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15958 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15959 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15962 # Check to make sure the PIC flag actually works.
15964 if test -n "$lt_prog_compiler_pic_CXX"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15967 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15968 $as_echo_n "(cached) " >&6
15970 lt_cv_prog_compiler_pic_works_CXX=no
15971 ac_outfile=conftest.$ac_objext
15972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15973 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15974 # Insert the option either (1) after the last *FLAGS variable, or
15975 # (2) before a word containing "conftest.", or (3) at the end.
15976 # Note that $ac_compile itself does not contain backslashes and begins
15977 # with a dollar sign (not a hyphen), so the echo should work correctly.
15978 # The option is referenced via a variable to avoid confusing sed.
15979 lt_compile=`echo "$ac_compile" | $SED \
15980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15982 -e 's:$: $lt_compiler_flag:'`
15983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15984 (eval "$lt_compile" 2>conftest.err)
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 if (exit $ac_status) && test -s "$ac_outfile"; then
15989 # The compiler can only warn and ignore the option if not recognized
15990 # So say no if there are warnings other than the usual output.
15991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15994 lt_cv_prog_compiler_pic_works_CXX=yes
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16001 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16003 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16004 case $lt_prog_compiler_pic_CXX in
16006 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16009 lt_prog_compiler_pic_CXX=
16010 lt_prog_compiler_can_build_shared_CXX=no
16020 # Check to make sure the static flag actually works.
16022 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16024 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16025 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16026 $as_echo_n "(cached) " >&6
16028 lt_cv_prog_compiler_static_works_CXX=no
16029 save_LDFLAGS="$LDFLAGS"
16030 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16031 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16032 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16033 # The linker can only warn and ignore the option if not recognized
16034 # So say no if there are warnings
16035 if test -s conftest.err; then
16036 # Append any errors to the config.log.
16037 cat conftest.err 1>&5
16038 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16040 if diff conftest.exp conftest.er2 >/dev/null; then
16041 lt_cv_prog_compiler_static_works_CXX=yes
16044 lt_cv_prog_compiler_static_works_CXX=yes
16048 LDFLAGS="$save_LDFLAGS"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16052 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16054 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16057 lt_prog_compiler_static_CXX=
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16065 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16066 $as_echo_n "(cached) " >&6
16068 lt_cv_prog_compiler_c_o_CXX=no
16069 $RM -r conftest 2>/dev/null
16073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16075 lt_compiler_flag="-o out/conftest2.$ac_objext"
16076 # Insert the option either (1) after the last *FLAGS variable, or
16077 # (2) before a word containing "conftest.", or (3) at the end.
16078 # Note that $ac_compile itself does not contain backslashes and begins
16079 # with a dollar sign (not a hyphen), so the echo should work correctly.
16080 lt_compile=`echo "$ac_compile" | $SED \
16081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083 -e 's:$: $lt_compiler_flag:'`
16084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16085 (eval "$lt_compile" 2>out/conftest.err)
16087 cat out/conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16091 # The compiler can only warn and ignore the option if not recognized
16092 # So say no if there are warnings
16093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16096 lt_cv_prog_compiler_c_o_CXX=yes
16101 # SGI C++ compiler will create directory out/ii_files/ for
16102 # template instantiation
16103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16104 $RM out/* && rmdir out
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16111 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16117 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16118 $as_echo_n "(cached) " >&6
16120 lt_cv_prog_compiler_c_o_CXX=no
16121 $RM -r conftest 2>/dev/null
16125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16127 lt_compiler_flag="-o out/conftest2.$ac_objext"
16128 # Insert the option either (1) after the last *FLAGS variable, or
16129 # (2) before a word containing "conftest.", or (3) at the end.
16130 # Note that $ac_compile itself does not contain backslashes and begins
16131 # with a dollar sign (not a hyphen), so the echo should work correctly.
16132 lt_compile=`echo "$ac_compile" | $SED \
16133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16135 -e 's:$: $lt_compiler_flag:'`
16136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16137 (eval "$lt_compile" 2>out/conftest.err)
16139 cat out/conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16143 # The compiler can only warn and ignore the option if not recognized
16144 # So say no if there are warnings
16145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16148 lt_cv_prog_compiler_c_o_CXX=yes
16153 # SGI C++ compiler will create directory out/ii_files/ for
16154 # template instantiation
16155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16156 $RM out/* && rmdir out
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16163 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16168 hard_links="nottested"
16169 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16170 # do not overwrite the value of need_locks provided by the user
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16172 $as_echo_n "checking if we can lock with hard links... " >&6; }
16175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16177 ln conftest.a conftest.b 2>&5 || hard_links=no
16178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16180 $as_echo "$hard_links" >&6; }
16181 if test "$hard_links" = no; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16183 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16193 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16195 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16196 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16199 # If we're using GNU nm, then we don't want the "-C" option.
16200 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16201 # Also, AIX nm treats weak defined symbols like other global defined
16202 # symbols, whereas GNU nm marks them as "W".
16203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16204 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'
16206 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'
16210 export_symbols_cmds_CXX="$ltdll_cmds"
16212 cygwin* | mingw* | cegcc*)
16213 case $cc_basename in
16215 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16218 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'
16219 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16223 linux* | k*bsd*-gnu | gnu*)
16224 link_all_deplibs_CXX=no
16227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16232 $as_echo "$ld_shlibs_CXX" >&6; }
16233 test "$ld_shlibs_CXX" = no && can_build_shared=no
16235 with_gnu_ld_CXX=$with_gnu_ld
16243 # Do we need to explicitly link libc?
16245 case "x$archive_cmds_need_lc_CXX" in
16247 # Assume -lc should be added
16248 archive_cmds_need_lc_CXX=yes
16250 if test "$enable_shared" = yes && test "$GCC" = yes; then
16251 case $archive_cmds_CXX in
16253 # FIXME: we may have to deal with multi-command sequences.
16256 # Test whether the compiler implicitly links with -lc since on some
16257 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16258 # to ld, don't add -lc before -lgcc.
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16260 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16261 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16262 $as_echo_n "(cached) " >&6
16265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16268 (eval $ac_compile) 2>&5
16270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271 test $ac_status = 0; } 2>conftest.err; then
16274 libobjs=conftest.$ac_objext
16276 wl=$lt_prog_compiler_wl_CXX
16277 pic_flag=$lt_prog_compiler_pic_CXX
16283 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16284 allow_undefined_flag_CXX=
16285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16286 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289 test $ac_status = 0; }
16291 lt_cv_archive_cmds_need_lc_CXX=no
16293 lt_cv_archive_cmds_need_lc_CXX=yes
16295 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16297 cat conftest.err 1>&5
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16303 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16304 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16375 library_names_spec=
16376 libname_spec='lib$name'
16380 postuninstall_cmds=
16384 shlibpath_overrides_runpath=unknown
16386 dynamic_linker="$host_os ld.so"
16387 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16388 need_lib_prefix=unknown
16389 hardcode_into_libs=no
16391 # when you set need_version to no, make sure it does not cause -set_version
16392 # flags to be left without arguments
16393 need_version=unknown
16397 version_type=linux # correct to gnu/linux during the next big refactor
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16399 shlibpath_var=LIBPATH
16401 # AIX 3 has no versioning support, so we append a major version to the name.
16402 soname_spec='${libname}${release}${shared_ext}$major'
16406 version_type=linux # correct to gnu/linux during the next big refactor
16409 hardcode_into_libs=yes
16410 if test "$host_cpu" = ia64; then
16411 # AIX 5 supports IA64
16412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16413 shlibpath_var=LD_LIBRARY_PATH
16415 # With GCC up to 2.95.x, collect2 would create an import file
16416 # for dependence libraries. The import file would start with
16417 # the line `#! .'. This would cause the generated library to
16418 # depend on `.', always an invalid library. This was fixed in
16419 # development snapshots of GCC prior to 3.0.
16421 aix4 | aix4.[01] | aix4.[01].*)
16422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16424 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16427 can_build_shared=no
16431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16432 # soname into executable. Probably we can add versioning support to
16433 # collect2, so additional links can be useful in future.
16434 if test "$aix_use_runtimelinking" = yes; then
16435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16436 # instead of lib<name>.a to let people know that these are not
16437 # typical AIX shared libraries.
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440 # We preserve .a as extension for shared libraries through AIX4.2
16441 # and later when we are not doing run time linking.
16442 library_names_spec='${libname}${release}.a $libname.a'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16445 shlibpath_var=LIBPATH
16452 # Since July 2007 AmigaOS4 officially supports .so libraries.
16453 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16457 library_names_spec='$libname.ixlibrary $libname.a'
16458 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16459 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'
16465 library_names_spec='${libname}${shared_ext}'
16466 dynamic_linker="$host_os ld.so"
16467 shlibpath_var=LIBRARY_PATH
16471 version_type=linux # correct to gnu/linux during the next big refactor
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16479 # the default ld.so.conf also contains /usr/contrib/lib and
16480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16481 # libtool to hard-code these into programs
16484 cygwin* | mingw* | pw32* | cegcc*)
16485 version_type=windows
16490 case $GCC,$cc_basename in
16493 library_names_spec='$libname.dll.a'
16494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495 postinstall_cmds='base_file=`basename \${file}`~
16496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497 dldir=$destdir/`dirname \$dlpath`~
16498 test -d \$dldir || mkdir -p \$dldir~
16499 $install_prog $dir/$dlname \$dldir/$dlname~
16500 chmod a+x \$dldir/$dlname~
16501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16505 dlpath=$dir/\$dldll~
16507 shlibpath_overrides_runpath=yes
16511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16516 # MinGW DLLs use traditional 'lib' prefix
16517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16520 # pw32 DLLs use 'pw' prefix rather than 'lib'
16521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16524 dynamic_linker='Win32 ld.exe'
16529 libname_spec='$name'
16530 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16531 library_names_spec='${libname}.dll.lib'
16535 sys_lib_search_path_spec=
16538 for lt_path in $LIB
16541 # Let DOS variable expansion print the short 8.3 style file name.
16542 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16543 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16546 # Convert to MSYS style.
16547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16550 # Convert to unix form, then to dos form, then back to unix form
16551 # but this time dos style (no spaces!) so that the unix form looks
16552 # like /cygdrive/c/PROGRA~1:/cygdr...
16553 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16554 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16555 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16558 sys_lib_search_path_spec="$LIB"
16559 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16560 # It is most probably a Windows format PATH.
16561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16565 # FIXME: find the short name or the path components, as spaces are
16566 # common. (e.g. "Program Files" -> "PROGRA~1")
16570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16571 postinstall_cmds='base_file=`basename \${file}`~
16572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16573 dldir=$destdir/`dirname \$dlpath`~
16574 test -d \$dldir || mkdir -p \$dldir~
16575 $install_prog $dir/$dlname \$dldir/$dlname'
16576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16577 dlpath=$dir/\$dldll~
16579 shlibpath_overrides_runpath=yes
16580 dynamic_linker='Win32 link.exe'
16584 # Assume MSVC wrapper
16585 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16586 dynamic_linker='Win32 ld.exe'
16589 # FIXME: first we should search . and the directory the executable is in
16593 darwin* | rhapsody*)
16594 dynamic_linker="$host_os dyld"
16595 version_type=darwin
16598 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16599 soname_spec='${libname}${release}${major}$shared_ext'
16600 shlibpath_overrides_runpath=yes
16601 shlibpath_var=DYLD_LIBRARY_PATH
16602 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16608 version_type=linux # correct to gnu/linux during the next big refactor
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 shlibpath_var=LD_LIBRARY_PATH
16616 freebsd* | dragonfly*)
16617 # DragonFly does not have aout. When/if they implement a new
16618 # versioning mechanism, adjust this.
16619 if test -x /usr/bin/objformat; then
16620 objformat=`/usr/bin/objformat`
16623 freebsd[23].*) objformat=aout ;;
16624 *) objformat=elf ;;
16627 version_type=freebsd-$objformat
16628 case $version_type in
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16639 shlibpath_var=LD_LIBRARY_PATH
16642 shlibpath_overrides_runpath=yes
16644 freebsd3.[01]* | freebsdelf3.[01]*)
16645 shlibpath_overrides_runpath=yes
16646 hardcode_into_libs=yes
16648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16650 shlibpath_overrides_runpath=no
16651 hardcode_into_libs=yes
16653 *) # from 4.6 on, and DragonFly
16654 shlibpath_overrides_runpath=yes
16655 hardcode_into_libs=yes
16661 version_type=linux # correct to gnu/linux during the next big refactor
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 shlibpath_var=LD_LIBRARY_PATH
16667 shlibpath_overrides_runpath=no
16668 hardcode_into_libs=yes
16672 version_type=linux # correct to gnu/linux during the next big refactor
16675 dynamic_linker="$host_os runtime_loader"
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 shlibpath_var=LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes
16680 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16681 hardcode_into_libs=yes
16684 hpux9* | hpux10* | hpux11*)
16685 # Give a soname corresponding to the major version so that dld.sl refuses to
16686 # link against other versions.
16693 hardcode_into_libs=yes
16694 dynamic_linker="$host_os dld.so"
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 if test "X$HPUX_IA64_MODE" = X32; then
16700 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16708 hardcode_into_libs=yes
16709 dynamic_linker="$host_os dld.sl"
16710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16719 dynamic_linker="$host_os dld.sl"
16720 shlibpath_var=SHLIB_PATH
16721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 soname_spec='${libname}${release}${shared_ext}$major'
16726 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16727 postinstall_cmds='chmod 555 $lib'
16728 # or fails outright, so override atomically:
16729 install_override_mode=555
16733 version_type=linux # correct to gnu/linux during the next big refactor
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=no
16741 hardcode_into_libs=yes
16744 irix5* | irix6* | nonstopux*)
16746 nonstopux*) version_type=nonstopux ;;
16748 if test "$lt_cv_prog_gnu_ld" = yes; then
16749 version_type=linux # correct to gnu/linux during the next big refactor
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16759 irix5* | nonstopux*)
16760 libsuff= shlibsuff=
16763 case $LD in # libtool.m4 will add one of these switches to LD
16764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16765 libsuff= shlibsuff= libmagic=32-bit;;
16766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16767 libsuff=32 shlibsuff=N32 libmagic=N32;;
16768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16770 *) libsuff= shlibsuff= libmagic=never-match;;
16774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16775 shlibpath_overrides_runpath=no
16776 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16777 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16778 hardcode_into_libs=yes
16781 # No shared lib support for Linux oldld, aout, or coff.
16782 linux*oldld* | linux*aout* | linux*coff*)
16787 version_type=none # Android doesn't support versioned libraries.
16790 library_names_spec='$libname$release$shared_ext'
16791 soname_spec='$libname$release$shared_ext'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 shlibpath_overrides_runpath=yes
16796 # This implies no fast_install, which is unacceptable.
16797 # Some rework will be needed to allow for fast_install
16798 # before this can be enabled.
16799 hardcode_into_libs=yes
16801 dynamic_linker='Android linker'
16802 # Don't embed -rpath directories since the linker doesn't support them.
16803 hardcode_libdir_flag_spec_CXX='-L$libdir'
16806 # This must be glibc/ELF.
16807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16808 version_type=linux # correct to gnu/linux during the next big refactor
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 soname_spec='${libname}${release}${shared_ext}$major'
16813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=no
16817 # Some binutils ld are patched to set DT_RUNPATH
16818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16819 $as_echo_n "(cached) " >&6
16821 lt_cv_shlibpath_overrides_runpath=no
16822 save_LDFLAGS=$LDFLAGS
16823 save_libdir=$libdir
16824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16837 if ac_fn_cxx_try_link "$LINENO"; then :
16838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16839 lt_cv_shlibpath_overrides_runpath=yes
16842 rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LDFLAGS=$save_LDFLAGS
16845 libdir=$save_libdir
16849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16851 # This implies no fast_install, which is unacceptable.
16852 # Some rework will be needed to allow for fast_install
16853 # before this can be enabled.
16854 hardcode_into_libs=yes
16856 # Append ld.so.conf contents to the search path
16857 if test -f /etc/ld.so.conf; then
16858 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' ' '`
16859 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16862 # We used to test for /lib/ld.so.1 and disable shared libraries on
16863 # powerpc, because MkLinux only supported shared libraries with the
16864 # GNU dynamic linker. Since this was broken with cross compilers,
16865 # most powerpc-linux boxes support dynamic linking these days and
16866 # people can always --disable-shared, the test was removed, and we
16867 # assume the GNU/Linux dynamic linker is in use.
16868 dynamic_linker='GNU/Linux ld.so'
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 shlibpath_overrides_runpath=no
16879 hardcode_into_libs=yes
16880 dynamic_linker='NetBSD ld.elf_so'
16887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16890 dynamic_linker='NetBSD (a.out) ld.so'
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 dynamic_linker='NetBSD ld.elf_so'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 shlibpath_overrides_runpath=yes
16898 hardcode_into_libs=yes
16902 version_type=linux # correct to gnu/linux during the next big refactor
16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16904 shlibpath_var=LD_LIBRARY_PATH
16905 shlibpath_overrides_runpath=yes
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 shlibpath_overrides_runpath=no
16916 hardcode_into_libs=yes
16917 dynamic_linker='ldqnx.so'
16922 sys_lib_dlsearch_path_spec="/usr/lib"
16924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16927 *) need_version=no ;;
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16934 openbsd2.[89] | openbsd2.[89].*)
16935 shlibpath_overrides_runpath=no
16938 shlibpath_overrides_runpath=yes
16942 shlibpath_overrides_runpath=yes
16947 libname_spec='$name'
16950 library_names_spec='$libname${shared_ext} $libname.a'
16951 dynamic_linker='OS/2 ld.exe'
16952 shlibpath_var=LIBPATH
16955 osf3* | osf4* | osf5*)
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16971 version_type=linux # correct to gnu/linux during the next big refactor
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975 soname_spec='${libname}${release}${shared_ext}$major'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 shlibpath_overrides_runpath=yes
16978 hardcode_into_libs=yes
16979 # ldd complains unless libraries are executable
16980 postinstall_cmds='chmod +x $lib'
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 shlibpath_overrides_runpath=yes
16989 if test "$with_gnu_ld" = yes; then
16996 version_type=linux # correct to gnu/linux during the next big refactor
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 soname_spec='${libname}${release}${shared_ext}$major'
16999 shlibpath_var=LD_LIBRARY_PATH
17000 case $host_vendor in
17002 shlibpath_overrides_runpath=no
17004 runpath_var=LD_RUN_PATH
17012 shlibpath_overrides_runpath=no
17013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17019 if test -d /usr/nec ;then
17020 version_type=linux # correct to gnu/linux during the next big refactor
17021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17022 soname_spec='$libname${shared_ext}.$major'
17023 shlibpath_var=LD_LIBRARY_PATH
17027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17028 version_type=freebsd-elf
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 shlibpath_overrides_runpath=yes
17035 hardcode_into_libs=yes
17036 if test "$with_gnu_ld" = yes; then
17037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17046 sys_lib_dlsearch_path_spec='/usr/lib'
17050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17051 version_type=linux # correct to gnu/linux during the next big refactor
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 shlibpath_overrides_runpath=no
17057 hardcode_into_libs=yes
17061 version_type=linux # correct to gnu/linux during the next big refactor
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 shlibpath_var=LD_LIBRARY_PATH
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17072 $as_echo "$dynamic_linker" >&6; }
17073 test "$dynamic_linker" = no && can_build_shared=no
17075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17076 if test "$GCC" = yes; then
17077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17081 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17084 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17126 hardcode_action_CXX=
17127 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17128 test -n "$runpath_var_CXX" ||
17129 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17131 # We can hardcode non-existent directories.
17132 if test "$hardcode_direct_CXX" != no &&
17133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17134 # have to relink, otherwise we might link with an installed library
17135 # when we should be linking with a yet-to-be-installed one
17136 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17137 test "$hardcode_minus_L_CXX" != no; then
17138 # Linking always hardcodes the temporary library directory.
17139 hardcode_action_CXX=relink
17141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17142 hardcode_action_CXX=immediate
17145 # We cannot hardcode anything, or else we can only hardcode existing
17147 hardcode_action_CXX=unsupported
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17150 $as_echo "$hardcode_action_CXX" >&6; }
17152 if test "$hardcode_action_CXX" = relink ||
17153 test "$inherit_rpath_CXX" = yes; then
17154 # Fast installation is not supported
17155 enable_fast_install=no
17156 elif test "$shlibpath_overrides_runpath" = yes ||
17157 test "$enable_shared" = no; then
17158 # Fast installation is not necessary
17159 enable_fast_install=needless
17168 fi # test -n "$compiler"
17171 CFLAGS=$lt_save_CFLAGS
17175 with_gnu_ld=$lt_save_with_gnu_ld
17176 lt_cv_path_LDCXX=$lt_cv_path_LD
17177 lt_cv_path_LD=$lt_save_path_LD
17178 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17179 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17180 fi # test "$_lt_caught_CXX_error" != yes
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17202 ac_config_commands="$ac_config_commands libtool"
17207 # Only expand once:
17210 if test -n "$ac_tool_prefix"; then
17211 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17212 set dummy ${ac_tool_prefix}windres; ac_word=$2
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17214 $as_echo_n "checking for $ac_word... " >&6; }
17215 if ${ac_cv_prog_RC+:} false; then :
17216 $as_echo_n "(cached) " >&6
17218 if test -n "$RC"; then
17219 ac_cv_prog_RC="$RC" # Let the user override the test.
17221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17222 for as_dir in $PATH
17225 test -z "$as_dir" && as_dir=.
17226 for ac_exec_ext in '' $ac_executable_extensions; do
17227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17228 ac_cv_prog_RC="${ac_tool_prefix}windres"
17229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17239 if test -n "$RC"; then
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17241 $as_echo "$RC" >&6; }
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17249 if test -z "$ac_cv_prog_RC"; then
17251 # Extract the first word of "windres", so it can be a program name with args.
17252 set dummy windres; ac_word=$2
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17254 $as_echo_n "checking for $ac_word... " >&6; }
17255 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17256 $as_echo_n "(cached) " >&6
17258 if test -n "$ac_ct_RC"; then
17259 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262 for as_dir in $PATH
17265 test -z "$as_dir" && as_dir=.
17266 for ac_exec_ext in '' $ac_executable_extensions; do
17267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17268 ac_cv_prog_ac_ct_RC="windres"
17269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17278 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17279 if test -n "$ac_ct_RC"; then
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17281 $as_echo "$ac_ct_RC" >&6; }
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 $as_echo "no" >&6; }
17287 if test "x$ac_ct_RC" = x; then
17290 case $cross_compiling:$ac_tool_warned in
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17294 ac_tool_warned=yes ;;
17299 RC="$ac_cv_prog_RC"
17305 # Source file extension for RC test sources.
17308 # Object file extension for compiled RC test sources.
17312 # Code to be used in simple compile tests
17313 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17315 # Code to be used in simple link tests
17316 lt_simple_link_test_code="$lt_simple_compile_test_code"
17318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17325 # If no C compiler was specified, use CC.
17328 # If no C compiler flags were specified, use CFLAGS.
17329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17331 # Allow CC to be a program name with arguments.
17335 # save warnings/boilerplate of simple test code
17336 ac_outfile=conftest.$ac_objext
17337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17339 _lt_compiler_boilerplate=`cat conftest.err`
17342 ac_outfile=conftest.$ac_objext
17343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17345 _lt_linker_boilerplate=`cat conftest.err`
17349 # Allow CC to be a program name with arguments.
17351 lt_save_CFLAGS=$CFLAGS
17358 for cc_temp in $compiler""; do
17360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17366 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17368 lt_cv_prog_compiler_c_o_RC=yes
17370 if test -n "$compiler"; then
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17385 CFLAGS=$lt_save_CFLAGS
17388 # For now we hardcode the use of version scripts. It would be better
17389 # to write a test for this or even implement this within libtool.
17390 have_ld_version_script=no
17393 have_ld_version_script=yes
17396 have_ld_version_script=yes
17400 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
17403 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17408 if test "$have_ld_version_script" = "yes"; then
17409 HAVE_LD_VERSION_SCRIPT_TRUE=
17410 HAVE_LD_VERSION_SCRIPT_FALSE='#'
17412 HAVE_LD_VERSION_SCRIPT_TRUE='#'
17413 HAVE_LD_VERSION_SCRIPT_FALSE=
17421 component_system=None
17422 have_dosish_system=no
17423 have_android_system=no
17426 have_macos_system=no
17429 available_languages="cl cpp python qt"
17430 default_languages="cl cpp python qt"
17433 have_w64_system=yes
17435 *-linux-androideabi)
17436 have_android_system=yes
17439 have_macos_system=yes
17444 have_dosish_system=yes
17445 have_w32_system=yes
17446 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17447 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17448 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17449 G13_DEFAULT='c:\\gnupg\\g13.exe'
17450 #component_system='COM+'
17452 # Check whether --enable-glibtest was given.
17453 if test "${enable_glibtest+set}" = set; then :
17454 enableval=$enable_glibtest;
17456 enable_glibtest=yes
17460 pkg_config_args=glib-2.0
17465 pkg_config_args="$pkg_config_args gmodule-2.0"
17468 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17471 pkg_config_args="$pkg_config_args gobject-2.0"
17474 pkg_config_args="$pkg_config_args gthread-2.0"
17479 # Extract the first word of "pkg-config", so it can be a program name with args.
17480 set dummy pkg-config; ac_word=$2
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17482 $as_echo_n "checking for $ac_word... " >&6; }
17483 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17484 $as_echo_n "(cached) " >&6
17486 case $PKG_CONFIG in
17488 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492 for as_dir in $PATH
17495 test -z "$as_dir" && as_dir=.
17496 for ac_exec_ext in '' $ac_executable_extensions; do
17497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17506 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17510 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17511 if test -n "$PKG_CONFIG"; then
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17513 $as_echo "$PKG_CONFIG" >&6; }
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516 $as_echo "no" >&6; }
17523 if test x$PKG_CONFIG != xno ; then
17524 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17527 echo *** pkg-config too old; version 0.7 or better required.
17535 min_glib_version=2.0.0
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17537 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17539 if test x$PKG_CONFIG != xno ; then
17540 ## don't try to run the test against uninstalled libtool libs
17541 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17542 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17546 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17553 if test x"$no_glib" = x ; then
17554 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17555 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17556 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17558 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17559 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17560 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17562 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17564 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17566 if test "x$enable_glibtest" = "xyes" ; then
17567 ac_save_CFLAGS="$CFLAGS"
17568 ac_save_LIBS="$LIBS"
17569 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17570 LIBS="$GLIB_LIBS $LIBS"
17571 rm -f conf.glibtest
17572 if test "$cross_compiling" = yes; then :
17573 echo $ac_n "cross compiling; assumed OK... $ac_c"
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17580 #include <stdlib.h>
17585 int major, minor, micro;
17588 system ("touch conf.glibtest");
17590 /* HP/UX 9 (%@#!) writes to sscanf strings */
17591 tmp_version = g_strdup("$min_glib_version");
17592 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17593 printf("%s, bad version string\n", "$min_glib_version");
17597 if ((glib_major_version != $glib_config_major_version) ||
17598 (glib_minor_version != $glib_config_minor_version) ||
17599 (glib_micro_version != $glib_config_micro_version))
17601 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17602 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17603 glib_major_version, glib_minor_version, glib_micro_version);
17604 printf ("*** was found! If pkg-config was correct, then it is best\n");
17605 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17606 printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17607 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17608 printf("*** required on your system.\n");
17609 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17610 printf("*** to point to the correct configuration files\n");
17612 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17613 (glib_minor_version != GLIB_MINOR_VERSION) ||
17614 (glib_micro_version != GLIB_MICRO_VERSION))
17616 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17617 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17618 printf("*** library (version %d.%d.%d)\n",
17619 glib_major_version, glib_minor_version, glib_micro_version);
17623 if ((glib_major_version > major) ||
17624 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17625 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17631 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17632 glib_major_version, glib_minor_version, glib_micro_version);
17633 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17634 major, minor, micro);
17635 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17637 printf("*** If you have already installed a sufficiently new version, this error\n");
17638 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17639 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17640 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17641 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17642 printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17643 printf("*** so that the correct libraries are found at run-time))\n");
17650 if ac_fn_c_try_run "$LINENO"; then :
17655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17656 conftest.$ac_objext conftest.beam conftest.$ac_ext
17659 CFLAGS="$ac_save_CFLAGS"
17660 LIBS="$ac_save_LIBS"
17663 if test "x$no_glib" = x ; then
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17665 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 $as_echo "no" >&6; }
17670 if test "$PKG_CONFIG" = "no" ; then
17671 echo "*** A new enough version of pkg-config was not found."
17672 echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17674 if test -f conf.glibtest ; then
17677 echo "*** Could not run GLIB test program, checking why..."
17678 ac_save_CFLAGS="$CFLAGS"
17679 ac_save_LIBS="$LIBS"
17680 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17681 LIBS="$LIBS $GLIB_LIBS"
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17691 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17696 if ac_fn_c_try_link "$LINENO"; then :
17697 echo "*** The test program compiled, but did not run. This usually means"
17698 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17699 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17700 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17701 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17702 echo "*** is required on your system"
17704 echo "*** If you have an old version installed, it is best to remove it, although"
17705 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17707 echo "*** The test program failed to compile or link. See the file config.log for the"
17708 echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17710 rm -f core conftest.err conftest.$ac_objext \
17711 conftest$ac_exeext conftest.$ac_ext
17712 CFLAGS="$ac_save_CFLAGS"
17713 LIBS="$ac_save_LIBS"
17728 rm -f conf.glibtest
17730 # Check whether --enable-w32-glib was given.
17731 if test "${enable_w32_glib+set}" = set; then :
17732 enableval=$enable_w32_glib; build_w32_glib=$enableval
17738 # XXX: Probably use exec-prefix here?
17739 # GPG_DEFAULT='/usr/bin/gpg'
17740 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17741 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17742 # G13_DEFAULT='/usr/bin/g13'
17746 if test "$have_dosish_system" = yes; then
17748 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17751 if test "$have_dosish_system" = yes; then
17752 HAVE_DOSISH_SYSTEM_TRUE=
17753 HAVE_DOSISH_SYSTEM_FALSE='#'
17755 HAVE_DOSISH_SYSTEM_TRUE='#'
17756 HAVE_DOSISH_SYSTEM_FALSE=
17760 if test "$have_w32_system" = yes; then
17762 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17765 if test "$have_w32_system" = yes; then
17766 HAVE_W32_SYSTEM_TRUE=
17767 HAVE_W32_SYSTEM_FALSE='#'
17769 HAVE_W32_SYSTEM_TRUE='#'
17770 HAVE_W32_SYSTEM_FALSE=
17774 if test "$have_w64_system" = yes; then
17776 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17779 if test "$have_w64_system" = yes; then
17780 HAVE_W64_SYSTEM_TRUE=
17781 HAVE_W64_SYSTEM_FALSE='#'
17783 HAVE_W64_SYSTEM_TRUE='#'
17784 HAVE_W64_SYSTEM_FALSE=
17788 if test "$have_android_system" = yes; then
17790 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17793 if test "$have_android_system" = yes; then
17794 HAVE_ANDROID_SYSTEM_TRUE=
17795 HAVE_ANDROID_SYSTEM_FALSE='#'
17797 HAVE_ANDROID_SYSTEM_TRUE='#'
17798 HAVE_ANDROID_SYSTEM_FALSE=
17802 if test "$have_macos_system" = yes; then
17804 $as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17807 if test "$have_macos_system" = yes; then
17808 HAVE_MACOS_SYSTEM_TRUE=
17809 HAVE_MACOS_SYSTEM_FALSE='#'
17811 HAVE_MACOS_SYSTEM_TRUE='#'
17812 HAVE_MACOS_SYSTEM_FALSE=
17816 if test "$build_w32_glib" = yes; then
17817 BUILD_W32_GLIB_TRUE=
17818 BUILD_W32_GLIB_FALSE='#'
17820 BUILD_W32_GLIB_TRUE='#'
17821 BUILD_W32_GLIB_FALSE=
17826 # Check whether --enable-fixed-path was given.
17827 if test "${enable_fixed_path+set}" = set; then :
17828 enableval=$enable_fixed_path; fixed_search_path="$enableval"
17830 fixed_search_path=""
17833 if test x$fixed_search_path != x ; then
17835 cat >>confdefs.h <<_ACEOF
17836 #define FIXED_SEARCH_PATH "$fixed_search_path"
17842 # Note: You need to declare all possible languages also in
17843 # lang/Makefile.am's DIST_SUBDIRS.
17844 # Check whether --enable-languages was given.
17845 if test "${enable_languages+set}" = set; then :
17846 enableval=$enable_languages; enabled_languages=`echo $enableval | \
17847 tr ',:' ' ' | tr 'A-Z' 'a-z' | \
17850 enabled_languages="maybe"
17853 if test "x$enabled_languages" = "x" \
17854 -o "$enabled_languages" = "no"; then
17858 # If languages are explicitly set missing requirements
17859 # for the languages are treated as errors otherwise
17860 # there will be a warning.
17861 explicit_languages=1
17862 if test "x$enabled_languages" = "xmaybe"; then
17863 explicit_languages=0
17864 enabled_languages="$default_languages"
17867 for language in $enabled_languages; do
17870 list=$available_languages
17874 if test "x$name" = "x$n"; then
17879 if test "$found" = "0"; then
17880 as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17886 # Enable C++ 11 if cpp language is requested
17889 list=$enabled_languages
17893 if test "x$name" = "x$n"; then
17898 if test "$found" = "1"; then
17899 ax_cxx_compile_cxx11_required=false
17901 ac_cpp='$CXXCPP $CPPFLAGS'
17902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17907 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17908 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17909 $as_echo_n "(cached) " >&6
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17915 // If the compiler admits that it is not ready for C++11, why torture it?
17916 // Hopefully, this will speed up the test.
17918 #ifndef __cplusplus
17920 #error "This is not a C++ compiler"
17922 #elif __cplusplus < 201103L
17924 #error "This is not a C++11 compiler"
17931 namespace test_static_assert
17934 template <typename T>
17937 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17942 namespace test_final_override
17947 virtual void f() {}
17950 struct Derived : public Base
17952 virtual void f() override {}
17957 namespace test_double_right_angle_brackets
17960 template < typename T >
17963 typedef check<void> single_type;
17964 typedef check<check<void>> double_type;
17965 typedef check<check<check<void>>> triple_type;
17966 typedef check<check<check<check<void>>>> quadruple_type;
17970 namespace test_decltype
17983 namespace test_type_deduction
17986 template < typename T1, typename T2 >
17989 static const bool value = false;
17992 template < typename T >
17993 struct is_same<T, T>
17995 static const bool value = true;
17998 template < typename T1, typename T2 >
18000 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18006 test(const int c, volatile int v)
18008 static_assert(is_same<int, decltype(0)>::value == true, "");
18009 static_assert(is_same<int, decltype(c)>::value == false, "");
18010 static_assert(is_same<int, decltype(v)>::value == false, "");
18013 auto sumi = ac + av + 'x';
18014 auto sumf = ac + av + 1.0;
18015 static_assert(is_same<int, decltype(ac)>::value == true, "");
18016 static_assert(is_same<int, decltype(av)>::value == true, "");
18017 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18018 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18019 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18020 return (sumf > 0.0) ? sumi : add(c, v);
18025 namespace test_noexcept
18028 int f() { return 0; }
18029 int g() noexcept { return 0; }
18031 static_assert(noexcept(f()) == false, "");
18032 static_assert(noexcept(g()) == true, "");
18036 namespace test_constexpr
18039 template < typename CharT >
18040 unsigned long constexpr
18041 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18043 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18046 template < typename CharT >
18047 unsigned long constexpr
18048 strlen_c(const CharT *const s) noexcept
18050 return strlen_c_r(s, 0UL);
18053 static_assert(strlen_c("") == 0UL, "");
18054 static_assert(strlen_c("1") == 1UL, "");
18055 static_assert(strlen_c("example") == 7UL, "");
18056 static_assert(strlen_c("another\0example") == 7UL, "");
18060 namespace test_rvalue_references
18066 static constexpr int value = N;
18069 answer<1> f(int&) { return answer<1>(); }
18070 answer<2> f(const int&) { return answer<2>(); }
18071 answer<3> f(int&&) { return answer<3>(); }
18078 static_assert(decltype(f(i))::value == 1, "");
18079 static_assert(decltype(f(c))::value == 2, "");
18080 static_assert(decltype(f(0))::value == 3, "");
18085 namespace test_uniform_initialization
18090 static const int zero {};
18091 static const int one {1};
18094 static_assert(test::zero == 0, "");
18095 static_assert(test::one == 1, "");
18099 namespace test_lambdas
18105 auto lambda1 = [](){};
18106 auto lambda2 = lambda1;
18114 auto a = [](int i, int j){ return i + j; }(1, 2);
18115 auto b = []() -> int { return '0'; }();
18116 auto c = [=](){ return a + b; }();
18117 auto d = [&](){ return c; }();
18118 auto e = [a, &b](int x) mutable {
18119 const auto identity = [](int y){ return y; };
18120 for (auto i = 0; i < a; ++i)
18122 return x + identity(a + b);
18124 return a + b + c + d + e;
18130 const auto nullary = [](){ return 0; };
18131 const auto unary = [](int x){ return x; };
18132 using nullary_t = decltype(nullary);
18133 using unary_t = decltype(unary);
18134 const auto higher1st = [](nullary_t f){ return f(); };
18135 const auto higher2nd = [unary](nullary_t f1){
18136 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18138 return higher1st(nullary) + higher2nd(nullary)(unary);
18143 namespace test_variadic_templates
18149 template <int N0, int... N1toN>
18150 struct sum<N0, N1toN...>
18152 static constexpr auto value = N0 + sum<N1toN...>::value;
18158 static constexpr auto value = 0;
18161 static_assert(sum<>::value == 0, "");
18162 static_assert(sum<1>::value == 1, "");
18163 static_assert(sum<23>::value == 23, "");
18164 static_assert(sum<1, 2>::value == 3, "");
18165 static_assert(sum<5, 5, 11>::value == 21, "");
18166 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18170 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18171 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18172 // because of this.
18173 namespace test_template_alias_sfinae
18178 template<typename T>
18179 using member = typename T::member_type;
18181 template<typename T>
18184 template<typename T>
18185 void func(member<T>*) {}
18189 void test() { func<foo>(0); }
18193 } // namespace cxx11
18195 #endif // __cplusplus >= 201103L
18200 if ac_fn_cxx_try_compile "$LINENO"; then :
18201 ax_cv_cxx_compile_cxx11=yes
18203 ax_cv_cxx_compile_cxx11=no
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18208 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18209 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18215 if test x$ac_success = xno; then
18216 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18217 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18219 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18220 if eval \${$cachevar+:} false; then :
18221 $as_echo_n "(cached) " >&6
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18229 // If the compiler admits that it is not ready for C++11, why torture it?
18230 // Hopefully, this will speed up the test.
18232 #ifndef __cplusplus
18234 #error "This is not a C++ compiler"
18236 #elif __cplusplus < 201103L
18238 #error "This is not a C++11 compiler"
18245 namespace test_static_assert
18248 template <typename T>
18251 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18256 namespace test_final_override
18261 virtual void f() {}
18264 struct Derived : public Base
18266 virtual void f() override {}
18271 namespace test_double_right_angle_brackets
18274 template < typename T >
18277 typedef check<void> single_type;
18278 typedef check<check<void>> double_type;
18279 typedef check<check<check<void>>> triple_type;
18280 typedef check<check<check<check<void>>>> quadruple_type;
18284 namespace test_decltype
18297 namespace test_type_deduction
18300 template < typename T1, typename T2 >
18303 static const bool value = false;
18306 template < typename T >
18307 struct is_same<T, T>
18309 static const bool value = true;
18312 template < typename T1, typename T2 >
18314 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18320 test(const int c, volatile int v)
18322 static_assert(is_same<int, decltype(0)>::value == true, "");
18323 static_assert(is_same<int, decltype(c)>::value == false, "");
18324 static_assert(is_same<int, decltype(v)>::value == false, "");
18327 auto sumi = ac + av + 'x';
18328 auto sumf = ac + av + 1.0;
18329 static_assert(is_same<int, decltype(ac)>::value == true, "");
18330 static_assert(is_same<int, decltype(av)>::value == true, "");
18331 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18332 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18333 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18334 return (sumf > 0.0) ? sumi : add(c, v);
18339 namespace test_noexcept
18342 int f() { return 0; }
18343 int g() noexcept { return 0; }
18345 static_assert(noexcept(f()) == false, "");
18346 static_assert(noexcept(g()) == true, "");
18350 namespace test_constexpr
18353 template < typename CharT >
18354 unsigned long constexpr
18355 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18357 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18360 template < typename CharT >
18361 unsigned long constexpr
18362 strlen_c(const CharT *const s) noexcept
18364 return strlen_c_r(s, 0UL);
18367 static_assert(strlen_c("") == 0UL, "");
18368 static_assert(strlen_c("1") == 1UL, "");
18369 static_assert(strlen_c("example") == 7UL, "");
18370 static_assert(strlen_c("another\0example") == 7UL, "");
18374 namespace test_rvalue_references
18380 static constexpr int value = N;
18383 answer<1> f(int&) { return answer<1>(); }
18384 answer<2> f(const int&) { return answer<2>(); }
18385 answer<3> f(int&&) { return answer<3>(); }
18392 static_assert(decltype(f(i))::value == 1, "");
18393 static_assert(decltype(f(c))::value == 2, "");
18394 static_assert(decltype(f(0))::value == 3, "");
18399 namespace test_uniform_initialization
18404 static const int zero {};
18405 static const int one {1};
18408 static_assert(test::zero == 0, "");
18409 static_assert(test::one == 1, "");
18413 namespace test_lambdas
18419 auto lambda1 = [](){};
18420 auto lambda2 = lambda1;
18428 auto a = [](int i, int j){ return i + j; }(1, 2);
18429 auto b = []() -> int { return '0'; }();
18430 auto c = [=](){ return a + b; }();
18431 auto d = [&](){ return c; }();
18432 auto e = [a, &b](int x) mutable {
18433 const auto identity = [](int y){ return y; };
18434 for (auto i = 0; i < a; ++i)
18436 return x + identity(a + b);
18438 return a + b + c + d + e;
18444 const auto nullary = [](){ return 0; };
18445 const auto unary = [](int x){ return x; };
18446 using nullary_t = decltype(nullary);
18447 using unary_t = decltype(unary);
18448 const auto higher1st = [](nullary_t f){ return f(); };
18449 const auto higher2nd = [unary](nullary_t f1){
18450 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18452 return higher1st(nullary) + higher2nd(nullary)(unary);
18457 namespace test_variadic_templates
18463 template <int N0, int... N1toN>
18464 struct sum<N0, N1toN...>
18466 static constexpr auto value = N0 + sum<N1toN...>::value;
18472 static constexpr auto value = 0;
18475 static_assert(sum<>::value == 0, "");
18476 static_assert(sum<1>::value == 1, "");
18477 static_assert(sum<23>::value == 23, "");
18478 static_assert(sum<1, 2>::value == 3, "");
18479 static_assert(sum<5, 5, 11>::value == 21, "");
18480 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18484 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18485 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18486 // because of this.
18487 namespace test_template_alias_sfinae
18492 template<typename T>
18493 using member = typename T::member_type;
18495 template<typename T>
18498 template<typename T>
18499 void func(member<T>*) {}
18503 void test() { func<foo>(0); }
18507 } // namespace cxx11
18509 #endif // __cplusplus >= 201103L
18514 if ac_fn_cxx_try_compile "$LINENO"; then :
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 eval ac_res=\$$cachevar
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18524 $as_echo "$ac_res" >&6; }
18525 if eval test x\$$cachevar = xyes; then
18527 CXXCPP="$CXXCPP $switch"
18534 ac_cpp='$CPP $CPPFLAGS'
18535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18539 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18540 if test x$ac_success = xno; then
18541 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18544 if test x$ac_success = xno; then
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18547 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18551 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18556 if test "$HAVE_CXX11" != "1"; then
18557 if test "$explicit_languages" = "1"; then
18560 *** A compiler with c++11 support is required for the c++ binding.
18563 enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18564 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18567 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18569 $as_echo "$as_me: WARNING:
18571 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18577 # Check that if qt is enabled cpp also is enabled
18580 list=$enabled_languages
18584 if test "x$name" = "x$n"; then
18589 if test "$found" = "1"; then
18590 # We need to ensure that in the language order qt comes after cpp
18591 # so we remove qt first and explicitly add it as last list member.
18592 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18595 list=$enabled_languages
18599 if test "x$name" = "x$n"; then
18604 if test "$found" = "0"; then
18607 *** Qt language binding depends on cpp binding.
18612 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18613 if test -n "$ac_tool_prefix"; then
18614 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18615 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18617 $as_echo_n "checking for $ac_word... " >&6; }
18618 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18619 $as_echo_n "(cached) " >&6
18621 case $PKG_CONFIG in
18623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627 for as_dir in $PATH
18630 test -z "$as_dir" && as_dir=.
18631 for ac_exec_ext in '' $ac_executable_extensions; do
18632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18645 if test -n "$PKG_CONFIG"; then
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18647 $as_echo "$PKG_CONFIG" >&6; }
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650 $as_echo "no" >&6; }
18655 if test -z "$ac_cv_path_PKG_CONFIG"; then
18656 ac_pt_PKG_CONFIG=$PKG_CONFIG
18657 # Extract the first word of "pkg-config", so it can be a program name with args.
18658 set dummy pkg-config; ac_word=$2
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18660 $as_echo_n "checking for $ac_word... " >&6; }
18661 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18662 $as_echo_n "(cached) " >&6
18664 case $ac_pt_PKG_CONFIG in
18666 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18670 for as_dir in $PATH
18673 test -z "$as_dir" && as_dir=.
18674 for ac_exec_ext in '' $ac_executable_extensions; do
18675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18676 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18687 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18688 if test -n "$ac_pt_PKG_CONFIG"; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18690 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18696 if test "x$ac_pt_PKG_CONFIG" = x; then
18699 case $cross_compiling:$ac_tool_warned in
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18703 ac_tool_warned=yes ;;
18705 PKG_CONFIG=$ac_pt_PKG_CONFIG
18708 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18712 if test -n "$PKG_CONFIG"; then
18713 _pkg_min_version=0.9.0
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18715 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18716 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18718 $as_echo "yes" >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18727 have_qt5_libs="no";
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18732 $as_echo_n "checking for GPGME_QT... " >&6; }
18734 if test -n "$PKG_CONFIG"; then
18735 if test -n "$GPGME_QT_CFLAGS"; then
18736 pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18738 if test -n "$PKG_CONFIG" && \
18739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18740 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; then
18744 pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18752 if test -n "$PKG_CONFIG"; then
18753 if test -n "$GPGME_QT_LIBS"; then
18754 pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18756 if test -n "$PKG_CONFIG" && \
18757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18758 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18761 test $ac_status = 0; }; then
18762 pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18773 if test $pkg_failed = yes; then
18775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18776 _pkg_short_errors_supported=yes
18778 _pkg_short_errors_supported=no
18780 if test $_pkg_short_errors_supported = yes; then
18781 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18783 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18785 # Put the nasty error message in config.log where it belongs
18786 echo "$GPGME_QT_PKG_ERRORS" >&5
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789 $as_echo "no" >&6; }
18791 elif test $pkg_failed = untried; then
18794 GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18795 GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18797 $as_echo "yes" >&6; }
18798 have_qt5_libs="yes"
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18804 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18806 if test -n "$PKG_CONFIG"; then
18807 if test -n "$GPGME_QTTEST_CFLAGS"; then
18808 pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18810 if test -n "$PKG_CONFIG" && \
18811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18812 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18815 test $ac_status = 0; }; then
18816 pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18824 if test -n "$PKG_CONFIG"; then
18825 if test -n "$GPGME_QTTEST_LIBS"; then
18826 pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18828 if test -n "$PKG_CONFIG" && \
18829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18830 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18833 test $ac_status = 0; }; then
18834 pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18845 if test $pkg_failed = yes; then
18847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848 _pkg_short_errors_supported=yes
18850 _pkg_short_errors_supported=no
18852 if test $_pkg_short_errors_supported = yes; then
18853 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18855 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18857 # Put the nasty error message in config.log where it belongs
18858 echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861 $as_echo "no" >&6; }
18862 have_qt5test_libs="no"
18863 elif test $pkg_failed = untried; then
18864 have_qt5test_libs="no"
18866 GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18867 GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869 $as_echo "yes" >&6; }
18870 have_qt5test_libs="yes"
18873 if ! test "$have_w32_system" = yes; then
18874 if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18875 GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18878 if test "$have_qt5_libs" = "yes"; then
18879 if test -n "$ac_tool_prefix"; then
18880 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18881 set dummy ${ac_tool_prefix}moc; ac_word=$2
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18883 $as_echo_n "checking for $ac_word... " >&6; }
18884 if ${ac_cv_prog_MOC+:} false; then :
18885 $as_echo_n "(cached) " >&6
18887 if test -n "$MOC"; then
18888 ac_cv_prog_MOC="$MOC" # Let the user override the test.
18890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891 for as_dir in $PATH
18894 test -z "$as_dir" && as_dir=.
18895 for ac_exec_ext in '' $ac_executable_extensions; do
18896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18897 ac_cv_prog_MOC="${ac_tool_prefix}moc"
18898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18907 MOC=$ac_cv_prog_MOC
18908 if test -n "$MOC"; then
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18910 $as_echo "$MOC" >&6; }
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18918 if test -z "$ac_cv_prog_MOC"; then
18920 # Extract the first word of "moc", so it can be a program name with args.
18921 set dummy moc; ac_word=$2
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18923 $as_echo_n "checking for $ac_word... " >&6; }
18924 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18925 $as_echo_n "(cached) " >&6
18927 if test -n "$ac_ct_MOC"; then
18928 ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 for as_dir in $PATH
18934 test -z "$as_dir" && as_dir=.
18935 for ac_exec_ext in '' $ac_executable_extensions; do
18936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18937 ac_cv_prog_ac_ct_MOC="moc"
18938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18947 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18948 if test -n "$ac_ct_MOC"; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18950 $as_echo "$ac_ct_MOC" >&6; }
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18956 if test "x$ac_ct_MOC" = x; then
18959 case $cross_compiling:$ac_tool_warned in
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18963 ac_tool_warned=yes ;;
18968 MOC="$ac_cv_prog_MOC"
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18972 $as_echo_n "checking moc version... " >&6; }
18973 mocversion=`$MOC -v 2>&1`
18974 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18975 if test x"$mocversiongrep" != x"$mocversion"; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 # moc was not the qt5 one, try with moc-qt5
18979 if test -n "$ac_tool_prefix"; then
18980 # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18981 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18983 $as_echo_n "checking for $ac_word... " >&6; }
18984 if ${ac_cv_prog_MOC2+:} false; then :
18985 $as_echo_n "(cached) " >&6
18987 if test -n "$MOC2"; then
18988 ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18991 for as_dir in $PATH
18994 test -z "$as_dir" && as_dir=.
18995 for ac_exec_ext in '' $ac_executable_extensions; do
18996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18997 ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19007 MOC2=$ac_cv_prog_MOC2
19008 if test -n "$MOC2"; then
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
19010 $as_echo "$MOC2" >&6; }
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19013 $as_echo "no" >&6; }
19018 if test -z "$ac_cv_prog_MOC2"; then
19020 # Extract the first word of "moc-qt5", so it can be a program name with args.
19021 set dummy moc-qt5; ac_word=$2
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023 $as_echo_n "checking for $ac_word... " >&6; }
19024 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
19025 $as_echo_n "(cached) " >&6
19027 if test -n "$ac_ct_MOC2"; then
19028 ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
19030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19034 test -z "$as_dir" && as_dir=.
19035 for ac_exec_ext in '' $ac_executable_extensions; do
19036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19037 ac_cv_prog_ac_ct_MOC2="moc-qt5"
19038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19047 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19048 if test -n "$ac_ct_MOC2"; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19050 $as_echo "$ac_ct_MOC2" >&6; }
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053 $as_echo "no" >&6; }
19056 if test "x$ac_ct_MOC2" = x; then
19059 case $cross_compiling:$ac_tool_warned in
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19063 ac_tool_warned=yes ;;
19068 MOC2="$ac_cv_prog_MOC2"
19071 mocversion=`$MOC2 -v 2>&1`
19072 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19073 if test x"$mocversiongrep" != x"$mocversion"; then
19074 if test -n "$ac_tool_prefix"; then
19075 # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19076 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078 $as_echo_n "checking for $ac_word... " >&6; }
19079 if ${ac_cv_prog_QTCHOOSER+:} false; then :
19080 $as_echo_n "(cached) " >&6
19082 if test -n "$QTCHOOSER"; then
19083 ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
19085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086 for as_dir in $PATH
19089 test -z "$as_dir" && as_dir=.
19090 for ac_exec_ext in '' $ac_executable_extensions; do
19091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092 ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
19093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19102 QTCHOOSER=$ac_cv_prog_QTCHOOSER
19103 if test -n "$QTCHOOSER"; then
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19105 $as_echo "$QTCHOOSER" >&6; }
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19113 if test -z "$ac_cv_prog_QTCHOOSER"; then
19114 ac_ct_QTCHOOSER=$QTCHOOSER
19115 # Extract the first word of "qtchooser", so it can be a program name with args.
19116 set dummy qtchooser; ac_word=$2
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118 $as_echo_n "checking for $ac_word... " >&6; }
19119 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19120 $as_echo_n "(cached) " >&6
19122 if test -n "$ac_ct_QTCHOOSER"; then
19123 ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19129 test -z "$as_dir" && as_dir=.
19130 for ac_exec_ext in '' $ac_executable_extensions; do
19131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132 ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19142 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19143 if test -n "$ac_ct_QTCHOOSER"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19145 $as_echo "$ac_ct_QTCHOOSER" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19151 if test "x$ac_ct_QTCHOOSER" = x; then
19154 case $cross_compiling:$ac_tool_warned in
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19158 ac_tool_warned=yes ;;
19160 QTCHOOSER=$ac_ct_QTCHOOSER
19163 QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19166 qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19167 mocversion=`$qt5tooldir/moc -v 2>&1`
19168 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19169 if test x"$mocversiongrep" != x"$mocversion"; then
19170 # no valid moc found
19171 have_qt5_libs="no";
19173 MOC=$qt5tooldir/moc
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19180 $as_echo "$mocversion" >&6; }
19181 OLDCPPFLAGS=$CPPFLAGS
19182 CPPFLAGS=$GPGME_QT_CFLAGS
19184 LIBS=$GPGME_QT_LIBS
19186 ac_cpp='$CXXCPP $CPPFLAGS'
19187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19192 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19196 #include <QCoreApplication>
19197 int main (int argc, char **argv) {
19198 QCoreApplication app(argc, argv);
19202 if ac_fn_cxx_try_link "$LINENO"; then :
19203 have_qt5_libs='yes'
19207 rm -f core conftest.err conftest.$ac_objext \
19208 conftest$ac_exeext conftest.$ac_ext
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19210 $as_echo "$have_qt5_libs" >&6; }
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217 CPPFLAGS=$OLDCPPFLAGS
19221 if test "$have_qt5_libs" != "yes"; then
19222 if test "$explicit_languages" = "1"; then
19225 *** Qt5 (Qt5Core) is required for Qt binding.
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19230 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19232 $as_echo "$as_me: WARNING:
19234 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19238 enabled_languages=`echo $enabled_languages qt`
19240 for ac_prog in doxygen
19242 # Extract the first word of "$ac_prog", so it can be a program name with args.
19243 set dummy $ac_prog; ac_word=$2
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19245 $as_echo_n "checking for $ac_word... " >&6; }
19246 if ${ac_cv_prog_DOXYGEN+:} false; then :
19247 $as_echo_n "(cached) " >&6
19249 if test -n "$DOXYGEN"; then
19250 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19253 for as_dir in $PATH
19256 test -z "$as_dir" && as_dir=.
19257 for ac_exec_ext in '' $ac_executable_extensions; do
19258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19259 ac_cv_prog_DOXYGEN="$ac_prog"
19260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19269 DOXYGEN=$ac_cv_prog_DOXYGEN
19270 if test -n "$DOXYGEN"; then
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19272 $as_echo "$DOXYGEN" >&6; }
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19279 test -n "$DOXYGEN" && break
19282 if test -z "$DOXYGEN";
19283 # This is not highlighted because it's not really important.
19284 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19285 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19289 # Extract the first word of "$ac_prog", so it can be a program name with args.
19290 set dummy $ac_prog; ac_word=$2
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19292 $as_echo_n "checking for $ac_word... " >&6; }
19293 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19294 $as_echo_n "(cached) " >&6
19296 if test -n "$GRAPHVIZ"; then
19297 ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19303 test -z "$as_dir" && as_dir=.
19304 for ac_exec_ext in '' $ac_executable_extensions; do
19305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306 ac_cv_prog_GRAPHVIZ="$ac_prog"
19307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19316 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19317 if test -n "$GRAPHVIZ"; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19319 $as_echo "$GRAPHVIZ" >&6; }
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 $as_echo "no" >&6; }
19326 test -n "$GRAPHVIZ" && break
19329 if test -z "$GRAPHVIZ";
19330 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19331 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19335 if test -n "$DOXYGEN"; then
19337 HAVE_DOXYGEN_FALSE='#'
19339 HAVE_DOXYGEN_TRUE='#'
19340 HAVE_DOXYGEN_FALSE=
19343 if test -n "$GRAPHVIZ"; then
19353 list=$enabled_languages
19357 if test "x$name" = "x$n"; then
19363 if test "$found_py" = "1"; then
19365 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19366 for ac_prog in swig swig2.0
19368 # Extract the first word of "$ac_prog", so it can be a program name with args.
19369 set dummy $ac_prog; ac_word=$2
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19371 $as_echo_n "checking for $ac_word... " >&6; }
19372 if ${ac_cv_path_SWIG+:} false; then :
19373 $as_echo_n "(cached) " >&6
19377 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19381 for as_dir in $PATH
19384 test -z "$as_dir" && as_dir=.
19385 for ac_exec_ext in '' $ac_executable_extensions; do
19386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19387 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19398 SWIG=$ac_cv_path_SWIG
19399 if test -n "$SWIG"; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19401 $as_echo "$SWIG" >&6; }
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404 $as_echo "no" >&6; }
19408 test -n "$SWIG" && break
19411 if test -z "$SWIG" ; then
19413 elif test -n "" ; then
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19415 $as_echo_n "checking SWIG version... " >&6; }
19416 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'`
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19418 $as_echo "$swig_version" >&6; }
19419 if test -n "$swig_version" ; then
19420 # Calculate the required version number components
19422 required_major=`echo $required | sed 's/[^0-9].*//'`
19423 if test -z "$required_major" ; then
19426 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19427 required_minor=`echo $required | sed 's/[^0-9].*//'`
19428 if test -z "$required_minor" ; then
19431 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19432 required_patch=`echo $required | sed 's/[^0-9].*//'`
19433 if test -z "$required_patch" ; then
19436 # Calculate the available version number components
19437 available=$swig_version
19438 available_major=`echo $available | sed 's/[^0-9].*//'`
19439 if test -z "$available_major" ; then
19442 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19443 available_minor=`echo $available | sed 's/[^0-9].*//'`
19444 if test -z "$available_minor" ; then
19447 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19448 available_patch=`echo $available | sed 's/[^0-9].*//'`
19449 if test -z "$available_patch" ; then
19452 # Convert the version tuple into a single number for easier comparison.
19453 # Using base 100 should be safe since SWIG internally uses BCD values
19454 # to encode its version number.
19455 required_swig_vernum=`expr $required_major \* 10000 \
19456 \+ $required_minor \* 100 \+ $required_patch`
19457 available_swig_vernum=`expr $available_major \* 10000 \
19458 \+ $available_minor \* 100 \+ $available_patch`
19460 if test $available_swig_vernum -lt $required_swig_vernum; then
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
19462 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19467 $as_echo_n "checking for SWIG library... " >&6; }
19468 SWIG_LIB=`$SWIG -swiglib`
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19470 $as_echo "$SWIG_LIB" >&6; }
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19475 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19482 if test -z "$SWIG"; then
19483 if test "$explicit_languages" = "1"; then
19486 *** You need SWIG to build the Python bindings.
19489 enabled_languages=$(echo $enabled_languages | sed 's/python//')
19492 # Reset the version collecting vars.
19496 if test "$found_py" = "1" -o "$found_py3" = "1"; then
19497 # Reset everything, so that we can look for another Python.
19499 unset PYTHON_VERSION
19500 unset PYTHON_CPPFLAGS
19501 unset PYTHON_LDFLAGS
19502 unset PYTHON_SITE_PKG
19503 unset PYTHON_EXTRA_LIBS
19504 unset PYTHON_EXTRA_LDFLAGS
19505 unset ac_cv_path_PYTHON
19506 unset am_cv_pathless_PYTHON
19507 unset am_cv_python_version
19508 unset am_cv_python_platform
19509 unset am_cv_python_pythondir
19510 unset am_cv_python_pyexecdir
19517 if test -n "$PYTHON"; then
19518 # If the user set $PYTHON, use it and don't search something else.
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19520 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19522 # split strings by '.' and convert to numeric. Append some zeros
19523 # because we need at least 4 digits for the hex conversion.
19524 # map returns an iterator in Python 3.0 and a list in 2.x
19525 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19527 # xrange is not present in Python 3.0 and range returns an iterator
19528 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19529 sys.exit(sys.hexversion < minverhex)"
19530 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19531 ($PYTHON -c "$prog") >&5 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; then :
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19536 $as_echo "yes" >&6; }
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19540 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19542 am_display_PYTHON=$PYTHON
19544 # Otherwise, try each interpreter until we find one that satisfies
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19547 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19548 if ${am_cv_pathless_PYTHON+:} false; then :
19549 $as_echo_n "(cached) " >&6
19552 for am_cv_pathless_PYTHON in python2.7 none; do
19553 test "$am_cv_pathless_PYTHON" = none && break
19555 # split strings by '.' and convert to numeric. Append some zeros
19556 # because we need at least 4 digits for the hex conversion.
19557 # map returns an iterator in Python 3.0 and a list in 2.x
19558 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19560 # xrange is not present in Python 3.0 and range returns an iterator
19561 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19562 sys.exit(sys.hexversion < minverhex)"
19563 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19564 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; then :
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19573 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19574 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19575 if test "$am_cv_pathless_PYTHON" = none; then
19578 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19579 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19581 $as_echo_n "checking for $ac_word... " >&6; }
19582 if ${ac_cv_path_PYTHON+:} false; then :
19583 $as_echo_n "(cached) " >&6
19587 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19591 for as_dir in $PATH
19594 test -z "$as_dir" && as_dir=.
19595 for ac_exec_ext in '' $ac_executable_extensions; do
19596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19597 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19608 PYTHON=$ac_cv_path_PYTHON
19609 if test -n "$PYTHON"; then
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19611 $as_echo "$PYTHON" >&6; }
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614 $as_echo "no" >&6; }
19619 am_display_PYTHON=$am_cv_pathless_PYTHON
19623 if test "$PYTHON" = :; then
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19629 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19630 if ${am_cv_python_version+:} false; then :
19631 $as_echo_n "(cached) " >&6
19633 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19636 $as_echo "$am_cv_python_version" >&6; }
19637 PYTHON_VERSION=$am_cv_python_version
19641 PYTHON_PREFIX='${prefix}'
19643 PYTHON_EXEC_PREFIX='${exec_prefix}'
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19648 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19649 if ${am_cv_python_platform+:} false; then :
19650 $as_echo_n "(cached) " >&6
19652 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19655 $as_echo "$am_cv_python_platform" >&6; }
19656 PYTHON_PLATFORM=$am_cv_python_platform
19659 # Just factor out some code duplication.
19660 am_python_setup_sysconfig="\
19662 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19663 # with python 3.x. See automake bug#10227.
19666 except ImportError:
19667 can_use_sysconfig = 0
19669 can_use_sysconfig = 1
19670 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19671 # <https://github.com/pypa/virtualenv/issues/118>
19673 from platform import python_implementation
19674 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19675 can_use_sysconfig = 0
19676 except ImportError:
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19681 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19682 if ${am_cv_python_pythondir+:} false; then :
19683 $as_echo_n "(cached) " >&6
19685 if test "x$prefix" = xNONE
19687 am_py_prefix=$ac_default_prefix
19689 am_py_prefix=$prefix
19691 am_cv_python_pythondir=`$PYTHON -c "
19692 $am_python_setup_sysconfig
19693 if can_use_sysconfig:
19694 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19696 from distutils import sysconfig
19697 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19698 sys.stdout.write(sitedir)"`
19699 case $am_cv_python_pythondir in
19701 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19702 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19705 case $am_py_prefix in
19708 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19716 $as_echo "$am_cv_python_pythondir" >&6; }
19717 pythondir=$am_cv_python_pythondir
19721 pkgpythondir=\${pythondir}/$PACKAGE
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19725 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19726 if ${am_cv_python_pyexecdir+:} false; then :
19727 $as_echo_n "(cached) " >&6
19729 if test "x$exec_prefix" = xNONE
19731 am_py_exec_prefix=$am_py_prefix
19733 am_py_exec_prefix=$exec_prefix
19735 am_cv_python_pyexecdir=`$PYTHON -c "
19736 $am_python_setup_sysconfig
19737 if can_use_sysconfig:
19738 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19740 from distutils import sysconfig
19741 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19742 sys.stdout.write(sitedir)"`
19743 case $am_cv_python_pyexecdir in
19744 $am_py_exec_prefix*)
19745 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19746 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19749 case $am_py_exec_prefix in
19752 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19760 $as_echo "$am_cv_python_pyexecdir" >&6; }
19761 pyexecdir=$am_cv_python_pyexecdir
19765 pkgpyexecdir=\${pyexecdir}/$PACKAGE
19771 # Allow the use of a (user set) custom python version
19775 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19776 set dummy python$PYTHON_VERSION; ac_word=$2
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19778 $as_echo_n "checking for $ac_word... " >&6; }
19779 if ${ac_cv_path_PYTHON+:} false; then :
19780 $as_echo_n "(cached) " >&6
19784 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788 for as_dir in $PATH
19791 test -z "$as_dir" && as_dir=.
19792 for ac_exec_ext in '' $ac_executable_extensions; do
19793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19794 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19805 PYTHON=$ac_cv_path_PYTHON
19806 if test -n "$PYTHON"; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19808 $as_echo "$PYTHON" >&6; }
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811 $as_echo "no" >&6; }
19815 if test -z "$PYTHON"; then
19816 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19821 # Check for a version of Python >= 2.1.0
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19824 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19825 ac_supports_python_ver=`$PYTHON -c "import sys; \
19826 ver = sys.version.split ()[0]; \
19827 print (ver >= '2.1.0')"`
19828 if test "$ac_supports_python_ver" != "True"; then
19829 if test -z "$PYTHON_NOVERSIONCHECK"; then
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19831 $as_echo "no" >&6; }
19832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19835 This version of the AC_PYTHON_DEVEL macro
19836 doesn't work properly with versions of Python before
19837 2.1.0. You may need to re-run configure, setting the
19838 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19839 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19840 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19841 to something else than an empty string.
19843 See \`config.log' for more details" "$LINENO" 5; }
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19846 $as_echo "skip at user request" >&6; }
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19850 $as_echo "yes" >&6; }
19854 # if the macro parameter ``version'' is set, honour it
19856 if test -n ""; then
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19858 $as_echo_n "checking for a version of Python ... " >&6; }
19859 ac_supports_python_ver=`$PYTHON -c "import sys; \
19860 ver = sys.version.split ()[0]; \
19862 if test "$ac_supports_python_ver" = "True"; then
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19864 $as_echo "yes" >&6; }
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867 $as_echo "no" >&6; }
19868 as_fn_error $? "this package requires Python .
19869 If you have it installed, but it isn't the default Python
19870 interpreter in your system path, please pass the PYTHON_VERSION
19871 variable to configure. See \`\`configure --help'' for reference.
19878 # Check if you have distutils, else fail
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19881 $as_echo_n "checking for the distutils Python package... " >&6; }
19882 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19883 if test -z "$ac_distutils_result"; then
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19885 $as_echo "yes" >&6; }
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888 $as_echo "no" >&6; }
19889 as_fn_error $? "cannot import Python module \"distutils\".
19890 Please check your Python installation. The error was:
19891 $ac_distutils_result" "$LINENO" 5
19896 # Check for Python include path
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19899 $as_echo_n "checking for Python include path... " >&6; }
19900 if test -z "$PYTHON_CPPFLAGS"; then
19901 python_path=`$PYTHON -c "import distutils.sysconfig; \
19902 print (distutils.sysconfig.get_python_inc ());"`
19903 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19904 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19905 if test -n "${python_path}"; then
19906 if test "${plat_python_path}" != "${python_path}"; then
19907 python_path="-I$python_path -I$plat_python_path"
19909 python_path="-I$python_path"
19912 PYTHON_CPPFLAGS=$python_path
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19915 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19919 # Check for Python library path
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19922 $as_echo_n "checking for Python library path... " >&6; }
19923 if test -z "$PYTHON_LDFLAGS"; then
19924 # (makes two attempts to ensure we've got a version number
19925 # from the interpreter)
19926 ac_python_version=`cat<<EOD | $PYTHON -
19928 # join all versioning strings, on some systems
19929 # major/minor numbers could be in different list elements
19930 from distutils.sysconfig import *
19931 e = get_config_var('VERSION')
19936 if test -z "$ac_python_version"; then
19937 if test -n "$PYTHON_VERSION"; then
19938 ac_python_version=$PYTHON_VERSION
19940 ac_python_version=`$PYTHON -c "import sys; \
19941 print (sys.version[:3])"`
19945 # Make the versioning information available to the compiler
19947 # JW: We don't need it and it interferes with the hack
19948 # to detect multiple Pyhton versions
19949 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19950 # [If available, contains the Python version number currently in use.])
19952 # First, the library directory:
19953 ac_python_libdir=`cat<<EOD | $PYTHON -
19955 # There should be only one
19956 import distutils.sysconfig
19957 e = distutils.sysconfig.get_config_var('LIBDIR')
19962 # Now, for the library:
19963 ac_python_library=`cat<<EOD | $PYTHON -
19965 import distutils.sysconfig
19966 c = distutils.sysconfig.get_config_vars()
19967 if 'LDVERSION' in c:
19968 print ('python'+c['LDVERSION'])
19970 print ('python'+c['VERSION'])
19973 # This small piece shamelessly adapted from PostgreSQL python macro;
19974 # credits goes to momjian, I think. I'd like to put the right name
19975 # in the credits, if someone can point me in the right direction... ?
19977 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19979 # use the official shared library
19980 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19981 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19983 # old way: use libpython from python_configdir
19984 ac_python_libdir=`$PYTHON -c \
19985 "from distutils.sysconfig import get_python_lib as f; \
19987 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19988 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19991 if test -z "PYTHON_LDFLAGS"; then
19993 Cannot determine location of your Python DSO. Please check it was installed with
19994 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19999 $as_echo "$PYTHON_LDFLAGS" >&6; }
20003 # Check for site packages
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20006 $as_echo_n "checking for Python site-packages path... " >&6; }
20007 if test -z "$PYTHON_SITE_PKG"; then
20008 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20009 print (distutils.sysconfig.get_python_lib(0,0));"`
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20012 $as_echo "$PYTHON_SITE_PKG" >&6; }
20016 # libraries which must be linked in when embedding
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20019 $as_echo_n "checking python extra libraries... " >&6; }
20020 if test -z "$PYTHON_EXTRA_LIBS"; then
20021 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20022 conf = distutils.sysconfig.get_config_var; \
20023 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20026 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20030 # linking flags needed when embedding
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20033 $as_echo_n "checking python extra linking flags... " >&6; }
20034 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20035 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20036 conf = distutils.sysconfig.get_config_var; \
20037 print (conf('LINKFORSHARED'))"`
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20040 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20044 # final check to see if everything compiles alright
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20047 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20048 # save current global flags
20049 ac_save_LIBS="$LIBS"
20050 ac_save_CPPFLAGS="$CPPFLAGS"
20051 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20052 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20054 ac_cpp='$CPP $CPPFLAGS'
20055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 #include <Python.h>
20072 if ac_fn_c_try_link "$LINENO"; then :
20077 rm -f core conftest.err conftest.$ac_objext \
20078 conftest$ac_exeext conftest.$ac_ext
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20085 # turn back to default flags
20086 CPPFLAGS="$ac_save_CPPFLAGS"
20087 LIBS="$ac_save_LIBS"
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20090 $as_echo "$pythonexists" >&6; }
20092 if test ! "x$pythonexists" = "xyes"; then
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20094 Could not link test program to Python. Maybe the main Python library has been
20095 installed in some non-standard library path. If so, pass it to configure,
20096 via the LDFLAGS environment variable.
20097 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20098 ============================================================================
20099 You probably have to install the development version of the Python package
20100 for your distribution. The exact name of this package varies among them.
20101 ============================================================================
20103 $as_echo "$as_me: WARNING:
20104 Could not link test program to Python. Maybe the main Python library has been
20105 installed in some non-standard library path. If so, pass it to configure,
20106 via the LDFLAGS environment variable.
20107 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20108 ============================================================================
20109 You probably have to install the development version of the Python package
20110 for your distribution. The exact name of this package varies among them.
20111 ============================================================================
20120 if test "$PYTHON_VERSION"; then
20121 PYTHONS="$(echo $PYTHONS $PYTHON)"
20122 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20129 unset PYTHON_VERSION
20130 unset PYTHON_CPPFLAGS
20131 unset PYTHON_LDFLAGS
20132 unset PYTHON_SITE_PKG
20133 unset PYTHON_EXTRA_LIBS
20134 unset PYTHON_EXTRA_LDFLAGS
20135 unset ac_cv_path_PYTHON
20136 unset am_cv_pathless_PYTHON
20137 unset am_cv_python_version
20138 unset am_cv_python_platform
20139 unset am_cv_python_pythondir
20140 unset am_cv_python_pyexecdir
20147 if test -n "$PYTHON"; then
20148 # If the user set $PYTHON, use it and don't search something else.
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20150 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20152 # split strings by '.' and convert to numeric. Append some zeros
20153 # because we need at least 4 digits for the hex conversion.
20154 # map returns an iterator in Python 3.0 and a list in 2.x
20155 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20157 # xrange is not present in Python 3.0 and range returns an iterator
20158 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20159 sys.exit(sys.hexversion < minverhex)"
20160 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20161 ($PYTHON -c "$prog") >&5 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; then :
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166 $as_echo "yes" >&6; }
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169 $as_echo "no" >&6; }
20170 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20172 am_display_PYTHON=$PYTHON
20174 # Otherwise, try each interpreter until we find one that satisfies
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20177 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20178 if ${am_cv_pathless_PYTHON+:} false; then :
20179 $as_echo_n "(cached) " >&6
20182 for am_cv_pathless_PYTHON in python3.4 none; do
20183 test "$am_cv_pathless_PYTHON" = none && break
20185 # split strings by '.' and convert to numeric. Append some zeros
20186 # because we need at least 4 digits for the hex conversion.
20187 # map returns an iterator in Python 3.0 and a list in 2.x
20188 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20190 # xrange is not present in Python 3.0 and range returns an iterator
20191 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20192 sys.exit(sys.hexversion < minverhex)"
20193 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20194 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; then :
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20203 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20204 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20205 if test "$am_cv_pathless_PYTHON" = none; then
20208 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20209 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 $as_echo_n "checking for $ac_word... " >&6; }
20212 if ${ac_cv_path_PYTHON+:} false; then :
20213 $as_echo_n "(cached) " >&6
20217 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221 for as_dir in $PATH
20224 test -z "$as_dir" && as_dir=.
20225 for ac_exec_ext in '' $ac_executable_extensions; do
20226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20227 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20238 PYTHON=$ac_cv_path_PYTHON
20239 if test -n "$PYTHON"; then
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20241 $as_echo "$PYTHON" >&6; }
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244 $as_echo "no" >&6; }
20249 am_display_PYTHON=$am_cv_pathless_PYTHON
20253 if test "$PYTHON" = :; then
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20259 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20260 if ${am_cv_python_version+:} false; then :
20261 $as_echo_n "(cached) " >&6
20263 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20266 $as_echo "$am_cv_python_version" >&6; }
20267 PYTHON_VERSION=$am_cv_python_version
20271 PYTHON_PREFIX='${prefix}'
20273 PYTHON_EXEC_PREFIX='${exec_prefix}'
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20278 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20279 if ${am_cv_python_platform+:} false; then :
20280 $as_echo_n "(cached) " >&6
20282 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20285 $as_echo "$am_cv_python_platform" >&6; }
20286 PYTHON_PLATFORM=$am_cv_python_platform
20289 # Just factor out some code duplication.
20290 am_python_setup_sysconfig="\
20292 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20293 # with python 3.x. See automake bug#10227.
20296 except ImportError:
20297 can_use_sysconfig = 0
20299 can_use_sysconfig = 1
20300 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20301 # <https://github.com/pypa/virtualenv/issues/118>
20303 from platform import python_implementation
20304 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20305 can_use_sysconfig = 0
20306 except ImportError:
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20311 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20312 if ${am_cv_python_pythondir+:} false; then :
20313 $as_echo_n "(cached) " >&6
20315 if test "x$prefix" = xNONE
20317 am_py_prefix=$ac_default_prefix
20319 am_py_prefix=$prefix
20321 am_cv_python_pythondir=`$PYTHON -c "
20322 $am_python_setup_sysconfig
20323 if can_use_sysconfig:
20324 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20326 from distutils import sysconfig
20327 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20328 sys.stdout.write(sitedir)"`
20329 case $am_cv_python_pythondir in
20331 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20332 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20335 case $am_py_prefix in
20338 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20346 $as_echo "$am_cv_python_pythondir" >&6; }
20347 pythondir=$am_cv_python_pythondir
20351 pkgpythondir=\${pythondir}/$PACKAGE
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20355 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20356 if ${am_cv_python_pyexecdir+:} false; then :
20357 $as_echo_n "(cached) " >&6
20359 if test "x$exec_prefix" = xNONE
20361 am_py_exec_prefix=$am_py_prefix
20363 am_py_exec_prefix=$exec_prefix
20365 am_cv_python_pyexecdir=`$PYTHON -c "
20366 $am_python_setup_sysconfig
20367 if can_use_sysconfig:
20368 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20370 from distutils import sysconfig
20371 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20372 sys.stdout.write(sitedir)"`
20373 case $am_cv_python_pyexecdir in
20374 $am_py_exec_prefix*)
20375 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20376 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20379 case $am_py_exec_prefix in
20382 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20390 $as_echo "$am_cv_python_pyexecdir" >&6; }
20391 pyexecdir=$am_cv_python_pyexecdir
20395 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20401 # Allow the use of a (user set) custom python version
20405 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20406 set dummy python$PYTHON_VERSION; ac_word=$2
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20408 $as_echo_n "checking for $ac_word... " >&6; }
20409 if ${ac_cv_path_PYTHON+:} false; then :
20410 $as_echo_n "(cached) " >&6
20414 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20418 for as_dir in $PATH
20421 test -z "$as_dir" && as_dir=.
20422 for ac_exec_ext in '' $ac_executable_extensions; do
20423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20424 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20435 PYTHON=$ac_cv_path_PYTHON
20436 if test -n "$PYTHON"; then
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20438 $as_echo "$PYTHON" >&6; }
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441 $as_echo "no" >&6; }
20445 if test -z "$PYTHON"; then
20446 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20451 # Check for a version of Python >= 2.1.0
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20454 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20455 ac_supports_python_ver=`$PYTHON -c "import sys; \
20456 ver = sys.version.split ()[0]; \
20457 print (ver >= '2.1.0')"`
20458 if test "$ac_supports_python_ver" != "True"; then
20459 if test -z "$PYTHON_NOVERSIONCHECK"; then
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461 $as_echo "no" >&6; }
20462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20465 This version of the AC_PYTHON_DEVEL macro
20466 doesn't work properly with versions of Python before
20467 2.1.0. You may need to re-run configure, setting the
20468 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20469 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20470 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20471 to something else than an empty string.
20473 See \`config.log' for more details" "$LINENO" 5; }
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20476 $as_echo "skip at user request" >&6; }
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480 $as_echo "yes" >&6; }
20484 # if the macro parameter ``version'' is set, honour it
20486 if test -n ""; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20488 $as_echo_n "checking for a version of Python ... " >&6; }
20489 ac_supports_python_ver=`$PYTHON -c "import sys; \
20490 ver = sys.version.split ()[0]; \
20492 if test "$ac_supports_python_ver" = "True"; then
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20494 $as_echo "yes" >&6; }
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497 $as_echo "no" >&6; }
20498 as_fn_error $? "this package requires Python .
20499 If you have it installed, but it isn't the default Python
20500 interpreter in your system path, please pass the PYTHON_VERSION
20501 variable to configure. See \`\`configure --help'' for reference.
20508 # Check if you have distutils, else fail
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20511 $as_echo_n "checking for the distutils Python package... " >&6; }
20512 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20513 if test -z "$ac_distutils_result"; then
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20515 $as_echo "yes" >&6; }
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20518 $as_echo "no" >&6; }
20519 as_fn_error $? "cannot import Python module \"distutils\".
20520 Please check your Python installation. The error was:
20521 $ac_distutils_result" "$LINENO" 5
20526 # Check for Python include path
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20529 $as_echo_n "checking for Python include path... " >&6; }
20530 if test -z "$PYTHON_CPPFLAGS"; then
20531 python_path=`$PYTHON -c "import distutils.sysconfig; \
20532 print (distutils.sysconfig.get_python_inc ());"`
20533 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20534 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20535 if test -n "${python_path}"; then
20536 if test "${plat_python_path}" != "${python_path}"; then
20537 python_path="-I$python_path -I$plat_python_path"
20539 python_path="-I$python_path"
20542 PYTHON_CPPFLAGS=$python_path
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20545 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20549 # Check for Python library path
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20552 $as_echo_n "checking for Python library path... " >&6; }
20553 if test -z "$PYTHON_LDFLAGS"; then
20554 # (makes two attempts to ensure we've got a version number
20555 # from the interpreter)
20556 ac_python_version=`cat<<EOD | $PYTHON -
20558 # join all versioning strings, on some systems
20559 # major/minor numbers could be in different list elements
20560 from distutils.sysconfig import *
20561 e = get_config_var('VERSION')
20566 if test -z "$ac_python_version"; then
20567 if test -n "$PYTHON_VERSION"; then
20568 ac_python_version=$PYTHON_VERSION
20570 ac_python_version=`$PYTHON -c "import sys; \
20571 print (sys.version[:3])"`
20575 # Make the versioning information available to the compiler
20577 # JW: We don't need it and it interferes with the hack
20578 # to detect multiple Pyhton versions
20579 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20580 # [If available, contains the Python version number currently in use.])
20582 # First, the library directory:
20583 ac_python_libdir=`cat<<EOD | $PYTHON -
20585 # There should be only one
20586 import distutils.sysconfig
20587 e = distutils.sysconfig.get_config_var('LIBDIR')
20592 # Now, for the library:
20593 ac_python_library=`cat<<EOD | $PYTHON -
20595 import distutils.sysconfig
20596 c = distutils.sysconfig.get_config_vars()
20597 if 'LDVERSION' in c:
20598 print ('python'+c['LDVERSION'])
20600 print ('python'+c['VERSION'])
20603 # This small piece shamelessly adapted from PostgreSQL python macro;
20604 # credits goes to momjian, I think. I'd like to put the right name
20605 # in the credits, if someone can point me in the right direction... ?
20607 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20609 # use the official shared library
20610 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20611 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20613 # old way: use libpython from python_configdir
20614 ac_python_libdir=`$PYTHON -c \
20615 "from distutils.sysconfig import get_python_lib as f; \
20617 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20618 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20621 if test -z "PYTHON_LDFLAGS"; then
20623 Cannot determine location of your Python DSO. Please check it was installed with
20624 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20629 $as_echo "$PYTHON_LDFLAGS" >&6; }
20633 # Check for site packages
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20636 $as_echo_n "checking for Python site-packages path... " >&6; }
20637 if test -z "$PYTHON_SITE_PKG"; then
20638 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20639 print (distutils.sysconfig.get_python_lib(0,0));"`
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20642 $as_echo "$PYTHON_SITE_PKG" >&6; }
20646 # libraries which must be linked in when embedding
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20649 $as_echo_n "checking python extra libraries... " >&6; }
20650 if test -z "$PYTHON_EXTRA_LIBS"; then
20651 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20652 conf = distutils.sysconfig.get_config_var; \
20653 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20656 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20660 # linking flags needed when embedding
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20663 $as_echo_n "checking python extra linking flags... " >&6; }
20664 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20665 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20666 conf = distutils.sysconfig.get_config_var; \
20667 print (conf('LINKFORSHARED'))"`
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20670 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20674 # final check to see if everything compiles alright
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20677 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20678 # save current global flags
20679 ac_save_LIBS="$LIBS"
20680 ac_save_CPPFLAGS="$CPPFLAGS"
20681 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20682 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20684 ac_cpp='$CPP $CPPFLAGS'
20685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h. */
20692 #include <Python.h>
20702 if ac_fn_c_try_link "$LINENO"; then :
20707 rm -f core conftest.err conftest.$ac_objext \
20708 conftest$ac_exeext conftest.$ac_ext
20710 ac_cpp='$CPP $CPPFLAGS'
20711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20715 # turn back to default flags
20716 CPPFLAGS="$ac_save_CPPFLAGS"
20717 LIBS="$ac_save_LIBS"
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20720 $as_echo "$pythonexists" >&6; }
20722 if test ! "x$pythonexists" = "xyes"; then
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20724 Could not link test program to Python. Maybe the main Python library has been
20725 installed in some non-standard library path. If so, pass it to configure,
20726 via the LDFLAGS environment variable.
20727 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20728 ============================================================================
20729 You probably have to install the development version of the Python package
20730 for your distribution. The exact name of this package varies among them.
20731 ============================================================================
20733 $as_echo "$as_me: WARNING:
20734 Could not link test program to Python. Maybe the main Python library has been
20735 installed in some non-standard library path. If so, pass it to configure,
20736 via the LDFLAGS environment variable.
20737 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20738 ============================================================================
20739 You probably have to install the development version of the Python package
20740 for your distribution. The exact name of this package varies among them.
20741 ============================================================================
20750 if test "$PYTHON_VERSION"; then
20751 PYTHONS="$(echo $PYTHONS $PYTHON)"
20752 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20759 unset PYTHON_VERSION
20760 unset PYTHON_CPPFLAGS
20761 unset PYTHON_LDFLAGS
20762 unset PYTHON_SITE_PKG
20763 unset PYTHON_EXTRA_LIBS
20764 unset PYTHON_EXTRA_LDFLAGS
20765 unset ac_cv_path_PYTHON
20766 unset am_cv_pathless_PYTHON
20767 unset am_cv_python_version
20768 unset am_cv_python_platform
20769 unset am_cv_python_pythondir
20770 unset am_cv_python_pyexecdir
20777 if test -n "$PYTHON"; then
20778 # If the user set $PYTHON, use it and don't search something else.
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20780 $as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20782 # split strings by '.' and convert to numeric. Append some zeros
20783 # because we need at least 4 digits for the hex conversion.
20784 # map returns an iterator in Python 3.0 and a list in 2.x
20785 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20787 # xrange is not present in Python 3.0 and range returns an iterator
20788 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20789 sys.exit(sys.hexversion < minverhex)"
20790 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20791 ($PYTHON -c "$prog") >&5 2>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; then :
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20796 $as_echo "yes" >&6; }
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20800 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20802 am_display_PYTHON=$PYTHON
20804 # Otherwise, try each interpreter until we find one that satisfies
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20807 $as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20808 if ${am_cv_pathless_PYTHON+:} false; then :
20809 $as_echo_n "(cached) " >&6
20812 for am_cv_pathless_PYTHON in python3.5 none; do
20813 test "$am_cv_pathless_PYTHON" = none && break
20815 # split strings by '.' and convert to numeric. Append some zeros
20816 # because we need at least 4 digits for the hex conversion.
20817 # map returns an iterator in Python 3.0 and a list in 2.x
20818 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20820 # xrange is not present in Python 3.0 and range returns an iterator
20821 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20822 sys.exit(sys.hexversion < minverhex)"
20823 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20824 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; then :
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20833 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20834 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20835 if test "$am_cv_pathless_PYTHON" = none; then
20838 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20839 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20841 $as_echo_n "checking for $ac_word... " >&6; }
20842 if ${ac_cv_path_PYTHON+:} false; then :
20843 $as_echo_n "(cached) " >&6
20847 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20851 for as_dir in $PATH
20854 test -z "$as_dir" && as_dir=.
20855 for ac_exec_ext in '' $ac_executable_extensions; do
20856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20857 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20868 PYTHON=$ac_cv_path_PYTHON
20869 if test -n "$PYTHON"; then
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20871 $as_echo "$PYTHON" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20879 am_display_PYTHON=$am_cv_pathless_PYTHON
20883 if test "$PYTHON" = :; then
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20889 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20890 if ${am_cv_python_version+:} false; then :
20891 $as_echo_n "(cached) " >&6
20893 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20896 $as_echo "$am_cv_python_version" >&6; }
20897 PYTHON_VERSION=$am_cv_python_version
20901 PYTHON_PREFIX='${prefix}'
20903 PYTHON_EXEC_PREFIX='${exec_prefix}'
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20908 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20909 if ${am_cv_python_platform+:} false; then :
20910 $as_echo_n "(cached) " >&6
20912 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20915 $as_echo "$am_cv_python_platform" >&6; }
20916 PYTHON_PLATFORM=$am_cv_python_platform
20919 # Just factor out some code duplication.
20920 am_python_setup_sysconfig="\
20922 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20923 # with python 3.x. See automake bug#10227.
20926 except ImportError:
20927 can_use_sysconfig = 0
20929 can_use_sysconfig = 1
20930 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20931 # <https://github.com/pypa/virtualenv/issues/118>
20933 from platform import python_implementation
20934 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20935 can_use_sysconfig = 0
20936 except ImportError:
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20941 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20942 if ${am_cv_python_pythondir+:} false; then :
20943 $as_echo_n "(cached) " >&6
20945 if test "x$prefix" = xNONE
20947 am_py_prefix=$ac_default_prefix
20949 am_py_prefix=$prefix
20951 am_cv_python_pythondir=`$PYTHON -c "
20952 $am_python_setup_sysconfig
20953 if can_use_sysconfig:
20954 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20956 from distutils import sysconfig
20957 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20958 sys.stdout.write(sitedir)"`
20959 case $am_cv_python_pythondir in
20961 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20962 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20965 case $am_py_prefix in
20968 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20976 $as_echo "$am_cv_python_pythondir" >&6; }
20977 pythondir=$am_cv_python_pythondir
20981 pkgpythondir=\${pythondir}/$PACKAGE
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20985 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20986 if ${am_cv_python_pyexecdir+:} false; then :
20987 $as_echo_n "(cached) " >&6
20989 if test "x$exec_prefix" = xNONE
20991 am_py_exec_prefix=$am_py_prefix
20993 am_py_exec_prefix=$exec_prefix
20995 am_cv_python_pyexecdir=`$PYTHON -c "
20996 $am_python_setup_sysconfig
20997 if can_use_sysconfig:
20998 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21000 from distutils import sysconfig
21001 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21002 sys.stdout.write(sitedir)"`
21003 case $am_cv_python_pyexecdir in
21004 $am_py_exec_prefix*)
21005 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21006 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21009 case $am_py_exec_prefix in
21012 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21020 $as_echo "$am_cv_python_pyexecdir" >&6; }
21021 pyexecdir=$am_cv_python_pyexecdir
21025 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21031 # Allow the use of a (user set) custom python version
21035 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21036 set dummy python$PYTHON_VERSION; ac_word=$2
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21038 $as_echo_n "checking for $ac_word... " >&6; }
21039 if ${ac_cv_path_PYTHON+:} false; then :
21040 $as_echo_n "(cached) " >&6
21044 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21048 for as_dir in $PATH
21051 test -z "$as_dir" && as_dir=.
21052 for ac_exec_ext in '' $ac_executable_extensions; do
21053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21054 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21065 PYTHON=$ac_cv_path_PYTHON
21066 if test -n "$PYTHON"; then
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21068 $as_echo "$PYTHON" >&6; }
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 $as_echo "no" >&6; }
21075 if test -z "$PYTHON"; then
21076 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21081 # Check for a version of Python >= 2.1.0
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21084 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21085 ac_supports_python_ver=`$PYTHON -c "import sys; \
21086 ver = sys.version.split ()[0]; \
21087 print (ver >= '2.1.0')"`
21088 if test "$ac_supports_python_ver" != "True"; then
21089 if test -z "$PYTHON_NOVERSIONCHECK"; then
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 $as_echo "no" >&6; }
21092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21095 This version of the AC_PYTHON_DEVEL macro
21096 doesn't work properly with versions of Python before
21097 2.1.0. You may need to re-run configure, setting the
21098 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21099 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21100 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21101 to something else than an empty string.
21103 See \`config.log' for more details" "$LINENO" 5; }
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21106 $as_echo "skip at user request" >&6; }
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21110 $as_echo "yes" >&6; }
21114 # if the macro parameter ``version'' is set, honour it
21116 if test -n ""; then
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21118 $as_echo_n "checking for a version of Python ... " >&6; }
21119 ac_supports_python_ver=`$PYTHON -c "import sys; \
21120 ver = sys.version.split ()[0]; \
21122 if test "$ac_supports_python_ver" = "True"; then
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21124 $as_echo "yes" >&6; }
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21127 $as_echo "no" >&6; }
21128 as_fn_error $? "this package requires Python .
21129 If you have it installed, but it isn't the default Python
21130 interpreter in your system path, please pass the PYTHON_VERSION
21131 variable to configure. See \`\`configure --help'' for reference.
21138 # Check if you have distutils, else fail
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21141 $as_echo_n "checking for the distutils Python package... " >&6; }
21142 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21143 if test -z "$ac_distutils_result"; then
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145 $as_echo "yes" >&6; }
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148 $as_echo "no" >&6; }
21149 as_fn_error $? "cannot import Python module \"distutils\".
21150 Please check your Python installation. The error was:
21151 $ac_distutils_result" "$LINENO" 5
21156 # Check for Python include path
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21159 $as_echo_n "checking for Python include path... " >&6; }
21160 if test -z "$PYTHON_CPPFLAGS"; then
21161 python_path=`$PYTHON -c "import distutils.sysconfig; \
21162 print (distutils.sysconfig.get_python_inc ());"`
21163 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21164 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21165 if test -n "${python_path}"; then
21166 if test "${plat_python_path}" != "${python_path}"; then
21167 python_path="-I$python_path -I$plat_python_path"
21169 python_path="-I$python_path"
21172 PYTHON_CPPFLAGS=$python_path
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21175 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21179 # Check for Python library path
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21182 $as_echo_n "checking for Python library path... " >&6; }
21183 if test -z "$PYTHON_LDFLAGS"; then
21184 # (makes two attempts to ensure we've got a version number
21185 # from the interpreter)
21186 ac_python_version=`cat<<EOD | $PYTHON -
21188 # join all versioning strings, on some systems
21189 # major/minor numbers could be in different list elements
21190 from distutils.sysconfig import *
21191 e = get_config_var('VERSION')
21196 if test -z "$ac_python_version"; then
21197 if test -n "$PYTHON_VERSION"; then
21198 ac_python_version=$PYTHON_VERSION
21200 ac_python_version=`$PYTHON -c "import sys; \
21201 print (sys.version[:3])"`
21205 # Make the versioning information available to the compiler
21207 # JW: We don't need it and it interferes with the hack
21208 # to detect multiple Pyhton versions
21209 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21210 # [If available, contains the Python version number currently in use.])
21212 # First, the library directory:
21213 ac_python_libdir=`cat<<EOD | $PYTHON -
21215 # There should be only one
21216 import distutils.sysconfig
21217 e = distutils.sysconfig.get_config_var('LIBDIR')
21222 # Now, for the library:
21223 ac_python_library=`cat<<EOD | $PYTHON -
21225 import distutils.sysconfig
21226 c = distutils.sysconfig.get_config_vars()
21227 if 'LDVERSION' in c:
21228 print ('python'+c['LDVERSION'])
21230 print ('python'+c['VERSION'])
21233 # This small piece shamelessly adapted from PostgreSQL python macro;
21234 # credits goes to momjian, I think. I'd like to put the right name
21235 # in the credits, if someone can point me in the right direction... ?
21237 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21239 # use the official shared library
21240 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21241 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21243 # old way: use libpython from python_configdir
21244 ac_python_libdir=`$PYTHON -c \
21245 "from distutils.sysconfig import get_python_lib as f; \
21247 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21248 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21251 if test -z "PYTHON_LDFLAGS"; then
21253 Cannot determine location of your Python DSO. Please check it was installed with
21254 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21259 $as_echo "$PYTHON_LDFLAGS" >&6; }
21263 # Check for site packages
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21266 $as_echo_n "checking for Python site-packages path... " >&6; }
21267 if test -z "$PYTHON_SITE_PKG"; then
21268 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21269 print (distutils.sysconfig.get_python_lib(0,0));"`
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21272 $as_echo "$PYTHON_SITE_PKG" >&6; }
21276 # libraries which must be linked in when embedding
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21279 $as_echo_n "checking python extra libraries... " >&6; }
21280 if test -z "$PYTHON_EXTRA_LIBS"; then
21281 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21282 conf = distutils.sysconfig.get_config_var; \
21283 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21286 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21290 # linking flags needed when embedding
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21293 $as_echo_n "checking python extra linking flags... " >&6; }
21294 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21295 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21296 conf = distutils.sysconfig.get_config_var; \
21297 print (conf('LINKFORSHARED'))"`
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21300 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21304 # final check to see if everything compiles alright
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21307 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21308 # save current global flags
21309 ac_save_LIBS="$LIBS"
21310 ac_save_CPPFLAGS="$CPPFLAGS"
21311 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21312 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21314 ac_cpp='$CPP $CPPFLAGS'
21315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h. */
21322 #include <Python.h>
21332 if ac_fn_c_try_link "$LINENO"; then :
21337 rm -f core conftest.err conftest.$ac_objext \
21338 conftest$ac_exeext conftest.$ac_ext
21340 ac_cpp='$CPP $CPPFLAGS'
21341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21345 # turn back to default flags
21346 CPPFLAGS="$ac_save_CPPFLAGS"
21347 LIBS="$ac_save_LIBS"
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21350 $as_echo "$pythonexists" >&6; }
21352 if test ! "x$pythonexists" = "xyes"; then
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21354 Could not link test program to Python. Maybe the main Python library has been
21355 installed in some non-standard library path. If so, pass it to configure,
21356 via the LDFLAGS environment variable.
21357 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21358 ============================================================================
21359 You probably have to install the development version of the Python package
21360 for your distribution. The exact name of this package varies among them.
21361 ============================================================================
21363 $as_echo "$as_me: WARNING:
21364 Could not link test program to Python. Maybe the main Python library has been
21365 installed in some non-standard library path. If so, pass it to configure,
21366 via the LDFLAGS environment variable.
21367 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21368 ============================================================================
21369 You probably have to install the development version of the Python package
21370 for your distribution. The exact name of this package varies among them.
21371 ============================================================================
21380 if test "$PYTHON_VERSION"; then
21381 PYTHONS="$(echo $PYTHONS $PYTHON)"
21382 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21389 unset PYTHON_VERSION
21390 unset PYTHON_CPPFLAGS
21391 unset PYTHON_LDFLAGS
21392 unset PYTHON_SITE_PKG
21393 unset PYTHON_EXTRA_LIBS
21394 unset PYTHON_EXTRA_LDFLAGS
21395 unset ac_cv_path_PYTHON
21396 unset am_cv_pathless_PYTHON
21397 unset am_cv_python_version
21398 unset am_cv_python_platform
21399 unset am_cv_python_pythondir
21400 unset am_cv_python_pyexecdir
21407 if test -n "$PYTHON"; then
21408 # If the user set $PYTHON, use it and don't search something else.
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21410 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21412 # split strings by '.' and convert to numeric. Append some zeros
21413 # because we need at least 4 digits for the hex conversion.
21414 # map returns an iterator in Python 3.0 and a list in 2.x
21415 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21417 # xrange is not present in Python 3.0 and range returns an iterator
21418 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21419 sys.exit(sys.hexversion < minverhex)"
21420 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21421 ($PYTHON -c "$prog") >&5 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; then :
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21426 $as_echo "yes" >&6; }
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21429 $as_echo "no" >&6; }
21430 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21432 am_display_PYTHON=$PYTHON
21434 # Otherwise, try each interpreter until we find one that satisfies
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21437 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21438 if ${am_cv_pathless_PYTHON+:} false; then :
21439 $as_echo_n "(cached) " >&6
21442 for am_cv_pathless_PYTHON in python3.6 none; do
21443 test "$am_cv_pathless_PYTHON" = none && break
21445 # split strings by '.' and convert to numeric. Append some zeros
21446 # because we need at least 4 digits for the hex conversion.
21447 # map returns an iterator in Python 3.0 and a list in 2.x
21448 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21450 # xrange is not present in Python 3.0 and range returns an iterator
21451 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21452 sys.exit(sys.hexversion < minverhex)"
21453 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21454 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; then :
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21463 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21464 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21465 if test "$am_cv_pathless_PYTHON" = none; then
21468 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21469 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21471 $as_echo_n "checking for $ac_word... " >&6; }
21472 if ${ac_cv_path_PYTHON+:} false; then :
21473 $as_echo_n "(cached) " >&6
21477 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21481 for as_dir in $PATH
21484 test -z "$as_dir" && as_dir=.
21485 for ac_exec_ext in '' $ac_executable_extensions; do
21486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21487 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21498 PYTHON=$ac_cv_path_PYTHON
21499 if test -n "$PYTHON"; then
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21501 $as_echo "$PYTHON" >&6; }
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21504 $as_echo "no" >&6; }
21509 am_display_PYTHON=$am_cv_pathless_PYTHON
21513 if test "$PYTHON" = :; then
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21519 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21520 if ${am_cv_python_version+:} false; then :
21521 $as_echo_n "(cached) " >&6
21523 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21526 $as_echo "$am_cv_python_version" >&6; }
21527 PYTHON_VERSION=$am_cv_python_version
21531 PYTHON_PREFIX='${prefix}'
21533 PYTHON_EXEC_PREFIX='${exec_prefix}'
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21538 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21539 if ${am_cv_python_platform+:} false; then :
21540 $as_echo_n "(cached) " >&6
21542 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21545 $as_echo "$am_cv_python_platform" >&6; }
21546 PYTHON_PLATFORM=$am_cv_python_platform
21549 # Just factor out some code duplication.
21550 am_python_setup_sysconfig="\
21552 # Prefer sysconfig over distutils.sysconfig, for better compatibility
21553 # with python 3.x. See automake bug#10227.
21556 except ImportError:
21557 can_use_sysconfig = 0
21559 can_use_sysconfig = 1
21560 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21561 # <https://github.com/pypa/virtualenv/issues/118>
21563 from platform import python_implementation
21564 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21565 can_use_sysconfig = 0
21566 except ImportError:
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21571 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21572 if ${am_cv_python_pythondir+:} false; then :
21573 $as_echo_n "(cached) " >&6
21575 if test "x$prefix" = xNONE
21577 am_py_prefix=$ac_default_prefix
21579 am_py_prefix=$prefix
21581 am_cv_python_pythondir=`$PYTHON -c "
21582 $am_python_setup_sysconfig
21583 if can_use_sysconfig:
21584 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21586 from distutils import sysconfig
21587 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21588 sys.stdout.write(sitedir)"`
21589 case $am_cv_python_pythondir in
21591 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21592 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21595 case $am_py_prefix in
21598 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21606 $as_echo "$am_cv_python_pythondir" >&6; }
21607 pythondir=$am_cv_python_pythondir
21611 pkgpythondir=\${pythondir}/$PACKAGE
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21615 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21616 if ${am_cv_python_pyexecdir+:} false; then :
21617 $as_echo_n "(cached) " >&6
21619 if test "x$exec_prefix" = xNONE
21621 am_py_exec_prefix=$am_py_prefix
21623 am_py_exec_prefix=$exec_prefix
21625 am_cv_python_pyexecdir=`$PYTHON -c "
21626 $am_python_setup_sysconfig
21627 if can_use_sysconfig:
21628 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21630 from distutils import sysconfig
21631 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21632 sys.stdout.write(sitedir)"`
21633 case $am_cv_python_pyexecdir in
21634 $am_py_exec_prefix*)
21635 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21636 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21639 case $am_py_exec_prefix in
21642 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21650 $as_echo "$am_cv_python_pyexecdir" >&6; }
21651 pyexecdir=$am_cv_python_pyexecdir
21655 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21661 # Allow the use of a (user set) custom python version
21665 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21666 set dummy python$PYTHON_VERSION; ac_word=$2
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21668 $as_echo_n "checking for $ac_word... " >&6; }
21669 if ${ac_cv_path_PYTHON+:} false; then :
21670 $as_echo_n "(cached) " >&6
21674 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21678 for as_dir in $PATH
21681 test -z "$as_dir" && as_dir=.
21682 for ac_exec_ext in '' $ac_executable_extensions; do
21683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21684 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21695 PYTHON=$ac_cv_path_PYTHON
21696 if test -n "$PYTHON"; then
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21698 $as_echo "$PYTHON" >&6; }
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21705 if test -z "$PYTHON"; then
21706 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21711 # Check for a version of Python >= 2.1.0
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21714 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21715 ac_supports_python_ver=`$PYTHON -c "import sys; \
21716 ver = sys.version.split ()[0]; \
21717 print (ver >= '2.1.0')"`
21718 if test "$ac_supports_python_ver" != "True"; then
21719 if test -z "$PYTHON_NOVERSIONCHECK"; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721 $as_echo "no" >&6; }
21722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21725 This version of the AC_PYTHON_DEVEL macro
21726 doesn't work properly with versions of Python before
21727 2.1.0. You may need to re-run configure, setting the
21728 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21729 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21730 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21731 to something else than an empty string.
21733 See \`config.log' for more details" "$LINENO" 5; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21736 $as_echo "skip at user request" >&6; }
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21740 $as_echo "yes" >&6; }
21744 # if the macro parameter ``version'' is set, honour it
21746 if test -n ""; then
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21748 $as_echo_n "checking for a version of Python ... " >&6; }
21749 ac_supports_python_ver=`$PYTHON -c "import sys; \
21750 ver = sys.version.split ()[0]; \
21752 if test "$ac_supports_python_ver" = "True"; then
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21754 $as_echo "yes" >&6; }
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21757 $as_echo "no" >&6; }
21758 as_fn_error $? "this package requires Python .
21759 If you have it installed, but it isn't the default Python
21760 interpreter in your system path, please pass the PYTHON_VERSION
21761 variable to configure. See \`\`configure --help'' for reference.
21768 # Check if you have distutils, else fail
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21771 $as_echo_n "checking for the distutils Python package... " >&6; }
21772 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21773 if test -z "$ac_distutils_result"; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21775 $as_echo "yes" >&6; }
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778 $as_echo "no" >&6; }
21779 as_fn_error $? "cannot import Python module \"distutils\".
21780 Please check your Python installation. The error was:
21781 $ac_distutils_result" "$LINENO" 5
21786 # Check for Python include path
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21789 $as_echo_n "checking for Python include path... " >&6; }
21790 if test -z "$PYTHON_CPPFLAGS"; then
21791 python_path=`$PYTHON -c "import distutils.sysconfig; \
21792 print (distutils.sysconfig.get_python_inc ());"`
21793 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21794 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21795 if test -n "${python_path}"; then
21796 if test "${plat_python_path}" != "${python_path}"; then
21797 python_path="-I$python_path -I$plat_python_path"
21799 python_path="-I$python_path"
21802 PYTHON_CPPFLAGS=$python_path
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21805 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21809 # Check for Python library path
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21812 $as_echo_n "checking for Python library path... " >&6; }
21813 if test -z "$PYTHON_LDFLAGS"; then
21814 # (makes two attempts to ensure we've got a version number
21815 # from the interpreter)
21816 ac_python_version=`cat<<EOD | $PYTHON -
21818 # join all versioning strings, on some systems
21819 # major/minor numbers could be in different list elements
21820 from distutils.sysconfig import *
21821 e = get_config_var('VERSION')
21826 if test -z "$ac_python_version"; then
21827 if test -n "$PYTHON_VERSION"; then
21828 ac_python_version=$PYTHON_VERSION
21830 ac_python_version=`$PYTHON -c "import sys; \
21831 print (sys.version[:3])"`
21835 # Make the versioning information available to the compiler
21837 # JW: We don't need it and it interferes with the hack
21838 # to detect multiple Pyhton versions
21839 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21840 # [If available, contains the Python version number currently in use.])
21842 # First, the library directory:
21843 ac_python_libdir=`cat<<EOD | $PYTHON -
21845 # There should be only one
21846 import distutils.sysconfig
21847 e = distutils.sysconfig.get_config_var('LIBDIR')
21852 # Now, for the library:
21853 ac_python_library=`cat<<EOD | $PYTHON -
21855 import distutils.sysconfig
21856 c = distutils.sysconfig.get_config_vars()
21857 if 'LDVERSION' in c:
21858 print ('python'+c['LDVERSION'])
21860 print ('python'+c['VERSION'])
21863 # This small piece shamelessly adapted from PostgreSQL python macro;
21864 # credits goes to momjian, I think. I'd like to put the right name
21865 # in the credits, if someone can point me in the right direction... ?
21867 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21869 # use the official shared library
21870 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21871 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21873 # old way: use libpython from python_configdir
21874 ac_python_libdir=`$PYTHON -c \
21875 "from distutils.sysconfig import get_python_lib as f; \
21877 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21878 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21881 if test -z "PYTHON_LDFLAGS"; then
21883 Cannot determine location of your Python DSO. Please check it was installed with
21884 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21889 $as_echo "$PYTHON_LDFLAGS" >&6; }
21893 # Check for site packages
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21896 $as_echo_n "checking for Python site-packages path... " >&6; }
21897 if test -z "$PYTHON_SITE_PKG"; then
21898 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21899 print (distutils.sysconfig.get_python_lib(0,0));"`
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21902 $as_echo "$PYTHON_SITE_PKG" >&6; }
21906 # libraries which must be linked in when embedding
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21909 $as_echo_n "checking python extra libraries... " >&6; }
21910 if test -z "$PYTHON_EXTRA_LIBS"; then
21911 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21912 conf = distutils.sysconfig.get_config_var; \
21913 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21916 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21920 # linking flags needed when embedding
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21923 $as_echo_n "checking python extra linking flags... " >&6; }
21924 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21925 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21926 conf = distutils.sysconfig.get_config_var; \
21927 print (conf('LINKFORSHARED'))"`
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21930 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21934 # final check to see if everything compiles alright
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21937 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21938 # save current global flags
21939 ac_save_LIBS="$LIBS"
21940 ac_save_CPPFLAGS="$CPPFLAGS"
21941 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21942 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21944 ac_cpp='$CPP $CPPFLAGS'
21945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21950 /* end confdefs.h. */
21952 #include <Python.h>
21962 if ac_fn_c_try_link "$LINENO"; then :
21967 rm -f core conftest.err conftest.$ac_objext \
21968 conftest$ac_exeext conftest.$ac_ext
21970 ac_cpp='$CPP $CPPFLAGS'
21971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21975 # turn back to default flags
21976 CPPFLAGS="$ac_save_CPPFLAGS"
21977 LIBS="$ac_save_LIBS"
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21980 $as_echo "$pythonexists" >&6; }
21982 if test ! "x$pythonexists" = "xyes"; then
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21984 Could not link test program to Python. Maybe the main Python library has been
21985 installed in some non-standard library path. If so, pass it to configure,
21986 via the LDFLAGS environment variable.
21987 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21988 ============================================================================
21989 You probably have to install the development version of the Python package
21990 for your distribution. The exact name of this package varies among them.
21991 ============================================================================
21993 $as_echo "$as_me: WARNING:
21994 Could not link test program to Python. Maybe the main Python library has been
21995 installed in some non-standard library path. If so, pass it to configure,
21996 via the LDFLAGS environment variable.
21997 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21998 ============================================================================
21999 You probably have to install the development version of the Python package
22000 for your distribution. The exact name of this package varies among them.
22001 ============================================================================
22010 if test "$PYTHON_VERSION"; then
22011 PYTHONS="$(echo $PYTHONS $PYTHON)"
22012 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22019 unset PYTHON_VERSION
22020 unset PYTHON_CPPFLAGS
22021 unset PYTHON_LDFLAGS
22022 unset PYTHON_SITE_PKG
22023 unset PYTHON_EXTRA_LIBS
22024 unset PYTHON_EXTRA_LDFLAGS
22025 unset ac_cv_path_PYTHON
22026 unset am_cv_pathless_PYTHON
22027 unset am_cv_python_version
22028 unset am_cv_python_platform
22029 unset am_cv_python_pythondir
22030 unset am_cv_python_pyexecdir
22037 if test -n "$PYTHON"; then
22038 # If the user set $PYTHON, use it and don't search something else.
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
22040 $as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
22042 # split strings by '.' and convert to numeric. Append some zeros
22043 # because we need at least 4 digits for the hex conversion.
22044 # map returns an iterator in Python 3.0 and a list in 2.x
22045 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22047 # xrange is not present in Python 3.0 and range returns an iterator
22048 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22049 sys.exit(sys.hexversion < minverhex)"
22050 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22051 ($PYTHON -c "$prog") >&5 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; then :
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22056 $as_echo "yes" >&6; }
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22059 $as_echo "no" >&6; }
22060 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22062 am_display_PYTHON=$PYTHON
22064 # Otherwise, try each interpreter until we find one that satisfies
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22067 $as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22068 if ${am_cv_pathless_PYTHON+:} false; then :
22069 $as_echo_n "(cached) " >&6
22072 for am_cv_pathless_PYTHON in python3.7 none; do
22073 test "$am_cv_pathless_PYTHON" = none && break
22075 # split strings by '.' and convert to numeric. Append some zeros
22076 # because we need at least 4 digits for the hex conversion.
22077 # map returns an iterator in Python 3.0 and a list in 2.x
22078 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22080 # xrange is not present in Python 3.0 and range returns an iterator
22081 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22082 sys.exit(sys.hexversion < minverhex)"
22083 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22084 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; then :
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22093 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22094 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22095 if test "$am_cv_pathless_PYTHON" = none; then
22098 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22099 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22101 $as_echo_n "checking for $ac_word... " >&6; }
22102 if ${ac_cv_path_PYTHON+:} false; then :
22103 $as_echo_n "(cached) " >&6
22107 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22111 for as_dir in $PATH
22114 test -z "$as_dir" && as_dir=.
22115 for ac_exec_ext in '' $ac_executable_extensions; do
22116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22117 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22128 PYTHON=$ac_cv_path_PYTHON
22129 if test -n "$PYTHON"; then
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22131 $as_echo "$PYTHON" >&6; }
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22134 $as_echo "no" >&6; }
22139 am_display_PYTHON=$am_cv_pathless_PYTHON
22143 if test "$PYTHON" = :; then
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22149 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22150 if ${am_cv_python_version+:} false; then :
22151 $as_echo_n "(cached) " >&6
22153 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22156 $as_echo "$am_cv_python_version" >&6; }
22157 PYTHON_VERSION=$am_cv_python_version
22161 PYTHON_PREFIX='${prefix}'
22163 PYTHON_EXEC_PREFIX='${exec_prefix}'
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22168 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22169 if ${am_cv_python_platform+:} false; then :
22170 $as_echo_n "(cached) " >&6
22172 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22175 $as_echo "$am_cv_python_platform" >&6; }
22176 PYTHON_PLATFORM=$am_cv_python_platform
22179 # Just factor out some code duplication.
22180 am_python_setup_sysconfig="\
22182 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22183 # with python 3.x. See automake bug#10227.
22186 except ImportError:
22187 can_use_sysconfig = 0
22189 can_use_sysconfig = 1
22190 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22191 # <https://github.com/pypa/virtualenv/issues/118>
22193 from platform import python_implementation
22194 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22195 can_use_sysconfig = 0
22196 except ImportError:
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22201 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22202 if ${am_cv_python_pythondir+:} false; then :
22203 $as_echo_n "(cached) " >&6
22205 if test "x$prefix" = xNONE
22207 am_py_prefix=$ac_default_prefix
22209 am_py_prefix=$prefix
22211 am_cv_python_pythondir=`$PYTHON -c "
22212 $am_python_setup_sysconfig
22213 if can_use_sysconfig:
22214 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22216 from distutils import sysconfig
22217 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22218 sys.stdout.write(sitedir)"`
22219 case $am_cv_python_pythondir in
22221 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22222 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22225 case $am_py_prefix in
22228 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22236 $as_echo "$am_cv_python_pythondir" >&6; }
22237 pythondir=$am_cv_python_pythondir
22241 pkgpythondir=\${pythondir}/$PACKAGE
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22245 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22246 if ${am_cv_python_pyexecdir+:} false; then :
22247 $as_echo_n "(cached) " >&6
22249 if test "x$exec_prefix" = xNONE
22251 am_py_exec_prefix=$am_py_prefix
22253 am_py_exec_prefix=$exec_prefix
22255 am_cv_python_pyexecdir=`$PYTHON -c "
22256 $am_python_setup_sysconfig
22257 if can_use_sysconfig:
22258 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22260 from distutils import sysconfig
22261 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22262 sys.stdout.write(sitedir)"`
22263 case $am_cv_python_pyexecdir in
22264 $am_py_exec_prefix*)
22265 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22266 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22269 case $am_py_exec_prefix in
22272 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22280 $as_echo "$am_cv_python_pyexecdir" >&6; }
22281 pyexecdir=$am_cv_python_pyexecdir
22285 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22291 # Allow the use of a (user set) custom python version
22295 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22296 set dummy python$PYTHON_VERSION; ac_word=$2
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22298 $as_echo_n "checking for $ac_word... " >&6; }
22299 if ${ac_cv_path_PYTHON+:} false; then :
22300 $as_echo_n "(cached) " >&6
22304 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308 for as_dir in $PATH
22311 test -z "$as_dir" && as_dir=.
22312 for ac_exec_ext in '' $ac_executable_extensions; do
22313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22314 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22325 PYTHON=$ac_cv_path_PYTHON
22326 if test -n "$PYTHON"; then
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22328 $as_echo "$PYTHON" >&6; }
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22331 $as_echo "no" >&6; }
22335 if test -z "$PYTHON"; then
22336 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22341 # Check for a version of Python >= 2.1.0
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22344 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22345 ac_supports_python_ver=`$PYTHON -c "import sys; \
22346 ver = sys.version.split ()[0]; \
22347 print (ver >= '2.1.0')"`
22348 if test "$ac_supports_python_ver" != "True"; then
22349 if test -z "$PYTHON_NOVERSIONCHECK"; then
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22355 This version of the AC_PYTHON_DEVEL macro
22356 doesn't work properly with versions of Python before
22357 2.1.0. You may need to re-run configure, setting the
22358 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22359 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22360 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22361 to something else than an empty string.
22363 See \`config.log' for more details" "$LINENO" 5; }
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22366 $as_echo "skip at user request" >&6; }
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370 $as_echo "yes" >&6; }
22374 # if the macro parameter ``version'' is set, honour it
22376 if test -n ""; then
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22378 $as_echo_n "checking for a version of Python ... " >&6; }
22379 ac_supports_python_ver=`$PYTHON -c "import sys; \
22380 ver = sys.version.split ()[0]; \
22382 if test "$ac_supports_python_ver" = "True"; then
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22384 $as_echo "yes" >&6; }
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22387 $as_echo "no" >&6; }
22388 as_fn_error $? "this package requires Python .
22389 If you have it installed, but it isn't the default Python
22390 interpreter in your system path, please pass the PYTHON_VERSION
22391 variable to configure. See \`\`configure --help'' for reference.
22398 # Check if you have distutils, else fail
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22401 $as_echo_n "checking for the distutils Python package... " >&6; }
22402 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22403 if test -z "$ac_distutils_result"; then
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22405 $as_echo "yes" >&6; }
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22409 as_fn_error $? "cannot import Python module \"distutils\".
22410 Please check your Python installation. The error was:
22411 $ac_distutils_result" "$LINENO" 5
22416 # Check for Python include path
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22419 $as_echo_n "checking for Python include path... " >&6; }
22420 if test -z "$PYTHON_CPPFLAGS"; then
22421 python_path=`$PYTHON -c "import distutils.sysconfig; \
22422 print (distutils.sysconfig.get_python_inc ());"`
22423 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22424 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22425 if test -n "${python_path}"; then
22426 if test "${plat_python_path}" != "${python_path}"; then
22427 python_path="-I$python_path -I$plat_python_path"
22429 python_path="-I$python_path"
22432 PYTHON_CPPFLAGS=$python_path
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22435 $as_echo "$PYTHON_CPPFLAGS" >&6; }
22439 # Check for Python library path
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22442 $as_echo_n "checking for Python library path... " >&6; }
22443 if test -z "$PYTHON_LDFLAGS"; then
22444 # (makes two attempts to ensure we've got a version number
22445 # from the interpreter)
22446 ac_python_version=`cat<<EOD | $PYTHON -
22448 # join all versioning strings, on some systems
22449 # major/minor numbers could be in different list elements
22450 from distutils.sysconfig import *
22451 e = get_config_var('VERSION')
22456 if test -z "$ac_python_version"; then
22457 if test -n "$PYTHON_VERSION"; then
22458 ac_python_version=$PYTHON_VERSION
22460 ac_python_version=`$PYTHON -c "import sys; \
22461 print (sys.version[:3])"`
22465 # Make the versioning information available to the compiler
22467 # JW: We don't need it and it interferes with the hack
22468 # to detect multiple Pyhton versions
22469 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22470 # [If available, contains the Python version number currently in use.])
22472 # First, the library directory:
22473 ac_python_libdir=`cat<<EOD | $PYTHON -
22475 # There should be only one
22476 import distutils.sysconfig
22477 e = distutils.sysconfig.get_config_var('LIBDIR')
22482 # Now, for the library:
22483 ac_python_library=`cat<<EOD | $PYTHON -
22485 import distutils.sysconfig
22486 c = distutils.sysconfig.get_config_vars()
22487 if 'LDVERSION' in c:
22488 print ('python'+c['LDVERSION'])
22490 print ('python'+c['VERSION'])
22493 # This small piece shamelessly adapted from PostgreSQL python macro;
22494 # credits goes to momjian, I think. I'd like to put the right name
22495 # in the credits, if someone can point me in the right direction... ?
22497 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22499 # use the official shared library
22500 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22501 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22503 # old way: use libpython from python_configdir
22504 ac_python_libdir=`$PYTHON -c \
22505 "from distutils.sysconfig import get_python_lib as f; \
22507 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22508 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22511 if test -z "PYTHON_LDFLAGS"; then
22513 Cannot determine location of your Python DSO. Please check it was installed with
22514 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22519 $as_echo "$PYTHON_LDFLAGS" >&6; }
22523 # Check for site packages
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22526 $as_echo_n "checking for Python site-packages path... " >&6; }
22527 if test -z "$PYTHON_SITE_PKG"; then
22528 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22529 print (distutils.sysconfig.get_python_lib(0,0));"`
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22532 $as_echo "$PYTHON_SITE_PKG" >&6; }
22536 # libraries which must be linked in when embedding
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22539 $as_echo_n "checking python extra libraries... " >&6; }
22540 if test -z "$PYTHON_EXTRA_LIBS"; then
22541 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22542 conf = distutils.sysconfig.get_config_var; \
22543 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22546 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22550 # linking flags needed when embedding
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22553 $as_echo_n "checking python extra linking flags... " >&6; }
22554 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22555 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22556 conf = distutils.sysconfig.get_config_var; \
22557 print (conf('LINKFORSHARED'))"`
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22560 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22564 # final check to see if everything compiles alright
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22567 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
22568 # save current global flags
22569 ac_save_LIBS="$LIBS"
22570 ac_save_CPPFLAGS="$CPPFLAGS"
22571 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22572 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22574 ac_cpp='$CPP $CPPFLAGS'
22575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22580 /* end confdefs.h. */
22582 #include <Python.h>
22592 if ac_fn_c_try_link "$LINENO"; then :
22597 rm -f core conftest.err conftest.$ac_objext \
22598 conftest$ac_exeext conftest.$ac_ext
22600 ac_cpp='$CPP $CPPFLAGS'
22601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22605 # turn back to default flags
22606 CPPFLAGS="$ac_save_CPPFLAGS"
22607 LIBS="$ac_save_LIBS"
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22610 $as_echo "$pythonexists" >&6; }
22612 if test ! "x$pythonexists" = "xyes"; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22614 Could not link test program to Python. Maybe the main Python library has been
22615 installed in some non-standard library path. If so, pass it to configure,
22616 via the LDFLAGS environment variable.
22617 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22618 ============================================================================
22619 You probably have to install the development version of the Python package
22620 for your distribution. The exact name of this package varies among them.
22621 ============================================================================
22623 $as_echo "$as_me: WARNING:
22624 Could not link test program to Python. Maybe the main Python library has been
22625 installed in some non-standard library path. If so, pass it to configure,
22626 via the LDFLAGS environment variable.
22627 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22628 ============================================================================
22629 You probably have to install the development version of the Python package
22630 for your distribution. The exact name of this package varies among them.
22631 ============================================================================
22640 if test "$PYTHON_VERSION"; then
22641 PYTHONS="$(echo $PYTHONS $PYTHON)"
22642 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22649 unset PYTHON_VERSION
22650 unset PYTHON_CPPFLAGS
22651 unset PYTHON_LDFLAGS
22652 unset PYTHON_SITE_PKG
22653 unset PYTHON_EXTRA_LIBS
22654 unset PYTHON_EXTRA_LDFLAGS
22655 unset ac_cv_path_PYTHON
22656 unset am_cv_pathless_PYTHON
22657 unset am_cv_python_version
22658 unset am_cv_python_platform
22659 unset am_cv_python_pythondir
22660 unset am_cv_python_pyexecdir
22667 if test -n "$PYTHON"; then
22668 # If the user set $PYTHON, use it and don't search something else.
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22670 $as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22672 # split strings by '.' and convert to numeric. Append some zeros
22673 # because we need at least 4 digits for the hex conversion.
22674 # map returns an iterator in Python 3.0 and a list in 2.x
22675 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22677 # xrange is not present in Python 3.0 and range returns an iterator
22678 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22679 sys.exit(sys.hexversion < minverhex)"
22680 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22681 ($PYTHON -c "$prog") >&5 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; then :
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22686 $as_echo "yes" >&6; }
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22689 $as_echo "no" >&6; }
22690 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22692 am_display_PYTHON=$PYTHON
22694 # Otherwise, try each interpreter until we find one that satisfies
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22697 $as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22698 if ${am_cv_pathless_PYTHON+:} false; then :
22699 $as_echo_n "(cached) " >&6
22702 for am_cv_pathless_PYTHON in python3.8 none; do
22703 test "$am_cv_pathless_PYTHON" = none && break
22705 # split strings by '.' and convert to numeric. Append some zeros
22706 # because we need at least 4 digits for the hex conversion.
22707 # map returns an iterator in Python 3.0 and a list in 2.x
22708 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22710 # xrange is not present in Python 3.0 and range returns an iterator
22711 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22712 sys.exit(sys.hexversion < minverhex)"
22713 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22714 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; then :
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22723 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22724 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22725 if test "$am_cv_pathless_PYTHON" = none; then
22728 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22729 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22731 $as_echo_n "checking for $ac_word... " >&6; }
22732 if ${ac_cv_path_PYTHON+:} false; then :
22733 $as_echo_n "(cached) " >&6
22737 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741 for as_dir in $PATH
22744 test -z "$as_dir" && as_dir=.
22745 for ac_exec_ext in '' $ac_executable_extensions; do
22746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22747 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22758 PYTHON=$ac_cv_path_PYTHON
22759 if test -n "$PYTHON"; then
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22761 $as_echo "$PYTHON" >&6; }
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22769 am_display_PYTHON=$am_cv_pathless_PYTHON
22773 if test "$PYTHON" = :; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22779 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22780 if ${am_cv_python_version+:} false; then :
22781 $as_echo_n "(cached) " >&6
22783 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22786 $as_echo "$am_cv_python_version" >&6; }
22787 PYTHON_VERSION=$am_cv_python_version
22791 PYTHON_PREFIX='${prefix}'
22793 PYTHON_EXEC_PREFIX='${exec_prefix}'
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22798 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22799 if ${am_cv_python_platform+:} false; then :
22800 $as_echo_n "(cached) " >&6
22802 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22805 $as_echo "$am_cv_python_platform" >&6; }
22806 PYTHON_PLATFORM=$am_cv_python_platform
22809 # Just factor out some code duplication.
22810 am_python_setup_sysconfig="\
22812 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22813 # with python 3.x. See automake bug#10227.
22816 except ImportError:
22817 can_use_sysconfig = 0
22819 can_use_sysconfig = 1
22820 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22821 # <https://github.com/pypa/virtualenv/issues/118>
22823 from platform import python_implementation
22824 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22825 can_use_sysconfig = 0
22826 except ImportError:
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22831 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22832 if ${am_cv_python_pythondir+:} false; then :
22833 $as_echo_n "(cached) " >&6
22835 if test "x$prefix" = xNONE
22837 am_py_prefix=$ac_default_prefix
22839 am_py_prefix=$prefix
22841 am_cv_python_pythondir=`$PYTHON -c "
22842 $am_python_setup_sysconfig
22843 if can_use_sysconfig:
22844 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22846 from distutils import sysconfig
22847 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22848 sys.stdout.write(sitedir)"`
22849 case $am_cv_python_pythondir in
22851 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22852 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22855 case $am_py_prefix in
22858 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22866 $as_echo "$am_cv_python_pythondir" >&6; }
22867 pythondir=$am_cv_python_pythondir
22871 pkgpythondir=\${pythondir}/$PACKAGE
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22875 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22876 if ${am_cv_python_pyexecdir+:} false; then :
22877 $as_echo_n "(cached) " >&6
22879 if test "x$exec_prefix" = xNONE
22881 am_py_exec_prefix=$am_py_prefix
22883 am_py_exec_prefix=$exec_prefix
22885 am_cv_python_pyexecdir=`$PYTHON -c "
22886 $am_python_setup_sysconfig
22887 if can_use_sysconfig:
22888 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22890 from distutils import sysconfig
22891 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22892 sys.stdout.write(sitedir)"`
22893 case $am_cv_python_pyexecdir in
22894 $am_py_exec_prefix*)
22895 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22896 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22899 case $am_py_exec_prefix in
22902 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22910 $as_echo "$am_cv_python_pyexecdir" >&6; }
22911 pyexecdir=$am_cv_python_pyexecdir
22915 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22921 # Allow the use of a (user set) custom python version
22925 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22926 set dummy python$PYTHON_VERSION; ac_word=$2
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22928 $as_echo_n "checking for $ac_word... " >&6; }
22929 if ${ac_cv_path_PYTHON+:} false; then :
22930 $as_echo_n "(cached) " >&6
22934 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938 for as_dir in $PATH
22941 test -z "$as_dir" && as_dir=.
22942 for ac_exec_ext in '' $ac_executable_extensions; do
22943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22944 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22955 PYTHON=$ac_cv_path_PYTHON
22956 if test -n "$PYTHON"; then
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22958 $as_echo "$PYTHON" >&6; }
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961 $as_echo "no" >&6; }
22965 if test -z "$PYTHON"; then
22966 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22971 # Check for a version of Python >= 2.1.0
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22974 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22975 ac_supports_python_ver=`$PYTHON -c "import sys; \
22976 ver = sys.version.split ()[0]; \
22977 print (ver >= '2.1.0')"`
22978 if test "$ac_supports_python_ver" != "True"; then
22979 if test -z "$PYTHON_NOVERSIONCHECK"; then
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22981 $as_echo "no" >&6; }
22982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22985 This version of the AC_PYTHON_DEVEL macro
22986 doesn't work properly with versions of Python before
22987 2.1.0. You may need to re-run configure, setting the
22988 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22989 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22990 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22991 to something else than an empty string.
22993 See \`config.log' for more details" "$LINENO" 5; }
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22996 $as_echo "skip at user request" >&6; }
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23000 $as_echo "yes" >&6; }
23004 # if the macro parameter ``version'' is set, honour it
23006 if test -n ""; then
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23008 $as_echo_n "checking for a version of Python ... " >&6; }
23009 ac_supports_python_ver=`$PYTHON -c "import sys; \
23010 ver = sys.version.split ()[0]; \
23012 if test "$ac_supports_python_ver" = "True"; then
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23014 $as_echo "yes" >&6; }
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017 $as_echo "no" >&6; }
23018 as_fn_error $? "this package requires Python .
23019 If you have it installed, but it isn't the default Python
23020 interpreter in your system path, please pass the PYTHON_VERSION
23021 variable to configure. See \`\`configure --help'' for reference.
23028 # Check if you have distutils, else fail
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23031 $as_echo_n "checking for the distutils Python package... " >&6; }
23032 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23033 if test -z "$ac_distutils_result"; then
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23035 $as_echo "yes" >&6; }
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23038 $as_echo "no" >&6; }
23039 as_fn_error $? "cannot import Python module \"distutils\".
23040 Please check your Python installation. The error was:
23041 $ac_distutils_result" "$LINENO" 5
23046 # Check for Python include path
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23049 $as_echo_n "checking for Python include path... " >&6; }
23050 if test -z "$PYTHON_CPPFLAGS"; then
23051 python_path=`$PYTHON -c "import distutils.sysconfig; \
23052 print (distutils.sysconfig.get_python_inc ());"`
23053 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23054 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23055 if test -n "${python_path}"; then
23056 if test "${plat_python_path}" != "${python_path}"; then
23057 python_path="-I$python_path -I$plat_python_path"
23059 python_path="-I$python_path"
23062 PYTHON_CPPFLAGS=$python_path
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23065 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23069 # Check for Python library path
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23072 $as_echo_n "checking for Python library path... " >&6; }
23073 if test -z "$PYTHON_LDFLAGS"; then
23074 # (makes two attempts to ensure we've got a version number
23075 # from the interpreter)
23076 ac_python_version=`cat<<EOD | $PYTHON -
23078 # join all versioning strings, on some systems
23079 # major/minor numbers could be in different list elements
23080 from distutils.sysconfig import *
23081 e = get_config_var('VERSION')
23086 if test -z "$ac_python_version"; then
23087 if test -n "$PYTHON_VERSION"; then
23088 ac_python_version=$PYTHON_VERSION
23090 ac_python_version=`$PYTHON -c "import sys; \
23091 print (sys.version[:3])"`
23095 # Make the versioning information available to the compiler
23097 # JW: We don't need it and it interferes with the hack
23098 # to detect multiple Pyhton versions
23099 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23100 # [If available, contains the Python version number currently in use.])
23102 # First, the library directory:
23103 ac_python_libdir=`cat<<EOD | $PYTHON -
23105 # There should be only one
23106 import distutils.sysconfig
23107 e = distutils.sysconfig.get_config_var('LIBDIR')
23112 # Now, for the library:
23113 ac_python_library=`cat<<EOD | $PYTHON -
23115 import distutils.sysconfig
23116 c = distutils.sysconfig.get_config_vars()
23117 if 'LDVERSION' in c:
23118 print ('python'+c['LDVERSION'])
23120 print ('python'+c['VERSION'])
23123 # This small piece shamelessly adapted from PostgreSQL python macro;
23124 # credits goes to momjian, I think. I'd like to put the right name
23125 # in the credits, if someone can point me in the right direction... ?
23127 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23129 # use the official shared library
23130 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23131 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23133 # old way: use libpython from python_configdir
23134 ac_python_libdir=`$PYTHON -c \
23135 "from distutils.sysconfig import get_python_lib as f; \
23137 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23138 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23141 if test -z "PYTHON_LDFLAGS"; then
23143 Cannot determine location of your Python DSO. Please check it was installed with
23144 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23149 $as_echo "$PYTHON_LDFLAGS" >&6; }
23153 # Check for site packages
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23156 $as_echo_n "checking for Python site-packages path... " >&6; }
23157 if test -z "$PYTHON_SITE_PKG"; then
23158 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23159 print (distutils.sysconfig.get_python_lib(0,0));"`
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23162 $as_echo "$PYTHON_SITE_PKG" >&6; }
23166 # libraries which must be linked in when embedding
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23169 $as_echo_n "checking python extra libraries... " >&6; }
23170 if test -z "$PYTHON_EXTRA_LIBS"; then
23171 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23172 conf = distutils.sysconfig.get_config_var; \
23173 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23176 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23180 # linking flags needed when embedding
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23183 $as_echo_n "checking python extra linking flags... " >&6; }
23184 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23185 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23186 conf = distutils.sysconfig.get_config_var; \
23187 print (conf('LINKFORSHARED'))"`
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23190 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23194 # final check to see if everything compiles alright
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23197 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23198 # save current global flags
23199 ac_save_LIBS="$LIBS"
23200 ac_save_CPPFLAGS="$CPPFLAGS"
23201 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23202 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23204 ac_cpp='$CPP $CPPFLAGS'
23205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h. */
23212 #include <Python.h>
23222 if ac_fn_c_try_link "$LINENO"; then :
23227 rm -f core conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
23230 ac_cpp='$CPP $CPPFLAGS'
23231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23235 # turn back to default flags
23236 CPPFLAGS="$ac_save_CPPFLAGS"
23237 LIBS="$ac_save_LIBS"
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23240 $as_echo "$pythonexists" >&6; }
23242 if test ! "x$pythonexists" = "xyes"; then
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23244 Could not link test program to Python. Maybe the main Python library has been
23245 installed in some non-standard library path. If so, pass it to configure,
23246 via the LDFLAGS environment variable.
23247 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23248 ============================================================================
23249 You probably have to install the development version of the Python package
23250 for your distribution. The exact name of this package varies among them.
23251 ============================================================================
23253 $as_echo "$as_me: WARNING:
23254 Could not link test program to Python. Maybe the main Python library has been
23255 installed in some non-standard library path. If so, pass it to configure,
23256 via the LDFLAGS environment variable.
23257 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23258 ============================================================================
23259 You probably have to install the development version of the Python package
23260 for your distribution. The exact name of this package varies among them.
23261 ============================================================================
23270 if test "$PYTHON_VERSION"; then
23271 PYTHONS="$(echo $PYTHONS $PYTHON)"
23272 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23279 unset PYTHON_VERSION
23280 unset PYTHON_CPPFLAGS
23281 unset PYTHON_LDFLAGS
23282 unset PYTHON_SITE_PKG
23283 unset PYTHON_EXTRA_LIBS
23284 unset PYTHON_EXTRA_LDFLAGS
23285 unset ac_cv_path_PYTHON
23286 unset am_cv_pathless_PYTHON
23287 unset am_cv_python_version
23288 unset am_cv_python_platform
23289 unset am_cv_python_pythondir
23290 unset am_cv_python_pyexecdir
23297 if test -n "$PYTHON"; then
23298 # If the user set $PYTHON, use it and don't search something else.
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23300 $as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23302 # split strings by '.' and convert to numeric. Append some zeros
23303 # because we need at least 4 digits for the hex conversion.
23304 # map returns an iterator in Python 3.0 and a list in 2.x
23305 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23307 # xrange is not present in Python 3.0 and range returns an iterator
23308 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23309 sys.exit(sys.hexversion < minverhex)"
23310 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23311 ($PYTHON -c "$prog") >&5 2>&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; then :
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23316 $as_echo "yes" >&6; }
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319 $as_echo "no" >&6; }
23320 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23322 am_display_PYTHON=$PYTHON
23324 # Otherwise, try each interpreter until we find one that satisfies
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23327 $as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23328 if ${am_cv_pathless_PYTHON+:} false; then :
23329 $as_echo_n "(cached) " >&6
23332 for am_cv_pathless_PYTHON in python3.9 none; do
23333 test "$am_cv_pathless_PYTHON" = none && break
23335 # split strings by '.' and convert to numeric. Append some zeros
23336 # because we need at least 4 digits for the hex conversion.
23337 # map returns an iterator in Python 3.0 and a list in 2.x
23338 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23340 # xrange is not present in Python 3.0 and range returns an iterator
23341 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23342 sys.exit(sys.hexversion < minverhex)"
23343 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23344 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; then :
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23353 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23354 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23355 if test "$am_cv_pathless_PYTHON" = none; then
23358 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23359 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23361 $as_echo_n "checking for $ac_word... " >&6; }
23362 if ${ac_cv_path_PYTHON+:} false; then :
23363 $as_echo_n "(cached) " >&6
23367 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371 for as_dir in $PATH
23374 test -z "$as_dir" && as_dir=.
23375 for ac_exec_ext in '' $ac_executable_extensions; do
23376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23377 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23388 PYTHON=$ac_cv_path_PYTHON
23389 if test -n "$PYTHON"; then
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23391 $as_echo "$PYTHON" >&6; }
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23394 $as_echo "no" >&6; }
23399 am_display_PYTHON=$am_cv_pathless_PYTHON
23403 if test "$PYTHON" = :; then
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23409 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23410 if ${am_cv_python_version+:} false; then :
23411 $as_echo_n "(cached) " >&6
23413 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23416 $as_echo "$am_cv_python_version" >&6; }
23417 PYTHON_VERSION=$am_cv_python_version
23421 PYTHON_PREFIX='${prefix}'
23423 PYTHON_EXEC_PREFIX='${exec_prefix}'
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23428 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23429 if ${am_cv_python_platform+:} false; then :
23430 $as_echo_n "(cached) " >&6
23432 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23435 $as_echo "$am_cv_python_platform" >&6; }
23436 PYTHON_PLATFORM=$am_cv_python_platform
23439 # Just factor out some code duplication.
23440 am_python_setup_sysconfig="\
23442 # Prefer sysconfig over distutils.sysconfig, for better compatibility
23443 # with python 3.x. See automake bug#10227.
23446 except ImportError:
23447 can_use_sysconfig = 0
23449 can_use_sysconfig = 1
23450 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23451 # <https://github.com/pypa/virtualenv/issues/118>
23453 from platform import python_implementation
23454 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23455 can_use_sysconfig = 0
23456 except ImportError:
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23461 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23462 if ${am_cv_python_pythondir+:} false; then :
23463 $as_echo_n "(cached) " >&6
23465 if test "x$prefix" = xNONE
23467 am_py_prefix=$ac_default_prefix
23469 am_py_prefix=$prefix
23471 am_cv_python_pythondir=`$PYTHON -c "
23472 $am_python_setup_sysconfig
23473 if can_use_sysconfig:
23474 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23476 from distutils import sysconfig
23477 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23478 sys.stdout.write(sitedir)"`
23479 case $am_cv_python_pythondir in
23481 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23482 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23485 case $am_py_prefix in
23488 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23496 $as_echo "$am_cv_python_pythondir" >&6; }
23497 pythondir=$am_cv_python_pythondir
23501 pkgpythondir=\${pythondir}/$PACKAGE
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23505 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23506 if ${am_cv_python_pyexecdir+:} false; then :
23507 $as_echo_n "(cached) " >&6
23509 if test "x$exec_prefix" = xNONE
23511 am_py_exec_prefix=$am_py_prefix
23513 am_py_exec_prefix=$exec_prefix
23515 am_cv_python_pyexecdir=`$PYTHON -c "
23516 $am_python_setup_sysconfig
23517 if can_use_sysconfig:
23518 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23520 from distutils import sysconfig
23521 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23522 sys.stdout.write(sitedir)"`
23523 case $am_cv_python_pyexecdir in
23524 $am_py_exec_prefix*)
23525 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23526 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23529 case $am_py_exec_prefix in
23532 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23540 $as_echo "$am_cv_python_pyexecdir" >&6; }
23541 pyexecdir=$am_cv_python_pyexecdir
23545 pkgpyexecdir=\${pyexecdir}/$PACKAGE
23551 # Allow the use of a (user set) custom python version
23555 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23556 set dummy python$PYTHON_VERSION; ac_word=$2
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23558 $as_echo_n "checking for $ac_word... " >&6; }
23559 if ${ac_cv_path_PYTHON+:} false; then :
23560 $as_echo_n "(cached) " >&6
23564 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23568 for as_dir in $PATH
23571 test -z "$as_dir" && as_dir=.
23572 for ac_exec_ext in '' $ac_executable_extensions; do
23573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23574 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23585 PYTHON=$ac_cv_path_PYTHON
23586 if test -n "$PYTHON"; then
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23588 $as_echo "$PYTHON" >&6; }
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591 $as_echo "no" >&6; }
23595 if test -z "$PYTHON"; then
23596 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23601 # Check for a version of Python >= 2.1.0
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23604 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23605 ac_supports_python_ver=`$PYTHON -c "import sys; \
23606 ver = sys.version.split ()[0]; \
23607 print (ver >= '2.1.0')"`
23608 if test "$ac_supports_python_ver" != "True"; then
23609 if test -z "$PYTHON_NOVERSIONCHECK"; then
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23611 $as_echo "no" >&6; }
23612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23615 This version of the AC_PYTHON_DEVEL macro
23616 doesn't work properly with versions of Python before
23617 2.1.0. You may need to re-run configure, setting the
23618 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23619 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23620 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23621 to something else than an empty string.
23623 See \`config.log' for more details" "$LINENO" 5; }
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23626 $as_echo "skip at user request" >&6; }
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630 $as_echo "yes" >&6; }
23634 # if the macro parameter ``version'' is set, honour it
23636 if test -n ""; then
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23638 $as_echo_n "checking for a version of Python ... " >&6; }
23639 ac_supports_python_ver=`$PYTHON -c "import sys; \
23640 ver = sys.version.split ()[0]; \
23642 if test "$ac_supports_python_ver" = "True"; then
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23644 $as_echo "yes" >&6; }
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23647 $as_echo "no" >&6; }
23648 as_fn_error $? "this package requires Python .
23649 If you have it installed, but it isn't the default Python
23650 interpreter in your system path, please pass the PYTHON_VERSION
23651 variable to configure. See \`\`configure --help'' for reference.
23658 # Check if you have distutils, else fail
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23661 $as_echo_n "checking for the distutils Python package... " >&6; }
23662 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23663 if test -z "$ac_distutils_result"; then
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23665 $as_echo "yes" >&6; }
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668 $as_echo "no" >&6; }
23669 as_fn_error $? "cannot import Python module \"distutils\".
23670 Please check your Python installation. The error was:
23671 $ac_distutils_result" "$LINENO" 5
23676 # Check for Python include path
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23679 $as_echo_n "checking for Python include path... " >&6; }
23680 if test -z "$PYTHON_CPPFLAGS"; then
23681 python_path=`$PYTHON -c "import distutils.sysconfig; \
23682 print (distutils.sysconfig.get_python_inc ());"`
23683 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23684 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23685 if test -n "${python_path}"; then
23686 if test "${plat_python_path}" != "${python_path}"; then
23687 python_path="-I$python_path -I$plat_python_path"
23689 python_path="-I$python_path"
23692 PYTHON_CPPFLAGS=$python_path
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23695 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23699 # Check for Python library path
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23702 $as_echo_n "checking for Python library path... " >&6; }
23703 if test -z "$PYTHON_LDFLAGS"; then
23704 # (makes two attempts to ensure we've got a version number
23705 # from the interpreter)
23706 ac_python_version=`cat<<EOD | $PYTHON -
23708 # join all versioning strings, on some systems
23709 # major/minor numbers could be in different list elements
23710 from distutils.sysconfig import *
23711 e = get_config_var('VERSION')
23716 if test -z "$ac_python_version"; then
23717 if test -n "$PYTHON_VERSION"; then
23718 ac_python_version=$PYTHON_VERSION
23720 ac_python_version=`$PYTHON -c "import sys; \
23721 print (sys.version[:3])"`
23725 # Make the versioning information available to the compiler
23727 # JW: We don't need it and it interferes with the hack
23728 # to detect multiple Pyhton versions
23729 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23730 # [If available, contains the Python version number currently in use.])
23732 # First, the library directory:
23733 ac_python_libdir=`cat<<EOD | $PYTHON -
23735 # There should be only one
23736 import distutils.sysconfig
23737 e = distutils.sysconfig.get_config_var('LIBDIR')
23742 # Now, for the library:
23743 ac_python_library=`cat<<EOD | $PYTHON -
23745 import distutils.sysconfig
23746 c = distutils.sysconfig.get_config_vars()
23747 if 'LDVERSION' in c:
23748 print ('python'+c['LDVERSION'])
23750 print ('python'+c['VERSION'])
23753 # This small piece shamelessly adapted from PostgreSQL python macro;
23754 # credits goes to momjian, I think. I'd like to put the right name
23755 # in the credits, if someone can point me in the right direction... ?
23757 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23759 # use the official shared library
23760 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23761 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23763 # old way: use libpython from python_configdir
23764 ac_python_libdir=`$PYTHON -c \
23765 "from distutils.sysconfig import get_python_lib as f; \
23767 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23768 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23771 if test -z "PYTHON_LDFLAGS"; then
23773 Cannot determine location of your Python DSO. Please check it was installed with
23774 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23779 $as_echo "$PYTHON_LDFLAGS" >&6; }
23783 # Check for site packages
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23786 $as_echo_n "checking for Python site-packages path... " >&6; }
23787 if test -z "$PYTHON_SITE_PKG"; then
23788 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23789 print (distutils.sysconfig.get_python_lib(0,0));"`
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23792 $as_echo "$PYTHON_SITE_PKG" >&6; }
23796 # libraries which must be linked in when embedding
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23799 $as_echo_n "checking python extra libraries... " >&6; }
23800 if test -z "$PYTHON_EXTRA_LIBS"; then
23801 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23802 conf = distutils.sysconfig.get_config_var; \
23803 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23806 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23810 # linking flags needed when embedding
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23813 $as_echo_n "checking python extra linking flags... " >&6; }
23814 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23815 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23816 conf = distutils.sysconfig.get_config_var; \
23817 print (conf('LINKFORSHARED'))"`
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23820 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23824 # final check to see if everything compiles alright
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23827 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23828 # save current global flags
23829 ac_save_LIBS="$LIBS"
23830 ac_save_CPPFLAGS="$CPPFLAGS"
23831 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23832 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23834 ac_cpp='$CPP $CPPFLAGS'
23835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23842 #include <Python.h>
23852 if ac_fn_c_try_link "$LINENO"; then :
23857 rm -f core conftest.err conftest.$ac_objext \
23858 conftest$ac_exeext conftest.$ac_ext
23860 ac_cpp='$CPP $CPPFLAGS'
23861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23865 # turn back to default flags
23866 CPPFLAGS="$ac_save_CPPFLAGS"
23867 LIBS="$ac_save_LIBS"
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23870 $as_echo "$pythonexists" >&6; }
23872 if test ! "x$pythonexists" = "xyes"; then
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23874 Could not link test program to Python. Maybe the main Python library has been
23875 installed in some non-standard library path. If so, pass it to configure,
23876 via the LDFLAGS environment variable.
23877 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23878 ============================================================================
23879 You probably have to install the development version of the Python package
23880 for your distribution. The exact name of this package varies among them.
23881 ============================================================================
23883 $as_echo "$as_me: WARNING:
23884 Could not link test program to Python. Maybe the main Python library has been
23885 installed in some non-standard library path. If so, pass it to configure,
23886 via the LDFLAGS environment variable.
23887 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23888 ============================================================================
23889 You probably have to install the development version of the Python package
23890 for your distribution. The exact name of this package varies among them.
23891 ============================================================================
23900 if test "$PYTHON_VERSION"; then
23901 PYTHONS="$(echo $PYTHONS $PYTHON)"
23902 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23909 unset PYTHON_VERSION
23910 unset PYTHON_CPPFLAGS
23911 unset PYTHON_LDFLAGS
23912 unset PYTHON_SITE_PKG
23913 unset PYTHON_EXTRA_LIBS
23914 unset PYTHON_EXTRA_LDFLAGS
23915 unset ac_cv_path_PYTHON
23916 unset am_cv_pathless_PYTHON
23917 unset am_cv_python_version
23918 unset am_cv_python_platform
23919 unset am_cv_python_pythondir
23920 unset am_cv_python_pyexecdir
23927 if test -n "$PYTHON"; then
23928 # If the user set $PYTHON, use it and don't search something else.
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23930 $as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23932 # split strings by '.' and convert to numeric. Append some zeros
23933 # because we need at least 4 digits for the hex conversion.
23934 # map returns an iterator in Python 3.0 and a list in 2.x
23935 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23937 # xrange is not present in Python 3.0 and range returns an iterator
23938 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23939 sys.exit(sys.hexversion < minverhex)"
23940 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23941 ($PYTHON -c "$prog") >&5 2>&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; then :
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23946 $as_echo "yes" >&6; }
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949 $as_echo "no" >&6; }
23950 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23952 am_display_PYTHON=$PYTHON
23954 # Otherwise, try each interpreter until we find one that satisfies
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23957 $as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23958 if ${am_cv_pathless_PYTHON+:} false; then :
23959 $as_echo_n "(cached) " >&6
23962 for am_cv_pathless_PYTHON in pythonall none; do
23963 test "$am_cv_pathless_PYTHON" = none && break
23965 # split strings by '.' and convert to numeric. Append some zeros
23966 # because we need at least 4 digits for the hex conversion.
23967 # map returns an iterator in Python 3.0 and a list in 2.x
23968 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23970 # xrange is not present in Python 3.0 and range returns an iterator
23971 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23972 sys.exit(sys.hexversion < minverhex)"
23973 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23974 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; then :
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23983 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23984 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23985 if test "$am_cv_pathless_PYTHON" = none; then
23988 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23989 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23991 $as_echo_n "checking for $ac_word... " >&6; }
23992 if ${ac_cv_path_PYTHON+:} false; then :
23993 $as_echo_n "(cached) " >&6
23997 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24001 for as_dir in $PATH
24004 test -z "$as_dir" && as_dir=.
24005 for ac_exec_ext in '' $ac_executable_extensions; do
24006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24007 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24018 PYTHON=$ac_cv_path_PYTHON
24019 if test -n "$PYTHON"; then
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24021 $as_echo "$PYTHON" >&6; }
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024 $as_echo "no" >&6; }
24029 am_display_PYTHON=$am_cv_pathless_PYTHON
24033 if test "$PYTHON" = :; then
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24039 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24040 if ${am_cv_python_version+:} false; then :
24041 $as_echo_n "(cached) " >&6
24043 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24046 $as_echo "$am_cv_python_version" >&6; }
24047 PYTHON_VERSION=$am_cv_python_version
24051 PYTHON_PREFIX='${prefix}'
24053 PYTHON_EXEC_PREFIX='${exec_prefix}'
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24058 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24059 if ${am_cv_python_platform+:} false; then :
24060 $as_echo_n "(cached) " >&6
24062 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24065 $as_echo "$am_cv_python_platform" >&6; }
24066 PYTHON_PLATFORM=$am_cv_python_platform
24069 # Just factor out some code duplication.
24070 am_python_setup_sysconfig="\
24072 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24073 # with python 3.x. See automake bug#10227.
24076 except ImportError:
24077 can_use_sysconfig = 0
24079 can_use_sysconfig = 1
24080 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24081 # <https://github.com/pypa/virtualenv/issues/118>
24083 from platform import python_implementation
24084 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24085 can_use_sysconfig = 0
24086 except ImportError:
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24091 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24092 if ${am_cv_python_pythondir+:} false; then :
24093 $as_echo_n "(cached) " >&6
24095 if test "x$prefix" = xNONE
24097 am_py_prefix=$ac_default_prefix
24099 am_py_prefix=$prefix
24101 am_cv_python_pythondir=`$PYTHON -c "
24102 $am_python_setup_sysconfig
24103 if can_use_sysconfig:
24104 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24106 from distutils import sysconfig
24107 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24108 sys.stdout.write(sitedir)"`
24109 case $am_cv_python_pythondir in
24111 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24112 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24115 case $am_py_prefix in
24118 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24126 $as_echo "$am_cv_python_pythondir" >&6; }
24127 pythondir=$am_cv_python_pythondir
24131 pkgpythondir=\${pythondir}/$PACKAGE
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24135 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24136 if ${am_cv_python_pyexecdir+:} false; then :
24137 $as_echo_n "(cached) " >&6
24139 if test "x$exec_prefix" = xNONE
24141 am_py_exec_prefix=$am_py_prefix
24143 am_py_exec_prefix=$exec_prefix
24145 am_cv_python_pyexecdir=`$PYTHON -c "
24146 $am_python_setup_sysconfig
24147 if can_use_sysconfig:
24148 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24150 from distutils import sysconfig
24151 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24152 sys.stdout.write(sitedir)"`
24153 case $am_cv_python_pyexecdir in
24154 $am_py_exec_prefix*)
24155 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24156 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24159 case $am_py_exec_prefix in
24162 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24170 $as_echo "$am_cv_python_pyexecdir" >&6; }
24171 pyexecdir=$am_cv_python_pyexecdir
24175 pkgpyexecdir=\${pyexecdir}/$PACKAGE
24181 # Allow the use of a (user set) custom python version
24185 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24186 set dummy python$PYTHON_VERSION; ac_word=$2
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24188 $as_echo_n "checking for $ac_word... " >&6; }
24189 if ${ac_cv_path_PYTHON+:} false; then :
24190 $as_echo_n "(cached) " >&6
24194 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24198 for as_dir in $PATH
24201 test -z "$as_dir" && as_dir=.
24202 for ac_exec_ext in '' $ac_executable_extensions; do
24203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24204 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24215 PYTHON=$ac_cv_path_PYTHON
24216 if test -n "$PYTHON"; then
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24218 $as_echo "$PYTHON" >&6; }
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24225 if test -z "$PYTHON"; then
24226 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24231 # Check for a version of Python >= 2.1.0
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24234 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24235 ac_supports_python_ver=`$PYTHON -c "import sys; \
24236 ver = sys.version.split ()[0]; \
24237 print (ver >= '2.1.0')"`
24238 if test "$ac_supports_python_ver" != "True"; then
24239 if test -z "$PYTHON_NOVERSIONCHECK"; then
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24241 $as_echo "no" >&6; }
24242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24245 This version of the AC_PYTHON_DEVEL macro
24246 doesn't work properly with versions of Python before
24247 2.1.0. You may need to re-run configure, setting the
24248 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24249 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24250 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24251 to something else than an empty string.
24253 See \`config.log' for more details" "$LINENO" 5; }
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24256 $as_echo "skip at user request" >&6; }
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24260 $as_echo "yes" >&6; }
24264 # if the macro parameter ``version'' is set, honour it
24266 if test -n ""; then
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24268 $as_echo_n "checking for a version of Python ... " >&6; }
24269 ac_supports_python_ver=`$PYTHON -c "import sys; \
24270 ver = sys.version.split ()[0]; \
24272 if test "$ac_supports_python_ver" = "True"; then
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24274 $as_echo "yes" >&6; }
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24277 $as_echo "no" >&6; }
24278 as_fn_error $? "this package requires Python .
24279 If you have it installed, but it isn't the default Python
24280 interpreter in your system path, please pass the PYTHON_VERSION
24281 variable to configure. See \`\`configure --help'' for reference.
24288 # Check if you have distutils, else fail
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24291 $as_echo_n "checking for the distutils Python package... " >&6; }
24292 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24293 if test -z "$ac_distutils_result"; then
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24295 $as_echo "yes" >&6; }
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24298 $as_echo "no" >&6; }
24299 as_fn_error $? "cannot import Python module \"distutils\".
24300 Please check your Python installation. The error was:
24301 $ac_distutils_result" "$LINENO" 5
24306 # Check for Python include path
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24309 $as_echo_n "checking for Python include path... " >&6; }
24310 if test -z "$PYTHON_CPPFLAGS"; then
24311 python_path=`$PYTHON -c "import distutils.sysconfig; \
24312 print (distutils.sysconfig.get_python_inc ());"`
24313 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24314 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24315 if test -n "${python_path}"; then
24316 if test "${plat_python_path}" != "${python_path}"; then
24317 python_path="-I$python_path -I$plat_python_path"
24319 python_path="-I$python_path"
24322 PYTHON_CPPFLAGS=$python_path
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24325 $as_echo "$PYTHON_CPPFLAGS" >&6; }
24329 # Check for Python library path
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24332 $as_echo_n "checking for Python library path... " >&6; }
24333 if test -z "$PYTHON_LDFLAGS"; then
24334 # (makes two attempts to ensure we've got a version number
24335 # from the interpreter)
24336 ac_python_version=`cat<<EOD | $PYTHON -
24338 # join all versioning strings, on some systems
24339 # major/minor numbers could be in different list elements
24340 from distutils.sysconfig import *
24341 e = get_config_var('VERSION')
24346 if test -z "$ac_python_version"; then
24347 if test -n "$PYTHON_VERSION"; then
24348 ac_python_version=$PYTHON_VERSION
24350 ac_python_version=`$PYTHON -c "import sys; \
24351 print (sys.version[:3])"`
24355 # Make the versioning information available to the compiler
24357 # JW: We don't need it and it interferes with the hack
24358 # to detect multiple Pyhton versions
24359 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24360 # [If available, contains the Python version number currently in use.])
24362 # First, the library directory:
24363 ac_python_libdir=`cat<<EOD | $PYTHON -
24365 # There should be only one
24366 import distutils.sysconfig
24367 e = distutils.sysconfig.get_config_var('LIBDIR')
24372 # Now, for the library:
24373 ac_python_library=`cat<<EOD | $PYTHON -
24375 import distutils.sysconfig
24376 c = distutils.sysconfig.get_config_vars()
24377 if 'LDVERSION' in c:
24378 print ('python'+c['LDVERSION'])
24380 print ('python'+c['VERSION'])
24383 # This small piece shamelessly adapted from PostgreSQL python macro;
24384 # credits goes to momjian, I think. I'd like to put the right name
24385 # in the credits, if someone can point me in the right direction... ?
24387 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24389 # use the official shared library
24390 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24391 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24393 # old way: use libpython from python_configdir
24394 ac_python_libdir=`$PYTHON -c \
24395 "from distutils.sysconfig import get_python_lib as f; \
24397 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24398 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24401 if test -z "PYTHON_LDFLAGS"; then
24403 Cannot determine location of your Python DSO. Please check it was installed with
24404 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24409 $as_echo "$PYTHON_LDFLAGS" >&6; }
24413 # Check for site packages
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24416 $as_echo_n "checking for Python site-packages path... " >&6; }
24417 if test -z "$PYTHON_SITE_PKG"; then
24418 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24419 print (distutils.sysconfig.get_python_lib(0,0));"`
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24422 $as_echo "$PYTHON_SITE_PKG" >&6; }
24426 # libraries which must be linked in when embedding
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24429 $as_echo_n "checking python extra libraries... " >&6; }
24430 if test -z "$PYTHON_EXTRA_LIBS"; then
24431 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24432 conf = distutils.sysconfig.get_config_var; \
24433 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24436 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24440 # linking flags needed when embedding
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24443 $as_echo_n "checking python extra linking flags... " >&6; }
24444 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24445 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24446 conf = distutils.sysconfig.get_config_var; \
24447 print (conf('LINKFORSHARED'))"`
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24450 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24454 # final check to see if everything compiles alright
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24457 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
24458 # save current global flags
24459 ac_save_LIBS="$LIBS"
24460 ac_save_CPPFLAGS="$CPPFLAGS"
24461 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24462 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24464 ac_cpp='$CPP $CPPFLAGS'
24465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24470 /* end confdefs.h. */
24472 #include <Python.h>
24482 if ac_fn_c_try_link "$LINENO"; then :
24487 rm -f core conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
24490 ac_cpp='$CPP $CPPFLAGS'
24491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24495 # turn back to default flags
24496 CPPFLAGS="$ac_save_CPPFLAGS"
24497 LIBS="$ac_save_LIBS"
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24500 $as_echo "$pythonexists" >&6; }
24502 if test ! "x$pythonexists" = "xyes"; then
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24504 Could not link test program to Python. Maybe the main Python library has been
24505 installed in some non-standard library path. If so, pass it to configure,
24506 via the LDFLAGS environment variable.
24507 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24508 ============================================================================
24509 You probably have to install the development version of the Python package
24510 for your distribution. The exact name of this package varies among them.
24511 ============================================================================
24513 $as_echo "$as_me: WARNING:
24514 Could not link test program to Python. Maybe the main Python library has been
24515 installed in some non-standard library path. If so, pass it to configure,
24516 via the LDFLAGS environment variable.
24517 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24518 ============================================================================
24519 You probably have to install the development version of the Python package
24520 for your distribution. The exact name of this package varies among them.
24521 ============================================================================
24530 if test "$PYTHON_VERSION"; then
24531 PYTHONS="$(echo $PYTHONS $PYTHON)"
24532 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24541 # Recover some values lost in the second attempt to find Python.
24542 PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24543 PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24545 # Remove duplicates.
24546 PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24547 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24549 if test "$PYTHON_VERSIONS"; then
24550 enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24551 enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24553 if test "$explicit_languages" = "1"; then
24556 *** Please install the python development packages.
24559 enabled_languages=$(echo $enabled_languages | sed 's/python//')
24568 ENABLED_LANGUAGES=$enabled_languages
24572 # Provide information about the build.
24574 BUILD_REVISION="bb988077"
24577 cat >>confdefs.h <<_ACEOF
24578 #define BUILD_REVISION "$BUILD_REVISION"
24582 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24583 BUILD_VERSION="${BUILD_VERSION}48024"
24584 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24588 # Check whether --enable-build-timestamp was given.
24589 if test "${enable_build_timestamp+set}" = set; then :
24590 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24591 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24593 BUILD_TIMESTAMP="$enableval"
24596 BUILD_TIMESTAMP="<none>"
24601 cat >>confdefs.h <<_ACEOF
24602 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24608 # Options to disable some regression tests
24610 run_gpgconf_test="yes"
24611 # Check whether --enable-gpgconf-test was given.
24612 if test "${enable_gpgconf_test+set}" = set; then :
24613 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24616 if test "$run_gpgconf_test" = "yes"; then
24617 RUN_GPGCONF_TESTS_TRUE=
24618 RUN_GPGCONF_TESTS_FALSE='#'
24620 RUN_GPGCONF_TESTS_TRUE='#'
24621 RUN_GPGCONF_TESTS_FALSE=
24626 # Check whether --enable-gpg-test was given.
24627 if test "${enable_gpg_test+set}" = set; then :
24628 enableval=$enable_gpg_test; run_gpg_test=$enableval
24631 if test "$run_gpg_test" = "yes"; then
24632 RUN_GPG_TESTS_TRUE=
24633 RUN_GPG_TESTS_FALSE='#'
24635 RUN_GPG_TESTS_TRUE='#'
24636 RUN_GPG_TESTS_FALSE=
24640 run_gpgsm_test="yes"
24641 # Check whether --enable-gpgsm-test was given.
24642 if test "${enable_gpgsm_test+set}" = set; then :
24643 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24646 if test "$run_gpgsm_test" = "yes"; then
24647 RUN_GPGSM_TESTS_TRUE=
24648 RUN_GPGSM_TESTS_FALSE='#'
24650 RUN_GPGSM_TESTS_TRUE='#'
24651 RUN_GPGSM_TESTS_FALSE=
24656 # Check whether --enable-g13-test was given.
24657 if test "${enable_g13_test+set}" = set; then :
24658 enableval=$enable_g13_test; run_g13_test=$enableval
24661 if test "$run_g13_test" = "yes"; then
24662 RUN_G13_TESTS_TRUE=
24663 RUN_G13_TESTS_FALSE='#'
24665 RUN_G13_TESTS_TRUE='#'
24666 RUN_G13_TESTS_FALSE=
24671 # Checks for header files.
24675 for ac_header in $ac_header_list
24677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24681 cat >>confdefs.h <<_ACEOF
24682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24712 $as_echo_n "checking for inline... " >&6; }
24713 if ${ac_cv_c_inline+:} false; then :
24714 $as_echo_n "(cached) " >&6
24717 for ac_kw in inline __inline__ __inline; do
24718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24720 #ifndef __cplusplus
24722 static $ac_kw foo_t static_foo () {return 0; }
24723 $ac_kw foo_t foo () {return 0; }
24727 if ac_fn_c_try_compile "$LINENO"; then :
24728 ac_cv_c_inline=$ac_kw
24730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731 test "$ac_cv_c_inline" != no && break
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24736 $as_echo "$ac_cv_c_inline" >&6; }
24738 case $ac_cv_c_inline in
24741 case $ac_cv_c_inline in
24743 *) ac_val=$ac_cv_c_inline;;
24745 cat >>confdefs.h <<_ACEOF
24746 #ifndef __cplusplus
24747 #define inline $ac_val
24753 # The cast to long int works around a bug in the HP C Compiler
24754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24756 # This bug is HP SR number 8606223364.
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24758 $as_echo_n "checking size of unsigned int... " >&6; }
24759 if ${ac_cv_sizeof_unsigned_int+:} false; then :
24760 $as_echo_n "(cached) " >&6
24762 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
24765 if test "$ac_cv_type_unsigned_int" = yes; then
24766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24768 as_fn_error 77 "cannot compute sizeof (unsigned int)
24769 See \`config.log' for more details" "$LINENO" 5; }
24771 ac_cv_sizeof_unsigned_int=0
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24777 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24781 cat >>confdefs.h <<_ACEOF
24782 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24786 # Check whether --enable-largefile was given.
24787 if test "${enable_largefile+set}" = set; then :
24788 enableval=$enable_largefile;
24791 if test "$enable_largefile" != no; then
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24794 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24795 if ${ac_cv_sys_largefile_CC+:} false; then :
24796 $as_echo_n "(cached) " >&6
24798 ac_cv_sys_largefile_CC=no
24799 if test "$GCC" != yes; then
24802 # IRIX 6.2 and later do not support large files by default,
24803 # so use the C compiler's -n32 option if that helps.
24804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805 /* end confdefs.h. */
24806 #include <sys/types.h>
24807 /* Check that off_t can represent 2**63 - 1 correctly.
24808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24809 since some C++ compilers masquerading as C compilers
24810 incorrectly reject 9223372036854775807. */
24811 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24813 && LARGE_OFF_T % 2147483647 == 1)
24823 if ac_fn_c_try_compile "$LINENO"; then :
24826 rm -f core conftest.err conftest.$ac_objext
24828 if ac_fn_c_try_compile "$LINENO"; then :
24829 ac_cv_sys_largefile_CC=' -n32'; break
24831 rm -f core conftest.err conftest.$ac_objext
24835 rm -f conftest.$ac_ext
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24839 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
24840 if test "$ac_cv_sys_largefile_CC" != no; then
24841 CC=$CC$ac_cv_sys_largefile_CC
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24845 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24846 if ${ac_cv_sys_file_offset_bits+:} false; then :
24847 $as_echo_n "(cached) " >&6
24850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24851 /* end confdefs.h. */
24852 #include <sys/types.h>
24853 /* Check that off_t can represent 2**63 - 1 correctly.
24854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24855 since some C++ compilers masquerading as C compilers
24856 incorrectly reject 9223372036854775807. */
24857 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24859 && LARGE_OFF_T % 2147483647 == 1)
24869 if ac_fn_c_try_compile "$LINENO"; then :
24870 ac_cv_sys_file_offset_bits=no; break
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h. */
24875 #define _FILE_OFFSET_BITS 64
24876 #include <sys/types.h>
24877 /* Check that off_t can represent 2**63 - 1 correctly.
24878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24879 since some C++ compilers masquerading as C compilers
24880 incorrectly reject 9223372036854775807. */
24881 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24883 && LARGE_OFF_T % 2147483647 == 1)
24893 if ac_fn_c_try_compile "$LINENO"; then :
24894 ac_cv_sys_file_offset_bits=64; break
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897 ac_cv_sys_file_offset_bits=unknown
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24902 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24903 case $ac_cv_sys_file_offset_bits in #(
24906 cat >>confdefs.h <<_ACEOF
24907 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24912 if test $ac_cv_sys_file_offset_bits = unknown; then
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24914 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24915 if ${ac_cv_sys_large_files+:} false; then :
24916 $as_echo_n "(cached) " >&6
24919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24920 /* end confdefs.h. */
24921 #include <sys/types.h>
24922 /* Check that off_t can represent 2**63 - 1 correctly.
24923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24924 since some C++ compilers masquerading as C compilers
24925 incorrectly reject 9223372036854775807. */
24926 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24928 && LARGE_OFF_T % 2147483647 == 1)
24938 if ac_fn_c_try_compile "$LINENO"; then :
24939 ac_cv_sys_large_files=no; break
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24943 /* end confdefs.h. */
24944 #define _LARGE_FILES 1
24945 #include <sys/types.h>
24946 /* Check that off_t can represent 2**63 - 1 correctly.
24947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24948 since some C++ compilers masquerading as C compilers
24949 incorrectly reject 9223372036854775807. */
24950 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24952 && LARGE_OFF_T % 2147483647 == 1)
24962 if ac_fn_c_try_compile "$LINENO"; then :
24963 ac_cv_sys_large_files=1; break
24965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24966 ac_cv_sys_large_files=unknown
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24971 $as_echo "$ac_cv_sys_large_files" >&6; }
24972 case $ac_cv_sys_large_files in #(
24975 cat >>confdefs.h <<_ACEOF
24976 #define _LARGE_FILES $ac_cv_sys_large_files
24986 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24987 if test "x$ac_cv_type_off_t" = xyes; then :
24991 cat >>confdefs.h <<_ACEOF
24992 #define off_t long int
24998 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24999 if test "x$ac_cv_type_uintptr_t" = xyes; then :
25001 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
25004 for ac_type in 'unsigned int' 'unsigned long int' \
25005 'unsigned long long int'; do
25006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25007 /* end confdefs.h. */
25008 $ac_includes_default
25012 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25013 test_array [0] = 0;
25014 return test_array [0];
25020 if ac_fn_c_try_compile "$LINENO"; then :
25022 cat >>confdefs.h <<_ACEOF
25023 #define uintptr_t $ac_type
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 test -z "$ac_type" && break
25035 # We require uint64_t
25036 if test "$ac_cv_header_stdint_h" != yes; then
25039 *** No stdint.h and thus no uint64_t type. Can't build this library.
25044 # A simple compile time check in gpgme.h for GNU/Linux systems that
25045 # prevents a file offset bits mismatch between gpgme and the application.
25046 NEED__FILE_OFFSET_BITS=0
25047 if test "$have_w32_system" != yes; then
25048 case "$ac_cv_sys_file_offset_bits" in
25049 "" | no | unknown) ;;
25051 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25057 # Figure out platform dependent typedefs for gpgme.h
25058 if test "$have_w32_system" = yes; then
25059 INSERT__TYPEDEFS_FOR_GPGME_H="
25061 # include <stdint.h>
25062 typedef int64_t gpgme_off_t;
25063 typedef int64_t gpgme_ssize_t;
25065 typedef long gpgme_off_t;
25066 typedef long gpgme_ssize_t;
25067 #endif /* _WIN32 */"
25068 API__OFF_T="gpgme_off_t"
25069 API__SSIZE_T="gpgme_ssize_t"
25071 INSERT__TYPEDEFS_FOR_GPGME_H="
25072 #include <sys/types.h>
25073 typedef off_t gpgme_off_t;
25074 typedef ssize_t gpgme_ssize_t;"
25076 API__SSIZE_T="ssize_t"
25085 # Checks for compiler features.
25086 if test "$GCC" = yes; then
25087 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25088 CFLAGS="$CFLAGS -Wno-format-y2k"
25090 # If -Wno-missing-field-initializers is supported we can expect a
25091 # a larger set of warning options.
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25093 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25094 _gcc_cflags_save=$CFLAGS
25095 CFLAGS="-Wno-missing-field-initializers"
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h. */
25107 if ac_fn_c_try_compile "$LINENO"; then :
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25114 $as_echo "$_gcc_wopt" >&6; }
25115 CFLAGS=$_gcc_cflags_save;
25116 if test x"$_gcc_wopt" = xyes ; then
25117 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
25118 CFLAGS="$CFLAGS -Wno-sign-compare"
25119 CFLAGS="$CFLAGS -Wno-format-zero-length"
25120 CFLAGS="$CFLAGS -Wno-format-truncation"
25121 CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25123 if test "$USE_MAINTAINER_MODE" = "yes"; then
25124 if test x"$_gcc_wopt" = xyes ; then
25125 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25126 CFLAGS="$CFLAGS -Wwrite-strings"
25127 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25129 CFLAGS="$CFLAGS -Wformat -Wformat-security"
25130 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25133 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25134 _gcc_cflags_save=$CFLAGS
25135 CFLAGS="-Wpointer-arith"
25136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25137 /* end confdefs.h. */
25147 if ac_fn_c_try_compile "$LINENO"; then :
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25154 $as_echo "$_gcc_wopt" >&6; }
25155 CFLAGS=$_gcc_cflags_save;
25156 if test x"$_gcc_wopt" = xyes ; then
25157 CFLAGS="$CFLAGS -Wpointer-arith"
25160 if test "$have_w32_system" = yes; then
25161 CFLAGS="$CFLAGS -mms-bitfields"
25165 # Only used for debugging, so no serious test needed (for actual
25166 # functionality you have to test libc as well, this only tests the
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25169 $as_echo_n "checking for __thread... " >&6; }
25170 if ${gpgme_cv_tls_works+:} false; then :
25171 $as_echo_n "(cached) " >&6
25173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h. */
25184 if ac_fn_c_try_compile "$LINENO"; then :
25185 gpgme_cv_tls_works=yes
25187 gpgme_cv_tls_works=no
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25192 $as_echo "$gpgme_cv_tls_works" >&6; }
25193 if test "$gpgme_cv_tls_works" = yes; then
25195 $as_echo "#define HAVE_TLS 1" >>confdefs.h
25200 # Checks for library functions.
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25202 $as_echo "$as_me: checking for libraries" >&6;}
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25205 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25206 if ${ac_cv_sys_largefile_source+:} false; then :
25207 $as_echo_n "(cached) " >&6
25210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h. */
25212 #include <sys/types.h> /* for off_t */
25217 int (*fp) (FILE *, off_t, int) = fseeko;
25218 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25223 if ac_fn_c_try_link "$LINENO"; then :
25224 ac_cv_sys_largefile_source=no; break
25226 rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
25228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h. */
25230 #define _LARGEFILE_SOURCE 1
25231 #include <sys/types.h> /* for off_t */
25236 int (*fp) (FILE *, off_t, int) = fseeko;
25237 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25242 if ac_fn_c_try_link "$LINENO"; then :
25243 ac_cv_sys_largefile_source=1; break
25245 rm -f core conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext conftest.$ac_ext
25247 ac_cv_sys_largefile_source=unknown
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25252 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25253 case $ac_cv_sys_largefile_source in #(
25256 cat >>confdefs.h <<_ACEOF
25257 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25263 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25264 # in glibc 2.1.3, but that breaks too many other things.
25265 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25266 if test $ac_cv_sys_largefile_source != unknown; then
25268 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25273 # Try to find a thread-safe version of ttyname().
25274 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25275 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25281 cat >>confdefs.h <<_ACEOF
25282 #define HAVE_DECL_TTYNAME_R $ac_have_decl
25286 for ac_header in unistd.h
25288 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25289 if test "x$ac_cv_header_unistd_h" = xyes; then :
25290 cat >>confdefs.h <<_ACEOF
25291 #define HAVE_UNISTD_H 1
25300 if test $ac_cv_have_decl_ttyname_r = no; then
25301 HAVE_DECL_TTYNAME_R=0
25304 for ac_func in ttyname_r
25306 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25307 if test "x$ac_cv_func_ttyname_r" = xyes; then :
25308 cat >>confdefs.h <<_ACEOF
25309 #define HAVE_TTYNAME_R 1
25315 if test $ac_cv_func_ttyname_r = no; then
25317 case " $LIBOBJS " in
25318 *" ttyname_r.$ac_objext "* ) ;;
25319 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25324 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25329 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25330 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25331 $as_echo_n "(cached) " >&6
25333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h. */
25335 #include <stddef.h>
25336 #include <unistd.h>
25340 *ttyname_r (0, NULL, 0);
25346 if ac_fn_c_try_compile "$LINENO"; then :
25347 gnupg_cv_func_ttyname_r_posix=no
25349 gnupg_cv_func_ttyname_r_posix=yes
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25355 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25356 if test $gnupg_cv_func_ttyname_r_posix = no; then
25357 case " $LIBOBJS " in
25358 *" ttyname_r.$ac_objext "* ) ;;
25359 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25363 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25365 elif test "$have_android_system" = yes; then
25366 # Android has ttyname and ttyname_r but they are only stubs and
25367 # print an annoying warning message. Thus we need to replace
25368 # ttyname_r with our own dummy function.
25369 case " $LIBOBJS " in
25370 *" ttyname_r.$ac_objext "* ) ;;
25371 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25375 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25379 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25383 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25384 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25385 $as_echo_n "(cached) " >&6
25389 # Guess no on Solaris.
25390 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25391 # Guess no on OSF/1.
25392 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25393 # Guess yes otherwise.
25394 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25396 if test "$cross_compiling" = yes; then :
25399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25400 /* end confdefs.h. */
25403 #include <unistd.h>
25409 char buf[31]; /* use any size < 128 here */
25411 fd = open ("/dev/tty", O_RDONLY);
25414 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25416 else if (ttyname_r (fd, buf, 1) == 0)
25421 if ac_fn_c_try_run "$LINENO"; then :
25422 gnupg_cv_func_ttyname_r_works=yes
25425 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25429 conftest.$ac_objext conftest.beam conftest.$ac_ext
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25435 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25436 case "$gnupg_cv_func_ttyname_r_works" in
25438 *) case " $LIBOBJS " in
25439 *" ttyname_r.$ac_objext "* ) ;;
25440 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25444 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25447 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25454 if test "$ac_cv_func_ttyname_r" != yes; then
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25457 *** ttyname() is not thread-safe and ttyname_r() does not exist
25459 $as_echo "$as_me: WARNING:
25461 *** ttyname() is not thread-safe and ttyname_r() does not exist
25465 # Try to find a thread-safe version of getenv().
25466 have_thread_safe_getenv=no
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25469 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25470 if ${ac_cv_gnu_library_2_1+:} false; then :
25471 $as_echo_n "(cached) " >&6
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h. */
25476 #include <features.h>
25477 #ifdef __GNU_LIBRARY__
25478 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25485 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25486 ac_cv_gnu_library_2_1=yes
25488 ac_cv_gnu_library_2_1=no
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25496 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25498 GLIBC21="$ac_cv_gnu_library_2_1"
25501 if test $GLIBC21 = yes -o $have_w32_system = yes; then
25502 have_thread_safe_getenv=yes
25504 if test $have_thread_safe_getenv = yes; then
25506 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25510 for ac_func in getenv_r
25512 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25513 if test "x$ac_cv_func_getenv_r" = xyes; then :
25514 cat >>confdefs.h <<_ACEOF
25515 #define HAVE_GETENV_R 1
25521 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25524 *** getenv() is not thread-safe and getenv_r() does not exist
25526 $as_echo "$as_me: WARNING:
25528 *** getenv() is not thread-safe and getenv_r() does not exist
25532 # For converting time strings to seconds since Epoch, we need the timegm
25534 for ac_func in timegm
25536 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25537 if test "x$ac_cv_func_timegm" = xyes; then :
25538 cat >>confdefs.h <<_ACEOF
25539 #define HAVE_TIMEGM 1
25545 if test "$ac_cv_func_timegm" != yes; then
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25548 *** timegm() not available - a non-thread-safe kludge will be used
25549 *** and the TZ variable might be changed at runtime.
25551 $as_echo "$as_me: WARNING:
25553 *** timegm() not available - a non-thread-safe kludge will be used
25554 *** and the TZ variable might be changed at runtime.
25558 for ac_func in setlocale
25560 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25561 if test "x$ac_cv_func_setlocale" = xyes; then :
25562 cat >>confdefs.h <<_ACEOF
25563 #define HAVE_SETLOCALE 1
25570 # Checking for libgpg-error.
25573 gpg_error_config_prefix=""
25575 # Check whether --with-libgpg-error-prefix was given.
25576 if test "${with_libgpg_error_prefix+set}" = set; then :
25577 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25582 # Check whether --with-gpg-error-prefix was given.
25583 if test "${with_gpg_error_prefix+set}" = set; then :
25584 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25588 if test x"${GPG_ERROR_CONFIG}" = x ; then
25589 if test x"${gpg_error_config_prefix}" != x ; then
25590 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25592 case "${SYSROOT}" in
25594 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25595 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25602 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25608 # Extract the first word of "gpg-error-config", so it can be a program name with args.
25609 set dummy gpg-error-config; ac_word=$2
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25611 $as_echo_n "checking for $ac_word... " >&6; }
25612 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25613 $as_echo_n "(cached) " >&6
25615 case $GPG_ERROR_CONFIG in
25617 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25621 for as_dir in $PATH
25624 test -z "$as_dir" && as_dir=.
25625 for ac_exec_ext in '' $ac_executable_extensions; do
25626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25627 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25635 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25639 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25640 if test -n "$GPG_ERROR_CONFIG"; then
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25642 $as_echo "$GPG_ERROR_CONFIG" >&6; }
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25645 $as_echo "no" >&6; }
25649 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25652 if test "$prefix" = NONE ; then
25653 prefix_option_expanded=/usr/local
25655 prefix_option_expanded="$prefix"
25657 if test "$exec_prefix" = NONE ; then
25658 exec_prefix_option_expanded=$prefix_option_expanded
25660 exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
25662 libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
25664 if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
25665 gpgrt_libdir=$libdir_option_expanded
25667 if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
25668 if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
25669 if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
25670 gpgrt_libdir=$possible_libdir
25676 if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
25677 # Extract the first word of "gpgrt-config", so it can be a program name with args.
25678 set dummy gpgrt-config; ac_word=$2
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25680 $as_echo_n "checking for $ac_word... " >&6; }
25681 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25682 $as_echo_n "(cached) " >&6
25684 case $GPGRT_CONFIG in
25686 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25690 for as_dir in $PATH
25693 test -z "$as_dir" && as_dir=.
25694 for ac_exec_ext in '' $ac_executable_extensions; do
25695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25696 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25704 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25708 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25709 if test -n "$GPGRT_CONFIG"; then
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25711 $as_echo "$GPGRT_CONFIG" >&6; }
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25714 $as_echo "no" >&6; }
25718 if test "$GPGRT_CONFIG" = "no"; then
25721 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25722 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25723 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25725 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25726 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25732 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25734 if test "$GPG_ERROR_CONFIG" != "no"; then
25735 req_major=`echo $min_gpg_error_version | \
25736 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25737 req_minor=`echo $min_gpg_error_version | \
25738 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25739 major=`echo $gpg_error_config_version | \
25740 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25741 minor=`echo $gpg_error_config_version | \
25742 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25743 if test "$major" -gt "$req_major"; then
25746 if test "$major" -eq "$req_major"; then
25747 if test "$minor" -ge "$req_minor"; then
25752 if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
25753 if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
25754 # Extract the first word of "gpgrt-config", so it can be a program name with args.
25755 set dummy gpgrt-config; ac_word=$2
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25757 $as_echo_n "checking for $ac_word... " >&6; }
25758 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25759 $as_echo_n "(cached) " >&6
25761 case $GPGRT_CONFIG in
25763 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25767 for as_dir in $PATH
25770 test -z "$as_dir" && as_dir=.
25771 for ac_exec_ext in '' $ac_executable_extensions; do
25772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25773 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25781 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25785 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25786 if test -n "$GPGRT_CONFIG"; then
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25788 $as_echo "$GPGRT_CONFIG" >&6; }
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791 $as_echo "no" >&6; }
25795 if test "$GPGRT_CONFIG" = "no"; then
25798 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25799 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25800 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25802 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25811 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25812 if test $ok = yes; then
25813 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25814 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25815 if test -z "$GPGRT_CONFIG"; then
25816 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25817 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25819 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25820 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25821 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25822 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25825 $as_echo "yes ($gpg_error_config_version)" >&6; }
25827 if test -z "$GPGRT_CONFIG"; then
25828 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25830 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25832 if test x"$gpg_error_config_host" != xnone ; then
25833 if test x"$gpg_error_config_host" != x"$host" ; then
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25836 *** The config script \"$GPG_ERROR_CONFIG\" was
25837 *** built for $gpg_error_config_host and thus may not match the
25838 *** used host $host.
25839 *** You may want to use the configure option --with-libgpg-error-prefix
25840 *** to specify a matching config script or use \$SYSROOT.
25842 $as_echo "$as_me: WARNING:
25844 *** The config script \"$GPG_ERROR_CONFIG\" was
25845 *** built for $gpg_error_config_host and thus may not match the
25846 *** used host $host.
25847 *** You may want to use the configure option --with-libgpg-error-prefix
25848 *** to specify a matching config script or use \$SYSROOT.
25850 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25854 GPG_ERROR_CFLAGS=""
25856 GPG_ERROR_MT_CFLAGS=""
25857 GPG_ERROR_MT_LIBS=""
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25859 $as_echo "no" >&6; }
25868 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25871 # And for libassuan.
25875 # Check whether --with-libassuan-prefix was given.
25876 if test "${with_libassuan_prefix+set}" = set; then :
25877 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25879 libassuan_config_prefix=""
25882 if test x$libassuan_config_prefix != x ; then
25883 if test x${LIBASSUAN_CONFIG+set} != xset ; then
25884 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25888 use_gpgrt_config=""
25889 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25890 if $GPGRT_CONFIG libassuan --exists; then
25891 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25893 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25894 use_gpgrt_config=yes
25897 if test -z "$use_gpgrt_config"; then
25898 # Extract the first word of "libassuan-config", so it can be a program name with args.
25899 set dummy libassuan-config; ac_word=$2
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25901 $as_echo_n "checking for $ac_word... " >&6; }
25902 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25903 $as_echo_n "(cached) " >&6
25905 case $LIBASSUAN_CONFIG in
25907 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25911 for as_dir in $PATH
25914 test -z "$as_dir" && as_dir=.
25915 for ac_exec_ext in '' $ac_executable_extensions; do
25916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25917 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25925 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25929 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25930 if test -n "$LIBASSUAN_CONFIG"; then
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25932 $as_echo "$LIBASSUAN_CONFIG" >&6; }
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25935 $as_echo "no" >&6; }
25941 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25942 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25943 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
25944 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25946 req_libassuan_api=0
25947 min_libassuan_version="$tmp"
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25951 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25953 if test "$LIBASSUAN_CONFIG" != "no"; then
25954 req_major=`echo $min_libassuan_version | \
25955 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25956 req_minor=`echo $min_libassuan_version | \
25957 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25958 req_micro=`echo $min_libassuan_version | \
25959 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25961 if test -z "$use_gpgrt_config"; then
25962 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25964 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25966 major=`echo $libassuan_config_version | \
25967 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25968 minor=`echo $libassuan_config_version | \
25969 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25970 micro=`echo $libassuan_config_version | \
25971 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25973 if test "$major" -gt "$req_major"; then
25976 if test "$major" -eq "$req_major"; then
25977 if test "$minor" -gt "$req_minor"; then
25980 if test "$minor" -eq "$req_minor"; then
25981 if test "$micro" -ge "$req_micro"; then
25990 if test $ok = yes; then
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25992 $as_echo "yes ($libassuan_config_version)" >&6; }
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25998 if test $ok = yes; then
25999 if test "$req_libassuan_api" -gt 0 ; then
26000 if test -z "$use_gpgrt_config"; then
26001 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
26003 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
26005 if test "$tmp" -gt 0 ; then
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
26007 $as_echo_n "checking LIBASSUAN API version... " >&6; }
26008 if test "$req_libassuan_api" -eq "$tmp" ; then
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
26010 $as_echo "okay" >&6; }
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
26014 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
26020 if test $ok = yes; then
26021 if test x"$host" != x ; then
26022 if test -z "$use_gpgrt_config"; then
26023 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
26025 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
26027 if test x"$libassuan_config_host" != xnone ; then
26028 if test x"$libassuan_config_host" != x"$host" ; then
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26031 *** The config script \"$LIBASSUAN_CONFIG\" was
26032 *** built for $libassuan_config_host and thus may not match the
26033 *** used host $host.
26034 *** You may want to use the configure option --with-libassuan-prefix
26035 *** to specify a matching config script.
26037 $as_echo "$as_me: WARNING:
26039 *** The config script \"$LIBASSUAN_CONFIG\" was
26040 *** built for $libassuan_config_host and thus may not match the
26041 *** used host $host.
26042 *** You may want to use the configure option --with-libassuan-prefix
26043 *** to specify a matching config script.
26050 if test $ok = yes; then
26051 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26052 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26055 LIBASSUAN_CFLAGS=""
26062 if test "$have_libassuan" = "yes"; then
26064 cat >>confdefs.h <<_ACEOF
26065 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26075 # Check for getgid etc
26076 for ac_func in getgid getegid closefrom
26078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26081 cat >>confdefs.h <<_ACEOF
26082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26090 # Replacement functions.
26091 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26092 if test "x$ac_cv_func_stpcpy" = xyes; then :
26093 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26096 case " $LIBOBJS " in
26097 *" stpcpy.$ac_objext "* ) ;;
26098 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26105 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26106 if test "x$ac_cv_func_setenv" = xyes; then :
26107 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26110 case " $LIBOBJS " in
26111 *" setenv.$ac_objext "* ) ;;
26112 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26120 # Assuan check for descriptor passing.
26121 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26122 #include <stdlib.h>
26123 #include <stddef.h>
26125 #include <sys/types.h>
26126 #include <sys/socket.h>
26127 #include <sys/un.h>
26129 #include <sys/uio.h>
26131 #include <unistd.h>
26134 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26135 supports_descriptor_passing=yes
26137 supports_descriptor_passing=no
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26140 *** Data structure for sending ancillary data missing.
26141 *** Descriptor passing won't work.
26143 $as_echo "$as_me: WARNING:
26145 *** Data structure for sending ancillary data missing.
26146 *** Descriptor passing won't work.
26151 use_descriptor_passing=yes
26152 # Check whether --enable-fd-passing was given.
26153 if test "${enable_fd_passing+set}" = set; then :
26154 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26158 if test "$supports_descriptor_passing" != "yes"; then
26159 use_descriptor_passing=no
26162 if test "$use_descriptor_passing" = "yes"; then
26164 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26168 if test "$use_descriptor_passing" = "yes"; then
26169 USE_DESCRIPTOR_PASSING_TRUE=
26170 USE_DESCRIPTOR_PASSING_FALSE='#'
26172 USE_DESCRIPTOR_PASSING_TRUE='#'
26173 USE_DESCRIPTOR_PASSING_FALSE=
26179 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26182 if test "$uiserver" != "no"; then
26184 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26187 if test "$uiserver" != "no"; then
26188 HAVE_UISERVER_TRUE=
26189 HAVE_UISERVER_FALSE='#'
26191 HAVE_UISERVER_TRUE='#'
26192 HAVE_UISERVER_FALSE=
26197 # Option --disable-linux-getdents
26199 # By default we use SYS_getdents on Linux to optimize fd closing
26200 # before an exec. This option allows to switch this optimization off.
26201 use_linux_getdents=yes
26202 # Check whether --enable-linux-getdents was given.
26203 if test "${enable_linux_getdents+set}" = set; then :
26204 enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26207 if test "$use_linux_getdents" = "yes"; then
26211 $as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26219 # Add a few constants to help porting to W32
26226 # Substitution used for gpgme-config
26227 GPGME_CONFIG_LIBS="-lgpgme"
26228 GPGME_CONFIG_CFLAGS=""
26229 GPGME_CONFIG_HOST="$host"
26230 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26237 # Frob'da Variables
26238 LTLIBOBJS=`echo "$LIBOBJS" |
26239 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26242 # Some checks for gpgme-tool
26243 # Done at top: AC_CHECK_HEADER([argp.h])
26244 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26246 if test "x$ac_cv_type_error_t" = xyes; then :
26248 cat >>confdefs.h <<_ACEOF
26249 #define HAVE_ERROR_T 1
26255 $as_echo "#define error_t int" >>confdefs.h
26261 # A substitution to set generated files in a Emacs buffer to read-only.
26262 emacs_local_vars_begin='Local Variables:'
26264 emacs_local_vars_read_only='buffer-read-only: t'
26266 emacs_local_vars_end='End:'
26271 if test "$have_gpg_error" = "no"; then
26273 { $as_echo "$as_me:${as_lineno-$LINENO}:
26275 *** You need libgpg-error to build this program.
26276 ** This library is for example available at
26277 *** https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26278 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26282 *** You need libgpg-error to build this program.
26283 ** This library is for example available at
26284 *** https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26285 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26288 if test "$have_libassuan" = "no"; then
26290 { $as_echo "$as_me:${as_lineno-$LINENO}:
26292 *** You need libassuan to build this program.
26293 *** This library is for example available at
26294 *** https://www.gnupg.org/ftp/gcrypt/libassuan/
26295 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26299 *** You need libassuan to build this program.
26300 *** This library is for example available at
26301 *** https://www.gnupg.org/ftp/gcrypt/libassuan/
26302 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26306 if test "$die" = "yes"; then
26309 *** Required libraries not found. Please consult the above messages
26310 *** and install them before running configure again.
26316 # Create config files
26318 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile tests/json/Makefile doc/Makefile src/versioninfo.rc src/gpgme.pc src/gpgme-glib.pc src/gpgme.h"
26320 ac_config_files="$ac_config_files src/gpgme-config"
26322 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26324 ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26326 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26328 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26330 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26332 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26334 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26336 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26338 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26340 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26342 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26344 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26346 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26348 if test -z "$HAVE_DOXYGEN_TRUE"; then :
26349 ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26352 ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26354 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26356 ac_config_files="$ac_config_files lang/python/Makefile lang/python/version.py lang/python/tests/Makefile lang/python/src/Makefile lang/python/examples/Makefile lang/python/doc/Makefile"
26358 ac_config_files="$ac_config_files lang/python/setup.py"
26360 cat >confcache <<\_ACEOF
26361 # This file is a shell script that caches the results of configure
26362 # tests run on this system so they can be shared between configure
26363 # scripts and configure runs, see configure's option --config-cache.
26364 # It is not useful on other systems. If it contains results you don't
26365 # want to keep, you may remove or edit it.
26367 # config.status only pays attention to the cache file if you give it
26368 # the --recheck option to rerun configure.
26370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26372 # following values.
26376 # The following way of writing the cache mishandles newlines in values,
26377 # but we know of no workaround that is simple, portable, and efficient.
26378 # So, we kill variables containing newlines.
26379 # Ultrix sh set writes to stderr and can't be redirected directly,
26380 # and sets the high bit in the cache file unless we assign to the vars.
26382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26383 eval ac_val=\$$ac_var
26387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26391 _ | IFS | as_nl) ;; #(
26392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26393 *) { eval $ac_var=; unset $ac_var;} ;;
26399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26400 *${as_nl}ac_space=\ *)
26401 # `set' does not quote correctly, so add quotes: double-quote
26402 # substitution turns \\\\ into \\, and sed turns \\ into \.
26405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26408 # `set' quotes correctly as required by POSIX, so do not add quotes.
26409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26422 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26423 if test -w "$cache_file"; then
26424 if test "x$cache_file" != "x/dev/null"; then
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26426 $as_echo "$as_me: updating cache $cache_file" >&6;}
26427 if test ! -f "$cache_file" || test -h "$cache_file"; then
26428 cat confcache >"$cache_file"
26430 case $cache_file in #(
26432 mv -f confcache "$cache_file"$$ &&
26433 mv -f "$cache_file"$$ "$cache_file" ;; #(
26435 mv -f confcache "$cache_file" ;;
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26441 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26447 # Let make expand exec_prefix.
26448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26450 DEFS=-DHAVE_CONFIG_H
26455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26456 # 1. Remove the extension, and $U if already installed.
26457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26460 # will be set to the directory where LIBOBJS objects are built.
26461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26464 LIBOBJS=$ac_libobjs
26466 LTLIBOBJS=$ac_ltlibobjs
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26470 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26471 if test -n "$am_sleep_pid"; then
26472 # Hide warnings about reused PIDs.
26473 wait $am_sleep_pid 2>/dev/null
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26476 $as_echo "done" >&6; }
26477 if test -n "$EXEEXT"; then
26479 am__EXEEXT_FALSE='#'
26481 am__EXEEXT_TRUE='#'
26485 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26486 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26489 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26490 as_fn_error $? "conditional \"AMDEP\" was never defined.
26491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26494 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26497 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26498 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26501 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26502 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26505 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26506 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26509 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26510 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26513 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26514 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26517 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26518 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26521 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26522 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26525 if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26526 as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26529 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26530 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26533 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26534 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26537 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26538 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26541 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26542 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26545 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26546 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26549 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26550 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26553 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26554 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26557 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26558 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26562 : "${CONFIG_STATUS=./config.status}"
26564 ac_clean_files_save=$ac_clean_files
26565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26567 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26571 # Generated by $as_me.
26572 # Run this file to recreate the current configuration.
26573 # Compiler output produced by configure, useful for debugging
26574 # configure, is in config.log if it exists.
26577 ac_cs_recheck=false
26580 SHELL=\${CONFIG_SHELL-$SHELL}
26583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26584 ## -------------------- ##
26585 ## M4sh Initialization. ##
26586 ## -------------------- ##
26588 # Be more Bourne compatible
26589 DUALCASE=1; export DUALCASE # for MKS sh
26590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26594 # is contrary to our usage. Disable this feature.
26595 alias -g '${1+"$@"}'='"$@"'
26596 setopt NO_GLOB_SUBST
26598 case `(set -o) 2>/dev/null` in #(
26610 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26611 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26614 # Prefer a ksh shell builtin over an external printf program on Solaris,
26615 # but without wasting forks for bash or zsh.
26616 if test -z "$BASH_VERSION$ZSH_VERSION" \
26617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26618 as_echo='print -r --'
26619 as_echo_n='print -rn --'
26620 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26621 as_echo='printf %s\n'
26622 as_echo_n='printf %s'
26624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26625 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26626 as_echo_n='/usr/ucb/echo -n'
26628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26629 as_echo_n_body='eval
26633 expr "X$arg" : "X\\(.*\\)$as_nl";
26634 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26636 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26638 export as_echo_n_body
26639 as_echo_n='sh -c $as_echo_n_body as_echo'
26641 export as_echo_body
26642 as_echo='sh -c $as_echo_body as_echo'
26645 # The user is always right.
26646 if test "${PATH_SEPARATOR+set}" != set; then
26648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26649 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26656 # We need space, tab and new line, in precisely that order. Quoting is
26657 # there to prevent editors from complaining about space-tab.
26658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26659 # splitting by setting IFS to empty value.)
26662 # Find who we are. Look in the path if we contain no directory separator.
26665 *[\\/]* ) as_myself=$0 ;;
26666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26667 for as_dir in $PATH
26670 test -z "$as_dir" && as_dir=.
26671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26677 # We did not find ourselves, most probably we were run as `sh COMMAND'
26678 # in which case we are not to be found in the path.
26679 if test "x$as_myself" = x; then
26682 if test ! -f "$as_myself"; then
26683 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26687 # Unset variables that we do not need and which cause bugs (e.g. in
26688 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26689 # suppresses any "Segmentation fault" message there. '((' could
26690 # trigger a bug in pdksh 5.2.14.
26691 for as_var in BASH_ENV ENV MAIL MAILPATH
26692 do eval test x\${$as_var+set} = xset \
26693 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26709 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26710 # ----------------------------------------
26711 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26712 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26713 # script with STATUS, using 1 if that was 0.
26716 as_status=$1; test $as_status -eq 0 && as_status=1
26718 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26719 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26721 $as_echo "$as_me: error: $2" >&2
26722 as_fn_exit $as_status
26726 # as_fn_set_status STATUS
26727 # -----------------------
26728 # Set $? to STATUS, without forking.
26729 as_fn_set_status ()
26732 } # as_fn_set_status
26734 # as_fn_exit STATUS
26735 # -----------------
26736 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26740 as_fn_set_status $1
26746 # Portably unset VAR.
26749 { eval $1=; unset $1;}
26751 as_unset=as_fn_unset
26752 # as_fn_append VAR VALUE
26753 # ----------------------
26754 # Append the text in VALUE to the end of the definition contained in VAR. Take
26755 # advantage of any shell optimizations that allow amortized linear growth over
26756 # repeated appends, instead of the typical quadratic growth present in naive
26758 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26759 eval 'as_fn_append ()
26770 # as_fn_arith ARG...
26771 # ------------------
26772 # Perform arithmetic evaluation on the ARGs, and store the result in the
26773 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26774 # must be portable across $(()) and expr.
26775 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26776 eval 'as_fn_arith ()
26783 as_val=`expr "$@" || test $? -eq 1`
26788 if expr a : '\(a\)' >/dev/null 2>&1 &&
26789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26795 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26796 as_basename=basename
26801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26807 as_me=`$as_basename -- "$0" ||
26808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26809 X"$0" : 'X\(//\)$' \| \
26810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26812 sed '/^.*\/\([^/][^/]*\)\/*$/{
26826 # Avoid depending upon Character Ranges.
26827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26830 as_cr_digits='0123456789'
26831 as_cr_alnum=$as_cr_Letters$as_cr_digits
26833 ECHO_C= ECHO_N= ECHO_T=
26834 case `echo -n x` in #(((((
26836 case `echo 'xy\c'` in
26837 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26846 rm -f conf$$ conf$$.exe conf$$.file
26847 if test -d conf$$.dir; then
26848 rm -f conf$$.dir/conf$$.file
26851 mkdir conf$$.dir 2>/dev/null
26853 if (echo >conf$$.file) 2>/dev/null; then
26854 if ln -s conf$$.file conf$$ 2>/dev/null; then
26856 # ... but there are two gotchas:
26857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26859 # In both cases, we have to default to `cp -pR'.
26860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26862 elif ln conf$$.file conf$$ 2>/dev/null; then
26870 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26871 rmdir conf$$.dir 2>/dev/null
26876 # Create "$as_dir" as a directory, including parents if necessary.
26881 -*) as_dir=./$as_dir;;
26883 test -d "$as_dir" || eval $as_mkdir_p || {
26887 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26888 *) as_qdir=$as_dir;;
26890 as_dirs="'$as_qdir' $as_dirs"
26891 as_dir=`$as_dirname -- "$as_dir" ||
26892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26893 X"$as_dir" : 'X\(//\)[^/]' \| \
26894 X"$as_dir" : 'X\(//\)$' \| \
26895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26896 $as_echo X"$as_dir" |
26897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26901 /^X\(\/\/\)[^/].*/{
26914 test -d "$as_dir" && break
26916 test -z "$as_dirs" || eval "mkdir $as_dirs"
26917 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26921 if mkdir -p . 2>/dev/null; then
26922 as_mkdir_p='mkdir -p "$as_dir"'
26924 test -d ./-p && rmdir ./-p
26929 # as_fn_executable_p FILE
26930 # -----------------------
26931 # Test if FILE is an executable regular file.
26932 as_fn_executable_p ()
26934 test -f "$1" && test -x "$1"
26935 } # as_fn_executable_p
26936 as_test_x='test -x'
26937 as_executable_p=as_fn_executable_p
26939 # Sed expression to map a string onto a valid CPP name.
26940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26942 # Sed expression to map a string onto a valid variable name.
26943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26947 ## ----------------------------------- ##
26948 ## Main body of $CONFIG_STATUS script. ##
26949 ## ----------------------------------- ##
26951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26954 # Save the log message, to keep $0 and so on meaningful, and to
26955 # report actual input values of CONFIG_FILES etc. instead of their
26956 # values after options handling.
26958 This file was extended by gpgme $as_me 1.15.1, which was
26959 generated by GNU Autoconf 2.69. Invocation command line was
26961 CONFIG_FILES = $CONFIG_FILES
26962 CONFIG_HEADERS = $CONFIG_HEADERS
26963 CONFIG_LINKS = $CONFIG_LINKS
26964 CONFIG_COMMANDS = $CONFIG_COMMANDS
26967 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26972 case $ac_config_files in *"
26973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26976 case $ac_config_headers in *"
26977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26982 # Files that config.status was made for.
26983 config_files="$ac_config_files"
26984 config_headers="$ac_config_headers"
26985 config_commands="$ac_config_commands"
26989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26991 \`$as_me' instantiates files and other configuration actions
26992 from templates according to the current configuration. Unless the files
26993 and actions are specified as TAGs, all are instantiated by default.
26995 Usage: $0 [OPTION]... [TAG]...
26997 -h, --help print this help, then exit
26998 -V, --version print version number and configuration settings, then exit
26999 --config print configuration, then exit
27000 -q, --quiet, --silent
27001 do not print progress messages
27002 -d, --debug don't remove temporary files
27003 --recheck update $as_me by reconfiguring in the same conditions
27004 --file=FILE[:TEMPLATE]
27005 instantiate the configuration file FILE
27006 --header=FILE[:TEMPLATE]
27007 instantiate the configuration header FILE
27009 Configuration files:
27012 Configuration headers:
27015 Configuration commands:
27018 Report bugs to <https://bugs.gnupg.org>."
27021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27022 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27024 gpgme config.status 1.15.1
27025 configured by $0, generated by GNU Autoconf 2.69,
27026 with options \\"\$ac_cs_config\\"
27028 Copyright (C) 2012 Free Software Foundation, Inc.
27029 This config.status script is free software; the Free Software Foundation
27030 gives unlimited permission to copy, distribute and modify it."
27037 test -n "\$AWK" || AWK=awk
27040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27041 # The default lists apply if the user does not specify any file.
27047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27064 # Handling of the options.
27065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27068 $as_echo "$ac_cs_version"; exit ;;
27069 --config | --confi | --conf | --con | --co | --c )
27070 $as_echo "$ac_cs_config"; exit ;;
27071 --debug | --debu | --deb | --de | --d | -d )
27073 --file | --fil | --fi | --f )
27076 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27077 '') as_fn_error $? "missing file argument" ;;
27079 as_fn_append CONFIG_FILES " '$ac_optarg'"
27080 ac_need_defaults=false;;
27081 --header | --heade | --head | --hea )
27084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27086 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27087 ac_need_defaults=false;;
27089 # Conflict between --help and --header
27090 as_fn_error $? "ambiguous option: \`$1'
27091 Try \`$0 --help' for more information.";;
27092 --help | --hel | -h )
27093 $as_echo "$ac_cs_usage"; exit ;;
27094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27098 # This is an error.
27099 -*) as_fn_error $? "unrecognized option: \`$1'
27100 Try \`$0 --help' for more information." ;;
27102 *) as_fn_append ac_config_targets " $1"
27103 ac_need_defaults=false ;;
27109 ac_configure_extra_args=
27111 if $ac_cs_silent; then
27113 ac_configure_extra_args="$ac_configure_extra_args --silent"
27117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27118 if \$ac_cs_recheck; then
27119 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27121 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27122 CONFIG_SHELL='$SHELL'
27123 export CONFIG_SHELL
27128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27133 ## Running $as_me. ##
27139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27143 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27146 # The HP-UX ksh and POSIX shell print the target directory to stdout
27147 # if CDPATH is set.
27148 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27150 sed_quote_subst='$sed_quote_subst'
27151 double_quote_subst='$double_quote_subst'
27152 delay_variable_subst='$delay_variable_subst'
27153 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27154 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27155 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27156 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27157 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27158 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27159 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27160 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27161 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27162 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27163 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27164 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27165 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27166 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27167 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27168 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27169 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27170 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27171 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27172 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27173 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27174 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27175 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27176 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27177 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27178 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27179 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27180 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27181 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27182 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27183 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27184 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27185 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27186 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27187 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27188 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27189 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27190 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27191 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27192 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27193 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27194 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27195 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27196 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27197 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27198 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27199 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27200 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27201 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27202 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27203 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27204 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27205 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27206 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27207 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27210 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"`'
27211 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27212 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27213 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27214 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27215 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27217 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27218 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27219 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27220 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27221 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27222 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27223 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27224 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27225 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27226 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27227 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27228 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27229 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27230 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27231 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27232 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27233 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27234 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27235 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27236 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27237 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27238 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27239 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27240 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27241 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27242 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27243 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27244 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27245 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27246 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27247 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27248 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27249 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27250 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27251 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27252 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27258 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27259 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27260 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27261 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27262 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27263 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27264 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27265 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27266 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27267 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27268 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27269 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27270 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27271 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27272 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27273 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27274 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27275 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27276 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27277 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27278 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27279 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27280 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27281 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27282 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27283 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27284 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27285 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27286 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27287 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27288 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27289 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27290 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27291 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27292 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27293 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27294 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27295 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27296 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27297 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27298 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27299 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27300 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27301 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27302 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27303 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27304 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27305 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27306 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27307 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27308 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27309 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27310 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27311 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27312 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27313 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27314 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27315 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27316 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27317 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27318 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27319 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27320 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27321 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27322 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27323 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27324 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27325 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27326 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27327 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27328 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27329 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27330 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27331 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27332 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27333 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27334 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27335 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27336 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27337 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27338 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27339 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27340 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27341 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27342 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27343 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27344 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27345 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27346 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27347 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27348 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27349 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27350 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27351 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27352 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27353 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27354 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27355 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27356 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27357 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27358 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27359 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27360 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27361 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27362 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27363 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27364 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27365 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27366 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27367 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27368 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27369 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27370 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27371 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27372 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27373 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27374 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27375 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27376 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27377 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27378 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27379 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27380 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27381 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27382 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27383 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27384 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27385 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27388 LTCFLAGS='$LTCFLAGS'
27389 compiler='$compiler_DEFAULT'
27391 # A function that is used when there is no print builtin or printf.
27392 func_fallback_echo ()
27394 eval 'cat <<_LTECHO_EOF
27399 # Quote evaled strings.
27416 deplibs_check_method \
27420 sharedlib_from_linklib_cmd \
27423 archiver_list_spec \
27429 lt_cv_sys_global_symbol_pipe \
27430 lt_cv_sys_global_symbol_to_cdecl \
27431 lt_cv_sys_global_symbol_to_c_name_address \
27432 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27433 nm_file_list_spec \
27434 lt_prog_compiler_no_builtin_flag \
27435 lt_prog_compiler_pic \
27436 lt_prog_compiler_wl \
27437 lt_prog_compiler_static \
27438 lt_cv_prog_compiler_c_o \
27447 export_dynamic_flag_spec \
27448 whole_archive_flag_spec \
27449 compiler_needs_object \
27451 allow_undefined_flag \
27452 no_undefined_flag \
27453 hardcode_libdir_flag_spec \
27454 hardcode_libdir_separator \
27458 variables_saved_for_relink \
27460 library_names_spec \
27462 install_override_mode \
27466 compiler_lib_search_dirs \
27471 compiler_lib_search_path \
27478 lt_prog_compiler_no_builtin_flag_CXX \
27479 lt_prog_compiler_no_builtin_flag_RC \
27480 lt_prog_compiler_pic_CXX \
27481 lt_prog_compiler_pic_RC \
27482 lt_prog_compiler_wl_CXX \
27483 lt_prog_compiler_wl_RC \
27484 lt_prog_compiler_static_CXX \
27485 lt_prog_compiler_static_RC \
27486 lt_cv_prog_compiler_c_o_CXX \
27487 lt_cv_prog_compiler_c_o_RC \
27488 export_dynamic_flag_spec_CXX \
27489 export_dynamic_flag_spec_RC \
27490 whole_archive_flag_spec_CXX \
27491 whole_archive_flag_spec_RC \
27492 compiler_needs_object_CXX \
27493 compiler_needs_object_RC \
27496 allow_undefined_flag_CXX \
27497 allow_undefined_flag_RC \
27498 no_undefined_flag_CXX \
27499 no_undefined_flag_RC \
27500 hardcode_libdir_flag_spec_CXX \
27501 hardcode_libdir_flag_spec_RC \
27502 hardcode_libdir_separator_CXX \
27503 hardcode_libdir_separator_RC \
27504 exclude_expsyms_CXX \
27505 exclude_expsyms_RC \
27506 include_expsyms_CXX \
27507 include_expsyms_RC \
27508 file_list_spec_CXX \
27509 file_list_spec_RC \
27510 compiler_lib_search_dirs_CXX \
27511 compiler_lib_search_dirs_RC \
27512 predep_objects_CXX \
27513 predep_objects_RC \
27514 postdep_objects_CXX \
27515 postdep_objects_RC \
27520 compiler_lib_search_path_CXX \
27521 compiler_lib_search_path_RC; do
27522 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27523 *[\\\\\\\`\\"\\\$]*)
27524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27532 # Double-quote double-evaled strings.
27533 for var in reload_cmds \
27534 old_postinstall_cmds \
27535 old_postuninstall_cmds \
27537 extract_expsyms_cmds \
27538 old_archive_from_new_cmds \
27539 old_archive_from_expsyms_cmds \
27541 archive_expsym_cmds \
27543 module_expsym_cmds \
27544 export_symbols_cmds \
27548 postuninstall_cmds \
27550 sys_lib_search_path_spec \
27551 sys_lib_dlsearch_path_spec \
27554 old_archive_cmds_CXX \
27555 old_archive_cmds_RC \
27556 old_archive_from_new_cmds_CXX \
27557 old_archive_from_new_cmds_RC \
27558 old_archive_from_expsyms_cmds_CXX \
27559 old_archive_from_expsyms_cmds_RC \
27562 archive_expsym_cmds_CXX \
27563 archive_expsym_cmds_RC \
27566 module_expsym_cmds_CXX \
27567 module_expsym_cmds_RC \
27568 export_symbols_cmds_CXX \
27569 export_symbols_cmds_RC \
27572 postlink_cmds_CXX \
27573 postlink_cmds_RC; do
27574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27575 *[\\\\\\\`\\"\\\$]*)
27576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27584 ac_aux_dir='$ac_aux_dir'
27585 xsi_shell='$xsi_shell'
27586 lt_shell_append='$lt_shell_append'
27588 # See if we are running on zsh, and set the options which allow our
27589 # commands through without removal of \ escapes INIT.
27590 if test -n "\${ZSH_VERSION+set}" ; then
27591 setopt NO_GLOB_SUBST
27597 TIMESTAMP='$TIMESTAMP'
27610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27612 # Handling of arguments.
27613 for ac_config_target in $ac_config_targets
27615 case $ac_config_target in
27616 "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27617 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27618 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27619 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27620 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27621 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27622 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27623 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27624 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27625 "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27626 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27627 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27628 "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27629 "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27630 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27631 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27632 "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27633 "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27634 "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27635 "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27636 "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27637 "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27638 "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27639 "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27640 "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27641 "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27642 "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27643 "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27644 "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27645 "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27646 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27647 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27648 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27649 "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27650 "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27651 "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27652 "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27653 "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27654 "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27655 "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27656 "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27657 "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27658 "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27659 "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27660 "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27661 "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27668 # If the user did not use the arguments to specify the items to instantiate,
27669 # then the envvar interface is used. Set only those that are not.
27670 # We use the long form for the default assignment because of an extremely
27671 # bizarre bug on SunOS 4.1.3.
27672 if $ac_need_defaults; then
27673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27678 # Have a temporary directory for convenience. Make it in the build tree
27679 # simply because there is no reason against having it here, and in addition,
27680 # creating and moving files from /tmp can sometimes cause problems.
27681 # Hook for its removal unless debugging.
27682 # Note that there is a small window in which the directory will not be cleaned:
27683 # after its creation but before its name has been assigned to `$tmp'.
27687 trap 'exit_status=$?
27688 : "${ac_tmp:=$tmp}"
27689 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27691 trap 'as_fn_exit 1' 1 2 13 15
27693 # Create a (secure) tmp directory for tmp files.
27696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27700 tmp=./conf$$-$RANDOM
27701 (umask 077 && mkdir "$tmp")
27702 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27705 # Set up the scripts for CONFIG_FILES section.
27706 # No need to generate them if there are no CONFIG_FILES.
27707 # This happens for instance with `./config.status config.h'.
27708 if test -n "$CONFIG_FILES"; then
27711 ac_cr=`echo X | tr X '\015'`
27712 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27713 # But we know of no other shell where ac_cr would be empty at this
27714 # point, so we can use a bashism as a fallback.
27715 if test "x$ac_cr" = x; then
27716 eval ac_cr=\$\'\\r\'
27718 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27719 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27722 ac_cs_awk_cr=$ac_cr
27725 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27730 echo "cat >conf$$subs.awk <<_ACEOF" &&
27731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27733 } >conf$$subs.sh ||
27734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27737 for ac_last_try in false false false false false :; do
27738 . ./conf$$subs.sh ||
27739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27742 if test $ac_delim_n = $ac_delim_num; then
27744 elif $ac_last_try; then
27745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27750 rm -f conf$$subs.sh
27752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27753 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27757 s/^/S["/; s/!.*/"]=/
27767 s/\(.\{148\}\)..*/\1/
27769 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27781 s/\(.\{148\}\)..*/\1/
27783 s/["\\]/\\&/g; s/^/"/; s/$/"/
27787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27792 ' <conf$$subs.awk | sed '
27797 ' >>$CONFIG_STATUS || ac_write_fail=1
27798 rm -f conf$$subs.awk
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27801 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27802 for (key in S) S_is_set[key] = 1
27808 nfields = split(line, field, "@")
27810 len = length(field[1])
27811 for (i = 2; i < nfields; i++) {
27813 keylen = length(key)
27814 if (S_is_set[key]) {
27816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27817 len += length(value) + length(field[++i])
27828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27829 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27833 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27834 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27837 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27838 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27839 # trailing colons and then remove the whole line if VPATH becomes empty
27840 # (actually we leave an empty line to preserve line numbers).
27841 if test "x$srcdir" = x.; then
27842 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27861 fi # test -n "$CONFIG_FILES"
27863 # Set up the scripts for CONFIG_HEADERS section.
27864 # No need to generate them if there are no CONFIG_HEADERS.
27865 # This happens for instance with `./config.status Makefile'.
27866 if test -n "$CONFIG_HEADERS"; then
27867 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27871 # Transform confdefs.h into an awk script `defines.awk', embedded as
27872 # here-document in config.status, that substitutes the proper values into
27873 # config.h.in to produce config.h.
27875 # Create a delimiter string that does not exist in confdefs.h, to ease
27876 # handling of long lines.
27878 for ac_last_try in false false :; do
27879 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27880 if test -z "$ac_tt"; then
27882 elif $ac_last_try; then
27883 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27889 # For the awk script, D is an array of macro values keyed by name,
27890 # likewise P contains macro parameters if any. Preserve backslash
27891 # newline sequences.
27893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27895 s/.\{148\}/&'"$ac_delim"'/g
27898 s/^[ ]*#[ ]*define[ ][ ]*/ /
27905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27912 D["\1"]=" \3\\\\\\n"\\/p
27914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27919 s/.\{148\}/&'"$ac_delim"'/g
27924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27929 ' <confdefs.h | sed '
27930 s/'"$ac_delim"'/"\\\
27931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 for (key in D) D_is_set[key] = 1
27937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27939 split(line, arg, " ")
27940 if (arg[1] == "#") {
27944 defundef = substr(arg[1], 2)
27947 split(mac1, mac2, "(") #)
27949 prefix = substr(line, 1, index(line, defundef) - 1)
27950 if (D_is_set[macro]) {
27951 # Preserve the white space surrounding the "#".
27952 print prefix "define", macro P[macro] D[macro]
27955 # Replace #undef with comments. This is necessary, for example,
27956 # in the case of _POSIX_SOURCE, which is predefined and required
27957 # on some systems where configure will not decide to define it.
27958 if (defundef == "undef") {
27959 print "/*", prefix defundef, macro, "*/"
27967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27968 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27969 fi # test -n "$CONFIG_HEADERS"
27972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27977 :[FHLC]) ac_mode=$ac_tag; continue;;
27979 case $ac_mode$ac_tag in
27981 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27982 :[FH]-) ac_tag=-:-;;
27983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28000 -) ac_f="$ac_tmp/stdin";;
28001 *) # Look for the file first in the build tree, then in the source tree
28002 # (if the path is not absolute). The absolute path cannot be DOS-style,
28003 # because $ac_f cannot contain `:'.
28007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28009 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28012 as_fn_append ac_file_inputs " '$ac_f'"
28015 # Let's still pretend it is `configure' which instantiates (i.e., don't
28016 # use $as_me), people would be surprised to read:
28017 # /* config.h. Generated by config.status. */
28018 configure_input='Generated from '`
28019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28021 if test x"$ac_file" != x-; then
28022 configure_input="$ac_file. $configure_input"
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28024 $as_echo "$as_me: creating $ac_file" >&6;}
28026 # Neutralize special characters interpreted by sed in replacement strings.
28027 case $configure_input in #(
28028 *\&* | *\|* | *\\* )
28029 ac_sed_conf_input=`$as_echo "$configure_input" |
28030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28031 *) ac_sed_conf_input=$configure_input;;
28035 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28041 ac_dir=`$as_dirname -- "$ac_file" ||
28042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28043 X"$ac_file" : 'X\(//\)[^/]' \| \
28044 X"$ac_file" : 'X\(//\)$' \| \
28045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28046 $as_echo X"$ac_file" |
28047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28051 /^X\(\/\/\)[^/].*/{
28064 as_dir="$ac_dir"; as_fn_mkdir_p
28068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28071 # A ".." for each directory in $ac_dir_suffix.
28072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28073 case $ac_top_builddir_sub in
28074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28078 ac_abs_top_builddir=$ac_pwd
28079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28080 # for backward compatibility:
28081 ac_top_builddir=$ac_top_build_prefix
28084 .) # We are building in place.
28086 ac_top_srcdir=$ac_top_builddir_sub
28087 ac_abs_top_srcdir=$ac_pwd ;;
28088 [\\/]* | ?:[\\/]* ) # Absolute name.
28089 ac_srcdir=$srcdir$ac_dir_suffix;
28090 ac_top_srcdir=$srcdir
28091 ac_abs_top_srcdir=$srcdir ;;
28092 *) # Relative name.
28093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28094 ac_top_srcdir=$ac_top_build_prefix$srcdir
28095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28110 ac_MKDIR_P=$MKDIR_P
28112 [\\/$]* | ?:[\\/]* ) ;;
28113 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28118 # If the template does not know about datarootdir, expand it.
28119 # FIXME: This hack should be removed a few years after 2.60.
28120 ac_datarootdir_hack=; ac_datarootdir_seen=
28131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28132 *datarootdir*) ac_datarootdir_seen=yes;;
28133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28135 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28138 ac_datarootdir_hack='
28139 s&@datadir@&$datadir&g
28140 s&@docdir@&$docdir&g
28141 s&@infodir@&$infodir&g
28142 s&@localedir@&$localedir&g
28143 s&@mandir@&$mandir&g
28144 s&\\\${datarootdir}&$datarootdir&g' ;;
28148 # Neutralize VPATH when `$srcdir' = `.'.
28149 # Shell code in configure.ac might set extrasub.
28150 # FIXME: do we really want to maintain this feature?
28151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28152 ac_sed_extra="$ac_vpsub
28155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28158 s|@configure_input@|$ac_sed_conf_input|;t t
28159 s&@top_builddir@&$ac_top_builddir_sub&;t t
28160 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28161 s&@srcdir@&$ac_srcdir&;t t
28162 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28163 s&@top_srcdir@&$ac_top_srcdir&;t t
28164 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28165 s&@builddir@&$ac_builddir&;t t
28166 s&@abs_builddir@&$ac_abs_builddir&;t t
28167 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28168 s&@INSTALL@&$ac_INSTALL&;t t
28169 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28170 $ac_datarootdir_hack
28172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28173 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28176 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28177 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28178 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28180 which seems to be undefined. Please make sure it is defined" >&5
28181 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28182 which seems to be undefined. Please make sure it is defined" >&2;}
28184 rm -f "$ac_tmp/stdin"
28186 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28187 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28195 if test x"$ac_file" != x-; then
28197 $as_echo "/* $configure_input */" \
28198 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28199 } >"$ac_tmp/config.h" \
28200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28201 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28203 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28206 mv "$ac_tmp/config.h" "$ac_file" \
28207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28210 $as_echo "/* $configure_input */" \
28211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28212 || as_fn_error $? "could not create -" "$LINENO" 5
28214 # Compute "$ac_file"'s index in $config_headers.
28217 for _am_header in $config_headers :; do
28218 case $_am_header in
28219 $_am_arg | $_am_arg:* )
28222 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28227 X"$_am_arg" : 'X\(//\)[^/]' \| \
28228 X"$_am_arg" : 'X\(//\)$' \| \
28229 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28230 $as_echo X"$_am_arg" |
28231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28235 /^X\(\/\/\)[^/].*/{
28247 s/.*/./; q'`/stamp-h$_am_stamp_count
28250 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28251 $as_echo "$as_me: executing $ac_file commands" >&6;}
28256 case $ac_file$ac_mode in
28257 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28258 # Older Autoconf quotes --file arguments for eval, but not when files
28259 # are listed without --file. Let's play safe and only enable the eval
28260 # if we detect the quoting.
28261 # TODO: see whether this extra hack can be removed once we start
28262 # requiring Autoconf 2.70 or later.
28263 case $CONFIG_FILES in #(
28265 eval set x "$CONFIG_FILES" ;; #(
28267 set x $CONFIG_FILES ;; #(
28272 # Used to flag and report bootstrapping failures.
28276 # Strip MF so we end up with the name of the file.
28277 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28278 # Check whether this is an Automake generated Makefile which includes
28279 # dependency-tracking related rules and includes.
28280 # Grep'ing the whole file directly is not great: AIX grep has a line
28281 # limit of 2048, but all sed's we know have understand at least 4000.
28282 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28284 am_dirpart=`$as_dirname -- "$am_mf" ||
28285 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28286 X"$am_mf" : 'X\(//\)[^/]' \| \
28287 X"$am_mf" : 'X\(//\)$' \| \
28288 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28289 $as_echo X"$am_mf" |
28290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28294 /^X\(\/\/\)[^/].*/{
28307 am_filepart=`$as_basename -- "$am_mf" ||
28308 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28309 X"$am_mf" : 'X\(//\)$' \| \
28310 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28311 $as_echo X/"$am_mf" |
28312 sed '/^.*\/\([^/][^/]*\)\/*$/{
28325 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28326 && sed -e '/# am--include-marker/d' "$am_filepart" \
28327 | $MAKE -f - am--depfiles" >&5
28328 (cd "$am_dirpart" \
28329 && sed -e '/# am--include-marker/d' "$am_filepart" \
28330 | $MAKE -f - am--depfiles) >&5 2>&5
28332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333 (exit $ac_status); } || am_rc=$?
28335 if test $am_rc -ne 0; then
28336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28338 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28339 for automatic dependency tracking. Try re-running configure with the
28340 '--disable-dependency-tracking' option to at least be able to build
28341 the package (albeit without support for automatic dependency tracking).
28342 See \`config.log' for more details" "$LINENO" 5; }
28344 { am_dirpart=; unset am_dirpart;}
28345 { am_filepart=; unset am_filepart;}
28346 { am_mf=; unset am_mf;}
28347 { am_rc=; unset am_rc;}
28348 rm -f conftest-deps.mk
28353 # See if we are running on zsh, and set the options which allow our
28354 # commands through without removal of \ escapes.
28355 if test -n "${ZSH_VERSION+set}" ; then
28356 setopt NO_GLOB_SUBST
28359 cfgfile="${ofile}T"
28360 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28363 cat <<_LT_EOF >> "$cfgfile"
28366 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28367 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28372 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28374 # Written by Gordon Matzigkeit, 1996
28376 # This file is part of GNU Libtool.
28378 # GNU Libtool is free software; you can redistribute it and/or
28379 # modify it under the terms of the GNU General Public License as
28380 # published by the Free Software Foundation; either version 2 of
28381 # the License, or (at your option) any later version.
28383 # As a special exception to the GNU General Public License,
28384 # if you distribute this file as part of a program or library that
28385 # is built using GNU Libtool, you may include this file under the
28386 # same distribution terms that you use for the rest of that program.
28388 # GNU Libtool is distributed in the hope that it will be useful,
28389 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28391 # GNU General Public License for more details.
28393 # You should have received a copy of the GNU General Public License
28394 # along with GNU Libtool; see the file COPYING. If not, a copy
28395 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28396 # obtained by writing to the Free Software Foundation, Inc.,
28397 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28400 # The names of the tagged configurations supported by this script.
28401 available_tags="CXX RC "
28403 # ### BEGIN LIBTOOL CONFIG
28405 # Which release of libtool.m4 was used?
28406 macro_version=$macro_version
28407 macro_revision=$macro_revision
28409 # Assembler program.
28412 # DLL creation program.
28413 DLLTOOL=$lt_DLLTOOL
28415 # Object dumper program.
28416 OBJDUMP=$lt_OBJDUMP
28418 # Whether or not to build static libraries.
28419 build_old_libs=$enable_static
28421 # Whether or not to build shared libraries.
28422 build_libtool_libs=$enable_shared
28424 # What type of objects to build.
28427 # Whether or not to optimize for fast installation.
28428 fast_install=$enable_fast_install
28430 # Shell to use when invoking shell scripts.
28433 # An echo program that protects backslashes.
28436 # The PATH separator for the build system.
28437 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28440 host_alias=$host_alias
28444 # The build system.
28445 build_alias=$build_alias
28449 # A sed program that does not truncate output.
28452 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28453 Xsed="\$SED -e 1s/^X//"
28455 # A grep program that handles long lines.
28461 # A literal string matcher.
28464 # A BSD- or MS-compatible name lister.
28467 # Whether we need soft or hard links.
28470 # What is the maximum length of a command?
28471 max_cmd_len=$max_cmd_len
28473 # Object file suffix (normally "o").
28476 # Executable file suffix (normally "").
28479 # whether the shell understands "unset".
28482 # turn spaces into newlines.
28485 # turn newlines into spaces.
28488 # convert \$build file names to \$host format.
28489 to_host_file_cmd=$lt_cv_to_host_file_cmd
28491 # convert \$build files to toolchain format.
28492 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28494 # Method to check whether dependent libraries are shared objects.
28495 deplibs_check_method=$lt_deplibs_check_method
28497 # Command to use when deplibs_check_method = "file_magic".
28498 file_magic_cmd=$lt_file_magic_cmd
28500 # How to find potential files when deplibs_check_method = "file_magic".
28501 file_magic_glob=$lt_file_magic_glob
28503 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28504 want_nocaseglob=$lt_want_nocaseglob
28506 # Command to associate shared and link libraries.
28507 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28512 # Flags to create an archive.
28513 AR_FLAGS=$lt_AR_FLAGS
28515 # How to feed a file listing to the archiver.
28516 archiver_list_spec=$lt_archiver_list_spec
28518 # A symbol stripping program.
28521 # Commands used to install an old-style archive.
28523 old_postinstall_cmds=$lt_old_postinstall_cmds
28524 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28526 # Whether to use a lock for old archive extraction.
28527 lock_old_archive_extraction=$lock_old_archive_extraction
28532 # LTCC compiler flags.
28533 LTCFLAGS=$lt_CFLAGS
28535 # Take the output of nm and produce a listing of raw symbols and C names.
28536 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28538 # Transform the output of nm in a proper C declaration.
28539 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28541 # Transform the output of nm in a C name address pair.
28542 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28544 # Transform the output of nm in a C name address pair when lib prefix is needed.
28545 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28547 # Specify filename containing input files for \$NM.
28548 nm_file_list_spec=$lt_nm_file_list_spec
28550 # The root where to search for dependent libraries,and in which our libraries should be installed.
28551 lt_sysroot=$lt_sysroot
28553 # The name of the directory that contains temporary libtool files.
28556 # Used to examine libraries when file_magic_cmd begins with "file".
28557 MAGIC_CMD=$MAGIC_CMD
28559 # Must we lock files when doing compilation?
28560 need_locks=$lt_need_locks
28563 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28565 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28566 DSYMUTIL=$lt_DSYMUTIL
28568 # Tool to change global to local symbols on Mac OS X.
28571 # Tool to manipulate fat objects and archives on Mac OS X.
28574 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28577 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28578 OTOOL64=$lt_OTOOL64
28580 # Old archive suffix (normally "a").
28583 # Shared library suffix (normally ".so").
28584 shrext_cmds=$lt_shrext_cmds
28586 # The commands to extract the exported symbol list from a shared archive.
28587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28589 # Variables whose values should be saved in libtool wrapper scripts and
28590 # restored at link time.
28591 variables_saved_for_relink=$lt_variables_saved_for_relink
28593 # Do we need the "lib" prefix for modules?
28594 need_lib_prefix=$need_lib_prefix
28596 # Do we need a version for libraries?
28597 need_version=$need_version
28599 # Library versioning type.
28600 version_type=$version_type
28602 # Shared library runtime path variable.
28603 runpath_var=$runpath_var
28605 # Shared library path variable.
28606 shlibpath_var=$shlibpath_var
28608 # Is shlibpath searched before the hard-coded library search path?
28609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28611 # Format of library name prefix.
28612 libname_spec=$lt_libname_spec
28614 # List of archive names. First name is the real one, the rest are links.
28615 # The last name is the one that the linker finds with -lNAME
28616 library_names_spec=$lt_library_names_spec
28618 # The coded name of the library, if different from the real name.
28619 soname_spec=$lt_soname_spec
28621 # Permission mode override for installation of shared libraries.
28622 install_override_mode=$lt_install_override_mode
28624 # Command to use after installation of a shared archive.
28625 postinstall_cmds=$lt_postinstall_cmds
28627 # Command to use after uninstallation of a shared archive.
28628 postuninstall_cmds=$lt_postuninstall_cmds
28630 # Commands used to finish a libtool library installation in a directory.
28631 finish_cmds=$lt_finish_cmds
28633 # As "finish_cmds", except a single script fragment to be evaled but
28635 finish_eval=$lt_finish_eval
28637 # Whether we should hardcode library paths into libraries.
28638 hardcode_into_libs=$hardcode_into_libs
28640 # Compile-time system search path for libraries.
28641 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28643 # Run-time system search path for libraries.
28644 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28646 # Whether dlopen is supported.
28647 dlopen_support=$enable_dlopen
28649 # Whether dlopen of programs is supported.
28650 dlopen_self=$enable_dlopen_self
28652 # Whether dlopen of statically linked programs is supported.
28653 dlopen_self_static=$enable_dlopen_self_static
28655 # Commands to strip libraries.
28656 old_striplib=$lt_old_striplib
28657 striplib=$lt_striplib
28660 # The linker used to build libraries.
28663 # How to create reloadable object files.
28664 reload_flag=$lt_reload_flag
28665 reload_cmds=$lt_reload_cmds
28667 # Commands used to build an old-style archive.
28668 old_archive_cmds=$lt_old_archive_cmds
28670 # A language specific compiler.
28673 # Is the compiler the GNU compiler?
28676 # Compiler flag to turn off builtin functions.
28677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28679 # Additional compiler flags for building library objects.
28680 pic_flag=$lt_lt_prog_compiler_pic
28682 # How to pass a linker flag through the compiler.
28683 wl=$lt_lt_prog_compiler_wl
28685 # Compiler flag to prevent dynamic linking.
28686 link_static_flag=$lt_lt_prog_compiler_static
28688 # Does compiler simultaneously support -c and -o options?
28689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28691 # Whether or not to add -lc for building shared libraries.
28692 build_libtool_need_lc=$archive_cmds_need_lc
28694 # Whether or not to disallow shared libs when runtime libs are static.
28695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28697 # Compiler flag to allow reflexive dlopens.
28698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28700 # Compiler flag to generate shared objects directly from archives.
28701 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28703 # Whether the compiler copes with passing no objects directly.
28704 compiler_needs_object=$lt_compiler_needs_object
28706 # Create an old-style archive from a shared archive.
28707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28709 # Create a temporary old-style archive to link instead of a shared archive.
28710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28712 # Commands used to build a shared archive.
28713 archive_cmds=$lt_archive_cmds
28714 archive_expsym_cmds=$lt_archive_expsym_cmds
28716 # Commands used to build a loadable module if different from building
28717 # a shared archive.
28718 module_cmds=$lt_module_cmds
28719 module_expsym_cmds=$lt_module_expsym_cmds
28721 # Whether we are building with GNU ld or not.
28722 with_gnu_ld=$lt_with_gnu_ld
28724 # Flag that allows shared libraries with undefined symbols to be built.
28725 allow_undefined_flag=$lt_allow_undefined_flag
28727 # Flag that enforces no undefined symbols.
28728 no_undefined_flag=$lt_no_undefined_flag
28730 # Flag to hardcode \$libdir into a binary during linking.
28731 # This must work even if \$libdir does not exist
28732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28734 # Whether we need a single "-rpath" flag with a separated argument.
28735 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28738 # DIR into the resulting binary.
28739 hardcode_direct=$hardcode_direct
28741 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28742 # DIR into the resulting binary and the resulting library dependency is
28743 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28744 # library is relocated.
28745 hardcode_direct_absolute=$hardcode_direct_absolute
28747 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28748 # into the resulting binary.
28749 hardcode_minus_L=$hardcode_minus_L
28751 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28752 # into the resulting binary.
28753 hardcode_shlibpath_var=$hardcode_shlibpath_var
28755 # Set to "yes" if building a shared library automatically hardcodes DIR
28756 # into the library and all subsequent libraries and executables linked
28758 hardcode_automatic=$hardcode_automatic
28760 # Set to yes if linker adds runtime paths of dependent libraries
28761 # to runtime path list.
28762 inherit_rpath=$inherit_rpath
28764 # Whether libtool must link a program against all its dependency libraries.
28765 link_all_deplibs=$link_all_deplibs
28767 # Set to "yes" if exported symbols are required.
28768 always_export_symbols=$always_export_symbols
28770 # The commands to list exported symbols.
28771 export_symbols_cmds=$lt_export_symbols_cmds
28773 # Symbols that should not be listed in the preloaded symbols.
28774 exclude_expsyms=$lt_exclude_expsyms
28776 # Symbols that must always be exported.
28777 include_expsyms=$lt_include_expsyms
28779 # Commands necessary for linking programs (against libraries) with templates.
28780 prelink_cmds=$lt_prelink_cmds
28782 # Commands necessary for finishing linking programs.
28783 postlink_cmds=$lt_postlink_cmds
28785 # Specify filename containing input files.
28786 file_list_spec=$lt_file_list_spec
28788 # How to hardcode a shared library path into an executable.
28789 hardcode_action=$hardcode_action
28791 # The directories searched by this compiler when creating a shared library.
28792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28794 # Dependencies to place before and after the objects being linked to
28795 # create a shared library.
28796 predep_objects=$lt_predep_objects
28797 postdep_objects=$lt_postdep_objects
28798 predeps=$lt_predeps
28799 postdeps=$lt_postdeps
28801 # The library search path used internally by the compiler when linking
28802 # a shared library.
28803 compiler_lib_search_path=$lt_compiler_lib_search_path
28805 # ### END LIBTOOL CONFIG
28811 cat <<\_LT_EOF >> "$cfgfile"
28812 # AIX sometimes has problems with the GCC collect2 program. For some
28813 # reason, if we set the COLLECT_NAMES environment variable, the problems
28814 # vanish in a puff of smoke.
28815 if test "X${COLLECT_NAMES+set}" != Xset; then
28817 export COLLECT_NAMES
28824 ltmain="$ac_aux_dir/ltmain.sh"
28827 # We use sed instead of cat because bash on DJGPP gets confused if
28828 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28829 # text mode, it properly converts lines to CR/LF. This bash problem
28830 # is reportedly fixed, but why not run on old versions too?
28831 sed '$q' "$ltmain" >> "$cfgfile" \
28832 || (rm -f "$cfgfile"; exit 1)
28834 if test x"$xsi_shell" = xyes; then
28835 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28839 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28840 \ * ) func_dirname_result="${3}" ;;\
28842 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28843 && mv -f "$cfgfile.tmp" "$cfgfile" \
28844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28845 test 0 -eq $? || _lt_function_replace_fail=:
28848 sed -e '/^func_basename ()$/,/^} # func_basename /c\
28851 \ func_basename_result="${1##*/}"\
28852 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28853 && mv -f "$cfgfile.tmp" "$cfgfile" \
28854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28855 test 0 -eq $? || _lt_function_replace_fail=:
28858 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28859 func_dirname_and_basename ()\
28862 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28863 \ * ) func_dirname_result="${3}" ;;\
28865 \ func_basename_result="${1##*/}"\
28866 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28867 && mv -f "$cfgfile.tmp" "$cfgfile" \
28868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28869 test 0 -eq $? || _lt_function_replace_fail=:
28872 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28875 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28876 \ # positional parameters, so assign one to ordinary parameter first.\
28877 \ func_stripname_result=${3}\
28878 \ func_stripname_result=${func_stripname_result#"${1}"}\
28879 \ func_stripname_result=${func_stripname_result%"${2}"}\
28880 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28881 && mv -f "$cfgfile.tmp" "$cfgfile" \
28882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28883 test 0 -eq $? || _lt_function_replace_fail=:
28886 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28887 func_split_long_opt ()\
28889 \ func_split_long_opt_name=${1%%=*}\
28890 \ func_split_long_opt_arg=${1#*=}\
28891 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28892 && mv -f "$cfgfile.tmp" "$cfgfile" \
28893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28894 test 0 -eq $? || _lt_function_replace_fail=:
28897 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28898 func_split_short_opt ()\
28900 \ func_split_short_opt_arg=${1#??}\
28901 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28902 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28903 && mv -f "$cfgfile.tmp" "$cfgfile" \
28904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28905 test 0 -eq $? || _lt_function_replace_fail=:
28908 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28912 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28913 \ *) func_lo2o_result=${1} ;;\
28915 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28916 && mv -f "$cfgfile.tmp" "$cfgfile" \
28917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28918 test 0 -eq $? || _lt_function_replace_fail=:
28921 sed -e '/^func_xform ()$/,/^} # func_xform /c\
28924 func_xform_result=${1%.*}.lo\
28925 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28926 && mv -f "$cfgfile.tmp" "$cfgfile" \
28927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28928 test 0 -eq $? || _lt_function_replace_fail=:
28931 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28934 func_arith_result=$(( $* ))\
28935 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28936 && mv -f "$cfgfile.tmp" "$cfgfile" \
28937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28938 test 0 -eq $? || _lt_function_replace_fail=:
28941 sed -e '/^func_len ()$/,/^} # func_len /c\
28944 func_len_result=${#1}\
28945 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28946 && mv -f "$cfgfile.tmp" "$cfgfile" \
28947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28948 test 0 -eq $? || _lt_function_replace_fail=:
28952 if test x"$lt_shell_append" = xyes; then
28953 sed -e '/^func_append ()$/,/^} # func_append /c\
28956 eval "${1}+=\\${2}"\
28957 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28958 && mv -f "$cfgfile.tmp" "$cfgfile" \
28959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28960 test 0 -eq $? || _lt_function_replace_fail=:
28963 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28964 func_append_quoted ()\
28966 \ func_quote_for_eval "${2}"\
28967 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28968 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28969 && mv -f "$cfgfile.tmp" "$cfgfile" \
28970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28971 test 0 -eq $? || _lt_function_replace_fail=:
28974 # Save a `func_append' function call where possible by direct use of '+='
28975 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28976 && mv -f "$cfgfile.tmp" "$cfgfile" \
28977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28978 test 0 -eq $? || _lt_function_replace_fail=:
28980 # Save a `func_append' function call even when '+=' is not available
28981 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28982 && mv -f "$cfgfile.tmp" "$cfgfile" \
28983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28984 test 0 -eq $? || _lt_function_replace_fail=:
28987 if test x"$_lt_function_replace_fail" = x":"; then
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28989 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28993 mv -f "$cfgfile" "$ofile" ||
28994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28998 cat <<_LT_EOF >> "$ofile"
29000 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29002 # The linker used to build libraries.
29005 # How to create reloadable object files.
29006 reload_flag=$lt_reload_flag_CXX
29007 reload_cmds=$lt_reload_cmds_CXX
29009 # Commands used to build an old-style archive.
29010 old_archive_cmds=$lt_old_archive_cmds_CXX
29012 # A language specific compiler.
29013 CC=$lt_compiler_CXX
29015 # Is the compiler the GNU compiler?
29018 # Compiler flag to turn off builtin functions.
29019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29021 # Additional compiler flags for building library objects.
29022 pic_flag=$lt_lt_prog_compiler_pic_CXX
29024 # How to pass a linker flag through the compiler.
29025 wl=$lt_lt_prog_compiler_wl_CXX
29027 # Compiler flag to prevent dynamic linking.
29028 link_static_flag=$lt_lt_prog_compiler_static_CXX
29030 # Does compiler simultaneously support -c and -o options?
29031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29033 # Whether or not to add -lc for building shared libraries.
29034 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29036 # Whether or not to disallow shared libs when runtime libs are static.
29037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29039 # Compiler flag to allow reflexive dlopens.
29040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29042 # Compiler flag to generate shared objects directly from archives.
29043 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29045 # Whether the compiler copes with passing no objects directly.
29046 compiler_needs_object=$lt_compiler_needs_object_CXX
29048 # Create an old-style archive from a shared archive.
29049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29051 # Create a temporary old-style archive to link instead of a shared archive.
29052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29054 # Commands used to build a shared archive.
29055 archive_cmds=$lt_archive_cmds_CXX
29056 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29058 # Commands used to build a loadable module if different from building
29059 # a shared archive.
29060 module_cmds=$lt_module_cmds_CXX
29061 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29063 # Whether we are building with GNU ld or not.
29064 with_gnu_ld=$lt_with_gnu_ld_CXX
29066 # Flag that allows shared libraries with undefined symbols to be built.
29067 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29069 # Flag that enforces no undefined symbols.
29070 no_undefined_flag=$lt_no_undefined_flag_CXX
29072 # Flag to hardcode \$libdir into a binary during linking.
29073 # This must work even if \$libdir does not exist
29074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29076 # Whether we need a single "-rpath" flag with a separated argument.
29077 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29080 # DIR into the resulting binary.
29081 hardcode_direct=$hardcode_direct_CXX
29083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29084 # DIR into the resulting binary and the resulting library dependency is
29085 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29086 # library is relocated.
29087 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29089 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29090 # into the resulting binary.
29091 hardcode_minus_L=$hardcode_minus_L_CXX
29093 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29094 # into the resulting binary.
29095 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29097 # Set to "yes" if building a shared library automatically hardcodes DIR
29098 # into the library and all subsequent libraries and executables linked
29100 hardcode_automatic=$hardcode_automatic_CXX
29102 # Set to yes if linker adds runtime paths of dependent libraries
29103 # to runtime path list.
29104 inherit_rpath=$inherit_rpath_CXX
29106 # Whether libtool must link a program against all its dependency libraries.
29107 link_all_deplibs=$link_all_deplibs_CXX
29109 # Set to "yes" if exported symbols are required.
29110 always_export_symbols=$always_export_symbols_CXX
29112 # The commands to list exported symbols.
29113 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29115 # Symbols that should not be listed in the preloaded symbols.
29116 exclude_expsyms=$lt_exclude_expsyms_CXX
29118 # Symbols that must always be exported.
29119 include_expsyms=$lt_include_expsyms_CXX
29121 # Commands necessary for linking programs (against libraries) with templates.
29122 prelink_cmds=$lt_prelink_cmds_CXX
29124 # Commands necessary for finishing linking programs.
29125 postlink_cmds=$lt_postlink_cmds_CXX
29127 # Specify filename containing input files.
29128 file_list_spec=$lt_file_list_spec_CXX
29130 # How to hardcode a shared library path into an executable.
29131 hardcode_action=$hardcode_action_CXX
29133 # The directories searched by this compiler when creating a shared library.
29134 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29136 # Dependencies to place before and after the objects being linked to
29137 # create a shared library.
29138 predep_objects=$lt_predep_objects_CXX
29139 postdep_objects=$lt_postdep_objects_CXX
29140 predeps=$lt_predeps_CXX
29141 postdeps=$lt_postdeps_CXX
29143 # The library search path used internally by the compiler when linking
29144 # a shared library.
29145 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29147 # ### END LIBTOOL TAG CONFIG: CXX
29151 cat <<_LT_EOF >> "$ofile"
29153 # ### BEGIN LIBTOOL TAG CONFIG: RC
29155 # The linker used to build libraries.
29158 # How to create reloadable object files.
29159 reload_flag=$lt_reload_flag_RC
29160 reload_cmds=$lt_reload_cmds_RC
29162 # Commands used to build an old-style archive.
29163 old_archive_cmds=$lt_old_archive_cmds_RC
29165 # A language specific compiler.
29168 # Is the compiler the GNU compiler?
29171 # Compiler flag to turn off builtin functions.
29172 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29174 # Additional compiler flags for building library objects.
29175 pic_flag=$lt_lt_prog_compiler_pic_RC
29177 # How to pass a linker flag through the compiler.
29178 wl=$lt_lt_prog_compiler_wl_RC
29180 # Compiler flag to prevent dynamic linking.
29181 link_static_flag=$lt_lt_prog_compiler_static_RC
29183 # Does compiler simultaneously support -c and -o options?
29184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29186 # Whether or not to add -lc for building shared libraries.
29187 build_libtool_need_lc=$archive_cmds_need_lc_RC
29189 # Whether or not to disallow shared libs when runtime libs are static.
29190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29192 # Compiler flag to allow reflexive dlopens.
29193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29195 # Compiler flag to generate shared objects directly from archives.
29196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29198 # Whether the compiler copes with passing no objects directly.
29199 compiler_needs_object=$lt_compiler_needs_object_RC
29201 # Create an old-style archive from a shared archive.
29202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29204 # Create a temporary old-style archive to link instead of a shared archive.
29205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29207 # Commands used to build a shared archive.
29208 archive_cmds=$lt_archive_cmds_RC
29209 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29211 # Commands used to build a loadable module if different from building
29212 # a shared archive.
29213 module_cmds=$lt_module_cmds_RC
29214 module_expsym_cmds=$lt_module_expsym_cmds_RC
29216 # Whether we are building with GNU ld or not.
29217 with_gnu_ld=$lt_with_gnu_ld_RC
29219 # Flag that allows shared libraries with undefined symbols to be built.
29220 allow_undefined_flag=$lt_allow_undefined_flag_RC
29222 # Flag that enforces no undefined symbols.
29223 no_undefined_flag=$lt_no_undefined_flag_RC
29225 # Flag to hardcode \$libdir into a binary during linking.
29226 # This must work even if \$libdir does not exist
29227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29229 # Whether we need a single "-rpath" flag with a separated argument.
29230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29233 # DIR into the resulting binary.
29234 hardcode_direct=$hardcode_direct_RC
29236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29237 # DIR into the resulting binary and the resulting library dependency is
29238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29239 # library is relocated.
29240 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29243 # into the resulting binary.
29244 hardcode_minus_L=$hardcode_minus_L_RC
29246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29247 # into the resulting binary.
29248 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29250 # Set to "yes" if building a shared library automatically hardcodes DIR
29251 # into the library and all subsequent libraries and executables linked
29253 hardcode_automatic=$hardcode_automatic_RC
29255 # Set to yes if linker adds runtime paths of dependent libraries
29256 # to runtime path list.
29257 inherit_rpath=$inherit_rpath_RC
29259 # Whether libtool must link a program against all its dependency libraries.
29260 link_all_deplibs=$link_all_deplibs_RC
29262 # Set to "yes" if exported symbols are required.
29263 always_export_symbols=$always_export_symbols_RC
29265 # The commands to list exported symbols.
29266 export_symbols_cmds=$lt_export_symbols_cmds_RC
29268 # Symbols that should not be listed in the preloaded symbols.
29269 exclude_expsyms=$lt_exclude_expsyms_RC
29271 # Symbols that must always be exported.
29272 include_expsyms=$lt_include_expsyms_RC
29274 # Commands necessary for linking programs (against libraries) with templates.
29275 prelink_cmds=$lt_prelink_cmds_RC
29277 # Commands necessary for finishing linking programs.
29278 postlink_cmds=$lt_postlink_cmds_RC
29280 # Specify filename containing input files.
29281 file_list_spec=$lt_file_list_spec_RC
29283 # How to hardcode a shared library path into an executable.
29284 hardcode_action=$hardcode_action_RC
29286 # The directories searched by this compiler when creating a shared library.
29287 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29289 # Dependencies to place before and after the objects being linked to
29290 # create a shared library.
29291 predep_objects=$lt_predep_objects_RC
29292 postdep_objects=$lt_postdep_objects_RC
29293 predeps=$lt_predeps_RC
29294 postdeps=$lt_postdeps_RC
29296 # The library search path used internally by the compiler when linking
29297 # a shared library.
29298 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29300 # ### END LIBTOOL TAG CONFIG: RC
29304 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29305 "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29313 ac_clean_files=$ac_clean_files_save
29315 test $ac_write_fail = 0 ||
29316 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29319 # configure is writing to config.log, and then calls config.status.
29320 # config.status does its own redirection, appending to config.log.
29321 # Unfortunately, on DOS this fails, as config.log is still kept open
29322 # by configure, so config.status won't be able to write to it; its
29323 # output is simply discarded. So we exec the FD to /dev/null,
29324 # effectively closing config.log, so it can be properly (re)opened and
29325 # appended to by config.status. When coming back to configure, we
29326 # need to make the FD available again.
29327 if test "$no_create" != yes; then
29329 ac_config_status_args=
29330 test "$silent" = yes &&
29331 ac_config_status_args="$ac_config_status_args --quiet"
29333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29336 # would make configure fail if this is the last instruction.
29337 $ac_cs_success || as_fn_exit 1
29339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29341 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29346 GPGME v${VERSION} has been configured as follows:
29348 Revision: bb988077 (48024)
29351 UI Server: $uiserver
29352 FD Passing: $use_descriptor_passing
29354 Language bindings: ${enabled_languages_v:-$enabled_languages}
29356 if test "x${gpg_config_script_warn}" != x; then
29358 Mismatches between the target platform and the to
29359 be used libraries have been been detected for:
29360 ${gpg_config_script_warn}
29361 Please check above for warning messages.