2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgpg-error 1.13.
5 # Report bugs to <http://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libgpg-error'
592 PACKAGE_TARNAME='libgpg-error'
593 PACKAGE_VERSION='1.13'
594 PACKAGE_STRING='libgpg-error 1.13'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
598 ac_unique_file="src/err-sources.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 gl_use_threads_default=
637 ac_subst_vars='am__EXEEXT_FALSE
646 CROSS_COMPILING_FALSE
648 HAVE_W32CE_SYSTEM_FALSE
649 HAVE_W32CE_SYSTEM_TRUE
650 HAVE_W64_SYSTEM_FALSE
652 HAVE_W32_SYSTEM_FALSE
654 GPG_ERROR_CONFIG_HOST
655 GPG_ERROR_CONFIG_ISUBDIRAFTER
656 GPG_ERROR_CONFIG_MT_CFLAGS
657 GPG_ERROR_CONFIG_MT_LIBS
658 GPG_ERROR_CONFIG_CFLAGS
659 GPG_ERROR_CONFIG_LIBS
671 XGETTEXT_EXTRA_OPTIONS
679 GETTEXT_MACRO_VERSION
736 MAINTAINER_MODE_FALSE
746 INSTALL_STRIP_PROGRAM
762 LIBGPG_ERROR_LT_REVISION
764 LIBGPG_ERROR_LT_CURRENT
792 program_transform_name
805 enable_option_checking
806 enable_maintainer_mode
808 enable_dependency_tracking
823 ac_precious_vars='build_alias
835 # Initialize some variables set by options.
837 ac_init_version=false
838 ac_unrecognized_opts=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name=s,x,x,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
993 -help | --help | --hel | --he | -h)
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1142 -site=* | --site=* | --sit=*)
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval with_$ac_useropt=no ;;
1201 # Obsolete; use --with-x.
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296 test "$silent" = yes && exec 6>/dev/null
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1373 \`configure' configures libgpg-error 1.13 to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/libgpg-error]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of libgpg-error 1.13:";;
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-maintainer-mode enable make rules and dependencies not useful
1452 (and sometimes confusing) to the casual installer
1453 --enable-silent-rules less verbose build output (undo: `make V=1')
1454 --disable-silent-rules verbose build output (undo: `make V=0')
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
1457 --enable-threads={posix|solaris|windows}
1458 specify multithreading API
1459 --disable-threads build without multithread safety
1460 --enable-static[=PKGS] build static libraries [default=no]
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
1464 --disable-libtool-lock avoid locking (might break parallel builds)
1465 --disable-nls do not use Native Language Support
1466 --disable-rpath do not hardcode runtime library paths
1467 --disable-languages do not build support for other languages than C
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot=DIR Search for dependent libraries within DIR
1476 (or the compiler's sysroot if not specified).
1477 --with-gnu-ld assume the C compiler uses GNU ld default=no
1478 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1479 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1480 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1481 --without-libintl-prefix don't search for libintl in includedir and libdir
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1493 build system C compiler
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to <http://bugs.gnupg.org>.
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1528 .) # We are building in place.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1561 libgpg-error configure 1.13
1562 generated by GNU Autoconf 2.69
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_cpp LINENO
1614 # ----------------------
1615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } > conftest.i && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1655 ac_fn_c_check_header_mongrel ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if eval \${$3+:} false; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1668 # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1679 ac_header_compiler=no
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1695 ac_header_preproc=no
1697 rm -f conftest.err conftest.i conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1701 # So? What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ( $as_echo "## ------------------------------------ ##
1721 ## Report this to http://bugs.gnupg.org ##
1722 ## ------------------------------------ ##"
1723 ) | sed "s/^/$as_me: WARNING: /" >&2
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1731 eval "$3=\$ac_header_compiler"
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_mongrel
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=$ac_status
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_header_compile
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 test -x conftest$ac_exeext
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_link
1860 # ac_fn_c_check_func LINENO FUNC VAR
1861 # ----------------------------------
1862 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1863 ac_fn_c_check_func ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1875 #define $2 innocuous_$2
1877 /* System header to define __stub macros and hopefully few prototypes,
1878 which can conflict with char $2 (); below.
1879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880 <limits.h> exists even on freestanding compilers. */
1883 # include <limits.h>
1885 # include <assert.h>
1890 /* Override any GCC internal prototype to avoid an error.
1891 Use char because int might match the return type of a GCC
1892 builtin and then its argument prototype would still apply. */
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined __stub_$2 || defined __stub___$2
1912 if ac_fn_c_try_link "$LINENO"; then :
1917 rm -f core conftest.err conftest.$ac_objext \
1918 conftest$ac_exeext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 } # ac_fn_c_check_func
1927 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1928 # ---------------------------------------------
1929 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931 ac_fn_c_check_decl ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 as_decl_name=`echo $2|sed 's/ *(.*//'`
1935 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1937 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1947 #ifndef $as_decl_name
1949 (void) $as_decl_use;
1951 (void) $as_decl_name;
1959 if ac_fn_c_try_compile "$LINENO"; then :
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_decl
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2011 if ac_fn_c_try_compile "$LINENO"; then :
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_type
2027 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028 # --------------------------------------------
2029 # Tries to find the compile-time value of EXPR in a program that includes
2030 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 ac_fn_c_compute_int ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if test "$cross_compiling" = yes; then
2036 # Depending upon the size, compute the lo and hi bounds.
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) >= 0)];
2045 return test_array [0];
2051 if ac_fn_c_try_compile "$LINENO"; then :
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 return test_array [0];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_hi=$ac_mid; break
2071 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2072 if test $ac_lo -le $ac_mid; then
2076 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) < 0)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_lo=$ac_mid; break
2115 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116 if test $ac_mid -le $ac_hi; then
2120 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile "$LINENO"; then :
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2170 FILE *f = fopen ("conftest.val", "w");
2175 long int i = longval ();
2178 fprintf (f, "%ld", i);
2182 unsigned long int i = ulongval ();
2185 fprintf (f, "%lu", i);
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2195 if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2208 } # ac_fn_c_compute_int
2209 cat >config.log <<_ACEOF
2210 This file contains any messages produced by compilers while
2211 running configure, to aid debugging if configure makes a mistake.
2213 It was created by libgpg-error $as_me 1.13, which was
2214 generated by GNU Autoconf 2.69. Invocation command line was
2226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2233 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2235 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2236 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2238 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2239 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2240 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2241 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 $as_echo "PATH: $as_dir"
2266 # Keep a trace of the command line.
2267 # Strip out --no-create and --no-recursion so they do not pile up.
2268 # Strip out --silent because we don't want to record it for future runs.
2269 # Also quote any args containing shell meta-characters.
2270 # Make two passes to allow for proper duplicate-argument suppression.
2274 ac_must_keep_next=false
2280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2282 | -silent | --silent | --silen | --sile | --sil)
2285 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2290 as_fn_append ac_configure_args1 " '$ac_arg'"
2291 if test $ac_must_keep_next = true; then
2292 ac_must_keep_next=false # Got value, back to normal.
2295 *=* | --config-cache | -C | -disable-* | --disable-* \
2296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2298 | -with-* | --with-* | -without-* | --without-* | --x)
2299 case "$ac_configure_args0 " in
2300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2303 -* ) ac_must_keep_next=true ;;
2306 as_fn_append ac_configure_args " '$ac_arg'"
2311 { ac_configure_args0=; unset ac_configure_args0;}
2312 { ac_configure_args1=; unset ac_configure_args1;}
2314 # When interrupted or exit'd, cleanup temporary files, and complete
2315 # config.log. We remove comments because anyway the quotes in there
2316 # would cause problems or look ugly.
2317 # WARNING: Use '\'' to represent an apostrophe within the trap.
2318 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2319 trap 'exit_status=$?
2320 # Save into config.log some information that might help in debugging.
2324 $as_echo "## ---------------- ##
2325 ## Cache variables. ##
2326 ## ---------------- ##"
2328 # The following way of writing the cache mishandles newlines in values,
2330 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2331 eval ac_val=\$$ac_var
2335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2336 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2339 _ | IFS | as_nl) ;; #(
2340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2341 *) { eval $ac_var=; unset $ac_var;} ;;
2346 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2347 *${as_nl}ac_space=\ *)
2349 "s/'\''/'\''\\\\'\'''\''/g;
2350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2360 $as_echo "## ----------------- ##
2361 ## Output variables. ##
2362 ## ----------------- ##"
2364 for ac_var in $ac_subst_vars
2366 eval ac_val=\$$ac_var
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 $as_echo "$ac_var='\''$ac_val'\''"
2374 if test -n "$ac_subst_files"; then
2375 $as_echo "## ------------------- ##
2376 ## File substitutions. ##
2377 ## ------------------- ##"
2379 for ac_var in $ac_subst_files
2381 eval ac_val=\$$ac_var
2383 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 $as_echo "$ac_var='\''$ac_val'\''"
2390 if test -s confdefs.h; then
2391 $as_echo "## ----------- ##
2398 test "$ac_signal" != 0 &&
2399 $as_echo "$as_me: caught signal $ac_signal"
2400 $as_echo "$as_me: exit $exit_status"
2402 rm -f core *.core core.conftest.* &&
2403 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406 for ac_signal in 1 2 13 15; do
2407 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2412 rm -f -r conftest* confdefs.h
2414 $as_echo "/* confdefs.h */" > confdefs.h
2416 # Predefined preprocessor variables.
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_NAME "$PACKAGE_NAME"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_STRING "$PACKAGE_STRING"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_URL "$PACKAGE_URL"
2443 # Let the site file select an alternate cache file if it wants to.
2444 # Prefer an explicitly selected file to automatically selected ones.
2447 if test -n "$CONFIG_SITE"; then
2448 # We do not want a PATH search for config.site.
2449 case $CONFIG_SITE in #((
2450 -*) ac_site_file1=./$CONFIG_SITE;;
2451 */*) ac_site_file1=$CONFIG_SITE;;
2452 *) ac_site_file1=./$CONFIG_SITE;;
2454 elif test "x$prefix" != xNONE; then
2455 ac_site_file1=$prefix/share/config.site
2456 ac_site_file2=$prefix/etc/config.site
2458 ac_site_file1=$ac_default_prefix/share/config.site
2459 ac_site_file2=$ac_default_prefix/etc/config.site
2461 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2463 test "x$ac_site_file" = xNONE && continue
2464 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2467 sed 's/^/| /' "$ac_site_file" >&5
2469 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 as_fn_error $? "failed to load site script $ac_site_file
2472 See \`config.log' for more details" "$LINENO" 5; }
2476 if test -r "$cache_file"; then
2477 # Some versions of bash will fail to source /dev/null (special files
2478 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2479 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2481 $as_echo "$as_me: loading cache $cache_file" >&6;}
2483 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2484 *) . "./$cache_file";;
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2489 $as_echo "$as_me: creating cache $cache_file" >&6;}
2493 gt_needs="$gt_needs "
2494 # Check that the precious variables saved in the cache have kept the same
2496 ac_cache_corrupted=false
2497 for ac_var in $ac_precious_vars; do
2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499 eval ac_new_set=\$ac_env_${ac_var}_set
2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501 eval ac_new_val=\$ac_env_${ac_var}_value
2502 case $ac_old_set,$ac_new_set in
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506 ac_cache_corrupted=: ;;
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2513 if test "x$ac_old_val" != "x$ac_new_val"; then
2514 # differences in whitespace do not lead to failure.
2515 ac_old_val_w=`echo x $ac_old_val`
2516 ac_new_val_w=`echo x $ac_new_val`
2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520 ac_cache_corrupted=:
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524 eval $ac_var=\$ac_old_val
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2527 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2529 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2532 # Pass precious variables to config.status.
2533 if test "$ac_new_set" = set; then
2535 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536 *) ac_arg=$ac_var=$ac_new_val ;;
2538 case " $ac_configure_args " in
2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544 if $ac_cache_corrupted; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2549 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2551 ## -------------------- ##
2552 ## Main body of script. ##
2553 ## -------------------- ##
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 # LT Version numbers, remember to change them just *before* a release.
2563 # (Code changed: REVISION++)
2564 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2565 # (Interfaces added: AGE++)
2566 # (Interfaces removed: AGE=0)
2567 # Note that added error codes don't constitute an interface change.
2568 LIBGPG_ERROR_LT_CURRENT=11
2569 LIBGPG_ERROR_LT_AGE=11
2570 LIBGPG_ERROR_LT_REVISION=0
2571 ################################################
2577 VERSION_NUMBER=0x010d00
2581 for ac_dir in build-aux "$srcdir"/build-aux; do
2582 if test -f "$ac_dir/install-sh"; then
2584 ac_install_sh="$ac_aux_dir/install-sh -c"
2586 elif test -f "$ac_dir/install.sh"; then
2588 ac_install_sh="$ac_aux_dir/install.sh -c"
2590 elif test -f "$ac_dir/shtool"; then
2592 ac_install_sh="$ac_aux_dir/shtool install -c"
2596 if test -z "$ac_aux_dir"; then
2597 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2600 # These three variables are undocumented and unsupported,
2601 # and are intended to be withdrawn in a future Autoconf release.
2602 # They can cause serious problems if a builder's source tree is in a directory
2603 # whose full name contains unusual characters.
2604 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2605 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2606 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2609 am__api_version='1.11'
2611 # Find a good install program. We prefer a C program (faster),
2612 # so one script is as good as another. But avoid the broken or
2613 # incompatible versions:
2614 # SysV /etc/install, /usr/sbin/install
2615 # SunOS /usr/etc/install
2616 # IRIX /sbin/install
2618 # AmigaOS /C/install, which installs bootblocks on floppy discs
2619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622 # OS/2's system install, which has a completely different semantic
2623 # ./install, which can be erroneously created by make from ./install.sh.
2624 # Reject install programs that cannot install multiple files.
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2627 if test -z "$INSTALL"; then
2628 if ${ac_cv_path_install+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 # Account for people who put trailing slashes in PATH elements.
2637 case $as_dir/ in #((
2638 ./ | .// | /[cC]/* | \
2639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643 # OSF1 and SCO ODT 3.0 have their own names for install.
2644 # Don't use installbsd from OSF since it installs stuff as root
2646 for ac_prog in ginstall scoinst install; do
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2649 if test $ac_prog = install &&
2650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651 # AIX install. It has an incompatible calling convention.
2653 elif test $ac_prog = install &&
2654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655 # program-specific install script used by HP pwplus--don't use.
2658 rm -rf conftest.one conftest.two conftest.dir
2659 echo one > conftest.one
2660 echo two > conftest.two
2662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663 test -s conftest.one && test -s conftest.two &&
2664 test -s conftest.dir/conftest.one &&
2665 test -s conftest.dir/conftest.two
2667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2680 rm -rf conftest.one conftest.two conftest.dir
2683 if test "${ac_cv_path_install+set}" = set; then
2684 INSTALL=$ac_cv_path_install
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for INSTALL within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 INSTALL=$ac_install_sh
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694 $as_echo "$INSTALL" >&6; }
2696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697 # It thinks the first close brace ends the variable substitution.
2698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705 $as_echo_n "checking whether build environment is sane... " >&6; }
2708 echo timestamp > conftest.file
2709 # Reject unsafe characters in $srcdir or the absolute working directory
2710 # name. Accept space and tab only in the latter.
2714 *[\\\"\#\$\&\'\`$am_lf]*)
2715 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2718 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2719 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2722 # Do `set' in a subshell so we don't clobber the current shell's
2723 # arguments. Must try -L first in case configure is actually a
2724 # symlink; some systems play weird games with the mod time of symlinks
2725 # (eg FreeBSD returns the mod time of the symlink's containing
2728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729 if test "$*" = "X"; then
2731 set X `ls -t "$srcdir/configure" conftest.file`
2734 if test "$*" != "X $srcdir/configure conftest.file" \
2735 && test "$*" != "X conftest.file $srcdir/configure"; then
2737 # If neither matched, then we have a broken ls. This can happen
2738 # if, for instance, CONFIG_SHELL is bash and it inherits a
2739 # broken ls alias from the environment. This has actually
2740 # happened. Such a system could not be considered "sane".
2741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2742 alias in your environment" "$LINENO" 5
2745 test "$2" = conftest.file
2751 as_fn_error $? "newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 test "$program_prefix" != NONE &&
2757 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758 # Use a double $ so make ignores it.
2759 test "$program_suffix" != NONE &&
2760 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761 # Double any \ or $.
2762 # By default was `s,x,x', remove it if useless.
2763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766 # expand $ac_aux_dir to an absolute path
2767 am_aux_dir=`cd $ac_aux_dir && pwd`
2769 if test x"${MISSING+set}" != xset; then
2772 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2777 # Use eval to expand $SHELL
2778 if eval "$MISSING --run true"; then
2779 am_missing_run="$MISSING --run "
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2783 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2786 if test x"${install_sh}" != xset; then
2789 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791 install_sh="\${SHELL} $am_aux_dir/install-sh"
2795 # Installed binaries are usually stripped using `strip' when the user
2796 # run `make install-strip'. However `strip' might not be the right
2797 # tool to use in cross-compilation environments, therefore Automake
2798 # will honor the `STRIP' environment variable to overrule this program.
2799 if test "$cross_compiling" != no; then
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}strip; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_STRIP+:} false; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$STRIP"; then
2809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 STRIP=$ac_cv_prog_STRIP
2829 if test -n "$STRIP"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831 $as_echo "$STRIP" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2839 if test -z "$ac_cv_prog_STRIP"; then
2841 # Extract the first word of "strip", so it can be a program name with args.
2842 set dummy strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$ac_ct_STRIP"; then
2849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_STRIP="strip"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869 if test -n "$ac_ct_STRIP"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871 $as_echo "$ac_ct_STRIP" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2877 if test "x$ac_ct_STRIP" = x; then
2880 case $cross_compiling:$ac_tool_warned in
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2889 STRIP="$ac_cv_prog_STRIP"
2893 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898 if ${ac_cv_path_mkdir+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2905 test -z "$as_dir" && as_dir=.
2906 for ac_prog in mkdir gmkdir; do
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2909 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910 'mkdir (GNU coreutils) '* | \
2911 'mkdir (coreutils) '* | \
2912 'mkdir (fileutils) '4.1*)
2913 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2923 test -d ./--version && rmdir ./--version
2924 if test "${ac_cv_path_mkdir+set}" = set; then
2925 MKDIR_P="$ac_cv_path_mkdir -p"
2927 # As a last resort, use the slow shell script. Don't cache a
2928 # value for MKDIR_P within a source directory, because that will
2929 # break other packages using the cache if that directory is
2930 # removed, or if the value is a relative name.
2931 MKDIR_P="$ac_install_sh -d"
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935 $as_echo "$MKDIR_P" >&6; }
2939 [\\/$]* | ?:[\\/]*) ;;
2940 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2943 for ac_prog in gawk mawk nawk awk
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_AWK+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$AWK"; then
2953 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_AWK="$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$AWK"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975 $as_echo "$AWK" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2982 test -n "$AWK" && break
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2989 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 cat >conftest.make <<\_ACEOF
2995 @echo '@@@%%%=$(MAKE)=@@@%%%'
2997 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3000 eval ac_cv_prog_make_${ac_make}_set=yes;;
3002 eval ac_cv_prog_make_${ac_make}_set=no;;
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 SET_MAKE="MAKE=${MAKE-make}"
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3023 rmdir .tst 2>/dev/null
3025 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3035 # test whether we have cygpath
3036 if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3045 # Define the identity of the package.
3046 PACKAGE='libgpg-error'
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE "$PACKAGE"
3055 cat >>confdefs.h <<_ACEOF
3056 #define VERSION "$VERSION"
3059 # Some tools Automake needs.
3061 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3064 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3067 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3073 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3075 # We need awk for the "check" target. The system "awk" is bad on
3077 # Always define AMTAR for backward compatibility. Yes, it's still used
3078 # in the wild :-( We should find a proper way to deprecate it ...
3081 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3089 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3090 # Check whether --enable-maintainer-mode was given.
3091 if test "${enable_maintainer_mode+set}" = set; then :
3092 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3094 USE_MAINTAINER_MODE=no
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3098 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3099 if test $USE_MAINTAINER_MODE = yes; then
3100 MAINTAINER_MODE_TRUE=
3101 MAINTAINER_MODE_FALSE='#'
3103 MAINTAINER_MODE_TRUE='#'
3104 MAINTAINER_MODE_FALSE=
3107 MAINT=$MAINTAINER_MODE_TRUE
3111 ac_config_headers="$ac_config_headers config.h"
3114 # Check whether --enable-silent-rules was given.
3115 if test "${enable_silent_rules+set}" = set; then :
3116 enableval=$enable_silent_rules;
3119 case $enable_silent_rules in
3120 yes) AM_DEFAULT_VERBOSITY=0;;
3121 no) AM_DEFAULT_VERBOSITY=1;;
3122 *) AM_DEFAULT_VERBOSITY=1;;
3124 am_make=${MAKE-make}
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3126 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3127 if ${am_cv_make_support_nested_variables+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 if $as_echo 'TRUE=$(BAR$(V))
3136 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3137 am_cv_make_support_nested_variables=yes
3139 am_cv_make_support_nested_variables=no
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3143 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3144 if test $am_cv_make_support_nested_variables = yes; then
3146 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3148 AM_V=$AM_DEFAULT_VERBOSITY
3149 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3154 # We need to know about the host architecture to avoid spurious
3156 # Make sure we can run config.sub.
3157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3158 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3161 $as_echo_n "checking build system type... " >&6; }
3162 if ${ac_cv_build+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 ac_build_alias=$build_alias
3166 test "x$ac_build_alias" = x &&
3167 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x &&
3169 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3175 $as_echo "$ac_cv_build" >&6; }
3176 case $ac_cv_build in
3178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3181 ac_save_IFS=$IFS; IFS='-'
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3195 $as_echo_n "checking host system type... " >&6; }
3196 if ${ac_cv_host+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test "x$host_alias" = x; then
3200 ac_cv_host=$ac_cv_build
3202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3208 $as_echo "$ac_cv_host" >&6; }
3211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3214 ac_save_IFS=$IFS; IFS='-'
3220 # Remember, the first character of IFS is used to create $*,
3221 # except with old shells:
3224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3232 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3234 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3236 if test "$hostname"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3238 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3241 date=`date +%Y%m%d-%H%M%S`
3242 if test "$?" != 0; then
3245 if test "$date"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3247 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3251 # Checks for programs.
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_CC+:} false; then :
3263 $as_echo_n "(cached) " >&6
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3296 if test -z "$ac_cv_prog_CC"; then
3298 # Extract the first word of "gcc", so it can be a program name with args.
3299 set dummy gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 if test -n "$ac_ct_CC"; then
3306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CC="gcc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 $as_echo "$ac_ct_CC" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3334 if test "x$ac_ct_CC" = x; then
3337 case $cross_compiling:$ac_tool_warned in
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3410 ac_prog_rejected=yes
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 if test $ac_prog_rejected = yes; then
3422 # We found a bogon in the path, so make sure we never use it.
3423 set dummy $ac_cv_prog_CC
3425 if test $# != 0; then
3426 # We chose a different compiler from the bogus one.
3427 # However, it has the same basename, so the bogon will be chosen
3428 # first if we set CC to just the basename; use the full file name.
3430 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$CC"; then
3447 if test -n "$ac_tool_prefix"; then
3448 for ac_prog in cl.exe
3450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3487 test -n "$CC" && break
3490 if test -z "$CC"; then
3492 for ac_prog in cl.exe
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3499 $as_echo_n "(cached) " >&6
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_ac_ct_CC="$ac_prog"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3531 test -n "$ac_ct_CC" && break
3534 if test "x$ac_ct_CC" = x; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3550 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details" "$LINENO" 5; }
3555 # Provide some information about the compiler.
3556 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559 for ac_option in --version -v -V -qversion; do
3560 { { ac_try="$ac_compiler $ac_option >&5"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569 if test -s conftest.err; then
3571 ... rest of stderr output deleted ...
3572 10q' conftest.err >conftest.er1
3573 cat conftest.er1 >&5
3575 rm -f conftest.er1 conftest.err
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3597 $as_echo_n "checking whether the C compiler works... " >&6; }
3598 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600 # The possible output files:
3601 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604 for ac_file in $ac_files
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3613 if { { ac_try="$ac_link_default"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link_default") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3625 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3626 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3627 # so that the user can short-circuit this test for compilers unknown to
3629 for ac_file in $ac_files ''
3631 test -f "$ac_file" || continue
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3636 # We found the default executable, but exeext='' is most
3640 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 # We set ac_cv_exeext here because the later test for it is not
3645 # safe: cross compilers may not add the suffix if given an `-o'
3646 # argument, so we may need to know it at that point already.
3647 # Even if this section looks crufty: it has the advantage of
3654 test "$ac_cv_exeext" = no && ac_cv_exeext=
3659 if test -z "$ac_file"; then :
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 $as_echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error 77 "C compiler cannot create executables
3668 See \`config.log' for more details" "$LINENO" 5; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3671 $as_echo "yes" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3674 $as_echo_n "checking for C compiler default output file name... " >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3676 $as_echo "$ac_file" >&6; }
3677 ac_exeext=$ac_cv_exeext
3679 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3682 $as_echo_n "checking for suffix of executables... " >&6; }
3683 if { { ac_try="$ac_link"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_link") 2>&5
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3695 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3696 # work properly (i.e., refer to `conftest.exe'), while it won't with
3698 for ac_file in conftest.exe conftest conftest.*; do
3699 test -f "$ac_file" || continue
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details" "$LINENO" 5; }
3713 rm -f conftest conftest$ac_cv_exeext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3715 $as_echo "$ac_cv_exeext" >&6; }
3717 rm -f conftest.$ac_ext
3718 EXEEXT=$ac_cv_exeext
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3726 FILE *f = fopen ("conftest.out", "w");
3727 return ferror (f) || fclose (f) != 0;
3733 ac_clean_files="$ac_clean_files conftest.out"
3734 # Check that the compiler produces executables we can run. If not, either
3735 # the compiler is broken, or we cross compile.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3737 $as_echo_n "checking whether we are cross compiling... " >&6; }
3738 if test "$cross_compiling" != yes; then
3739 { { ac_try="$ac_link"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_link") 2>&5
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }
3750 if { ac_try='./conftest$ac_cv_exeext'
3751 { { case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_try") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; }; then
3763 if test "$cross_compiling" = maybe; then
3766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error $? "cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details" "$LINENO" 5; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775 $as_echo "$cross_compiling" >&6; }
3777 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3778 ac_clean_files=$ac_clean_files_save
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3780 $as_echo_n "checking for suffix of object files... " >&6; }
3781 if ${ac_cv_objext+:} false; then :
3782 $as_echo_n "(cached) " >&6
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 rm -f conftest.o conftest.obj
3796 if { { ac_try="$ac_compile"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compile") 2>&5
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; then :
3807 for ac_file in conftest.o conftest.obj conftest.*; do
3808 test -f "$ac_file" || continue;
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816 $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of object files: cannot compile
3822 See \`config.log' for more details" "$LINENO" 5; }
3824 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3827 $as_echo "$ac_cv_objext" >&6; }
3828 OBJEXT=$ac_cv_objext
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3832 if ${ac_cv_c_compiler_gnu+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3849 if ac_fn_c_try_compile "$LINENO"; then :
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3859 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3865 ac_test_CFLAGS=${CFLAGS+set}
3866 ac_save_CFLAGS=$CFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3868 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3869 if ${ac_cv_prog_cc_g+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 ac_save_c_werror_flag=$ac_c_werror_flag
3873 ac_c_werror_flag=yes
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 if ac_fn_c_try_compile "$LINENO"; then :
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_c_werror_flag=$ac_save_c_werror_flag
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3918 if ac_fn_c_try_compile "$LINENO"; then :
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_c_werror_flag=$ac_save_c_werror_flag
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3929 $as_echo "$ac_cv_prog_cc_g" >&6; }
3930 if test "$ac_test_CFLAGS" = set; then
3931 CFLAGS=$ac_save_CFLAGS
3932 elif test $ac_cv_prog_cc_g = yes; then
3933 if test "$GCC" = yes; then
3939 if test "$GCC" = yes; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3946 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3947 if ${ac_cv_prog_cc_c89+:} false; then :
3948 $as_echo_n "(cached) " >&6
3950 ac_cv_prog_cc_c89=no
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3971 s = g (p, va_arg (v,int));
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3977 function prototypes and stuff, but not '\xHH' hex character constants.
3978 These don't provoke an error unfortunately, instead are silently treated
3979 as 'x'. The following induces an error, until -std is added to get
3980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3981 array size at least. It's necessary to write '\x00'==0 to get something
3982 that's true only with -std. */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986 inside strings and character constants. */
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007 CC="$ac_save_CC $ac_arg"
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_prog_cc_c89=$ac_arg
4011 rm -f core conftest.err conftest.$ac_objext
4012 test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 rm -f conftest.$ac_ext
4019 case "x$ac_cv_prog_cc_c89" in
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4027 CC="$CC $ac_cv_prog_cc_c89"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 DEPDIR="${am__leading_dot}deps"
4042 ac_config_commands="$ac_config_commands depfiles"
4045 am_make=${MAKE-make}
4046 cat > confinc << 'END'
4048 @echo this is the am__doit target
4051 # If we don't find an include directive, just comment out the code.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4053 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4057 # First try GNU make style include.
4058 echo "include confinc" > confmf
4059 # Ignore all kinds of additional output from `make'.
4060 case `$am_make -s -f confmf 2> /dev/null` in #(
4061 *the\ am__doit\ target*)
4067 # Now try BSD make style include.
4068 if test "$am__include" = "#"; then
4069 echo '.include "confinc"' > confmf
4070 case `$am_make -s -f confmf 2> /dev/null` in #(
4071 *the\ am__doit\ target*)
4072 am__include=.include
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4081 $as_echo "$_am_result" >&6; }
4082 rm -f confinc confmf
4084 # Check whether --enable-dependency-tracking was given.
4085 if test "${enable_dependency_tracking+set}" = set; then :
4086 enableval=$enable_dependency_tracking;
4089 if test "x$enable_dependency_tracking" != xno; then
4090 am_depcomp="$ac_aux_dir/depcomp"
4094 if test "x$enable_dependency_tracking" != xno; then
4104 depcc="$CC" am_compiler_list=
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107 $as_echo_n "checking dependency style of $depcc... " >&6; }
4108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112 # We make a subdir and do the tests there. Otherwise we can end up
4113 # making bogus files that we don't know about and never remove. For
4114 # instance it was reported that on HP-UX the gcc test will end up
4115 # making a dummy file named `D' -- because `-MD' means `put the output
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4131 am_cv_CC_dependencies_compiler_type=none
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4136 case " $depcc " in #(
4137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4140 for depmode in $am_compiler_list; do
4141 # Setup a source with many dependencies, because some compilers
4142 # like to wrap large dependency lists on column 80 (with \), and
4143 # we should not choose a depcomp mode which is confused by this.
4145 # We need to recreate these files for each test, as the compiler may
4146 # overwrite some of them when testing with obscure command lines.
4147 # This happens at least with the AIX C compiler.
4149 for i in 1 2 3 4 5 6; do
4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152 # Solaris 8's {/usr,}/bin/sh.
4153 touch sub/conftst$i.h
4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4158 # mode. It turns out that the SunPro C++ compiler does not properly
4159 # handle `-M -o', and we need to detect this. Also, some Intel
4160 # versions had trouble with output in subdirs
4161 am__obj=sub/conftest.${OBJEXT-o}
4162 am__minus_obj="-o $am__obj"
4165 # This depmode causes a compiler race in universal mode.
4166 test "$am__universal" = false || continue
4169 # after this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested
4171 if test "x$enable_dependency_tracking" = xyes; then
4177 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4178 # This compiler won't grok `-c -o', but also, the minuso test has
4179 # not run yet. These depmodes are late enough in the game, and
4180 # so weak that their functioning should not be impacted.
4181 am__obj=conftest.${OBJEXT-o}
4186 if depmode=$depmode \
4187 source=sub/conftest.c object=$am__obj \
4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190 >/dev/null 2>conftest.err &&
4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195 # icc doesn't choke on unknown options, it will just issue warnings
4196 # or remarks (even with -Werror). So we grep stderr for any message
4197 # that says an option was ignored or not supported.
4198 # When given -MP, icc 7.0 and 7.1 complain thusly:
4199 # icc: Command line warning: ignoring option '-M'; no argument required
4200 # The diagnosis changed in icc 8.0:
4201 # icc: Command line remark: option '-MP' not supported
4202 if (grep 'ignoring option' conftest.err ||
4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204 am_cv_CC_dependencies_compiler_type=$depmode
4213 am_cv_CC_dependencies_compiler_type=none
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4222 test "x$enable_dependency_tracking" != xno \
4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225 am__fastdepCC_FALSE='#'
4227 am__fastdepCC_TRUE='#'
4228 am__fastdepCC_FALSE=
4232 if test "x$CC" != xcc; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4234 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4237 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4239 set dummy $CC; ac_cc=`$as_echo "$2" |
4240 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4241 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 # Make sure it works both with $CC and with simple cc.
4256 # We do the test twice because some compilers refuse to overwrite an
4257 # existing .o file with -o, though they will create one.
4258 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4260 if { { case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265 $as_echo "$ac_try_echo"; } >&5
4266 (eval "$ac_try") 2>&5
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269 test $ac_status = 0; } &&
4270 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_try") 2>&5
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; };
4281 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4282 if test "x$CC" != xcc; then
4283 # Test first that cc exists at all.
4284 if { ac_try='cc -c conftest.$ac_ext >&5'
4285 { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }; }; then
4295 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4297 if { { case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_try") 2>&5
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; } &&
4307 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; };
4321 # cc exists but doesn't like -o.
4322 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4327 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4329 rm -f core conftest*
4332 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334 $as_echo "yes" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4339 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4343 # FIXME: we rely on the cache variable name because
4344 # there is no other way.
4346 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4347 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4348 if test "$am_t" != yes; then
4349 # Losing compiler, so override with the script.
4350 # FIXME: It is wrong to rewrite CC.
4351 # But if we don't then we get into trouble of one sort or another.
4352 # A longer-term fix would be to have automake use am__CC in this case,
4353 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4354 CC="$am_aux_dir/compile $CC"
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4364 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4365 # On Suns, sometimes $CPP names a directory.
4366 if test -n "$CPP" && test -d "$CPP"; then
4369 if test -z "$CPP"; then
4370 if ${ac_cv_prog_CPP+:} false; then :
4371 $as_echo_n "(cached) " >&6
4373 # Double quotes because CPP needs to be expanded
4374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4377 for ac_c_preproc_warn_flag in '' yes
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 # include <limits.h>
4390 # include <assert.h>
4394 if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: fails on valid input.
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4402 # OK, works on sane cases. Now check whether nonexistent headers
4403 # can be detected and how.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <ac_nonexistent.h>
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4409 # Broken: success on invalid input.
4412 # Passes both tests.
4416 rm -f conftest.err conftest.i conftest.$ac_ext
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.i conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then :
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4434 $as_echo "$CPP" >&6; }
4436 for ac_c_preproc_warn_flag in '' yes
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4447 # include <limits.h>
4449 # include <assert.h>
4453 if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: fails on valid input.
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4468 # Broken: success on invalid input.
4471 # Passes both tests.
4475 rm -f conftest.err conftest.i conftest.$ac_ext
4478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479 rm -f conftest.i conftest.err conftest.$ac_ext
4480 if $ac_preproc_ok; then :
4483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4486 See \`config.log' for more details" "$LINENO" 5; }
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 for ac_prog in gawk mawk nawk awk
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_AWK+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -n "$AWK"; then
4505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_AWK="$ac_prog"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 if test -n "$AWK"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4527 $as_echo "$AWK" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4534 test -n "$AWK" && break
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}ar; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_AR+:} false; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$AR"; then
4546 ac_cv_prog_AR="$AR" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_AR="${ac_tool_prefix}ar"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test -n "$AR"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4568 $as_echo "$AR" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_AR"; then
4578 # Extract the first word of "ar", so it can be a program name with args.
4579 set dummy ar; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$ac_ct_AR"; then
4586 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_ac_ct_AR="ar"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4606 if test -n "$ac_ct_AR"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4608 $as_echo "$ac_ct_AR" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_AR" = x; then
4617 case $cross_compiling:$ac_tool_warned in
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4632 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4633 if ${ac_cv_path_GREP+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -z "$GREP"; then
4637 ac_path_GREP_found=false
4638 # Loop through the user's path and test for each of PROGNAME-LIST
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4643 test -z "$as_dir" && as_dir=.
4644 for ac_prog in grep ggrep; do
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4647 as_fn_executable_p "$ac_path_GREP" || continue
4648 # Check for GNU ac_path_GREP and select it if it is found.
4649 # Check for GNU $ac_path_GREP
4650 case `"$ac_path_GREP" --version 2>&1` in
4652 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4655 $as_echo_n 0123456789 >"conftest.in"
4658 cat "conftest.in" "conftest.in" >"conftest.tmp"
4659 mv "conftest.tmp" "conftest.in"
4660 cp "conftest.in" "conftest.nl"
4661 $as_echo 'GREP' >> "conftest.nl"
4662 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664 as_fn_arith $ac_count + 1 && ac_count=$as_val
4665 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4666 # Best one so far, save it but keep looking for a better one
4667 ac_cv_path_GREP="$ac_path_GREP"
4668 ac_path_GREP_max=$ac_count
4670 # 10*(2^10) chars as input seems more than enough
4671 test $ac_count -gt 10 && break
4673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 $ac_path_GREP_found && break 3
4681 if test -z "$ac_cv_path_GREP"; then
4682 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685 ac_cv_path_GREP=$GREP
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4690 $as_echo "$ac_cv_path_GREP" >&6; }
4691 GREP="$ac_cv_path_GREP"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4695 $as_echo_n "checking for egrep... " >&6; }
4696 if ${ac_cv_path_EGREP+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4700 then ac_cv_path_EGREP="$GREP -E"
4702 if test -z "$EGREP"; then
4703 ac_path_EGREP_found=false
4704 # Loop through the user's path and test for each of PROGNAME-LIST
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4709 test -z "$as_dir" && as_dir=.
4710 for ac_prog in egrep; do
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4713 as_fn_executable_p "$ac_path_EGREP" || continue
4714 # Check for GNU ac_path_EGREP and select it if it is found.
4715 # Check for GNU $ac_path_EGREP
4716 case `"$ac_path_EGREP" --version 2>&1` in
4718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4721 $as_echo_n 0123456789 >"conftest.in"
4724 cat "conftest.in" "conftest.in" >"conftest.tmp"
4725 mv "conftest.tmp" "conftest.in"
4726 cp "conftest.in" "conftest.nl"
4727 $as_echo 'EGREP' >> "conftest.nl"
4728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730 as_fn_arith $ac_count + 1 && ac_count=$as_val
4731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4732 # Best one so far, save it but keep looking for a better one
4733 ac_cv_path_EGREP="$ac_path_EGREP"
4734 ac_path_EGREP_max=$ac_count
4736 # 10*(2^10) chars as input seems more than enough
4737 test $ac_count -gt 10 && break
4739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742 $ac_path_EGREP_found && break 3
4747 if test -z "$ac_cv_path_EGREP"; then
4748 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4751 ac_cv_path_EGREP=$EGREP
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4757 $as_echo "$ac_cv_path_EGREP" >&6; }
4758 EGREP="$ac_cv_path_EGREP"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4762 $as_echo_n "checking for ANSI C header files... " >&6; }
4763 if ${ac_cv_header_stdc+:} false; then :
4764 $as_echo_n "(cached) " >&6
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_header_stdc=yes
4784 ac_cv_header_stdc=no
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 if test $ac_cv_header_stdc = yes; then
4789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "memchr" >/dev/null 2>&1; then :
4799 ac_cv_header_stdc=no
4805 if test $ac_cv_header_stdc = yes; then
4806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813 $EGREP "free" >/dev/null 2>&1; then :
4816 ac_cv_header_stdc=no
4822 if test $ac_cv_header_stdc = yes; then
4823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4824 if test "$cross_compiling" = yes; then :
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4831 #if ((' ' & 0x0FF) == 0x020)
4832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4835 # define ISLOWER(c) \
4836 (('a' <= (c) && (c) <= 'i') \
4837 || ('j' <= (c) && (c) <= 'r') \
4838 || ('s' <= (c) && (c) <= 'z'))
4839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4847 for (i = 0; i < 256; i++)
4848 if (XOR (islower (i), ISLOWER (i))
4849 || toupper (i) != TOUPPER (i))
4854 if ac_fn_c_try_run "$LINENO"; then :
4857 ac_cv_header_stdc=no
4859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4860 conftest.$ac_objext conftest.beam conftest.$ac_ext
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4866 $as_echo "$ac_cv_header_stdc" >&6; }
4867 if test $ac_cv_header_stdc = yes; then
4869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4875 inttypes.h stdint.h unistd.h
4877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4881 cat >>confdefs.h <<_ACEOF
4882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4891 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4892 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4899 if test "$MINIX" = yes; then
4901 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4904 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4907 $as_echo "#define _MINIX 1" >>confdefs.h
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4914 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4920 # define __EXTENSIONS__ 1
4921 $ac_includes_default
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_cv_safe_to_define___extensions__=yes
4933 ac_cv_safe_to_define___extensions__=no
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4939 test $ac_cv_safe_to_define___extensions__ = yes &&
4940 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4942 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4944 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4946 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4948 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4953 # Set some internal variables depending on the platform for later use.
4956 have_w32ce_system=no
4964 have_w32ce_system=yes
4974 if test "$have_w32_system" != yes; then
4979 THREADLIB_CPPFLAGS=""
4981 # Check whether --enable-threads was given.
4982 if test "${enable_threads+set}" = set; then :
4983 enableval=$enable_threads; gl_use_threads=$enableval
4985 if test -n "$gl_use_threads_default"; then
4986 gl_use_threads="$gl_use_threads_default"
4989 osf*) gl_use_threads=no ;;
4992 1.[0-5].*) gl_use_threads=no ;;
4993 *) gl_use_threads=yes ;;
4996 *) gl_use_threads=yes ;;
5002 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5003 # For using <pthread.h>:
5006 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5007 # groks <pthread.h>. cc also understands the flag -pthread, but
5008 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5009 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5010 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5011 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5012 THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_REENTRANT"
5015 # Some systems optimize for single-threaded programs by default, and
5016 # need special flags to disable these optimizations. For example, the
5017 # definition of 'errno' in <errno.h>.
5020 THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_THREAD_SAFE"
5023 THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_REENTRANT"
5027 if test x"$THREADLIB_CPPFLAGS" != x ; then
5028 CPPFLAGS="$CPPFLAGS $THREADLIB_CPPFLAGS"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5041 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5046 macro_version='2.4.2'
5047 macro_revision='1.3337'
5061 ltmain="$ac_aux_dir/ltmain.sh"
5063 # Backslashify metacharacters that are still active within
5064 # double-quoted strings.
5065 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5067 # Same as above, but do not quote variable references.
5068 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5070 # Sed substitution to delay expansion of an escaped shell variable in a
5071 # double_quote_subst'ed string.
5072 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5074 # Sed substitution to delay expansion of an escaped single quote.
5075 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5077 # Sed substitution to avoid accidental globbing in evaled expressions
5078 no_glob_subst='s/\*/\\\*/g'
5080 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5081 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5082 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5085 $as_echo_n "checking how to print strings... " >&6; }
5086 # Test print first, because it will be a builtin if present.
5087 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5088 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5090 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5093 # Use this function as a fallback that always works.
5094 func_fallback_echo ()
5096 eval 'cat <<_LTECHO_EOF
5100 ECHO='func_fallback_echo'
5103 # func_echo_all arg...
5104 # Invoke $ECHO with all args, space-separated.
5111 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5112 $as_echo "printf" >&6; } ;;
5113 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5114 $as_echo "print -r" >&6; } ;;
5115 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5116 $as_echo "cat" >&6; } ;;
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5134 if ${ac_cv_path_SED+:} false; then :
5135 $as_echo_n "(cached) " >&6
5137 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5138 for ac_i in 1 2 3 4 5 6 7; do
5139 ac_script="$ac_script$as_nl$ac_script"
5141 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5142 { ac_script=; unset ac_script;}
5143 if test -z "$SED"; then
5144 ac_path_SED_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_prog in sed gsed; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5154 as_fn_executable_p "$ac_path_SED" || continue
5155 # Check for GNU ac_path_SED and select it if it is found.
5156 # Check for GNU $ac_path_SED
5157 case `"$ac_path_SED" --version 2>&1` in
5159 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5162 $as_echo_n 0123456789 >"conftest.in"
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 $as_echo '' >> "conftest.nl"
5169 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_SED_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_SED="$ac_path_SED"
5175 ac_path_SED_max=$ac_count
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5183 $ac_path_SED_found && break 3
5188 if test -z "$ac_cv_path_SED"; then
5189 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5197 $as_echo "$ac_cv_path_SED" >&6; }
5198 SED="$ac_cv_path_SED"
5201 test -z "$SED" && SED=sed
5202 Xsed="$SED -e 1s/^X//"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5215 $as_echo_n "checking for fgrep... " >&6; }
5216 if ${ac_cv_path_FGREP+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5220 then ac_cv_path_FGREP="$GREP -F"
5222 if test -z "$FGREP"; then
5223 ac_path_FGREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in fgrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5233 as_fn_executable_p "$ac_path_FGREP" || continue
5234 # Check for GNU ac_path_FGREP and select it if it is found.
5235 # Check for GNU $ac_path_FGREP
5236 case `"$ac_path_FGREP" --version 2>&1` in
5238 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5241 $as_echo_n 0123456789 >"conftest.in"
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'FGREP' >> "conftest.nl"
5248 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_FGREP="$ac_path_FGREP"
5254 ac_path_FGREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 $ac_path_FGREP_found && break 3
5267 if test -z "$ac_cv_path_FGREP"; then
5268 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271 ac_cv_path_FGREP=$FGREP
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5277 $as_echo "$ac_cv_path_FGREP" >&6; }
5278 FGREP="$ac_cv_path_FGREP"
5281 test -z "$GREP" && GREP=grep
5301 # Check whether --with-gnu-ld was given.
5302 if test "${with_gnu_ld+set}" = set; then :
5303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5309 if test "$GCC" = yes; then
5310 # Check if gcc -print-prog-name=ld gives a path.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5312 $as_echo_n "checking for ld used by $CC... " >&6; }
5315 # gcc leaves a trailing carriage return which upsets mingw
5316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5321 # Accept absolute paths.
5323 re_direlt='/[^/][^/]*/\.\./'
5324 # Canonicalize the pathname of ld
5325 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5326 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5327 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5329 test -z "$LD" && LD="$ac_prog"
5332 # If it fails, then pretend we aren't using GCC.
5336 # If it is relative, then search for the first ld in PATH.
5340 elif test "$with_gnu_ld" = yes; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5342 $as_echo_n "checking for GNU ld... " >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5345 $as_echo_n "checking for non-GNU ld... " >&6; }
5347 if ${lt_cv_path_LD+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 if test -z "$LD"; then
5351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5352 for ac_dir in $PATH; do
5354 test -z "$ac_dir" && ac_dir=.
5355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5356 lt_cv_path_LD="$ac_dir/$ac_prog"
5357 # Check to see if the program is GNU ld. I'd rather use --version,
5358 # but apparently some variants of GNU ld only accept -v.
5359 # Break only if it was the GNU/non-GNU ld that we prefer.
5360 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362 test "$with_gnu_ld" != no && break
5365 test "$with_gnu_ld" != yes && break
5372 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5377 if test -n "$LD"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5379 $as_echo "$LD" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5387 if ${lt_cv_prog_gnu_ld+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5391 case `$LD -v 2>&1 </dev/null` in
5392 *GNU* | *'with BFD'*)
5393 lt_cv_prog_gnu_ld=yes
5396 lt_cv_prog_gnu_ld=no
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5401 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5402 with_gnu_ld=$lt_cv_prog_gnu_ld
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5413 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5414 if ${lt_cv_path_NM+:} false; then :
5415 $as_echo_n "(cached) " >&6
5417 if test -n "$NM"; then
5418 # Let the user override the test.
5421 lt_nm_to_check="${ac_tool_prefix}nm"
5422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5423 lt_nm_to_check="$lt_nm_to_check nm"
5425 for lt_tmp_nm in $lt_nm_to_check; do
5426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5429 test -z "$ac_dir" && ac_dir=.
5430 tmp_nm="$ac_dir/$lt_tmp_nm"
5431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5437 */dev/null* | *'Invalid file or object type'*)
5438 lt_cv_path_NM="$tmp_nm -B"
5442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5444 lt_cv_path_NM="$tmp_nm -p"
5448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5449 continue # so that we can try to find one that supports BSD flags
5458 : ${lt_cv_path_NM=no}
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5462 $as_echo "$lt_cv_path_NM" >&6; }
5463 if test "$lt_cv_path_NM" != "no"; then
5466 # Didn't find any BSD compatible name lister, look for dumpbin.
5467 if test -n "$DUMPBIN"; then :
5468 # Let the user override the test.
5470 if test -n "$ac_tool_prefix"; then
5471 for ac_prog in dumpbin "link -dump"
5473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_DUMPBIN+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$DUMPBIN"; then
5481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 DUMPBIN=$ac_cv_prog_DUMPBIN
5501 if test -n "$DUMPBIN"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5503 $as_echo "$DUMPBIN" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5510 test -n "$DUMPBIN" && break
5513 if test -z "$DUMPBIN"; then
5514 ac_ct_DUMPBIN=$DUMPBIN
5515 for ac_prog in dumpbin "link -dump"
5517 # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$ac_ct_DUMPBIN"; then
5525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5545 if test -n "$ac_ct_DUMPBIN"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5547 $as_echo "$ac_ct_DUMPBIN" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 test -n "$ac_ct_DUMPBIN" && break
5557 if test "x$ac_ct_DUMPBIN" = x; then
5560 case $cross_compiling:$ac_tool_warned in
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5566 DUMPBIN=$ac_ct_DUMPBIN
5570 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5572 DUMPBIN="$DUMPBIN -symbols"
5580 if test "$DUMPBIN" != ":"; then
5584 test -z "$NM" && NM=nm
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5592 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5593 if ${lt_cv_nm_interface+:} false; then :
5594 $as_echo_n "(cached) " >&6
5596 lt_cv_nm_interface="BSD nm"
5597 echo "int some_variable = 0;" > conftest.$ac_ext
5598 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5599 (eval "$ac_compile" 2>conftest.err)
5600 cat conftest.err >&5
5601 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5603 cat conftest.err >&5
5604 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5605 cat conftest.out >&5
5606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5607 lt_cv_nm_interface="MS dumpbin"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5612 $as_echo "$lt_cv_nm_interface" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5615 $as_echo_n "checking whether ln -s works... " >&6; }
5617 if test "$LN_S" = "ln -s"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619 $as_echo "yes" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5622 $as_echo "no, using $LN_S" >&6; }
5625 # find the maximum length of command line arguments
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5628 if ${lt_cv_sys_max_cmd_len+:} false; then :
5629 $as_echo_n "(cached) " >&6
5636 # On DJGPP, this test can blow up pretty badly due to problems in libc
5637 # (any single argument exceeding 2000 bytes causes a buffer overrun
5638 # during glob expansion). Even if it were fixed, the result of this
5639 # check would be larger than it should be.
5640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5644 # Under GNU Hurd, this test is not required because there is
5645 # no limit to the length of command line arguments.
5646 # Libtool will interpret -1 as no limit whatsoever
5647 lt_cv_sys_max_cmd_len=-1;
5650 cygwin* | mingw* | cegcc*)
5651 # On Win9x/ME, this test blows up -- it succeeds, but takes
5652 # about 5 minutes as the teststring grows exponentially.
5653 # Worse, since 9x/ME are not pre-emptively multitasking,
5654 # you end up with a "frozen" computer, even though with patience
5655 # the test eventually succeeds (with a max line length of 256k).
5656 # Instead, let's just punt: use the minimum linelength reported by
5657 # all of the supported platforms: 8192 (on NT/2K/XP).
5658 lt_cv_sys_max_cmd_len=8192;
5662 # On MiNT this can take a long time and run out of memory.
5663 lt_cv_sys_max_cmd_len=8192;
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len=8192;
5672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr/sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len=196608
5692 # The test takes a long time on OS/2.
5693 lt_cv_sys_max_cmd_len=8192
5697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5699 # nice to cause kernel panics so lets avoid the loop below.
5700 # First set a reasonable default.
5701 lt_cv_sys_max_cmd_len=16384
5703 if test -x /sbin/sysconfig; then
5704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5710 lt_cv_sys_max_cmd_len=102400
5712 sysv5* | sco5v6* | sysv4.2uw2*)
5713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5714 if test -n "$kargmax"; then
5715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5717 lt_cv_sys_max_cmd_len=32768
5721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5722 if test -n "$lt_cv_sys_max_cmd_len"; then
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5726 # Make teststring a little bigger before we do anything with it.
5727 # a 1K string should be a reasonable start.
5728 for i in 1 2 3 4 5 6 7 8 ; do
5729 teststring=$teststring$teststring
5731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5732 # If test is not a shell built-in, we'll probably end up computing a
5733 # maximum length that is only half of the actual maximum length, but
5735 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5737 test $i != 17 # 1/2 MB should be enough
5740 teststring=$teststring$teststring
5742 # Only check the string length outside the loop.
5743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5745 # Add a significant safety factor because C++ compilers can tack on
5746 # massive amounts of additional arguments before passing them to the
5747 # linker. It appears as though 1/2 is a usable value.
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5755 if test -n $lt_cv_sys_max_cmd_len ; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5760 $as_echo "none" >&6; }
5762 max_cmd_len=$lt_cv_sys_max_cmd_len
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5775 # Try some XSI features
5778 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5780 && eval 'test $(( 1 + 1 )) -eq 2 \
5781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5784 $as_echo "$xsi_shell" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5792 && lt_shell_append=yes
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5794 $as_echo "$lt_shell_append" >&6; }
5797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5807 # test EBCDIC or ASCII
5808 case `echo X|tr X '\101'` in
5809 A) # ASCII based system
5810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5811 lt_SP2NL='tr \040 \012'
5812 lt_NL2SP='tr \015\012 \040\040'
5814 *) # EBCDIC based system
5815 lt_SP2NL='tr \100 \n'
5816 lt_NL2SP='tr \r\n \100\100'
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5829 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5830 if ${lt_cv_to_host_file_cmd+:} false; then :
5831 $as_echo_n "(cached) " >&6
5836 *-*-mingw* ) # actually msys
5837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5840 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5842 * ) # otherwise, assume *nix
5843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5849 *-*-mingw* ) # actually msys
5850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5853 lt_cv_to_host_file_cmd=func_convert_file_noop
5855 * ) # otherwise, assume *nix
5856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5860 * ) # unhandled hosts (and "normal" native builds)
5861 lt_cv_to_host_file_cmd=func_convert_file_noop
5867 to_host_file_cmd=$lt_cv_to_host_file_cmd
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5869 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5876 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5877 if ${lt_cv_to_tool_file_cmd+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 #assume ordinary cross tools, or native build.
5881 lt_cv_to_tool_file_cmd=func_convert_file_noop
5885 *-*-mingw* ) # actually msys
5886 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5894 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5896 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5903 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5904 if ${lt_cv_ld_reload_flag+:} false; then :
5905 $as_echo_n "(cached) " >&6
5907 lt_cv_ld_reload_flag='-r'
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5910 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5911 reload_flag=$lt_cv_ld_reload_flag
5912 case $reload_flag in
5914 *) reload_flag=" $reload_flag" ;;
5916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5918 cygwin* | mingw* | pw32* | cegcc*)
5919 if test "$GCC" != yes; then
5924 if test "$GCC" = yes; then
5925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_OBJDUMP+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 if test -n "$OBJDUMP"; then
5949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 OBJDUMP=$ac_cv_prog_OBJDUMP
5969 if test -n "$OBJDUMP"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5971 $as_echo "$OBJDUMP" >&6; }
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5979 if test -z "$ac_cv_prog_OBJDUMP"; then
5980 ac_ct_OBJDUMP=$OBJDUMP
5981 # Extract the first word of "objdump", so it can be a program name with args.
5982 set dummy objdump; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5986 $as_echo_n "(cached) " >&6
5988 if test -n "$ac_ct_OBJDUMP"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009 if test -n "$ac_ct_OBJDUMP"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011 $as_echo "$ac_ct_OBJDUMP" >&6; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6017 if test "x$ac_ct_OBJDUMP" = x; then
6020 case $cross_compiling:$ac_tool_warned in
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6026 OBJDUMP=$ac_ct_OBJDUMP
6029 OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 test -z "$OBJDUMP" && OBJDUMP=objdump
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6040 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6041 if ${lt_cv_deplibs_check_method+:} false; then :
6042 $as_echo_n "(cached) " >&6
6044 lt_cv_file_magic_cmd='$MAGIC_CMD'
6045 lt_cv_file_magic_test_file=
6046 lt_cv_deplibs_check_method='unknown'
6047 # Need to set the preceding variable on all platforms that support
6048 # interlibrary dependencies.
6049 # 'none' -- dependencies not supported.
6050 # `unknown' -- same as none, but documents that we really don't know.
6051 # 'pass_all' -- all dependencies passed with no checks.
6052 # 'test_compile' -- check by making test program.
6053 # 'file_magic [[regex]]' -- check by looking for files in library path
6054 # which responds to the $file_magic_cmd with a given extended regex.
6055 # If you have `file' or equivalent on your system and you're not sure
6056 # whether `pass_all' will *always* work, you probably want this one.
6060 lt_cv_deplibs_check_method=pass_all
6064 lt_cv_deplibs_check_method=pass_all
6068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6069 lt_cv_file_magic_cmd='/usr/bin/file -L'
6070 lt_cv_file_magic_test_file=/shlib/libc.so
6074 # func_win32_libid is a shell function defined in ltmain.sh
6075 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076 lt_cv_file_magic_cmd='func_win32_libid'
6080 # Base MSYS/MinGW do not provide the 'file' command needed by
6081 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6082 # unless we find 'file', for example because we are cross-compiling.
6083 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6084 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6085 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6086 lt_cv_file_magic_cmd='func_win32_libid'
6088 # Keep this pattern in sync with the one in func_win32_libid.
6089 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6090 lt_cv_file_magic_cmd='$OBJDUMP -f'
6095 # use the weaker test based on 'objdump'. See mingw*.
6096 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6097 lt_cv_file_magic_cmd='$OBJDUMP -f'
6100 darwin* | rhapsody*)
6101 lt_cv_deplibs_check_method=pass_all
6104 freebsd* | dragonfly*)
6105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108 # Not sure whether the presence of OpenBSD here was a mistake.
6109 # Let's accept both of them until this is cleared up.
6110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6111 lt_cv_file_magic_cmd=/usr/bin/file
6112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6116 lt_cv_deplibs_check_method=pass_all
6121 lt_cv_deplibs_check_method=pass_all
6125 lt_cv_deplibs_check_method=pass_all
6128 hpux10.20* | hpux11*)
6129 lt_cv_file_magic_cmd=/usr/bin/file
6132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6136 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]'
6137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6141 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6151 irix5* | irix6* | nonstopux*)
6153 *-32|*"-32 ") libmagic=32-bit;;
6154 *-n32|*"-n32 ") libmagic=N32;;
6155 *-64|*"-64 ") libmagic=64-bit;;
6156 *) libmagic=never-match;;
6158 lt_cv_deplibs_check_method=pass_all
6161 # This must be glibc/ELF.
6162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6163 lt_cv_deplibs_check_method=pass_all
6166 netbsd* | netbsdelf*-gnu)
6167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6176 lt_cv_file_magic_cmd=/usr/bin/file
6177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6181 lt_cv_deplibs_check_method=pass_all
6185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6192 osf3* | osf4* | osf5*)
6193 lt_cv_deplibs_check_method=pass_all
6197 lt_cv_deplibs_check_method=pass_all
6201 lt_cv_deplibs_check_method=pass_all
6204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6205 lt_cv_deplibs_check_method=pass_all
6209 case $host_vendor in
6211 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]'
6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6215 lt_cv_deplibs_check_method=pass_all
6218 lt_cv_file_magic_cmd='/bin/file'
6219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6222 lt_cv_file_magic_cmd='/bin/file'
6223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6224 lt_cv_file_magic_test_file=/lib/libc.so
6227 lt_cv_deplibs_check_method=pass_all
6230 lt_cv_deplibs_check_method=pass_all
6236 lt_cv_deplibs_check_method=pass_all
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6242 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6246 if test "$build" = "$host"; then
6249 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6252 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6258 file_magic_cmd=$lt_cv_file_magic_cmd
6259 deplibs_check_method=$lt_cv_deplibs_check_method
6260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_DLLTOOL+:} false; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$DLLTOOL"; then
6292 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 DLLTOOL=$ac_cv_prog_DLLTOOL
6312 if test -n "$DLLTOOL"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6314 $as_echo "$DLLTOOL" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6322 if test -z "$ac_cv_prog_DLLTOOL"; then
6323 ac_ct_DLLTOOL=$DLLTOOL
6324 # Extract the first word of "dlltool", so it can be a program name with args.
6325 set dummy dlltool; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6329 $as_echo_n "(cached) " >&6
6331 if test -n "$ac_ct_DLLTOOL"; then
6332 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6352 if test -n "$ac_ct_DLLTOOL"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6354 $as_echo "$ac_ct_DLLTOOL" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6360 if test "x$ac_ct_DLLTOOL" = x; then
6363 case $cross_compiling:$ac_tool_warned in
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6369 DLLTOOL=$ac_ct_DLLTOOL
6372 DLLTOOL="$ac_cv_prog_DLLTOOL"
6375 test -z "$DLLTOOL" && DLLTOOL=dlltool
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6384 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6385 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 lt_cv_sharedlib_from_linklib_cmd='unknown'
6391 cygwin* | mingw* | pw32* | cegcc*)
6392 # two different shell functions defined in ltmain.sh
6393 # decide which to use based on capabilities of $DLLTOOL
6394 case `$DLLTOOL --help 2>&1` in
6395 *--identify-strict*)
6396 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6399 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6404 # fallback: assume linklib IS sharedlib
6405 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6411 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6412 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6413 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6421 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_AR+:} false; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$AR"; then
6432 ac_cv_prog_AR="$AR" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 if test -n "$AR"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6454 $as_echo "$AR" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6461 test -n "$AR" && break
6464 if test -z "$AR"; then
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$ac_ct_AR"; then
6476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_AR="$ac_prog"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6496 if test -n "$ac_ct_AR"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6498 $as_echo "$ac_ct_AR" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6505 test -n "$ac_ct_AR" && break
6508 if test "x$ac_ct_AR" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6535 $as_echo_n "checking for archiver @FILE support... " >&6; }
6536 if ${lt_cv_ar_at_file+:} false; then :
6537 $as_echo_n "(cached) " >&6
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 echo conftest.$ac_objext > conftest.lst
6553 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6555 (eval $lt_ar_try) 2>&5
6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558 test $ac_status = 0; }
6559 if test "$ac_status" -eq 0; then
6560 # Ensure the archiver fails upon bogus file names.
6561 rm -f conftest.$ac_objext libconftest.a
6562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6563 (eval $lt_ar_try) 2>&5
6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566 test $ac_status = 0; }
6567 if test "$ac_status" -ne 0; then
6571 rm -f conftest.* libconftest.a
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6578 $as_echo "$lt_cv_ar_at_file" >&6; }
6580 if test "x$lt_cv_ar_at_file" = xno; then
6583 archiver_list_spec=$lt_cv_ar_at_file
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}strip; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_STRIP+:} false; then :
6598 $as_echo_n "(cached) " >&6
6600 if test -n "$STRIP"; then
6601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 STRIP=$ac_cv_prog_STRIP
6621 if test -n "$STRIP"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6623 $as_echo "$STRIP" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6631 if test -z "$ac_cv_prog_STRIP"; then
6633 # Extract the first word of "strip", so it can be a program name with args.
6634 set dummy strip; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6638 $as_echo_n "(cached) " >&6
6640 if test -n "$ac_ct_STRIP"; then
6641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_STRIP="strip"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6661 if test -n "$ac_ct_STRIP"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6663 $as_echo "$ac_ct_STRIP" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6669 if test "x$ac_ct_STRIP" = x; then
6672 case $cross_compiling:$ac_tool_warned in
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6681 STRIP="$ac_cv_prog_STRIP"
6684 test -z "$STRIP" && STRIP=:
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_RANLIB+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$RANLIB"; then
6700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 RANLIB=$ac_cv_prog_RANLIB
6720 if test -n "$RANLIB"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6722 $as_echo "$RANLIB" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6730 if test -z "$ac_cv_prog_RANLIB"; then
6731 ac_ct_RANLIB=$RANLIB
6732 # Extract the first word of "ranlib", so it can be a program name with args.
6733 set dummy ranlib; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$ac_ct_RANLIB"; then
6740 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_RANLIB="ranlib"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6760 if test -n "$ac_ct_RANLIB"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6762 $as_echo "$ac_ct_RANLIB" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6768 if test "x$ac_ct_RANLIB" = x; then
6771 case $cross_compiling:$ac_tool_warned in
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6777 RANLIB=$ac_ct_RANLIB
6780 RANLIB="$ac_cv_prog_RANLIB"
6783 test -z "$RANLIB" && RANLIB=:
6790 # Determine commands to create old-style static archives.
6791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6792 old_postinstall_cmds='chmod 644 $oldlib'
6793 old_postuninstall_cmds=
6795 if test -n "$RANLIB"; then
6798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6809 lock_old_archive_extraction=yes ;;
6811 lock_old_archive_extraction=no ;;
6852 # If no C compiler was specified, use CC.
6855 # If no C compiler flags were specified, use CFLAGS.
6856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6858 # Allow CC to be a program name with arguments.
6862 # Check for command to grab the raw symbol name followed by C symbol from nm.
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6864 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6865 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6866 $as_echo_n "(cached) " >&6
6869 # These are sane defaults that work on at least a few old systems.
6870 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6872 # Character class describing NM global symbol codes.
6873 symcode='[BCDEGRST]'
6875 # Regexp to match symbols that can be accessed directly from C.
6876 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6878 # Define system-specific variables.
6883 cygwin* | mingw* | pw32* | cegcc*)
6884 symcode='[ABCDGISTW]'
6887 if test "$host_cpu" = ia64; then
6888 symcode='[ABCDEGRST]'
6892 symcode='[BCDEGRST]'
6895 symcode='[BCDEGQRST]'
6906 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6914 # If we're using GNU nm, then use its standard symbol codes.
6915 case `$NM -V 2>&1` in
6916 *GNU* | *'with BFD'*)
6917 symcode='[ABCDGIRSTW]' ;;
6920 # Transform an extracted symbol line into a proper C declaration.
6921 # Some systems (esp. on ia64) link data and code symbols differently,
6922 # so use this general approach.
6923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6925 # Transform an extracted symbol line into symbol name and symbol address
6926 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6927 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'"
6929 # Handle CRLF in mingw tool chain
6933 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6937 # Try without a prefix underscore, then with it.
6938 for ac_symprfx in "" "_"; do
6940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941 symxfrm="\\1 $ac_symprfx\\2 \\2"
6943 # Write the raw and C identifiers.
6944 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6945 # Fake it for dumpbin and say T for any non-static function
6946 # and D for any global variable.
6947 # Also find C++ and __fastcall symbols from MSVC++,
6948 # which start with @ or ?.
6949 lt_cv_sys_global_symbol_pipe="$AWK '"\
6950 " {last_section=section; section=\$ 3};"\
6951 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6952 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6953 " \$ 0!~/External *\|/{next};"\
6954 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6955 " {if(hide[section]) next};"\
6956 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6957 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6958 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6959 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6960 " ' prfx=^$ac_symprfx"
6962 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6964 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6966 # Check to see that the pipe works correctly.
6970 cat > conftest.$ac_ext <<_LT_EOF
6975 void nm_test_func(void);
6976 void nm_test_func(void){}
6980 int main(){nm_test_var='a';nm_test_func();return(0);}
6983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984 (eval $ac_compile) 2>&5
6986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987 test $ac_status = 0; }; then
6988 # Now try to grab the symbols.
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6991 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; } && test -s "$nlist"; then
6995 # Try sorting and uniquifying the output.
6996 if sort "$nlist" | uniq > "$nlist"T; then
6997 mv -f "$nlist"T "$nlist"
7002 # Make sure that we snagged all the symbols we need.
7003 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7004 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7005 cat <<_LT_EOF > conftest.$ac_ext
7006 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7007 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7008 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7009 relocations are performed -- see ld's documentation on pseudo-relocs. */
7010 # define LT_DLSYM_CONST
7011 #elif defined(__osf__)
7012 /* This system does not cope well with relocations in const data. */
7013 # define LT_DLSYM_CONST
7015 # define LT_DLSYM_CONST const
7023 # Now generate the symbol file.
7024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7026 cat <<_LT_EOF >> conftest.$ac_ext
7028 /* The mapping between symbol names and symbols. */
7029 LT_DLSYM_CONST struct {
7033 lt__PROGRAM__LTX_preloaded_symbols[] =
7035 { "@PROGRAM@", (void *) 0 },
7037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7038 cat <<\_LT_EOF >> conftest.$ac_ext
7042 /* This works around a problem in FreeBSD linker */
7043 #ifdef FREEBSD_WORKAROUND
7044 static const void *lt_preloaded_setup() {
7045 return lt__PROGRAM__LTX_preloaded_symbols;
7053 # Now try linking the two files.
7054 mv conftest.$ac_objext conftstm.$ac_objext
7055 lt_globsym_save_LIBS=$LIBS
7056 lt_globsym_save_CFLAGS=$CFLAGS
7057 LIBS="conftstm.$ac_objext"
7058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7060 (eval $ac_link) 2>&5
7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7066 LIBS=$lt_globsym_save_LIBS
7067 CFLAGS=$lt_globsym_save_CFLAGS
7069 echo "cannot find nm_test_func in $nlist" >&5
7072 echo "cannot find nm_test_var in $nlist" >&5
7075 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7078 echo "$progname: failed program was:" >&5
7079 cat conftest.$ac_ext >&5
7081 rm -rf conftest* conftst*
7083 # Do not use the global_symbol_pipe unless it works.
7084 if test "$pipe_works" = yes; then
7087 lt_cv_sys_global_symbol_pipe=
7093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7094 lt_cv_sys_global_symbol_to_cdecl=
7096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7098 $as_echo "failed" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7101 $as_echo "ok" >&6; }
7104 # Response file support.
7105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7106 nm_file_list_spec='@'
7107 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7108 nm_file_list_spec='@'
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7138 $as_echo_n "checking for sysroot... " >&6; }
7140 # Check whether --with-sysroot was given.
7141 if test "${with_sysroot+set}" = set; then :
7142 withval=$with_sysroot;
7149 case ${with_sysroot} in #(
7151 if test "$GCC" = yes; then
7152 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7156 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7162 $as_echo "${with_sysroot}" >&6; }
7163 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7168 $as_echo "${lt_sysroot:-no}" >&6; }
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then :
7176 enableval=$enable_libtool_lock;
7179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7181 # Some flags need to be propagated to the compiler or linker for good
7185 # Find out which ABI we are using.
7186 echo 'int i;' > conftest.$ac_ext
7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 case `/usr/bin/file conftest.$ac_objext` in
7204 # Find out which ABI we are using.
7205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 if test "$lt_cv_prog_gnu_ld" = yes; then
7212 case `/usr/bin/file conftest.$ac_objext` in
7214 LD="${LD-ld} -melf32bsmip"
7217 LD="${LD-ld} -melf32bmipn32"
7220 LD="${LD-ld} -melf64bmip"
7224 case `/usr/bin/file conftest.$ac_objext` in
7240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7241 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7242 # Find out which ABI we are using.
7243 echo 'int i;' > conftest.$ac_ext
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 case `/usr/bin/file conftest.o` in
7252 x86_64-*kfreebsd*-gnu)
7253 LD="${LD-ld} -m elf_i386_fbsd"
7256 LD="${LD-ld} -m elf_i386"
7259 LD="${LD-ld} -m elf32lppclinux"
7262 LD="${LD-ld} -m elf32ppclinux"
7265 LD="${LD-ld} -m elf_s390"
7268 LD="${LD-ld} -m elf32_sparc"
7274 x86_64-*kfreebsd*-gnu)
7275 LD="${LD-ld} -m elf_x86_64_fbsd"
7278 LD="${LD-ld} -m elf_x86_64"
7281 LD="${LD-ld} -m elf64lppc"
7284 LD="${LD-ld} -m elf64ppc"
7286 s390*-*linux*|s390*-*tpf*)
7287 LD="${LD-ld} -m elf64_s390"
7290 LD="${LD-ld} -m elf64_sparc"
7300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7301 SAVE_CFLAGS="$CFLAGS"
7302 CFLAGS="$CFLAGS -belf"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7304 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7305 if ${lt_cv_cc_needs_belf+:} false; then :
7306 $as_echo_n "(cached) " >&6
7309 ac_cpp='$CPP $CPPFLAGS'
7310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 lt_cv_cc_needs_belf=yes
7328 lt_cv_cc_needs_belf=no
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7340 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7343 CFLAGS="$SAVE_CFLAGS"
7347 # Find out which ABI we are using.
7348 echo 'int i;' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 case `/usr/bin/file conftest.o` in
7356 case $lt_cv_prog_gnu_ld in
7360 LD="${LD-ld} -m elf_x86_64"
7363 LD="${LD-ld} -m elf64_sparc"
7366 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7367 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7372 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384 need_locks="$enable_libtool_lock"
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}mt; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$MANIFEST_TOOL"; then
7395 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7415 if test -n "$MANIFEST_TOOL"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7417 $as_echo "$MANIFEST_TOOL" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7425 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7426 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7427 # Extract the first word of "mt", so it can be a program name with args.
7428 set dummy mt; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 if test -n "$ac_ct_MANIFEST_TOOL"; then
7435 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7455 if test -n "$ac_ct_MANIFEST_TOOL"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7457 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7463 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7466 case $cross_compiling:$ac_tool_warned in
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7472 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7475 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7478 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7480 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7481 if ${lt_cv_path_mainfest_tool+:} false; then :
7482 $as_echo_n "(cached) " >&6
7484 lt_cv_path_mainfest_tool=no
7485 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7486 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7487 cat conftest.err >&5
7488 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7489 lt_cv_path_mainfest_tool=yes
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7494 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7495 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7505 rhapsody* | darwin*)
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -n "$DSYMUTIL"; then
7515 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7535 if test -n "$DSYMUTIL"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7537 $as_echo "$DSYMUTIL" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7545 if test -z "$ac_cv_prog_DSYMUTIL"; then
7546 ac_ct_DSYMUTIL=$DSYMUTIL
7547 # Extract the first word of "dsymutil", so it can be a program name with args.
7548 set dummy dsymutil; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 if test -n "$ac_ct_DSYMUTIL"; then
7555 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7575 if test -n "$ac_ct_DSYMUTIL"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7577 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7583 if test "x$ac_ct_DSYMUTIL" = x; then
7586 case $cross_compiling:$ac_tool_warned in
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590 ac_tool_warned=yes ;;
7592 DSYMUTIL=$ac_ct_DSYMUTIL
7595 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_NMEDIT+:} false; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$NMEDIT"; then
7607 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 NMEDIT=$ac_cv_prog_NMEDIT
7627 if test -n "$NMEDIT"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7629 $as_echo "$NMEDIT" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7637 if test -z "$ac_cv_prog_NMEDIT"; then
7638 ac_ct_NMEDIT=$NMEDIT
7639 # Extract the first word of "nmedit", so it can be a program name with args.
7640 set dummy nmedit; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7644 $as_echo_n "(cached) " >&6
7646 if test -n "$ac_ct_NMEDIT"; then
7647 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7667 if test -n "$ac_ct_NMEDIT"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7669 $as_echo "$ac_ct_NMEDIT" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7675 if test "x$ac_ct_NMEDIT" = x; then
7678 case $cross_compiling:$ac_tool_warned in
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7684 NMEDIT=$ac_ct_NMEDIT
7687 NMEDIT="$ac_cv_prog_NMEDIT"
7690 if test -n "$ac_tool_prefix"; then
7691 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7692 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_LIPO+:} false; then :
7696 $as_echo_n "(cached) " >&6
7698 if test -n "$LIPO"; then
7699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 LIPO=$ac_cv_prog_LIPO
7719 if test -n "$LIPO"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7721 $as_echo "$LIPO" >&6; }
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7729 if test -z "$ac_cv_prog_LIPO"; then
7731 # Extract the first word of "lipo", so it can be a program name with args.
7732 set dummy lipo; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7736 $as_echo_n "(cached) " >&6
7738 if test -n "$ac_ct_LIPO"; then
7739 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_ac_ct_LIPO="lipo"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7759 if test -n "$ac_ct_LIPO"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7761 $as_echo "$ac_ct_LIPO" >&6; }
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7767 if test "x$ac_ct_LIPO" = x; then
7770 case $cross_compiling:$ac_tool_warned in
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7779 LIPO="$ac_cv_prog_LIPO"
7782 if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}otool; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if ${ac_cv_prog_OTOOL+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 if test -n "$OTOOL"; then
7791 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 OTOOL=$ac_cv_prog_OTOOL
7811 if test -n "$OTOOL"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7813 $as_echo "$OTOOL" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7821 if test -z "$ac_cv_prog_OTOOL"; then
7823 # Extract the first word of "otool", so it can be a program name with args.
7824 set dummy otool; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7828 $as_echo_n "(cached) " >&6
7830 if test -n "$ac_ct_OTOOL"; then
7831 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_ac_ct_OTOOL="otool"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7851 if test -n "$ac_ct_OTOOL"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7853 $as_echo "$ac_ct_OTOOL" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7859 if test "x$ac_ct_OTOOL" = x; then
7862 case $cross_compiling:$ac_tool_warned in
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7871 OTOOL="$ac_cv_prog_OTOOL"
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_OTOOL64+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 if test -n "$OTOOL64"; then
7883 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 OTOOL64=$ac_cv_prog_OTOOL64
7903 if test -n "$OTOOL64"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7905 $as_echo "$OTOOL64" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7913 if test -z "$ac_cv_prog_OTOOL64"; then
7914 ac_ct_OTOOL64=$OTOOL64
7915 # Extract the first word of "otool64", so it can be a program name with args.
7916 set dummy otool64; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7920 $as_echo_n "(cached) " >&6
7922 if test -n "$ac_ct_OTOOL64"; then
7923 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_prog_ac_ct_OTOOL64="otool64"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7943 if test -n "$ac_ct_OTOOL64"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7945 $as_echo "$ac_ct_OTOOL64" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7951 if test "x$ac_ct_OTOOL64" = x; then
7954 case $cross_compiling:$ac_tool_warned in
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7960 OTOOL64=$ac_ct_OTOOL64
7963 OTOOL64="$ac_cv_prog_OTOOL64"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7993 $as_echo_n "checking for -single_module linker flag... " >&6; }
7994 if ${lt_cv_apple_cc_single_mod+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 lt_cv_apple_cc_single_mod=no
7998 if test -z "${LT_MULTI_MODULE}"; then
7999 # By default we will add the -single_module flag. You can override
8000 # by either setting the environment variable LT_MULTI_MODULE
8001 # non-empty at configure time, or by adding -multi_module to the
8003 rm -rf libconftest.dylib*
8004 echo "int foo(void){return 1;}" > conftest.c
8005 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8006 -dynamiclib -Wl,-single_module conftest.c" >&5
8007 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8008 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8010 # If there is a non-empty error log, and "single_module"
8011 # appears in it, assume the flag caused a linker warning
8012 if test -s conftest.err && $GREP single_module conftest.err; then
8013 cat conftest.err >&5
8014 # Otherwise, if the output was created with a 0 exit code from
8015 # the compiler, it worked.
8016 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8017 lt_cv_apple_cc_single_mod=yes
8019 cat conftest.err >&5
8021 rm -rf libconftest.dylib*
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8026 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8029 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8030 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8031 $as_echo_n "(cached) " >&6
8033 lt_cv_ld_exported_symbols_list=no
8034 save_LDFLAGS=$LDFLAGS
8035 echo "_main" > conftest.sym
8036 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8048 if ac_fn_c_try_link "$LINENO"; then :
8049 lt_cv_ld_exported_symbols_list=yes
8051 lt_cv_ld_exported_symbols_list=no
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 LDFLAGS="$save_LDFLAGS"
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8059 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8062 $as_echo_n "checking for -force_load linker flag... " >&6; }
8063 if ${lt_cv_ld_force_load+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 lt_cv_ld_force_load=no
8067 cat > conftest.c << _LT_EOF
8068 int forced_loaded() { return 2;}
8070 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8071 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8072 echo "$AR cru libconftest.a conftest.o" >&5
8073 $AR cru libconftest.a conftest.o 2>&5
8074 echo "$RANLIB libconftest.a" >&5
8075 $RANLIB libconftest.a 2>&5
8076 cat > conftest.c << _LT_EOF
8077 int main() { return 0;}
8079 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8080 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8082 if test -s conftest.err && $GREP force_load conftest.err; then
8083 cat conftest.err >&5
8084 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8085 lt_cv_ld_force_load=yes
8087 cat conftest.err >&5
8089 rm -f conftest.err libconftest.a conftest conftest.c
8090 rm -rf conftest.dSYM
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8094 $as_echo "$lt_cv_ld_force_load" >&6; }
8096 rhapsody* | darwin1.[012])
8097 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8099 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8100 darwin*) # darwin 5.x on
8101 # if running on 10.5 or later, the deployment target defaults
8102 # to the OS version, if on x86, and 10.4, the deployment
8103 # target defaults to 10.4. Don't you love it?
8104 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8105 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8106 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8108 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8110 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8114 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8115 _lt_dar_single_mod='$single_module'
8117 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8118 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8120 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8122 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8123 _lt_dsymutil='~$DSYMUTIL $lib || :'
8130 for ac_header in dlfcn.h
8132 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8134 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8135 cat >>confdefs.h <<_ACEOF
8136 #define HAVE_DLFCN_H 1
8148 enable_win32_dll=yes
8151 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8152 if test -n "$ac_tool_prefix"; then
8153 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}as; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_prog_AS+:} false; then :
8158 $as_echo_n "(cached) " >&6
8160 if test -n "$AS"; then
8161 ac_cv_prog_AS="$AS" # Let the user override the test.
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_AS="${ac_tool_prefix}as"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 if test -n "$AS"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183 $as_echo "$AS" >&6; }
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -z "$ac_cv_prog_AS"; then
8193 # Extract the first word of "as", so it can be a program name with args.
8194 set dummy as; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$ac_ct_AS"; then
8201 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_ac_ct_AS="as"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8221 if test -n "$ac_ct_AS"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8223 $as_echo "$ac_ct_AS" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8229 if test "x$ac_ct_AS" = x; then
8232 case $cross_compiling:$ac_tool_warned in
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_DLLTOOL+:} false; then :
8250 $as_echo_n "(cached) " >&6
8252 if test -n "$DLLTOOL"; then
8253 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 DLLTOOL=$ac_cv_prog_DLLTOOL
8273 if test -n "$DLLTOOL"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8275 $as_echo "$DLLTOOL" >&6; }
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 if test -z "$ac_cv_prog_DLLTOOL"; then
8284 ac_ct_DLLTOOL=$DLLTOOL
8285 # Extract the first word of "dlltool", so it can be a program name with args.
8286 set dummy dlltool; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8290 $as_echo_n "(cached) " >&6
8292 if test -n "$ac_ct_DLLTOOL"; then
8293 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8313 if test -n "$ac_ct_DLLTOOL"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8315 $as_echo "$ac_ct_DLLTOOL" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8321 if test "x$ac_ct_DLLTOOL" = x; then
8324 case $cross_compiling:$ac_tool_warned in
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8330 DLLTOOL=$ac_ct_DLLTOOL
8333 DLLTOOL="$ac_cv_prog_DLLTOOL"
8336 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_OBJDUMP+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$OBJDUMP"; then
8345 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 OBJDUMP=$ac_cv_prog_OBJDUMP
8365 if test -n "$OBJDUMP"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8367 $as_echo "$OBJDUMP" >&6; }
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8375 if test -z "$ac_cv_prog_OBJDUMP"; then
8376 ac_ct_OBJDUMP=$OBJDUMP
8377 # Extract the first word of "objdump", so it can be a program name with args.
8378 set dummy objdump; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$ac_ct_OBJDUMP"; then
8385 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8405 if test -n "$ac_ct_OBJDUMP"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8407 $as_echo "$ac_ct_OBJDUMP" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8413 if test "x$ac_ct_OBJDUMP" = x; then
8416 case $cross_compiling:$ac_tool_warned in
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8422 OBJDUMP=$ac_ct_OBJDUMP
8425 OBJDUMP="$ac_cv_prog_OBJDUMP"
8431 test -z "$AS" && AS=as
8437 test -z "$DLLTOOL" && DLLTOOL=dlltool
8443 test -z "$OBJDUMP" && OBJDUMP=objdump
8448 # Check whether --enable-static was given.
8449 if test "${enable_static+set}" = set; then :
8450 enableval=$enable_static; p=${PACKAGE-default}
8452 yes) enable_static=yes ;;
8453 no) enable_static=no ;;
8456 # Look at the argument we got. We use all the common list separators.
8457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8458 for pkg in $enableval; do
8460 if test "X$pkg" = "X$p"; then
8484 # Check whether --enable-shared was given.
8485 if test "${enable_shared+set}" = set; then :
8486 enableval=$enable_shared; p=${PACKAGE-default}
8488 yes) enable_shared=yes ;;
8489 no) enable_shared=no ;;
8492 # Look at the argument we got. We use all the common list separators.
8493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8494 for pkg in $enableval; do
8496 if test "X$pkg" = "X$p"; then
8517 # Check whether --with-pic was given.
8518 if test "${with_pic+set}" = set; then :
8519 withval=$with_pic; lt_p=${PACKAGE-default}
8521 yes|no) pic_mode=$withval ;;
8524 # Look at the argument we got. We use all the common list separators.
8525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8526 for lt_pkg in $withval; do
8528 if test "X$lt_pkg" = "X$lt_p"; then
8540 test -z "$pic_mode" && pic_mode=default
8548 # Check whether --enable-fast-install was given.
8549 if test "${enable_fast_install+set}" = set; then :
8550 enableval=$enable_fast_install; p=${PACKAGE-default}
8552 yes) enable_fast_install=yes ;;
8553 no) enable_fast_install=no ;;
8555 enable_fast_install=no
8556 # Look at the argument we got. We use all the common list separators.
8557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558 for pkg in $enableval; do
8560 if test "X$pkg" = "X$p"; then
8561 enable_fast_install=yes
8568 enable_fast_install=yes
8581 # This can be used to rebuild libtool when needed
8582 LIBTOOL_DEPS="$ltmain"
8584 # Always use our own libtool.
8585 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8616 test -z "$LN_S" && LN_S="ln -s"
8631 if test -n "${ZSH_VERSION+set}" ; then
8632 setopt NO_GLOB_SUBST
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8636 $as_echo_n "checking for objdir... " >&6; }
8637 if ${lt_cv_objdir+:} false; then :
8638 $as_echo_n "(cached) " >&6
8640 rm -f .libs 2>/dev/null
8641 mkdir .libs 2>/dev/null
8642 if test -d .libs; then
8645 # MS-DOS does not allow filenames that begin with a dot.
8648 rmdir .libs 2>/dev/null
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8651 $as_echo "$lt_cv_objdir" >&6; }
8652 objdir=$lt_cv_objdir
8658 cat >>confdefs.h <<_ACEOF
8659 #define LT_OBJDIR "$lt_cv_objdir/"
8667 # AIX sometimes has problems with the GCC collect2 program. For some
8668 # reason, if we set the COLLECT_NAMES environment variable, the problems
8669 # vanish in a puff of smoke.
8670 if test "X${COLLECT_NAMES+set}" != Xset; then
8672 export COLLECT_NAMES
8679 can_build_shared=yes
8681 # All known linkers require a `.a' archive for static linking (except MSVC,
8682 # which needs '.lib').
8685 with_gnu_ld="$lt_cv_prog_gnu_ld"
8688 old_CFLAGS="$CFLAGS"
8690 # Set sane defaults for various variables
8691 test -z "$CC" && CC=cc
8692 test -z "$LTCC" && LTCC=$CC
8693 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8694 test -z "$LD" && LD=ld
8695 test -z "$ac_objext" && ac_objext=o
8697 for cc_temp in $compiler""; do
8699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8708 # Only perform the check for file, if the check method requires it
8709 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8710 case $deplibs_check_method in
8712 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8714 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8715 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8716 $as_echo_n "(cached) " >&6
8720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8723 lt_save_MAGIC_CMD="$MAGIC_CMD"
8724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8726 for ac_dir in $ac_dummy; do
8728 test -z "$ac_dir" && ac_dir=.
8729 if test -f $ac_dir/${ac_tool_prefix}file; then
8730 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8731 if test -n "$file_magic_test_file"; then
8732 case $deplibs_check_method in
8734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8737 $EGREP "$file_magic_regex" > /dev/null; then
8742 *** Warning: the command libtool uses to detect shared libraries,
8743 *** $file_magic_cmd, produces output that libtool cannot recognize.
8744 *** The result is that libtool may fail to recognize shared libraries
8745 *** as such. This will affect the creation of libtool libraries that
8746 *** depend on shared libraries, but programs linked with such libtool
8747 *** libraries will work regardless of this problem. Nevertheless, you
8748 *** may want to report the problem to your system manager and/or to
8749 *** bug-libtool@gnu.org
8759 MAGIC_CMD="$lt_save_MAGIC_CMD"
8764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8765 if test -n "$MAGIC_CMD"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8767 $as_echo "$MAGIC_CMD" >&6; }
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8777 if test -z "$lt_cv_path_MAGIC_CMD"; then
8778 if test -n "$ac_tool_prefix"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8780 $as_echo_n "checking for file... " >&6; }
8781 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8782 $as_echo_n "(cached) " >&6
8786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8789 lt_save_MAGIC_CMD="$MAGIC_CMD"
8790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8792 for ac_dir in $ac_dummy; do
8794 test -z "$ac_dir" && ac_dir=.
8795 if test -f $ac_dir/file; then
8796 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8797 if test -n "$file_magic_test_file"; then
8798 case $deplibs_check_method in
8800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8803 $EGREP "$file_magic_regex" > /dev/null; then
8808 *** Warning: the command libtool uses to detect shared libraries,
8809 *** $file_magic_cmd, produces output that libtool cannot recognize.
8810 *** The result is that libtool may fail to recognize shared libraries
8811 *** as such. This will affect the creation of libtool libraries that
8812 *** depend on shared libraries, but programs linked with such libtool
8813 *** libraries will work regardless of this problem. Nevertheless, you
8814 *** may want to report the problem to your system manager and/or to
8815 *** bug-libtool@gnu.org
8825 MAGIC_CMD="$lt_save_MAGIC_CMD"
8830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8831 if test -n "$MAGIC_CMD"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8833 $as_echo "$MAGIC_CMD" >&6; }
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8849 # Use C for the default configuration in the libtool script
8853 ac_cpp='$CPP $CPPFLAGS'
8854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859 # Source file extension for C test sources.
8862 # Object file extension for compiled C test sources.
8866 # Code to be used in simple compile tests
8867 lt_simple_compile_test_code="int some_variable = 0;"
8869 # Code to be used in simple link tests
8870 lt_simple_link_test_code='int main(){return(0);}'
8878 # If no C compiler was specified, use CC.
8881 # If no C compiler flags were specified, use CFLAGS.
8882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8884 # Allow CC to be a program name with arguments.
8887 # Save the default compiler, since it gets overwritten when the other
8888 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8889 compiler_DEFAULT=$CC
8891 # save warnings/boilerplate of simple test code
8892 ac_outfile=conftest.$ac_objext
8893 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8895 _lt_compiler_boilerplate=`cat conftest.err`
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8901 _lt_linker_boilerplate=`cat conftest.err`
8906 ## There is no encapsulation within the following macros, do not change
8907 ## the running order or otherwise move them around unless you know exactly
8908 ## what you are doing...
8909 if test -n "$compiler"; then
8911 lt_prog_compiler_no_builtin_flag=
8913 if test "$GCC" = yes; then
8914 case $cc_basename in
8916 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8918 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8922 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8923 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 lt_cv_prog_compiler_rtti_exceptions=no
8927 ac_outfile=conftest.$ac_objext
8928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929 lt_compiler_flag="-fno-rtti -fno-exceptions"
8930 # Insert the option either (1) after the last *FLAGS variable, or
8931 # (2) before a word containing "conftest.", or (3) at the end.
8932 # Note that $ac_compile itself does not contain backslashes and begins
8933 # with a dollar sign (not a hyphen), so the echo should work correctly.
8934 # The option is referenced via a variable to avoid confusing sed.
8935 lt_compile=`echo "$ac_compile" | $SED \
8936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8938 -e 's:$: $lt_compiler_flag:'`
8939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8940 (eval "$lt_compile" 2>conftest.err)
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 if (exit $ac_status) && test -s "$ac_outfile"; then
8945 # The compiler can only warn and ignore the option if not recognized
8946 # So say no if there are warnings other than the usual output.
8947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8950 lt_cv_prog_compiler_rtti_exceptions=yes
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8957 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8959 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8972 lt_prog_compiler_wl=
8973 lt_prog_compiler_pic=
8974 lt_prog_compiler_static=
8977 if test "$GCC" = yes; then
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_static='-static'
8983 # All AIX code is PIC.
8984 if test "$host_cpu" = ia64; then
8985 # AIX 5 now supports IA64 processor
8986 lt_prog_compiler_static='-Bstatic'
8993 # see comment about AmigaOS4 .so support
8994 lt_prog_compiler_pic='-fPIC'
8997 # FIXME: we need at least 68020 code to build shared libraries, but
8998 # adding the `-m68020' flag to GCC prevents building anything better,
9000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9006 # PIC is the default for these OSes.
9009 mingw* | cygwin* | pw32* | os2* | cegcc*)
9010 # This hack is so that the source file can tell whether it is being
9011 # built for inclusion in a dll (and should export symbols for example).
9012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9013 # (--disable-auto-import) libraries
9014 lt_prog_compiler_pic='-DDLL_EXPORT'
9017 darwin* | rhapsody*)
9018 # PIC is the default on this platform
9019 # Common symbols not allowed in MH_DYLIB files
9020 lt_prog_compiler_pic='-fno-common'
9024 # PIC is the default for Haiku.
9025 # The "-static" flag exists, but is broken.
9026 lt_prog_compiler_static=
9030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9032 # sets the default TLS model and affects inlining.
9038 lt_prog_compiler_pic='-fPIC'
9044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9045 # Instead, we relocate shared libraries at runtime.
9049 # Just because we use GCC doesn't mean we suddenly get shared libraries
9050 # on systems that don't support them.
9051 lt_prog_compiler_can_build_shared=no
9056 # QNX uses GNU C++, but need to define -shared option too, otherwise
9058 lt_prog_compiler_pic='-fPIC -shared'
9062 if test -d /usr/nec; then
9063 lt_prog_compiler_pic=-Kconform_pic
9068 lt_prog_compiler_pic='-fPIC'
9072 case $cc_basename in
9073 nvcc*) # Cuda Compiler Driver 2.2
9074 lt_prog_compiler_wl='-Xlinker '
9075 if test -n "$lt_prog_compiler_pic"; then
9076 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9081 # PORTME Check for flag to pass linker flags through the system compiler.
9084 lt_prog_compiler_wl='-Wl,'
9085 if test "$host_cpu" = ia64; then
9086 # AIX 5 now supports IA64 processor
9087 lt_prog_compiler_static='-Bstatic'
9089 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9093 mingw* | cygwin* | pw32* | os2* | cegcc*)
9094 # This hack is so that the source file can tell whether it is being
9095 # built for inclusion in a dll (and should export symbols for example).
9096 lt_prog_compiler_pic='-DDLL_EXPORT'
9099 hpux9* | hpux10* | hpux11*)
9100 lt_prog_compiler_wl='-Wl,'
9101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9108 lt_prog_compiler_pic='+Z'
9111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9112 lt_prog_compiler_static='${wl}-a ${wl}archive'
9115 irix5* | irix6* | nonstopux*)
9116 lt_prog_compiler_wl='-Wl,'
9117 # PIC (with -KPIC) is the default.
9118 lt_prog_compiler_static='-non_shared'
9121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9122 case $cc_basename in
9123 # old Intel for x86_64 which still supported -KPIC.
9125 lt_prog_compiler_wl='-Wl,'
9126 lt_prog_compiler_pic='-KPIC'
9127 lt_prog_compiler_static='-static'
9129 # icc used to be incompatible with GCC.
9130 # ICC 10 doesn't accept -KPIC any more.
9132 lt_prog_compiler_wl='-Wl,'
9133 lt_prog_compiler_pic='-fPIC'
9134 lt_prog_compiler_static='-static'
9136 # Lahey Fortran 8.1.
9138 lt_prog_compiler_wl='-Wl,'
9139 lt_prog_compiler_pic='--shared'
9140 lt_prog_compiler_static='--static'
9143 # NAG Fortran compiler
9144 lt_prog_compiler_wl='-Wl,-Wl,,'
9145 lt_prog_compiler_pic='-PIC'
9146 lt_prog_compiler_static='-Bstatic'
9148 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9149 # Portland Group compilers (*not* the Pentium gcc compiler,
9150 # which looks to be a dead project)
9151 lt_prog_compiler_wl='-Wl,'
9152 lt_prog_compiler_pic='-fpic'
9153 lt_prog_compiler_static='-Bstatic'
9156 lt_prog_compiler_wl='-Wl,'
9157 # All Alpha code is PIC.
9158 lt_prog_compiler_static='-non_shared'
9160 xl* | bgxl* | bgf* | mpixl*)
9161 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_pic='-qpic'
9164 lt_prog_compiler_static='-qstaticlink'
9167 case `$CC -V 2>&1 | sed 5q` in
9168 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 lt_prog_compiler_wl=''
9174 *Sun\ F* | *Sun*Fortran*)
9175 lt_prog_compiler_pic='-KPIC'
9176 lt_prog_compiler_static='-Bstatic'
9177 lt_prog_compiler_wl='-Qoption ld '
9181 lt_prog_compiler_pic='-KPIC'
9182 lt_prog_compiler_static='-Bstatic'
9183 lt_prog_compiler_wl='-Wl,'
9185 *Intel*\ [CF]*Compiler*)
9186 lt_prog_compiler_wl='-Wl,'
9187 lt_prog_compiler_pic='-fPIC'
9188 lt_prog_compiler_static='-static'
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-fpic'
9193 lt_prog_compiler_static='-Bstatic'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9206 # QNX uses GNU C++, but need to define -shared option too, otherwise
9208 lt_prog_compiler_pic='-fPIC -shared'
9211 osf3* | osf4* | osf5*)
9212 lt_prog_compiler_wl='-Wl,'
9213 # All OSF/1 code is PIC.
9214 lt_prog_compiler_static='-non_shared'
9218 lt_prog_compiler_static='-non_shared'
9222 lt_prog_compiler_pic='-KPIC'
9223 lt_prog_compiler_static='-Bstatic'
9224 case $cc_basename in
9225 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9226 lt_prog_compiler_wl='-Qoption ld ';;
9228 lt_prog_compiler_wl='-Wl,';;
9233 lt_prog_compiler_wl='-Qoption ld '
9234 lt_prog_compiler_pic='-PIC'
9235 lt_prog_compiler_static='-Bstatic'
9238 sysv4 | sysv4.2uw2* | sysv4.3*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-KPIC'
9241 lt_prog_compiler_static='-Bstatic'
9245 if test -d /usr/nec ;then
9246 lt_prog_compiler_pic='-Kconform_pic'
9247 lt_prog_compiler_static='-Bstatic'
9251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9252 lt_prog_compiler_wl='-Wl,'
9253 lt_prog_compiler_pic='-KPIC'
9254 lt_prog_compiler_static='-Bstatic'
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_can_build_shared=no
9263 lt_prog_compiler_pic='-pic'
9264 lt_prog_compiler_static='-Bstatic'
9268 lt_prog_compiler_can_build_shared=no
9274 # For platforms which do not support PIC, -DPIC is meaningless:
9276 lt_prog_compiler_pic=
9279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9284 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9285 if ${lt_cv_prog_compiler_pic+:} false; then :
9286 $as_echo_n "(cached) " >&6
9288 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9291 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9292 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9295 # Check to make sure the PIC flag actually works.
9297 if test -n "$lt_prog_compiler_pic"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9300 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9301 $as_echo_n "(cached) " >&6
9303 lt_cv_prog_compiler_pic_works=no
9304 ac_outfile=conftest.$ac_objext
9305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9307 # Insert the option either (1) after the last *FLAGS variable, or
9308 # (2) before a word containing "conftest.", or (3) at the end.
9309 # Note that $ac_compile itself does not contain backslashes and begins
9310 # with a dollar sign (not a hyphen), so the echo should work correctly.
9311 # The option is referenced via a variable to avoid confusing sed.
9312 lt_compile=`echo "$ac_compile" | $SED \
9313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9315 -e 's:$: $lt_compiler_flag:'`
9316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9317 (eval "$lt_compile" 2>conftest.err)
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 if (exit $ac_status) && test -s "$ac_outfile"; then
9322 # The compiler can only warn and ignore the option if not recognized
9323 # So say no if there are warnings other than the usual output.
9324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler_pic_works=yes
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9334 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9336 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9337 case $lt_prog_compiler_pic in
9339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9342 lt_prog_compiler_pic=
9343 lt_prog_compiler_can_build_shared=no
9359 # Check to make sure the static flag actually works.
9361 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9363 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9364 if ${lt_cv_prog_compiler_static_works+:} false; then :
9365 $as_echo_n "(cached) " >&6
9367 lt_cv_prog_compiler_static_works=no
9368 save_LDFLAGS="$LDFLAGS"
9369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9372 # The linker can only warn and ignore the option if not recognized
9373 # So say no if there are warnings
9374 if test -s conftest.err; then
9375 # Append any errors to the config.log.
9376 cat conftest.err 1>&5
9377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379 if diff conftest.exp conftest.er2 >/dev/null; then
9380 lt_cv_prog_compiler_static_works=yes
9383 lt_cv_prog_compiler_static_works=yes
9387 LDFLAGS="$save_LDFLAGS"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9391 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9393 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9396 lt_prog_compiler_static=
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9407 if ${lt_cv_prog_compiler_c_o+:} false; then :
9408 $as_echo_n "(cached) " >&6
9410 lt_cv_prog_compiler_c_o=no
9411 $RM -r conftest 2>/dev/null
9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417 lt_compiler_flag="-o out/conftest2.$ac_objext"
9418 # Insert the option either (1) after the last *FLAGS variable, or
9419 # (2) before a word containing "conftest.", or (3) at the end.
9420 # Note that $ac_compile itself does not contain backslashes and begins
9421 # with a dollar sign (not a hyphen), so the echo should work correctly.
9422 lt_compile=`echo "$ac_compile" | $SED \
9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425 -e 's:$: $lt_compiler_flag:'`
9426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9427 (eval "$lt_compile" 2>out/conftest.err)
9429 cat out/conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9433 # The compiler can only warn and ignore the option if not recognized
9434 # So say no if there are warnings
9435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9438 lt_cv_prog_compiler_c_o=yes
9443 # SGI C++ compiler will create directory out/ii_files/ for
9444 # template instantiation
9445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9446 $RM out/* && rmdir out
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9462 if ${lt_cv_prog_compiler_c_o+:} false; then :
9463 $as_echo_n "(cached) " >&6
9465 lt_cv_prog_compiler_c_o=no
9466 $RM -r conftest 2>/dev/null
9470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9472 lt_compiler_flag="-o out/conftest2.$ac_objext"
9473 # Insert the option either (1) after the last *FLAGS variable, or
9474 # (2) before a word containing "conftest.", or (3) at the end.
9475 # Note that $ac_compile itself does not contain backslashes and begins
9476 # with a dollar sign (not a hyphen), so the echo should work correctly.
9477 lt_compile=`echo "$ac_compile" | $SED \
9478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9480 -e 's:$: $lt_compiler_flag:'`
9481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9482 (eval "$lt_compile" 2>out/conftest.err)
9484 cat out/conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9488 # The compiler can only warn and ignore the option if not recognized
9489 # So say no if there are warnings
9490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9493 lt_cv_prog_compiler_c_o=yes
9498 # SGI C++ compiler will create directory out/ii_files/ for
9499 # template instantiation
9500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9501 $RM out/* && rmdir out
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9508 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9513 hard_links="nottested"
9514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9515 # do not overwrite the value of need_locks provided by the user
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9517 $as_echo_n "checking if we can lock with hard links... " >&6; }
9520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9522 ln conftest.a conftest.b 2>&5 || hard_links=no
9523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9525 $as_echo "$hard_links" >&6; }
9526 if test "$hard_links" = no; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9541 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9544 allow_undefined_flag=
9545 always_export_symbols=no
9547 archive_expsym_cmds=
9548 compiler_needs_object=no
9549 enable_shared_with_static_runtimes=no
9550 export_dynamic_flag_spec=
9551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9552 hardcode_automatic=no
9554 hardcode_direct_absolute=no
9555 hardcode_libdir_flag_spec=
9556 hardcode_libdir_separator=
9558 hardcode_shlibpath_var=unsupported
9560 link_all_deplibs=unknown
9563 old_archive_from_new_cmds=
9564 old_archive_from_expsyms_cmds=
9565 thread_safe_flag_spec=
9566 whole_archive_flag_spec=
9567 # include_expsyms should be a list of space-separated symbols to be *always*
9568 # included in the symbol list
9570 # exclude_expsyms can be an extended regexp of symbols to exclude
9571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9573 # as well as any symbol that contains `d'.
9574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9576 # platforms (ab)use it in PIC code, but their linkers get confused if
9577 # the symbol is explicitly referenced. Since portable code cannot
9578 # rely on this symbol name, it's probably fine to never include it in
9579 # preloaded symbol tables.
9580 # Exclude shared library initialization/finalization symbols.
9581 extract_expsyms_cmds=
9584 cygwin* | mingw* | pw32* | cegcc*)
9585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9586 # When not using gcc, we currently assume that we are using
9587 # Microsoft Visual C++.
9588 if test "$GCC" != yes; then
9593 # we just hope/assume this is gcc and not c89 (= MSVC++)
9599 linux* | k*bsd*-gnu | gnu*)
9606 # On some targets, GNU ld is compatible enough with the native linker
9607 # that we're better off using the native interface for both.
9608 lt_use_gnu_ld_interface=no
9609 if test "$with_gnu_ld" = yes; then
9612 # The AIX port of GNU ld has always aspired to compatibility
9613 # with the native linker. However, as the warning in the GNU ld
9614 # block says, versions before 2.19.5* couldn't really create working
9615 # shared libraries, regardless of the interface used.
9616 case `$LD -v 2>&1` in
9617 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9618 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9619 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9621 lt_use_gnu_ld_interface=yes
9626 lt_use_gnu_ld_interface=yes
9631 if test "$lt_use_gnu_ld_interface" = yes; then
9632 # If archive_cmds runs LD, not CC, wlarc should be empty
9635 # Set some defaults for GNU ld with shared library support. These
9636 # are reset later if shared libraries are not supported. Putting them
9637 # here allows them to be overridden if necessary.
9638 runpath_var=LD_RUN_PATH
9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640 export_dynamic_flag_spec='${wl}--export-dynamic'
9641 # ancient GNU ld didn't support --whole-archive et. al.
9642 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9643 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9645 whole_archive_flag_spec=
9647 supports_anon_versioning=no
9648 case `$LD -v 2>&1` in
9649 *GNU\ gold*) supports_anon_versioning=yes ;;
9650 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9651 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9652 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9653 *\ 2.11.*) ;; # other 2.11 versions
9654 *) supports_anon_versioning=yes ;;
9657 # See if GNU ld supports shared libraries.
9660 # On AIX/PPC, the GNU linker is very broken
9661 if test "$host_cpu" != ia64; then
9665 *** Warning: the GNU linker, at least up to release 2.19, is reported
9666 *** to be unable to reliably create shared libraries on AIX.
9667 *** Therefore, libtool is disabling shared libraries support. If you
9668 *** really care for shared libraries, you may want to install binutils
9669 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9670 *** You will then need to restart the configuration process.
9679 # see comment about AmigaOS4 .so support
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds=''
9684 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)'
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_minus_L=yes
9692 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693 allow_undefined_flag=unsupported
9694 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9695 # support --undefined. This deserves some investigation. FIXME
9696 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 cygwin* | mingw* | pw32* | cegcc*)
9703 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9704 # as there is no search path for DLLs.
9705 hardcode_libdir_flag_spec='-L$libdir'
9706 export_dynamic_flag_spec='${wl}--export-all-symbols'
9707 allow_undefined_flag=unsupported
9708 always_export_symbols=no
9709 enable_shared_with_static_runtimes=yes
9710 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'
9711 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9715 # If the export-symbols file already is a .def file (1st line
9716 # is EXPORTS), use it as is; otherwise, prepend...
9717 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9718 cp $export_symbols $output_objdir/$soname.def;
9720 echo EXPORTS > $output_objdir/$soname.def;
9721 cat $export_symbols >> $output_objdir/$soname.def;
9723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 link_all_deplibs=yes
9736 hardcode_shlibpath_var=no
9737 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9738 export_dynamic_flag_spec='${wl}-E'
9739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9740 # Instead, shared libraries are loaded at an image base (0x10000000 by
9741 # default) and relocated if they conflict, which is a slow very memory
9742 # consuming and fragmenting process. To avoid this, we pick a random,
9743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9746 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'
9749 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9751 if test "$host_os" = linux-dietlibc; then
9752 case $cc_basename in
9753 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9756 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9757 && test "$tmp_diet" = no
9759 tmp_addflag=' $pic_flag'
9760 tmp_sharedflag='-shared'
9761 case $cc_basename,$host_cpu in
9762 pgcc*) # Portland Group C compiler
9763 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'
9764 tmp_addflag=' $pic_flag'
9766 pgf77* | pgf90* | pgf95* | pgfortran*)
9767 # Portland Group f77 and f90 compilers
9768 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'
9769 tmp_addflag=' $pic_flag -Mnomain' ;;
9770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9771 tmp_addflag=' -i_dynamic' ;;
9772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9773 tmp_addflag=' -i_dynamic -nofor_main' ;;
9774 ifc* | ifort*) # Intel Fortran compiler
9775 tmp_addflag=' -nofor_main' ;;
9776 lf95*) # Lahey Fortran 8.1
9777 whole_archive_flag_spec=
9778 tmp_sharedflag='--shared' ;;
9779 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9780 tmp_sharedflag='-qmkshrobj'
9782 nvcc*) # Cuda Compiler Driver 2.2
9783 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'
9784 compiler_needs_object=yes
9787 case `$CC -V 2>&1 | sed 5q` in
9788 *Sun\ C*) # Sun C 5.9
9789 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'
9790 compiler_needs_object=yes
9791 tmp_sharedflag='-G' ;;
9792 *Sun\ F*) # Sun Fortran 8.3
9793 tmp_sharedflag='-G' ;;
9795 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 if test "x$supports_anon_versioning" = xyes; then
9798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9800 echo "local: *; };" >> $output_objdir/$libname.ver~
9801 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9804 case $cc_basename in
9805 xlf* | bgf* | bgxlf* | mpixlf*)
9806 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9807 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9809 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9810 if test "x$supports_anon_versioning" = xyes; then
9811 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9813 echo "local: *; };" >> $output_objdir/$libname.ver~
9814 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9823 netbsd* | netbsdelf*-gnu)
9824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9825 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9829 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9834 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9839 *** create shared libraries on Solaris systems. Therefore, libtool
9840 *** is disabling shared libraries support. We urge you to upgrade GNU
9841 *** binutils to release 2.9.1 or newer. Another option is to modify
9842 *** your PATH or compiler configuration so that the native linker is
9843 *** used, and then restart.
9846 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9848 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9855 case `$LD -v 2>&1` in
9856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9861 *** reliably create shared libraries on SCO systems. Therefore, libtool
9862 *** is disabling shared libraries support. We urge you to upgrade GNU
9863 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9870 # For security reasons, it is highly recommended that you always
9871 # use absolute paths for naming shared libraries, and exclude the
9872 # DT_RUNPATH tag from executables and libraries. But doing so
9873 # requires that you compile everything twice, which is a pain.
9874 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9886 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_shlibpath_var=no
9893 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9902 if test "$ld_shlibs" = no; then
9904 hardcode_libdir_flag_spec=
9905 export_dynamic_flag_spec=
9906 whole_archive_flag_spec=
9909 # PORTME fill in a description of your system's linker (not GNU ld)
9912 allow_undefined_flag=unsupported
9913 always_export_symbols=yes
9914 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'
9915 # Note: this linker hardcodes the directories in LIBPATH if there
9916 # are no directories specified by -L.
9917 hardcode_minus_L=yes
9918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9919 # Neither direct hardcoding nor static linking is supported with a
9921 hardcode_direct=unsupported
9926 if test "$host_cpu" = ia64; then
9927 # On IA64, the linker does run time linking by default, so we don't
9928 # have to do anything special.
9929 aix_use_runtimelinking=no
9930 exp_sym_flag='-Bexport'
9933 # If we're using GNU nm, then we don't want the "-C" option.
9934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9935 # Also, AIX nm treats weak defined symbols like other global
9936 # defined symbols, whereas GNU nm marks them as "W".
9937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9938 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'
9940 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'
9942 aix_use_runtimelinking=no
9944 # Test if we are trying to use run time linking or normal
9945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9946 # need to do runtime linking.
9947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9948 for ld_flag in $LDFLAGS; do
9949 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9950 aix_use_runtimelinking=yes
9957 exp_sym_flag='-bexport'
9958 no_entry_flag='-bnoentry'
9961 # When large executables or shared objects are built, AIX ld can
9962 # have problems creating the table of contents. If linking a library
9963 # or program results in "error TOC overflow" add -mminimal-toc to
9964 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9965 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9969 hardcode_direct_absolute=yes
9970 hardcode_libdir_separator=':'
9971 link_all_deplibs=yes
9972 file_list_spec='${wl}-f,'
9974 if test "$GCC" = yes; then
9975 case $host_os in aix4.[012]|aix4.[012].*)
9976 # We only want to do this on AIX 4.2 and lower, the check
9977 # below for broken collect2 doesn't work under 4.3+
9978 collect2name=`${CC} -print-prog-name=collect2`
9979 if test -f "$collect2name" &&
9980 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9982 # We have reworked collect2
9985 # We have old collect2
9986 hardcode_direct=unsupported
9987 # It fails to find uninstalled libraries when the uninstalled
9988 # path is not listed in the libpath. Setting hardcode_minus_L
9989 # to unsupported forces relinking
9990 hardcode_minus_L=yes
9991 hardcode_libdir_flag_spec='-L$libdir'
9992 hardcode_libdir_separator=
9996 shared_flag='-shared'
9997 if test "$aix_use_runtimelinking" = yes; then
9998 shared_flag="$shared_flag "'${wl}-G'
10000 link_all_deplibs=no
10003 if test "$host_cpu" = ia64; then
10004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10005 # chokes on -Wl,-G. The following line is correct:
10008 if test "$aix_use_runtimelinking" = yes; then
10009 shared_flag='${wl}-G'
10011 shared_flag='${wl}-bM:SRE'
10016 export_dynamic_flag_spec='${wl}-bexpall'
10017 # It seems that -bexpall does not export symbols beginning with
10018 # underscore (_), so it is better to generate a list of symbols to export.
10019 always_export_symbols=yes
10020 if test "$aix_use_runtimelinking" = yes; then
10021 # Warning - without using the other runtime loading flags (-brtl),
10022 # -berok will link without error, but may produce a broken library.
10023 allow_undefined_flag='-berok'
10024 # Determine the default libpath from the value encoded in an
10025 # empty executable.
10026 if test "${lt_cv_aix_libpath+set}" = set; then
10027 aix_libpath=$lt_cv_aix_libpath
10029 if ${lt_cv_aix_libpath_+:} false; then :
10030 $as_echo_n "(cached) " >&6
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10043 if ac_fn_c_try_link "$LINENO"; then :
10045 lt_aix_libpath_sed='
10046 /Import File Strings/,/^$/ {
10048 s/^0 *\([^ ]*\) *$/\1/
10052 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10053 # Check for a 64-bit object if we didn't find anything.
10054 if test -z "$lt_cv_aix_libpath_"; then
10055 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 if test -z "$lt_cv_aix_libpath_"; then
10061 lt_cv_aix_libpath_="/usr/lib:/lib"
10066 aix_libpath=$lt_cv_aix_libpath_
10069 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10070 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"
10072 if test "$host_cpu" = ia64; then
10073 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10074 allow_undefined_flag="-z nodefs"
10075 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"
10077 # Determine the default libpath from the value encoded in an
10078 # empty executable.
10079 if test "${lt_cv_aix_libpath+set}" = set; then
10080 aix_libpath=$lt_cv_aix_libpath
10082 if ${lt_cv_aix_libpath_+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10096 if ac_fn_c_try_link "$LINENO"; then :
10098 lt_aix_libpath_sed='
10099 /Import File Strings/,/^$/ {
10101 s/^0 *\([^ ]*\) *$/\1/
10105 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10106 # Check for a 64-bit object if we didn't find anything.
10107 if test -z "$lt_cv_aix_libpath_"; then
10108 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 if test -z "$lt_cv_aix_libpath_"; then
10114 lt_cv_aix_libpath_="/usr/lib:/lib"
10119 aix_libpath=$lt_cv_aix_libpath_
10122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10123 # Warning - without using the other run time loading flags,
10124 # -berok will link without error, but may produce a broken library.
10125 no_undefined_flag=' ${wl}-bernotok'
10126 allow_undefined_flag=' ${wl}-berok'
10127 if test "$with_gnu_ld" = yes; then
10128 # We only use this code for GNU lds that support --whole-archive.
10129 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10131 # Exported symbols can be pulled into shared objects from archives
10132 whole_archive_flag_spec='$convenience'
10134 archive_cmds_need_lc=yes
10135 # This is similar to how AIX traditionally builds its shared libraries.
10136 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'
10144 # see comment about AmigaOS4 .so support
10145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146 archive_expsym_cmds=''
10149 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)'
10150 hardcode_libdir_flag_spec='-L$libdir'
10151 hardcode_minus_L=yes
10157 export_dynamic_flag_spec=-rdynamic
10160 cygwin* | mingw* | pw32* | cegcc*)
10161 # When not using gcc, we currently assume that we are using
10162 # Microsoft Visual C++.
10163 # hardcode_libdir_flag_spec is actually meaningless, as there is
10164 # no search path for DLLs.
10165 case $cc_basename in
10168 hardcode_libdir_flag_spec=' '
10169 allow_undefined_flag=unsupported
10170 always_export_symbols=yes
10172 # Tell ltmain to make .lib files, not .a files.
10174 # Tell ltmain to make .dll files, not .so files.
10176 # FIXME: Setting linknames here is a bad hack.
10177 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10178 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10179 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10181 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10183 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10185 # The linker will not automatically build a static lib if we build a DLL.
10186 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10187 enable_shared_with_static_runtimes=yes
10188 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10191 old_postinstall_cmds='chmod 644 $oldlib'
10192 postlink_cmds='lt_outputfile="@OUTPUT@"~
10193 lt_tool_outputfile="@TOOL_OUTPUT@"~
10194 case $lt_outputfile in
10197 lt_outputfile="$lt_outputfile.exe"
10198 lt_tool_outputfile="$lt_tool_outputfile.exe"
10201 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10202 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10203 $RM "$lt_outputfile.manifest";
10207 # Assume MSVC wrapper
10208 hardcode_libdir_flag_spec=' '
10209 allow_undefined_flag=unsupported
10210 # Tell ltmain to make .lib files, not .a files.
10212 # Tell ltmain to make .dll files, not .so files.
10214 # FIXME: Setting linknames here is a bad hack.
10215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10216 # The linker will automatically build a .lib file if we build a DLL.
10217 old_archive_from_new_cmds='true'
10218 # FIXME: Should let the user specify the lib program.
10219 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10220 enable_shared_with_static_runtimes=yes
10225 darwin* | rhapsody*)
10228 archive_cmds_need_lc=no
10230 hardcode_automatic=yes
10231 hardcode_shlibpath_var=unsupported
10232 if test "$lt_cv_ld_force_load" = "yes"; then
10233 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\"`'
10236 whole_archive_flag_spec=''
10238 link_all_deplibs=yes
10239 allow_undefined_flag="$_lt_dar_allow_undefined"
10240 case $cc_basename in
10241 ifort*) _lt_dar_can_shared=yes ;;
10242 *) _lt_dar_can_shared=$GCC ;;
10244 if test "$_lt_dar_can_shared" = "yes"; then
10245 output_verbose_link_cmd=func_echo_all
10246 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10247 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10248 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}"
10249 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}"
10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_shlibpath_var=no
10263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10264 # support. Future versions do this automatically, but an explicit c++rt0.o
10265 # does not break anything, and helps significantly (at the cost of a little
10268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10269 hardcode_libdir_flag_spec='-R$libdir'
10270 hardcode_direct=yes
10271 hardcode_shlibpath_var=no
10274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10277 hardcode_direct=yes
10278 hardcode_minus_L=yes
10279 hardcode_shlibpath_var=no
10282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10283 freebsd* | dragonfly*)
10284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10285 hardcode_libdir_flag_spec='-R$libdir'
10286 hardcode_direct=yes
10287 hardcode_shlibpath_var=no
10291 if test "$GCC" = yes; then
10292 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'
10294 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'
10296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10297 hardcode_libdir_separator=:
10298 hardcode_direct=yes
10300 # hardcode_minus_L: Not really in the search PATH,
10301 # but as the default location of the library.
10302 hardcode_minus_L=yes
10303 export_dynamic_flag_spec='${wl}-E'
10307 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10308 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10310 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10312 if test "$with_gnu_ld" = no; then
10313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10314 hardcode_libdir_separator=:
10315 hardcode_direct=yes
10316 hardcode_direct_absolute=yes
10317 export_dynamic_flag_spec='${wl}-E'
10318 # hardcode_minus_L: Not really in the search PATH,
10319 # but as the default location of the library.
10320 hardcode_minus_L=yes
10325 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10328 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10334 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10347 # Older versions of the 11.00 compiler do not understand -b yet
10348 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10350 $as_echo_n "checking if $CC understands -b... " >&6; }
10351 if ${lt_cv_prog_compiler__b+:} false; then :
10352 $as_echo_n "(cached) " >&6
10354 lt_cv_prog_compiler__b=no
10355 save_LDFLAGS="$LDFLAGS"
10356 LDFLAGS="$LDFLAGS -b"
10357 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10359 # The linker can only warn and ignore the option if not recognized
10360 # So say no if there are warnings
10361 if test -s conftest.err; then
10362 # Append any errors to the config.log.
10363 cat conftest.err 1>&5
10364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10366 if diff conftest.exp conftest.er2 >/dev/null; then
10367 lt_cv_prog_compiler__b=yes
10370 lt_cv_prog_compiler__b=yes
10374 LDFLAGS="$save_LDFLAGS"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10378 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10380 if test x"$lt_cv_prog_compiler__b" = xyes; then
10381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10389 if test "$with_gnu_ld" = no; then
10390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10391 hardcode_libdir_separator=:
10396 hardcode_shlibpath_var=no
10399 hardcode_direct=yes
10400 hardcode_direct_absolute=yes
10401 export_dynamic_flag_spec='${wl}-E'
10403 # hardcode_minus_L: Not really in the search PATH,
10404 # but as the default location of the library.
10405 hardcode_minus_L=yes
10411 irix5* | irix6* | nonstopux*)
10412 if test "$GCC" = yes; then
10413 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'
10414 # Try to use the -exported_symbol ld option, if it does not
10415 # work, assume that -exports_file does not work either and
10416 # implicitly export all symbols.
10417 # This should be the same for all languages, so no per-tag cache variable.
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10419 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10420 if ${lt_cv_irix_exported_symbol+:} false; then :
10421 $as_echo_n "(cached) " >&6
10423 save_LDFLAGS="$LDFLAGS"
10424 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 int foo (void) { return 0; }
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 lt_cv_irix_exported_symbol=yes
10432 lt_cv_irix_exported_symbol=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 LDFLAGS="$save_LDFLAGS"
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10439 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10440 if test "$lt_cv_irix_exported_symbol" = yes; then
10441 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'
10444 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'
10445 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'
10447 archive_cmds_need_lc='no'
10448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10449 hardcode_libdir_separator=:
10451 link_all_deplibs=yes
10454 netbsd* | netbsdelf*-gnu)
10455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10458 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10460 hardcode_libdir_flag_spec='-R$libdir'
10461 hardcode_direct=yes
10462 hardcode_shlibpath_var=no
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_direct=yes
10468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 hardcode_libdir_separator=:
10470 hardcode_shlibpath_var=no
10477 if test -f /usr/libexec/ld.so; then
10478 hardcode_direct=yes
10479 hardcode_shlibpath_var=no
10480 hardcode_direct_absolute=yes
10481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10485 export_dynamic_flag_spec='${wl}-E'
10488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10490 hardcode_libdir_flag_spec='-R$libdir'
10493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10504 hardcode_libdir_flag_spec='-L$libdir'
10505 hardcode_minus_L=yes
10506 allow_undefined_flag=unsupported
10507 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'
10508 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10512 if test "$GCC" = yes; then
10513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10514 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'
10516 allow_undefined_flag=' -expect_unresolved \*'
10517 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'
10519 archive_cmds_need_lc='no'
10520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521 hardcode_libdir_separator=:
10524 osf4* | osf5*) # as osf3* with the addition of -msym flag
10525 if test "$GCC" = yes; then
10526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10527 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'
10528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530 allow_undefined_flag=' -expect_unresolved \*'
10531 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'
10532 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~
10533 $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'
10535 # Both c and cxx compiler support -rpath directly
10536 hardcode_libdir_flag_spec='-rpath $libdir'
10538 archive_cmds_need_lc='no'
10539 hardcode_libdir_separator=:
10543 no_undefined_flag=' -z defs'
10544 if test "$GCC" = yes; then
10546 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10548 $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'
10550 case `$CC -V 2>&1` in
10553 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10559 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10561 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10565 hardcode_libdir_flag_spec='-R$libdir'
10566 hardcode_shlibpath_var=no
10568 solaris2.[0-5] | solaris2.[0-5].*) ;;
10570 # The compiler driver will combine and reorder linker options,
10571 # but understands `-z linker_flag'. GCC discards it without `$wl',
10572 # but is careful enough not to reorder.
10573 # Supported since Solaris 2.6 (maybe 2.5.1?)
10574 if test "$GCC" = yes; then
10575 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10581 link_all_deplibs=yes
10585 if test "x$host_vendor" = xsequent; then
10586 # Use $CC to link under sequent, because it throws in some extra .o
10587 # files that make .init and .fini sections work.
10588 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_libdir_flag_spec='-L$libdir'
10593 hardcode_direct=yes
10594 hardcode_minus_L=yes
10595 hardcode_shlibpath_var=no
10599 case $host_vendor in
10601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602 hardcode_direct=yes # is this really true???
10605 ## LD is ld it makes a PLAMLIB
10606 ## CC just makes a GrossModule.
10607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10608 reload_cmds='$CC -r -o $output$reload_objs'
10612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10616 runpath_var='LD_RUN_PATH'
10617 hardcode_shlibpath_var=no
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_shlibpath_var=no
10623 export_dynamic_flag_spec='-Bexport'
10627 if test -d /usr/nec; then
10628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629 hardcode_shlibpath_var=no
10630 runpath_var=LD_RUN_PATH
10631 hardcode_runpath_var=yes
10636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10637 no_undefined_flag='${wl}-z,text'
10638 archive_cmds_need_lc=no
10639 hardcode_shlibpath_var=no
10640 runpath_var='LD_RUN_PATH'
10642 if test "$GCC" = yes; then
10643 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 sysv5* | sco3.2v5* | sco5v6*)
10652 # Note: We can NOT use -z defs as we might desire, because we do not
10653 # link with -lc, and that would cause any symbols used from libc to
10654 # always be unresolved, which means just about no library would
10655 # ever link correctly. If we're not using GNU ld we use -z text
10656 # though, which does catch some bad symbols but isn't as heavy-handed
10658 no_undefined_flag='${wl}-z,text'
10659 allow_undefined_flag='${wl}-z,nodefs'
10660 archive_cmds_need_lc=no
10661 hardcode_shlibpath_var=no
10662 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10663 hardcode_libdir_separator=':'
10664 link_all_deplibs=yes
10665 export_dynamic_flag_spec='${wl}-Bexport'
10666 runpath_var='LD_RUN_PATH'
10668 if test "$GCC" = yes; then
10669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_libdir_flag_spec='-L$libdir'
10680 hardcode_shlibpath_var=no
10688 if test x$host_vendor = xsni; then
10690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10691 export_dynamic_flag_spec='${wl}-Blargedynsym'
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10698 $as_echo "$ld_shlibs" >&6; }
10699 test "$ld_shlibs" = no && can_build_shared=no
10701 with_gnu_ld=$with_gnu_ld
10718 # Do we need to explicitly link libc?
10720 case "x$archive_cmds_need_lc" in
10722 # Assume -lc should be added
10723 archive_cmds_need_lc=yes
10725 if test "$enable_shared" = yes && test "$GCC" = yes; then
10726 case $archive_cmds in
10728 # FIXME: we may have to deal with multi-command sequences.
10731 # Test whether the compiler implicitly links with -lc since on some
10732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10733 # to ld, don't add -lc before -lgcc.
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10735 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10736 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10737 $as_echo_n "(cached) " >&6
10740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10743 (eval $ac_compile) 2>&5
10745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10746 test $ac_status = 0; } 2>conftest.err; then
10749 libobjs=conftest.$ac_objext
10751 wl=$lt_prog_compiler_wl
10752 pic_flag=$lt_prog_compiler_pic
10758 lt_save_allow_undefined_flag=$allow_undefined_flag
10759 allow_undefined_flag=
10760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10764 test $ac_status = 0; }
10766 lt_cv_archive_cmds_need_lc=no
10768 lt_cv_archive_cmds_need_lc=yes
10770 allow_undefined_flag=$lt_save_allow_undefined_flag
10772 cat conftest.err 1>&5
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10778 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10940 if test "$GCC" = yes; then
10942 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10943 *) lt_awk_arg="/^libraries:/" ;;
10946 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10947 *) lt_sed_strip_eq="s,=/,/,g" ;;
10949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10950 case $lt_search_path_spec in
10952 # if the path contains ";" then we assume it to be the separator
10953 # otherwise default to the standard path separator (i.e. ":") - it is
10954 # assumed that no part of a normal pathname contains ";" but that should
10955 # okay in the real world where ";" in dirpaths is itself problematic.
10956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10959 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10962 # Ok, now we have the path, separated by spaces, we can step through it
10963 # and add multilib dir if necessary.
10964 lt_tmp_lt_search_path_spec=
10965 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10966 for lt_sys_path in $lt_search_path_spec; do
10967 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10970 test -d "$lt_sys_path" && \
10971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10974 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10975 BEGIN {RS=" "; FS="/|\n";} {
10978 for (lt_i = NF; lt_i > 0; lt_i--) {
10979 if ($lt_i != "" && $lt_i != ".") {
10980 if ($lt_i == "..") {
10983 if (lt_count == 0) {
10984 lt_foo="/" $lt_i lt_foo;
10991 if (lt_foo != "") { lt_freq[lt_foo]++; }
10992 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10994 # AWK program above erroneously prepends '/' to C:/dos/paths
10997 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10998 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11000 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11004 library_names_spec=
11005 libname_spec='lib$name'
11009 postuninstall_cmds=
11013 shlibpath_overrides_runpath=unknown
11015 dynamic_linker="$host_os ld.so"
11016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11017 need_lib_prefix=unknown
11018 hardcode_into_libs=no
11020 # when you set need_version to no, make sure it does not cause -set_version
11021 # flags to be left without arguments
11022 need_version=unknown
11026 version_type=linux # correct to gnu/linux during the next big refactor
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11028 shlibpath_var=LIBPATH
11030 # AIX 3 has no versioning support, so we append a major version to the name.
11031 soname_spec='${libname}${release}${shared_ext}$major'
11035 version_type=linux # correct to gnu/linux during the next big refactor
11038 hardcode_into_libs=yes
11039 if test "$host_cpu" = ia64; then
11040 # AIX 5 supports IA64
11041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11042 shlibpath_var=LD_LIBRARY_PATH
11044 # With GCC up to 2.95.x, collect2 would create an import file
11045 # for dependence libraries. The import file would start with
11046 # the line `#! .'. This would cause the generated library to
11047 # depend on `.', always an invalid library. This was fixed in
11048 # development snapshots of GCC prior to 3.0.
11050 aix4 | aix4.[01] | aix4.[01].*)
11051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11053 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11056 can_build_shared=no
11060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11061 # soname into executable. Probably we can add versioning support to
11062 # collect2, so additional links can be useful in future.
11063 if test "$aix_use_runtimelinking" = yes; then
11064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11065 # instead of lib<name>.a to let people know that these are not
11066 # typical AIX shared libraries.
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 # We preserve .a as extension for shared libraries through AIX4.2
11070 # and later when we are not doing run time linking.
11071 library_names_spec='${libname}${release}.a $libname.a'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11074 shlibpath_var=LIBPATH
11081 # Since July 2007 AmigaOS4 officially supports .so libraries.
11082 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 library_names_spec='$libname.ixlibrary $libname.a'
11087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11088 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'
11094 library_names_spec='${libname}${shared_ext}'
11095 dynamic_linker="$host_os ld.so"
11096 shlibpath_var=LIBRARY_PATH
11100 version_type=linux # correct to gnu/linux during the next big refactor
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11108 # the default ld.so.conf also contains /usr/contrib/lib and
11109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11110 # libtool to hard-code these into programs
11113 cygwin* | mingw* | pw32* | cegcc*)
11114 version_type=windows
11119 case $GCC,$cc_basename in
11122 library_names_spec='$libname.dll.a'
11123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11124 postinstall_cmds='base_file=`basename \${file}`~
11125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11126 dldir=$destdir/`dirname \$dlpath`~
11127 test -d \$dldir || mkdir -p \$dldir~
11128 $install_prog $dir/$dlname \$dldir/$dlname~
11129 chmod a+x \$dldir/$dlname~
11130 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11131 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11134 dlpath=$dir/\$dldll~
11136 shlibpath_overrides_runpath=yes
11140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11146 # MinGW DLLs use traditional 'lib' prefix
11147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11150 # pw32 DLLs use 'pw' prefix rather than 'lib'
11151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11154 dynamic_linker='Win32 ld.exe'
11159 libname_spec='$name'
11160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11161 library_names_spec='${libname}.dll.lib'
11165 sys_lib_search_path_spec=
11168 for lt_path in $LIB
11171 # Let DOS variable expansion print the short 8.3 style file name.
11172 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11176 # Convert to MSYS style.
11177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11180 # Convert to unix form, then to dos form, then back to unix form
11181 # but this time dos style (no spaces!) so that the unix form looks
11182 # like /cygdrive/c/PROGRA~1:/cygdr...
11183 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11184 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11185 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11188 sys_lib_search_path_spec="$LIB"
11189 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11190 # It is most probably a Windows format PATH.
11191 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11195 # FIXME: find the short name or the path components, as spaces are
11196 # common. (e.g. "Program Files" -> "PROGRA~1")
11200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11201 postinstall_cmds='base_file=`basename \${file}`~
11202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11203 dldir=$destdir/`dirname \$dlpath`~
11204 test -d \$dldir || mkdir -p \$dldir~
11205 $install_prog $dir/$dlname \$dldir/$dlname'
11206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11207 dlpath=$dir/\$dldll~
11209 shlibpath_overrides_runpath=yes
11210 dynamic_linker='Win32 link.exe'
11214 # Assume MSVC wrapper
11215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11216 dynamic_linker='Win32 ld.exe'
11219 # FIXME: first we should search . and the directory the executable is in
11223 darwin* | rhapsody*)
11224 dynamic_linker="$host_os dyld"
11225 version_type=darwin
11228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11229 soname_spec='${libname}${release}${major}$shared_ext'
11230 shlibpath_overrides_runpath=yes
11231 shlibpath_var=DYLD_LIBRARY_PATH
11232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11239 version_type=linux # correct to gnu/linux during the next big refactor
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11247 freebsd* | dragonfly*)
11248 # DragonFly does not have aout. When/if they implement a new
11249 # versioning mechanism, adjust this.
11250 if test -x /usr/bin/objformat; then
11251 objformat=`/usr/bin/objformat`
11254 freebsd[23].*) objformat=aout ;;
11255 *) objformat=elf ;;
11258 version_type=freebsd-$objformat
11259 case $version_type in
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11270 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11275 freebsd3.[01]* | freebsdelf3.[01]*)
11276 shlibpath_overrides_runpath=yes
11277 hardcode_into_libs=yes
11279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11284 *) # from 4.6 on, and DragonFly
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11292 version_type=linux # correct to gnu/linux during the next big refactor
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 shlibpath_overrides_runpath=no
11299 hardcode_into_libs=yes
11303 version_type=linux # correct to gnu/linux during the next big refactor
11306 dynamic_linker="$host_os runtime_loader"
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 shlibpath_var=LIBRARY_PATH
11310 shlibpath_overrides_runpath=yes
11311 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11312 hardcode_into_libs=yes
11315 hpux9* | hpux10* | hpux11*)
11316 # Give a soname corresponding to the major version so that dld.sl refuses to
11317 # link against other versions.
11324 hardcode_into_libs=yes
11325 dynamic_linker="$host_os dld.so"
11326 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 if test "X$HPUX_IA64_MODE" = X32; then
11331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11339 hardcode_into_libs=yes
11340 dynamic_linker="$host_os dld.sl"
11341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11350 dynamic_linker="$host_os dld.sl"
11351 shlibpath_var=SHLIB_PATH
11352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11358 postinstall_cmds='chmod 555 $lib'
11359 # or fails outright, so override atomically:
11360 install_override_mode=555
11364 version_type=linux # correct to gnu/linux during the next big refactor
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=no
11372 hardcode_into_libs=yes
11375 irix5* | irix6* | nonstopux*)
11377 nonstopux*) version_type=nonstopux ;;
11379 if test "$lt_cv_prog_gnu_ld" = yes; then
11380 version_type=linux # correct to gnu/linux during the next big refactor
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11390 irix5* | nonstopux*)
11391 libsuff= shlibsuff=
11394 case $LD in # libtool.m4 will add one of these switches to LD
11395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11396 libsuff= shlibsuff= libmagic=32-bit;;
11397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11398 libsuff=32 shlibsuff=N32 libmagic=N32;;
11399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11401 *) libsuff= shlibsuff= libmagic=never-match;;
11405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11406 shlibpath_overrides_runpath=no
11407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11409 hardcode_into_libs=yes
11412 # No shared lib support for Linux oldld, aout, or coff.
11413 linux*oldld* | linux*aout* | linux*coff*)
11418 version_type=none # Android doesn't support versioned libraries.
11421 library_names_spec='$libname$release$shared_ext'
11422 soname_spec='$libname$release$shared_ext'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 shlibpath_overrides_runpath=yes
11427 # This implies no fast_install, which is unacceptable.
11428 # Some rework will be needed to allow for fast_install
11429 # before this can be enabled.
11430 hardcode_into_libs=yes
11432 dynamic_linker='Android linker'
11433 # Don't embed -rpath directories since the linker doesn't support them.
11434 hardcode_libdir_flag_spec='-L$libdir'
11437 # This must be glibc/ELF.
11438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11439 version_type=linux # correct to gnu/linux during the next big refactor
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=no
11448 # Some binutils ld are patched to set DT_RUNPATH
11449 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11450 $as_echo_n "(cached) " >&6
11452 lt_cv_shlibpath_overrides_runpath=no
11453 save_LDFLAGS=$LDFLAGS
11454 save_libdir=$libdir
11455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11470 lt_cv_shlibpath_overrides_runpath=yes
11473 rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LDFLAGS=$save_LDFLAGS
11476 libdir=$save_libdir
11480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11482 # This implies no fast_install, which is unacceptable.
11483 # Some rework will be needed to allow for fast_install
11484 # before this can be enabled.
11485 hardcode_into_libs=yes
11487 # Append ld.so.conf contents to the search path
11488 if test -f /etc/ld.so.conf; then
11489 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' ' '`
11490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11493 # We used to test for /lib/ld.so.1 and disable shared libraries on
11494 # powerpc, because MkLinux only supported shared libraries with the
11495 # GNU dynamic linker. Since this was broken with cross compilers,
11496 # most powerpc-linux boxes support dynamic linking these days and
11497 # people can always --disable-shared, the test was removed, and we
11498 # assume the GNU/Linux dynamic linker is in use.
11499 dynamic_linker='GNU/Linux ld.so'
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=no
11510 hardcode_into_libs=yes
11511 dynamic_linker='NetBSD ld.elf_so'
11518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521 dynamic_linker='NetBSD (a.out) ld.so'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 dynamic_linker='NetBSD ld.elf_so'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11533 version_type=linux # correct to gnu/linux during the next big refactor
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=no
11547 hardcode_into_libs=yes
11548 dynamic_linker='ldqnx.so'
11553 sys_lib_dlsearch_path_spec="/usr/lib"
11555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11558 *) need_version=no ;;
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11565 openbsd2.[89] | openbsd2.[89].*)
11566 shlibpath_overrides_runpath=no
11569 shlibpath_overrides_runpath=yes
11573 shlibpath_overrides_runpath=yes
11578 libname_spec='$name'
11581 library_names_spec='$libname${shared_ext} $libname.a'
11582 dynamic_linker='OS/2 ld.exe'
11583 shlibpath_var=LIBPATH
11586 osf3* | osf4* | osf5*)
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11602 version_type=linux # correct to gnu/linux during the next big refactor
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=yes
11609 hardcode_into_libs=yes
11610 # ldd complains unless libraries are executable
11611 postinstall_cmds='chmod +x $lib'
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620 if test "$with_gnu_ld" = yes; then
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 case $host_vendor in
11633 shlibpath_overrides_runpath=no
11635 runpath_var=LD_RUN_PATH
11643 shlibpath_overrides_runpath=no
11644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11650 if test -d /usr/nec ;then
11651 version_type=linux # correct to gnu/linux during the next big refactor
11652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11653 soname_spec='$libname${shared_ext}.$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11659 version_type=freebsd-elf
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 if test "$with_gnu_ld" = yes; then
11668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11677 sys_lib_dlsearch_path_spec='/usr/lib'
11681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11682 version_type=linux # correct to gnu/linux during the next big refactor
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=no
11688 hardcode_into_libs=yes
11692 version_type=linux # correct to gnu/linux during the next big refactor
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703 $as_echo "$dynamic_linker" >&6; }
11704 test "$dynamic_linker" = no && can_build_shared=no
11706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11707 if test "$GCC" = yes; then
11708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11812 if test -n "$hardcode_libdir_flag_spec" ||
11813 test -n "$runpath_var" ||
11814 test "X$hardcode_automatic" = "Xyes" ; then
11816 # We can hardcode non-existent directories.
11817 if test "$hardcode_direct" != no &&
11818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11819 # have to relink, otherwise we might link with an installed library
11820 # when we should be linking with a yet-to-be-installed one
11821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11822 test "$hardcode_minus_L" != no; then
11823 # Linking always hardcodes the temporary library directory.
11824 hardcode_action=relink
11826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11827 hardcode_action=immediate
11830 # We cannot hardcode anything, or else we can only hardcode existing
11832 hardcode_action=unsupported
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11835 $as_echo "$hardcode_action" >&6; }
11837 if test "$hardcode_action" = relink ||
11838 test "$inherit_rpath" = yes; then
11839 # Fast installation is not supported
11840 enable_fast_install=no
11841 elif test "$shlibpath_overrides_runpath" = yes ||
11842 test "$enable_shared" = no; then
11843 # Fast installation is not necessary
11844 enable_fast_install=needless
11852 if test "x$enable_dlopen" != xyes; then
11853 enable_dlopen=unknown
11854 enable_dlopen_self=unknown
11855 enable_dlopen_self_static=unknown
11862 lt_cv_dlopen="load_add_on"
11864 lt_cv_dlopen_self=yes
11867 mingw* | pw32* | cegcc*)
11868 lt_cv_dlopen="LoadLibrary"
11873 lt_cv_dlopen="dlopen"
11878 # if libdl is installed we need to link against it
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11881 if ${ac_cv_lib_dl_dlopen+:} false; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS=$LIBS
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11904 if ac_fn_c_try_link "$LINENO"; then :
11905 ac_cv_lib_dl_dlopen=yes
11907 ac_cv_lib_dl_dlopen=no
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11919 lt_cv_dlopen="dyld"
11921 lt_cv_dlopen_self=yes
11928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11929 if test "x$ac_cv_func_shl_load" = xyes; then :
11930 lt_cv_dlopen="shl_load"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11934 if ${ac_cv_lib_dld_shl_load+:} false; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_check_lib_save_LIBS=$LIBS
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11952 return shl_load ();
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_dld_shl_load=yes
11960 ac_cv_lib_dld_shl_load=no
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11968 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11972 if test "x$ac_cv_func_dlopen" = xyes; then :
11973 lt_cv_dlopen="dlopen"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978 $as_echo_n "(cached) " >&6
11980 ac_check_lib_save_LIBS=$LIBS
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12003 ac_cv_lib_dl_dlopen=no
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12016 if ${ac_cv_lib_svld_dlopen+:} false; then :
12017 $as_echo_n "(cached) " >&6
12019 ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-lsvld $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_svld_dlopen=yes
12042 ac_cv_lib_svld_dlopen=no
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12050 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12055 if ${ac_cv_lib_dld_dld_link+:} false; then :
12056 $as_echo_n "(cached) " >&6
12058 ac_check_lib_save_LIBS=$LIBS
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12073 return dld_link ();
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_dld_dld_link=yes
12081 ac_cv_lib_dld_dld_link=no
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12089 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12111 if test "x$lt_cv_dlopen" != xno; then
12117 case $lt_cv_dlopen in
12119 save_CPPFLAGS="$CPPFLAGS"
12120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12122 save_LDFLAGS="$LDFLAGS"
12123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12126 LIBS="$lt_cv_dlopen_libs $LIBS"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12130 if ${lt_cv_dlopen_self+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self=cross
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<_LT_EOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12149 # define LT_DLGLOBAL RTLD_GLOBAL
12152 # define LT_DLGLOBAL DL_GLOBAL
12154 # define LT_DLGLOBAL 0
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12165 # define LT_DLLAZY_OR_NOW DL_LAZY
12168 # define LT_DLLAZY_OR_NOW RTLD_NOW
12171 # define LT_DLLAZY_OR_NOW DL_NOW
12173 # define LT_DLLAZY_OR_NOW 0
12180 /* When -fvisbility=hidden is used, assume the code has been annotated
12181 correspondingly for the symbols needed. */
12182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12183 int fnord () __attribute__((visibility("default")));
12186 int fnord () { return 42; }
12189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190 int status = $lt_dlunknown;
12194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12198 else puts (dlerror ());
12200 /* dlclose (self); */
12208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12209 (eval $ac_link) 2>&5
12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12213 (./conftest; exit; ) >&5 2>/dev/null
12215 case x$lt_status in
12216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12221 # compilation failed
12222 lt_cv_dlopen_self=no
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12230 $as_echo "$lt_cv_dlopen_self" >&6; }
12232 if test "x$lt_cv_dlopen_self" = xyes; then
12233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12236 if ${lt_cv_dlopen_self_static+:} false; then :
12237 $as_echo_n "(cached) " >&6
12239 if test "$cross_compiling" = yes; then :
12240 lt_cv_dlopen_self_static=cross
12242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243 lt_status=$lt_dlunknown
12244 cat > conftest.$ac_ext <<_LT_EOF
12245 #line $LINENO "configure"
12246 #include "confdefs.h"
12255 # define LT_DLGLOBAL RTLD_GLOBAL
12258 # define LT_DLGLOBAL DL_GLOBAL
12260 # define LT_DLGLOBAL 0
12264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266 #ifndef LT_DLLAZY_OR_NOW
12268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12271 # define LT_DLLAZY_OR_NOW DL_LAZY
12274 # define LT_DLLAZY_OR_NOW RTLD_NOW
12277 # define LT_DLLAZY_OR_NOW DL_NOW
12279 # define LT_DLLAZY_OR_NOW 0
12286 /* When -fvisbility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289 int fnord () __attribute__((visibility("default")));
12292 int fnord () { return 42; }
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12306 /* dlclose (self); */
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12319 (./conftest; exit; ) >&5 2>/dev/null
12321 case x$lt_status in
12322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12327 # compilation failed
12328 lt_cv_dlopen_self_static=no
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12339 CPPFLAGS="$save_CPPFLAGS"
12340 LDFLAGS="$save_LDFLAGS"
12345 case $lt_cv_dlopen_self in
12346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12347 *) enable_dlopen_self=unknown ;;
12350 case $lt_cv_dlopen_self_static in
12351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12352 *) enable_dlopen_self_static=unknown ;;
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12382 # FIXME - insert some real tests, host_os isn't really good enough
12385 if test -n "$STRIP" ; then
12386 striplib="$STRIP -x"
12387 old_striplib="$STRIP -S"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12413 # Report which library types will actually be built
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12417 $as_echo "$can_build_shared" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12420 $as_echo_n "checking whether to build shared libraries... " >&6; }
12421 test "$can_build_shared" = "no" && enable_shared=no
12423 # On AIX, shared libraries and static libraries use the same namespace, and
12424 # are all built from PIC.
12427 test "$enable_shared" = yes && enable_static=no
12428 if test -n "$RANLIB"; then
12429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12430 postinstall_cmds='$RANLIB $lib'
12435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12436 test "$enable_shared" = yes && enable_static=no
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12441 $as_echo "$enable_shared" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12444 $as_echo_n "checking whether to build static libraries... " >&6; }
12445 # Make sure either enable_shared or enable_static is yes.
12446 test "$enable_shared" = yes || enable_static=yes
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12448 $as_echo "$enable_static" >&6; }
12455 ac_cpp='$CPP $CPPFLAGS'
12456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12476 ac_config_commands="$ac_config_commands libtool"
12481 # Only expand once:
12484 if test -n "$ac_tool_prefix"; then
12485 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12486 set dummy ${ac_tool_prefix}windres; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_RC+:} false; then :
12490 $as_echo_n "(cached) " >&6
12492 if test -n "$RC"; then
12493 ac_cv_prog_RC="$RC" # Let the user override the test.
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_RC="${ac_tool_prefix}windres"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 if test -n "$RC"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12515 $as_echo "$RC" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12523 if test -z "$ac_cv_prog_RC"; then
12525 # Extract the first word of "windres", so it can be a program name with args.
12526 set dummy windres; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12530 $as_echo_n "(cached) " >&6
12532 if test -n "$ac_ct_RC"; then
12533 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542 ac_cv_prog_ac_ct_RC="windres"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12553 if test -n "$ac_ct_RC"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12555 $as_echo "$ac_ct_RC" >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12561 if test "x$ac_ct_RC" = x; then
12564 case $cross_compiling:$ac_tool_warned in
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12568 ac_tool_warned=yes ;;
12573 RC="$ac_cv_prog_RC"
12579 # Source file extension for RC test sources.
12582 # Object file extension for compiled RC test sources.
12586 # Code to be used in simple compile tests
12587 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12589 # Code to be used in simple link tests
12590 lt_simple_link_test_code="$lt_simple_compile_test_code"
12592 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12599 # If no C compiler was specified, use CC.
12602 # If no C compiler flags were specified, use CFLAGS.
12603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12605 # Allow CC to be a program name with arguments.
12609 # save warnings/boilerplate of simple test code
12610 ac_outfile=conftest.$ac_objext
12611 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12612 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12613 _lt_compiler_boilerplate=`cat conftest.err`
12616 ac_outfile=conftest.$ac_objext
12617 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12618 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12619 _lt_linker_boilerplate=`cat conftest.err`
12623 # Allow CC to be a program name with arguments.
12625 lt_save_CFLAGS=$CFLAGS
12632 for cc_temp in $compiler""; do
12634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12640 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12642 lt_cv_prog_compiler_c_o_RC=yes
12644 if test -n "$compiler"; then
12653 ac_cpp='$CPP $CPPFLAGS'
12654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12659 CFLAGS=$lt_save_CFLAGS
12663 # We need to compile and run a program on the build machine.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
12665 $as_echo_n "checking for cc for build... " >&6; }
12666 if test "$cross_compiling" = "yes"; then
12667 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
12669 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12672 $as_echo "$CC_FOR_BUILD" >&6; }
12679 # Note, that autogen.sh greps for the next line.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12683 $as_echo_n "checking whether NLS is requested... " >&6; }
12684 # Check whether --enable-nls was given.
12685 if test "${enable_nls+set}" = set; then :
12686 enableval=$enable_nls; USE_NLS=$enableval
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12692 $as_echo "$USE_NLS" >&6; }
12697 GETTEXT_MACRO_VERSION=0.17
12702 # Prepare PATH_SEPARATOR.
12703 # The user is always right.
12704 if test "${PATH_SEPARATOR+set}" != set; then
12705 echo "#! /bin/sh" >conf$$.sh
12706 echo "exit 0" >>conf$$.sh
12708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12716 # Find out how to test for executable files. Don't use a zero-byte file,
12717 # as systems may use methods other than mode bits to determine executability.
12718 cat >conf$$.file <<_ASEOF
12722 chmod +x conf$$.file
12723 if test -x conf$$.file >/dev/null 2>&1; then
12724 ac_executable_p="test -x"
12726 ac_executable_p="test -f"
12730 # Extract the first word of "msgfmt", so it can be a program name with args.
12731 set dummy msgfmt; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if ${ac_cv_path_MSGFMT+:} false; then :
12735 $as_echo_n "(cached) " >&6
12739 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12742 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12743 for ac_dir in $PATH; do
12745 test -z "$ac_dir" && ac_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12748 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12749 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12750 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12751 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12758 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12762 MSGFMT="$ac_cv_path_MSGFMT"
12763 if test "$MSGFMT" != ":"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12765 $as_echo "$MSGFMT" >&6; }
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12771 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12772 set dummy gmsgfmt; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_path_GMSGFMT+:} false; then :
12776 $as_echo_n "(cached) " >&6
12780 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12802 GMSGFMT=$ac_cv_path_GMSGFMT
12803 if test -n "$GMSGFMT"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12805 $as_echo "$GMSGFMT" >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12813 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12814 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12815 *) MSGFMT_015=$MSGFMT ;;
12818 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12819 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12820 *) GMSGFMT_015=$GMSGFMT ;;
12825 # Prepare PATH_SEPARATOR.
12826 # The user is always right.
12827 if test "${PATH_SEPARATOR+set}" != set; then
12828 echo "#! /bin/sh" >conf$$.sh
12829 echo "exit 0" >>conf$$.sh
12831 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12839 # Find out how to test for executable files. Don't use a zero-byte file,
12840 # as systems may use methods other than mode bits to determine executability.
12841 cat >conf$$.file <<_ASEOF
12845 chmod +x conf$$.file
12846 if test -x conf$$.file >/dev/null 2>&1; then
12847 ac_executable_p="test -x"
12849 ac_executable_p="test -f"
12853 # Extract the first word of "xgettext", so it can be a program name with args.
12854 set dummy xgettext; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if ${ac_cv_path_XGETTEXT+:} false; then :
12858 $as_echo_n "(cached) " >&6
12860 case "$XGETTEXT" in
12862 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12865 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12866 for ac_dir in $PATH; do
12868 test -z "$ac_dir" && ac_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12871 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12872 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12873 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12874 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12881 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12885 XGETTEXT="$ac_cv_path_XGETTEXT"
12886 if test "$XGETTEXT" != ":"; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12888 $as_echo "$XGETTEXT" >&6; }
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12896 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12897 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12898 *) XGETTEXT_015=$XGETTEXT ;;
12903 # Prepare PATH_SEPARATOR.
12904 # The user is always right.
12905 if test "${PATH_SEPARATOR+set}" != set; then
12906 echo "#! /bin/sh" >conf$$.sh
12907 echo "exit 0" >>conf$$.sh
12909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12917 # Find out how to test for executable files. Don't use a zero-byte file,
12918 # as systems may use methods other than mode bits to determine executability.
12919 cat >conf$$.file <<_ASEOF
12923 chmod +x conf$$.file
12924 if test -x conf$$.file >/dev/null 2>&1; then
12925 ac_executable_p="test -x"
12927 ac_executable_p="test -f"
12931 # Extract the first word of "msgmerge", so it can be a program name with args.
12932 set dummy msgmerge; ac_word=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_MSGMERGE+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 case "$MSGMERGE" in
12940 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12944 for ac_dir in $PATH; do
12946 test -z "$ac_dir" && ac_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12949 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12950 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12951 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12958 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12962 MSGMERGE="$ac_cv_path_MSGMERGE"
12963 if test "$MSGMERGE" != ":"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12965 $as_echo "$MSGMERGE" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12972 test -n "$localedir" || localedir='${datadir}/locale'
12975 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12978 ac_config_commands="$ac_config_commands po-directories"
12982 if test "X$prefix" = "XNONE"; then
12983 acl_final_prefix="$ac_default_prefix"
12985 acl_final_prefix="$prefix"
12987 if test "X$exec_prefix" = "XNONE"; then
12988 acl_final_exec_prefix='${prefix}'
12990 acl_final_exec_prefix="$exec_prefix"
12992 acl_save_prefix="$prefix"
12993 prefix="$acl_final_prefix"
12994 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12995 prefix="$acl_save_prefix"
12998 # Check whether --with-gnu-ld was given.
12999 if test "${with_gnu_ld+set}" = set; then :
13000 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13005 # Prepare PATH_SEPARATOR.
13006 # The user is always right.
13007 if test "${PATH_SEPARATOR+set}" != set; then
13008 echo "#! /bin/sh" >conf$$.sh
13009 echo "exit 0" >>conf$$.sh
13011 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13019 if test "$GCC" = yes; then
13020 # Check if gcc -print-prog-name=ld gives a path.
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13022 $as_echo_n "checking for ld used by GCC... " >&6; }
13025 # gcc leaves a trailing carriage return which upsets mingw
13026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13031 # Accept absolute paths.
13032 [\\/]* | [A-Za-z]:[\\/]*)
13033 re_direlt='/[^/][^/]*/\.\./'
13034 # Canonicalize the path of ld
13035 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13036 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13037 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13039 test -z "$LD" && LD="$ac_prog"
13042 # If it fails, then pretend we aren't using GCC.
13046 # If it is relative, then search for the first ld in PATH.
13047 with_gnu_ld=unknown
13050 elif test "$with_gnu_ld" = yes; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13052 $as_echo_n "checking for GNU ld... " >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13055 $as_echo_n "checking for non-GNU ld... " >&6; }
13057 if ${acl_cv_path_LD+:} false; then :
13058 $as_echo_n "(cached) " >&6
13060 if test -z "$LD"; then
13061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13062 for ac_dir in $PATH; do
13063 test -z "$ac_dir" && ac_dir=.
13064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13065 acl_cv_path_LD="$ac_dir/$ac_prog"
13066 # Check to see if the program is GNU ld. I'd rather use --version,
13067 # but apparently some GNU ld's only accept -v.
13068 # Break only if it was the GNU/non-GNU ld that we prefer.
13069 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13070 *GNU* | *'with BFD'*)
13071 test "$with_gnu_ld" != no && break ;;
13073 test "$with_gnu_ld" != yes && break ;;
13079 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13083 LD="$acl_cv_path_LD"
13084 if test -n "$LD"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13086 $as_echo "$LD" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13091 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13093 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13094 if ${acl_cv_prog_gnu_ld+:} false; then :
13095 $as_echo_n "(cached) " >&6
13097 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13098 case `$LD -v 2>&1 </dev/null` in
13099 *GNU* | *'with BFD'*)
13100 acl_cv_prog_gnu_ld=yes ;;
13102 acl_cv_prog_gnu_ld=no ;;
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13106 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13107 with_gnu_ld=$acl_cv_prog_gnu_ld
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13113 $as_echo_n "checking for shared library run path origin... " >&6; }
13114 if ${acl_cv_rpath+:} false; then :
13115 $as_echo_n "(cached) " >&6
13118 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13119 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13121 rm -f ./conftest.sh
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13126 $as_echo "$acl_cv_rpath" >&6; }
13128 acl_libext="$acl_cv_libext"
13129 acl_shlibext="$acl_cv_shlibext"
13130 acl_libname_spec="$acl_cv_libname_spec"
13131 acl_library_names_spec="$acl_cv_library_names_spec"
13132 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13133 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13134 acl_hardcode_direct="$acl_cv_hardcode_direct"
13135 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13136 # Check whether --enable-rpath was given.
13137 if test "${enable_rpath+set}" = set; then :
13138 enableval=$enable_rpath; :
13146 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13147 if test -n "$searchpath"; then
13148 acl_save_IFS="${IFS= }"; IFS=":"
13149 for searchdir in $searchpath; do
13150 if test -d "$searchdir"; then
13151 case "$searchdir" in
13152 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13153 *) searchdir=`cd "$searchdir" && pwd`
13154 case "$searchdir" in
13155 */lib64 ) acl_libdirstem=lib64 ;;
13160 IFS="$acl_save_IFS"
13173 acl_save_prefix="$prefix"
13174 prefix="$acl_final_prefix"
13175 acl_save_exec_prefix="$exec_prefix"
13176 exec_prefix="$acl_final_exec_prefix"
13178 eval additional_includedir=\"$includedir\"
13179 eval additional_libdir=\"$libdir\"
13181 exec_prefix="$acl_save_exec_prefix"
13182 prefix="$acl_save_prefix"
13185 # Check whether --with-libiconv-prefix was given.
13186 if test "${with_libiconv_prefix+set}" = set; then :
13187 withval=$with_libiconv_prefix;
13188 if test "X$withval" = "Xno"; then
13191 if test "X$withval" = "X"; then
13193 acl_save_prefix="$prefix"
13194 prefix="$acl_final_prefix"
13195 acl_save_exec_prefix="$exec_prefix"
13196 exec_prefix="$acl_final_exec_prefix"
13198 eval additional_includedir=\"$includedir\"
13199 eval additional_libdir=\"$libdir\"
13201 exec_prefix="$acl_save_exec_prefix"
13202 prefix="$acl_save_prefix"
13205 additional_includedir="$withval/include"
13206 additional_libdir="$withval/$acl_libdirstem"
13218 names_already_handled=
13219 names_next_round='iconv '
13220 while test -n "$names_next_round"; do
13221 names_this_round="$names_next_round"
13223 for name in $names_this_round; do
13225 for n in $names_already_handled; do
13226 if test "$n" = "$name"; then
13227 already_handled=yes
13231 if test -z "$already_handled"; then
13232 names_already_handled="$names_already_handled $name"
13233 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13234 eval value=\"\$HAVE_LIB$uppername\"
13235 if test -n "$value"; then
13236 if test "$value" = yes; then
13237 eval value=\"\$LIB$uppername\"
13238 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13239 eval value=\"\$LTLIB$uppername\"
13240 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13249 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13250 if test -n "$acl_shlibext"; then
13251 shrext=".$acl_shlibext" # typically: shrext=.so
13255 if test $use_additional = yes; then
13256 dir="$additional_libdir"
13257 if test -n "$acl_shlibext"; then
13258 if test -f "$dir/$libname$shrext"; then
13260 found_so="$dir/$libname$shrext"
13262 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13263 ver=`(cd "$dir" && \
13264 for f in "$libname$shrext".*; do echo "$f"; done \
13265 | sed -e "s,^$libname$shrext\\\\.,," \
13266 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13267 | sed 1q ) 2>/dev/null`
13268 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13270 found_so="$dir/$libname$shrext.$ver"
13273 eval library_names=\"$acl_library_names_spec\"
13274 for f in $library_names; do
13275 if test -f "$dir/$f"; then
13284 if test "X$found_dir" = "X"; then
13285 if test -f "$dir/$libname.$acl_libext"; then
13287 found_a="$dir/$libname.$acl_libext"
13290 if test "X$found_dir" != "X"; then
13291 if test -f "$dir/$libname.la"; then
13292 found_la="$dir/$libname.la"
13296 if test "X$found_dir" = "X"; then
13297 for x in $LDFLAGS $LTLIBICONV; do
13299 acl_save_prefix="$prefix"
13300 prefix="$acl_final_prefix"
13301 acl_save_exec_prefix="$exec_prefix"
13302 exec_prefix="$acl_final_exec_prefix"
13304 exec_prefix="$acl_save_exec_prefix"
13305 prefix="$acl_save_prefix"
13309 dir=`echo "X$x" | sed -e 's/^X-L//'`
13310 if test -n "$acl_shlibext"; then
13311 if test -f "$dir/$libname$shrext"; then
13313 found_so="$dir/$libname$shrext"
13315 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13316 ver=`(cd "$dir" && \
13317 for f in "$libname$shrext".*; do echo "$f"; done \
13318 | sed -e "s,^$libname$shrext\\\\.,," \
13319 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13320 | sed 1q ) 2>/dev/null`
13321 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13323 found_so="$dir/$libname$shrext.$ver"
13326 eval library_names=\"$acl_library_names_spec\"
13327 for f in $library_names; do
13328 if test -f "$dir/$f"; then
13337 if test "X$found_dir" = "X"; then
13338 if test -f "$dir/$libname.$acl_libext"; then
13340 found_a="$dir/$libname.$acl_libext"
13343 if test "X$found_dir" != "X"; then
13344 if test -f "$dir/$libname.la"; then
13345 found_la="$dir/$libname.la"
13350 if test "X$found_dir" != "X"; then
13355 if test "X$found_dir" != "X"; then
13356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13357 if test "X$found_so" != "X"; then
13358 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13359 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13362 for x in $ltrpathdirs; do
13363 if test "X$x" = "X$found_dir"; then
13368 if test -z "$haveit"; then
13369 ltrpathdirs="$ltrpathdirs $found_dir"
13371 if test "$acl_hardcode_direct" = yes; then
13372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13374 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13375 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13377 for x in $rpathdirs; do
13378 if test "X$x" = "X$found_dir"; then
13383 if test -z "$haveit"; then
13384 rpathdirs="$rpathdirs $found_dir"
13388 for x in $LDFLAGS $LIBICONV; do
13390 acl_save_prefix="$prefix"
13391 prefix="$acl_final_prefix"
13392 acl_save_exec_prefix="$exec_prefix"
13393 exec_prefix="$acl_final_exec_prefix"
13395 exec_prefix="$acl_save_exec_prefix"
13396 prefix="$acl_save_prefix"
13398 if test "X$x" = "X-L$found_dir"; then
13403 if test -z "$haveit"; then
13404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13406 if test "$acl_hardcode_minus_L" != no; then
13407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13409 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13415 if test "X$found_a" != "X"; then
13416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13421 additional_includedir=
13422 case "$found_dir" in
13423 */$acl_libdirstem | */$acl_libdirstem/)
13424 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13425 LIBICONV_PREFIX="$basedir"
13426 additional_includedir="$basedir/include"
13429 if test "X$additional_includedir" != "X"; then
13430 if test "X$additional_includedir" != "X/usr/include"; then
13432 if test "X$additional_includedir" = "X/usr/local/include"; then
13433 if test -n "$GCC"; then
13435 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13439 if test -z "$haveit"; then
13440 for x in $CPPFLAGS $INCICONV; do
13442 acl_save_prefix="$prefix"
13443 prefix="$acl_final_prefix"
13444 acl_save_exec_prefix="$exec_prefix"
13445 exec_prefix="$acl_final_exec_prefix"
13447 exec_prefix="$acl_save_exec_prefix"
13448 prefix="$acl_save_prefix"
13450 if test "X$x" = "X-I$additional_includedir"; then
13455 if test -z "$haveit"; then
13456 if test -d "$additional_includedir"; then
13457 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13463 if test -n "$found_la"; then
13464 save_libdir="$libdir"
13465 case "$found_la" in
13466 */* | *\\*) . "$found_la" ;;
13467 *) . "./$found_la" ;;
13469 libdir="$save_libdir"
13470 for dep in $dependency_libs; do
13473 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13474 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13476 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13477 if test -n "$GCC"; then
13479 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13483 if test -z "$haveit"; then
13485 for x in $LDFLAGS $LIBICONV; do
13487 acl_save_prefix="$prefix"
13488 prefix="$acl_final_prefix"
13489 acl_save_exec_prefix="$exec_prefix"
13490 exec_prefix="$acl_final_exec_prefix"
13492 exec_prefix="$acl_save_exec_prefix"
13493 prefix="$acl_save_prefix"
13495 if test "X$x" = "X-L$additional_libdir"; then
13500 if test -z "$haveit"; then
13501 if test -d "$additional_libdir"; then
13502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13506 for x in $LDFLAGS $LTLIBICONV; do
13508 acl_save_prefix="$prefix"
13509 prefix="$acl_final_prefix"
13510 acl_save_exec_prefix="$exec_prefix"
13511 exec_prefix="$acl_final_exec_prefix"
13513 exec_prefix="$acl_save_exec_prefix"
13514 prefix="$acl_save_prefix"
13516 if test "X$x" = "X-L$additional_libdir"; then
13521 if test -z "$haveit"; then
13522 if test -d "$additional_libdir"; then
13523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13530 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13531 if test "$enable_rpath" != no; then
13533 for x in $rpathdirs; do
13534 if test "X$x" = "X$dir"; then
13539 if test -z "$haveit"; then
13540 rpathdirs="$rpathdirs $dir"
13543 for x in $ltrpathdirs; do
13544 if test "X$x" = "X$dir"; then
13549 if test -z "$haveit"; then
13550 ltrpathdirs="$ltrpathdirs $dir"
13555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13558 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13561 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13562 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13568 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13575 if test "X$rpathdirs" != "X"; then
13576 if test -n "$acl_hardcode_libdir_separator"; then
13578 for found_dir in $rpathdirs; do
13579 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13581 acl_save_libdir="$libdir"
13583 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13584 libdir="$acl_save_libdir"
13585 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13587 for found_dir in $rpathdirs; do
13588 acl_save_libdir="$libdir"
13589 libdir="$found_dir"
13590 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13591 libdir="$acl_save_libdir"
13592 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13596 if test "X$ltrpathdirs" != "X"; then
13597 for found_dir in $ltrpathdirs; do
13598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13627 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13628 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13629 $as_echo_n "(cached) " >&6
13631 gt_save_LIBS="$LIBS"
13632 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <CoreFoundation/CFPreferences.h>
13639 CFPreferencesCopyAppValue(NULL, NULL)
13644 if ac_fn_c_try_link "$LINENO"; then :
13645 gt_cv_func_CFPreferencesCopyAppValue=yes
13647 gt_cv_func_CFPreferencesCopyAppValue=no
13649 rm -f core conftest.err conftest.$ac_objext \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS="$gt_save_LIBS"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13654 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13655 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13657 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13661 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13662 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13663 $as_echo_n "(cached) " >&6
13665 gt_save_LIBS="$LIBS"
13666 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 #include <CoreFoundation/CFLocale.h>
13673 CFLocaleCopyCurrent();
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 gt_cv_func_CFLocaleCopyCurrent=yes
13681 gt_cv_func_CFLocaleCopyCurrent=no
13683 rm -f core conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13685 LIBS="$gt_save_LIBS"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13688 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13689 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13691 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13695 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13696 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13708 case " $gt_needs " in
13709 *" need-formatstring-macros "*) gt_api_version=3 ;;
13710 *" need-ngettext "*) gt_api_version=2 ;;
13711 *) gt_api_version=1 ;;
13713 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13714 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13716 if test "$USE_NLS" = "yes"; then
13717 gt_use_preinstalled_gnugettext=no
13720 if test $gt_api_version -ge 3; then
13721 gt_revision_test_code='
13722 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13723 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13725 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13728 gt_revision_test_code=
13730 if test $gt_api_version -ge 2; then
13731 gt_expression_test_code=' + * ngettext ("", "", 0)'
13733 gt_expression_test_code=
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13737 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13738 if eval \${$gt_func_gnugettext_libc+:} false; then :
13739 $as_echo_n "(cached) " >&6
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 #include <libintl.h>
13744 $gt_revision_test_code
13745 extern int _nl_msg_cat_cntr;
13746 extern int *_nl_domain_bindings;
13750 bindtextdomain ("", "");
13751 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 eval "$gt_func_gnugettext_libc=yes"
13759 eval "$gt_func_gnugettext_libc=no"
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13764 eval ac_res=\$$gt_func_gnugettext_libc
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13766 $as_echo "$ac_res" >&6; }
13768 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13774 am_save_CPPFLAGS="$CPPFLAGS"
13776 for element in $INCICONV; do
13778 for x in $CPPFLAGS; do
13780 acl_save_prefix="$prefix"
13781 prefix="$acl_final_prefix"
13782 acl_save_exec_prefix="$exec_prefix"
13783 exec_prefix="$acl_final_exec_prefix"
13785 exec_prefix="$acl_save_exec_prefix"
13786 prefix="$acl_save_prefix"
13788 if test "X$x" = "X$element"; then
13793 if test -z "$haveit"; then
13794 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13800 $as_echo_n "checking for iconv... " >&6; }
13801 if ${am_cv_func_iconv+:} false; then :
13802 $as_echo_n "(cached) " >&6
13805 am_cv_func_iconv="no, consider installing GNU libiconv"
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <stdlib.h>
13814 iconv_t cd = iconv_open("","");
13815 iconv(cd,NULL,NULL,NULL,NULL);
13821 if ac_fn_c_try_link "$LINENO"; then :
13822 am_cv_func_iconv=yes
13824 rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 if test "$am_cv_func_iconv" != yes; then
13827 am_save_LIBS="$LIBS"
13828 LIBS="$LIBS $LIBICONV"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 #include <stdlib.h>
13836 iconv_t cd = iconv_open("","");
13837 iconv(cd,NULL,NULL,NULL,NULL);
13843 if ac_fn_c_try_link "$LINENO"; then :
13844 am_cv_lib_iconv=yes
13845 am_cv_func_iconv=yes
13847 rm -f core conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext conftest.$ac_ext
13849 LIBS="$am_save_LIBS"
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13854 $as_echo "$am_cv_func_iconv" >&6; }
13855 if test "$am_cv_func_iconv" = yes; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13857 $as_echo_n "checking for working iconv... " >&6; }
13858 if ${am_cv_func_iconv_works+:} false; then :
13859 $as_echo_n "(cached) " >&6
13862 am_save_LIBS="$LIBS"
13863 if test $am_cv_lib_iconv = yes; then
13864 LIBS="$LIBS $LIBICONV"
13866 if test "$cross_compiling" = yes; then :
13868 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13869 *) am_cv_func_iconv_works="guessing yes" ;;
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13876 #include <string.h>
13879 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13882 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13883 if (cd_utf8_to_88591 != (iconv_t)(-1))
13885 static const char input[] = "\342\202\254"; /* EURO SIGN */
13887 const char *inptr = input;
13888 size_t inbytesleft = strlen (input);
13889 char *outptr = buf;
13890 size_t outbytesleft = sizeof (buf);
13891 size_t res = iconv (cd_utf8_to_88591,
13892 (char **) &inptr, &inbytesleft,
13893 &outptr, &outbytesleft);
13898 #if 0 /* This bug could be worked around by the caller. */
13899 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13901 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13902 if (cd_88591_to_utf8 != (iconv_t)(-1))
13904 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13906 const char *inptr = input;
13907 size_t inbytesleft = strlen (input);
13908 char *outptr = buf;
13909 size_t outbytesleft = sizeof (buf);
13910 size_t res = iconv (cd_88591_to_utf8,
13911 (char **) &inptr, &inbytesleft,
13912 &outptr, &outbytesleft);
13918 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13920 if (/* Try standardized names. */
13921 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13922 /* Try IRIX, OSF/1 names. */
13923 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13924 /* Try AIX names. */
13925 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13926 /* Try HP-UX names. */
13927 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13932 if ac_fn_c_try_run "$LINENO"; then :
13933 am_cv_func_iconv_works=yes
13935 am_cv_func_iconv_works=no
13937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13938 conftest.$ac_objext conftest.beam conftest.$ac_ext
13941 LIBS="$am_save_LIBS"
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13945 $as_echo "$am_cv_func_iconv_works" >&6; }
13946 case "$am_cv_func_iconv_works" in
13947 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13948 *) am_func_iconv=yes ;;
13951 am_func_iconv=no am_cv_lib_iconv=no
13953 if test "$am_func_iconv" = yes; then
13955 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13958 if test "$am_cv_lib_iconv" = yes; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13960 $as_echo_n "checking how to link with libiconv... " >&6; }
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13962 $as_echo "$LIBICONV" >&6; }
13964 CPPFLAGS="$am_save_CPPFLAGS"
13978 acl_save_prefix="$prefix"
13979 prefix="$acl_final_prefix"
13980 acl_save_exec_prefix="$exec_prefix"
13981 exec_prefix="$acl_final_exec_prefix"
13983 eval additional_includedir=\"$includedir\"
13984 eval additional_libdir=\"$libdir\"
13986 exec_prefix="$acl_save_exec_prefix"
13987 prefix="$acl_save_prefix"
13990 # Check whether --with-libintl-prefix was given.
13991 if test "${with_libintl_prefix+set}" = set; then :
13992 withval=$with_libintl_prefix;
13993 if test "X$withval" = "Xno"; then
13996 if test "X$withval" = "X"; then
13998 acl_save_prefix="$prefix"
13999 prefix="$acl_final_prefix"
14000 acl_save_exec_prefix="$exec_prefix"
14001 exec_prefix="$acl_final_exec_prefix"
14003 eval additional_includedir=\"$includedir\"
14004 eval additional_libdir=\"$libdir\"
14006 exec_prefix="$acl_save_exec_prefix"
14007 prefix="$acl_save_prefix"
14010 additional_includedir="$withval/include"
14011 additional_libdir="$withval/$acl_libdirstem"
14023 names_already_handled=
14024 names_next_round='intl '
14025 while test -n "$names_next_round"; do
14026 names_this_round="$names_next_round"
14028 for name in $names_this_round; do
14030 for n in $names_already_handled; do
14031 if test "$n" = "$name"; then
14032 already_handled=yes
14036 if test -z "$already_handled"; then
14037 names_already_handled="$names_already_handled $name"
14038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14039 eval value=\"\$HAVE_LIB$uppername\"
14040 if test -n "$value"; then
14041 if test "$value" = yes; then
14042 eval value=\"\$LIB$uppername\"
14043 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14044 eval value=\"\$LTLIB$uppername\"
14045 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14054 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14055 if test -n "$acl_shlibext"; then
14056 shrext=".$acl_shlibext" # typically: shrext=.so
14060 if test $use_additional = yes; then
14061 dir="$additional_libdir"
14062 if test -n "$acl_shlibext"; then
14063 if test -f "$dir/$libname$shrext"; then
14065 found_so="$dir/$libname$shrext"
14067 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14068 ver=`(cd "$dir" && \
14069 for f in "$libname$shrext".*; do echo "$f"; done \
14070 | sed -e "s,^$libname$shrext\\\\.,," \
14071 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14072 | sed 1q ) 2>/dev/null`
14073 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14075 found_so="$dir/$libname$shrext.$ver"
14078 eval library_names=\"$acl_library_names_spec\"
14079 for f in $library_names; do
14080 if test -f "$dir/$f"; then
14089 if test "X$found_dir" = "X"; then
14090 if test -f "$dir/$libname.$acl_libext"; then
14092 found_a="$dir/$libname.$acl_libext"
14095 if test "X$found_dir" != "X"; then
14096 if test -f "$dir/$libname.la"; then
14097 found_la="$dir/$libname.la"
14101 if test "X$found_dir" = "X"; then
14102 for x in $LDFLAGS $LTLIBINTL; do
14104 acl_save_prefix="$prefix"
14105 prefix="$acl_final_prefix"
14106 acl_save_exec_prefix="$exec_prefix"
14107 exec_prefix="$acl_final_exec_prefix"
14109 exec_prefix="$acl_save_exec_prefix"
14110 prefix="$acl_save_prefix"
14114 dir=`echo "X$x" | sed -e 's/^X-L//'`
14115 if test -n "$acl_shlibext"; then
14116 if test -f "$dir/$libname$shrext"; then
14118 found_so="$dir/$libname$shrext"
14120 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14121 ver=`(cd "$dir" && \
14122 for f in "$libname$shrext".*; do echo "$f"; done \
14123 | sed -e "s,^$libname$shrext\\\\.,," \
14124 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14125 | sed 1q ) 2>/dev/null`
14126 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14128 found_so="$dir/$libname$shrext.$ver"
14131 eval library_names=\"$acl_library_names_spec\"
14132 for f in $library_names; do
14133 if test -f "$dir/$f"; then
14142 if test "X$found_dir" = "X"; then
14143 if test -f "$dir/$libname.$acl_libext"; then
14145 found_a="$dir/$libname.$acl_libext"
14148 if test "X$found_dir" != "X"; then
14149 if test -f "$dir/$libname.la"; then
14150 found_la="$dir/$libname.la"
14155 if test "X$found_dir" != "X"; then
14160 if test "X$found_dir" != "X"; then
14161 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14162 if test "X$found_so" != "X"; then
14163 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14164 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14167 for x in $ltrpathdirs; do
14168 if test "X$x" = "X$found_dir"; then
14173 if test -z "$haveit"; then
14174 ltrpathdirs="$ltrpathdirs $found_dir"
14176 if test "$acl_hardcode_direct" = yes; then
14177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14179 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14180 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14182 for x in $rpathdirs; do
14183 if test "X$x" = "X$found_dir"; then
14188 if test -z "$haveit"; then
14189 rpathdirs="$rpathdirs $found_dir"
14193 for x in $LDFLAGS $LIBINTL; do
14195 acl_save_prefix="$prefix"
14196 prefix="$acl_final_prefix"
14197 acl_save_exec_prefix="$exec_prefix"
14198 exec_prefix="$acl_final_exec_prefix"
14200 exec_prefix="$acl_save_exec_prefix"
14201 prefix="$acl_save_prefix"
14203 if test "X$x" = "X-L$found_dir"; then
14208 if test -z "$haveit"; then
14209 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14211 if test "$acl_hardcode_minus_L" != no; then
14212 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14214 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14220 if test "X$found_a" != "X"; then
14221 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14223 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14226 additional_includedir=
14227 case "$found_dir" in
14228 */$acl_libdirstem | */$acl_libdirstem/)
14229 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14230 LIBINTL_PREFIX="$basedir"
14231 additional_includedir="$basedir/include"
14234 if test "X$additional_includedir" != "X"; then
14235 if test "X$additional_includedir" != "X/usr/include"; then
14237 if test "X$additional_includedir" = "X/usr/local/include"; then
14238 if test -n "$GCC"; then
14240 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14244 if test -z "$haveit"; then
14245 for x in $CPPFLAGS $INCINTL; do
14247 acl_save_prefix="$prefix"
14248 prefix="$acl_final_prefix"
14249 acl_save_exec_prefix="$exec_prefix"
14250 exec_prefix="$acl_final_exec_prefix"
14252 exec_prefix="$acl_save_exec_prefix"
14253 prefix="$acl_save_prefix"
14255 if test "X$x" = "X-I$additional_includedir"; then
14260 if test -z "$haveit"; then
14261 if test -d "$additional_includedir"; then
14262 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14268 if test -n "$found_la"; then
14269 save_libdir="$libdir"
14270 case "$found_la" in
14271 */* | *\\*) . "$found_la" ;;
14272 *) . "./$found_la" ;;
14274 libdir="$save_libdir"
14275 for dep in $dependency_libs; do
14278 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14279 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14281 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14282 if test -n "$GCC"; then
14284 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14288 if test -z "$haveit"; then
14290 for x in $LDFLAGS $LIBINTL; do
14292 acl_save_prefix="$prefix"
14293 prefix="$acl_final_prefix"
14294 acl_save_exec_prefix="$exec_prefix"
14295 exec_prefix="$acl_final_exec_prefix"
14297 exec_prefix="$acl_save_exec_prefix"
14298 prefix="$acl_save_prefix"
14300 if test "X$x" = "X-L$additional_libdir"; then
14305 if test -z "$haveit"; then
14306 if test -d "$additional_libdir"; then
14307 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14311 for x in $LDFLAGS $LTLIBINTL; do
14313 acl_save_prefix="$prefix"
14314 prefix="$acl_final_prefix"
14315 acl_save_exec_prefix="$exec_prefix"
14316 exec_prefix="$acl_final_exec_prefix"
14318 exec_prefix="$acl_save_exec_prefix"
14319 prefix="$acl_save_prefix"
14321 if test "X$x" = "X-L$additional_libdir"; then
14326 if test -z "$haveit"; then
14327 if test -d "$additional_libdir"; then
14328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14335 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14336 if test "$enable_rpath" != no; then
14338 for x in $rpathdirs; do
14339 if test "X$x" = "X$dir"; then
14344 if test -z "$haveit"; then
14345 rpathdirs="$rpathdirs $dir"
14348 for x in $ltrpathdirs; do
14349 if test "X$x" = "X$dir"; then
14354 if test -z "$haveit"; then
14355 ltrpathdirs="$ltrpathdirs $dir"
14360 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14363 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14366 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14373 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14374 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14380 if test "X$rpathdirs" != "X"; then
14381 if test -n "$acl_hardcode_libdir_separator"; then
14383 for found_dir in $rpathdirs; do
14384 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14386 acl_save_libdir="$libdir"
14388 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14389 libdir="$acl_save_libdir"
14390 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14392 for found_dir in $rpathdirs; do
14393 acl_save_libdir="$libdir"
14394 libdir="$found_dir"
14395 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14396 libdir="$acl_save_libdir"
14397 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14401 if test "X$ltrpathdirs" != "X"; then
14402 for found_dir in $ltrpathdirs; do
14403 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14408 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14409 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14410 $as_echo_n "(cached) " >&6
14412 gt_save_CPPFLAGS="$CPPFLAGS"
14413 CPPFLAGS="$CPPFLAGS $INCINTL"
14414 gt_save_LIBS="$LIBS"
14415 LIBS="$LIBS $LIBINTL"
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 #include <libintl.h>
14419 $gt_revision_test_code
14420 extern int _nl_msg_cat_cntr;
14425 const char *_nl_expand_alias (const char *);
14429 bindtextdomain ("", "");
14430 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14435 if ac_fn_c_try_link "$LINENO"; then :
14436 eval "$gt_func_gnugettext_libintl=yes"
14438 eval "$gt_func_gnugettext_libintl=no"
14440 rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14443 LIBS="$LIBS $LIBICONV"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <libintl.h>
14447 $gt_revision_test_code
14448 extern int _nl_msg_cat_cntr;
14453 const char *_nl_expand_alias (const char *);
14457 bindtextdomain ("", "");
14458 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14463 if ac_fn_c_try_link "$LINENO"; then :
14464 LIBINTL="$LIBINTL $LIBICONV"
14465 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14466 eval "$gt_func_gnugettext_libintl=yes"
14469 rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
14472 CPPFLAGS="$gt_save_CPPFLAGS"
14473 LIBS="$gt_save_LIBS"
14475 eval ac_res=\$$gt_func_gnugettext_libintl
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14477 $as_echo "$ac_res" >&6; }
14480 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14481 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14482 && test "$PACKAGE" != gettext-runtime \
14483 && test "$PACKAGE" != gettext-tools; }; then
14484 gt_use_preinstalled_gnugettext=yes
14493 if test -n "$INTL_MACOSX_LIBS"; then
14494 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14495 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14496 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14497 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14501 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14502 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14504 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14512 $as_echo_n "checking whether to use NLS... " >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14514 $as_echo "$USE_NLS" >&6; }
14515 if test "$USE_NLS" = "yes"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14517 $as_echo_n "checking where the gettext function comes from... " >&6; }
14518 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14519 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14520 gt_source="external libintl"
14525 gt_source="included intl directory"
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14528 $as_echo "$gt_source" >&6; }
14531 if test "$USE_NLS" = "yes"; then
14533 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14534 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14536 $as_echo_n "checking how to link with libintl... " >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14538 $as_echo "$LIBINTL" >&6; }
14540 for element in $INCINTL; do
14542 for x in $CPPFLAGS; do
14544 acl_save_prefix="$prefix"
14545 prefix="$acl_final_prefix"
14546 acl_save_exec_prefix="$exec_prefix"
14547 exec_prefix="$acl_final_exec_prefix"
14549 exec_prefix="$acl_save_exec_prefix"
14550 prefix="$acl_save_prefix"
14552 if test "X$x" = "X$element"; then
14557 if test -z "$haveit"; then
14558 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14565 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14568 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14577 INTLLIBS="$LIBINTL"
14585 # Checks for header files.
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14587 $as_echo_n "checking for ANSI C header files... " >&6; }
14588 if ${ac_cv_header_stdc+:} false; then :
14589 $as_echo_n "(cached) " >&6
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 #include <stdlib.h>
14594 #include <stdarg.h>
14595 #include <string.h>
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 ac_cv_header_stdc=yes
14609 ac_cv_header_stdc=no
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 if test $ac_cv_header_stdc = yes; then
14614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617 #include <string.h>
14620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "memchr" >/dev/null 2>&1; then :
14624 ac_cv_header_stdc=no
14630 if test $ac_cv_header_stdc = yes; then
14631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 #include <stdlib.h>
14637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14638 $EGREP "free" >/dev/null 2>&1; then :
14641 ac_cv_header_stdc=no
14647 if test $ac_cv_header_stdc = yes; then
14648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14649 if test "$cross_compiling" = yes; then :
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14655 #include <stdlib.h>
14656 #if ((' ' & 0x0FF) == 0x020)
14657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14660 # define ISLOWER(c) \
14661 (('a' <= (c) && (c) <= 'i') \
14662 || ('j' <= (c) && (c) <= 'r') \
14663 || ('s' <= (c) && (c) <= 'z'))
14664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14672 for (i = 0; i < 256; i++)
14673 if (XOR (islower (i), ISLOWER (i))
14674 || toupper (i) != TOUPPER (i))
14679 if ac_fn_c_try_run "$LINENO"; then :
14682 ac_cv_header_stdc=no
14684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14685 conftest.$ac_objext conftest.beam conftest.$ac_ext
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14691 $as_echo "$ac_cv_header_stdc" >&6; }
14692 if test $ac_cv_header_stdc = yes; then
14694 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14698 for ac_header in stdlib.h locale.h
14700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14703 cat >>confdefs.h <<_ACEOF
14704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14711 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
14712 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_DECL_STRERROR_R $ac_have_decl
14722 for ac_func in strerror_r
14724 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14725 if test "x$ac_cv_func_strerror_r" = xyes; then :
14726 cat >>confdefs.h <<_ACEOF
14727 #define HAVE_STRERROR_R 1
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
14734 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14735 if ${ac_cv_func_strerror_r_char_p+:} false; then :
14736 $as_echo_n "(cached) " >&6
14739 ac_cv_func_strerror_r_char_p=no
14740 if test $ac_cv_have_decl_strerror_r = yes; then
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 $ac_includes_default
14749 char x = *strerror_r (0, buf, sizeof buf);
14750 char *p = strerror_r (0, buf, sizeof buf);
14757 if ac_fn_c_try_compile "$LINENO"; then :
14758 ac_cv_func_strerror_r_char_p=yes
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 # strerror_r is not declared. Choose between
14763 # systems that have relatively inaccessible declarations for the
14764 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14765 # former has a strerror_r that returns char*, while the latter
14766 # has a strerror_r that returns `int'.
14767 # This test should segfault on the DEC system.
14768 if test "$cross_compiling" = yes; then :
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 $ac_includes_default
14774 extern char *strerror_r ();
14779 char x = *strerror_r (0, buf, sizeof buf);
14780 return ! isalpha (x);
14785 if ac_fn_c_try_run "$LINENO"; then :
14786 ac_cv_func_strerror_r_char_p=yes
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14789 conftest.$ac_objext conftest.beam conftest.$ac_ext
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
14796 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14797 if test $ac_cv_func_strerror_r_char_p = yes; then
14799 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14803 case "${host_os}" in
14805 # All versions of Solaris from 2.4 have a thread-safe strerror().
14806 # Since Solaris 10, in addition strerror_r() exists.
14809 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14810 if test "x$ac_cv_func_strerror_r" = xyes; then :
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
14814 $as_echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
14820 for ac_func in flockfile
14822 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
14823 if test "x$ac_cv_func_flockfile" = xyes; then :
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_FLOCKFILE 1
14833 # Checks for typedefs, structures, and compiler characteristics.
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14835 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14836 if ${ac_cv_c_const+:} false; then :
14837 $as_echo_n "(cached) " >&6
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14846 #ifndef __cplusplus
14847 /* Ultrix mips cc rejects this sort of thing. */
14848 typedef int charset[2];
14849 const charset cs = { 0, 0 };
14850 /* SunOS 4.1.1 cc rejects this. */
14851 char const *const *pcpcc;
14853 /* NEC SVR4.0.2 mips cc rejects this. */
14854 struct point {int x, y;};
14855 static struct point const zero = {0,0};
14856 /* AIX XL C 1.02.0.0 rejects this.
14857 It does not let you subtract one const X* pointer from another in
14858 an arm of an if-expression whose if-part is not a constant
14860 const char *g = "string";
14861 pcpcc = &g + (g ? g-g : 0);
14862 /* HPUX 7.0 cc rejects these. */
14864 ppc = (char**) pcpcc;
14865 pcpcc = (char const *const *) ppc;
14866 { /* SCO 3.2v4 cc rejects this sort of thing. */
14869 char const *s = 0 ? (char *) 0 : (char const *) 0;
14874 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14875 int x[] = {25, 17};
14876 const int *foo = &x[0];
14879 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14880 typedef const int *iptr;
14884 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14885 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14886 struct s { int j; const int *ap[3]; } bx;
14887 struct s *b = &bx; b->j = 5;
14889 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14890 const int foo = 10;
14891 if (!foo) return 0;
14893 return !cs[0] && !zero.x;
14900 if ac_fn_c_try_compile "$LINENO"; then :
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14908 $as_echo "$ac_cv_c_const" >&6; }
14909 if test $ac_cv_c_const = no; then
14911 $as_echo "#define const /**/" >>confdefs.h
14917 # Check for thread library.
14919 # Windows has always thread support; thus we don't bother to test for
14920 # it as it may lead to false results when cross building.
14921 if test "$have_w32_system" = yes; then
14922 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14928 THREADLIB_CPPFLAGS=""
14936 gl_threads_api=none
14941 if test "$gl_use_threads" != no; then
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
14943 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
14944 if ${gl_cv_have_weak+:} false; then :
14945 $as_echo_n "(cached) " >&6
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 extern void xyzzy ();
14960 if ac_fn_c_try_link "$LINENO"; then :
14961 gl_cv_have_weak=maybe
14963 rm -f core conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14965 if test $gl_cv_have_weak = maybe; then
14966 if test "$cross_compiling" = yes; then :
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14970 Extensible Linking Format
14974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14975 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
14976 gl_cv_have_weak="guessing yes"
14978 gl_cv_have_weak="guessing no"
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14991 return (fputs == NULL);
14994 if ac_fn_c_try_run "$LINENO"; then :
14995 gl_cv_have_weak=yes
14999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15000 conftest.$ac_objext conftest.beam conftest.$ac_ext
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
15007 $as_echo "$gl_cv_have_weak" >&6; }
15008 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
15009 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
15010 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
15011 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15012 if test "x$ac_cv_header_pthread_h" = xyes; then :
15013 gl_have_pthread_h=yes
15015 gl_have_pthread_h=no
15019 if test "$gl_have_pthread_h" = yes; then
15020 # Other possible tests:
15021 # -lpthreads (FSU threads, PCthreads)
15024 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
15025 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
15026 # the second one only in libpthread, and lock.c needs it.
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #include <pthread.h>
15033 pthread_mutex_lock((pthread_mutex_t*)0);
15034 pthread_mutexattr_init((pthread_mutexattr_t*)0);
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 gl_have_pthread=yes
15042 rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext conftest.$ac_ext
15044 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
15045 # since it is defined as a macro on OSF/1.)
15046 if test -n "$gl_have_pthread"; then
15047 # The program links fine without libpthread. But it may actually
15048 # need to link with libpthread in order to create multiple threads.
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15050 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15051 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
15052 $as_echo_n "(cached) " >&6
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lpthread $LIBS"
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15059 /* Override any GCC internal prototype to avoid an error.
15060 Use char because int might match the return type of a GCC
15061 builtin and then its argument prototype would still apply. */
15065 char pthread_kill ();
15069 return pthread_kill ();
15074 if ac_fn_c_try_link "$LINENO"; then :
15075 ac_cv_lib_pthread_pthread_kill=yes
15077 ac_cv_lib_pthread_pthread_kill=no
15079 rm -f core conftest.err conftest.$ac_objext \
15080 conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_check_lib_save_LIBS
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15084 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15085 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
15086 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15087 # On Solaris and HP-UX, most pthread functions exist also in libc.
15088 # Therefore pthread_in_use() needs to actually try to create a
15089 # thread: pthread_create from libc will fail, whereas
15090 # pthread_create will actually create a thread.
15094 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
15101 # Some library is needed. Try libpthread and libc_r.
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15103 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15104 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
15105 $as_echo_n "(cached) " >&6
15107 ac_check_lib_save_LIBS=$LIBS
15108 LIBS="-lpthread $LIBS"
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15118 char pthread_kill ();
15122 return pthread_kill ();
15127 if ac_fn_c_try_link "$LINENO"; then :
15128 ac_cv_lib_pthread_pthread_kill=yes
15130 ac_cv_lib_pthread_pthread_kill=no
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134 LIBS=$ac_check_lib_save_LIBS
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15137 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15138 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
15139 gl_have_pthread=yes
15140 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
15141 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15144 if test -z "$gl_have_pthread"; then
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
15147 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
15148 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
15149 $as_echo_n "(cached) " >&6
15151 ac_check_lib_save_LIBS=$LIBS
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15162 char pthread_kill ();
15166 return pthread_kill ();
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 ac_cv_lib_c_r_pthread_kill=yes
15174 ac_cv_lib_c_r_pthread_kill=no
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
15181 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
15182 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
15183 gl_have_pthread=yes
15184 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
15185 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
15190 if test -n "$gl_have_pthread"; then
15191 gl_threads_api=posix
15193 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
15195 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
15196 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15198 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
15207 if test -z "$gl_have_pthread"; then
15208 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
15209 gl_have_solaristhread=
15210 gl_save_LIBS="$LIBS"
15211 LIBS="$LIBS -lthread"
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15215 #include <thread.h>
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 gl_have_solaristhread=yes
15229 rm -f core conftest.err conftest.$ac_objext \
15230 conftest$ac_exeext conftest.$ac_ext
15231 LIBS="$gl_save_LIBS"
15232 if test -n "$gl_have_solaristhread"; then
15233 gl_threads_api=solaris
15235 LTLIBTHREAD=-lthread
15236 LIBMULTITHREAD="$LIBTHREAD"
15237 LTLIBMULTITHREAD="$LTLIBTHREAD"
15239 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
15241 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15243 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
15251 if test -z "$gl_have_pthread"; then
15252 case "$gl_use_threads" in
15253 yes | windows | win32) # The 'win32' is for backward compatibility.
15254 if { case "$host_os" in
15259 gl_threads_api=windows
15261 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
15269 $as_echo_n "checking for multithread API to use... " >&6; }
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
15271 $as_echo "$gl_threads_api" >&6; }
15283 if test "$gl_threads_api" = posix; then
15284 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
15285 # pthread_rwlock_* functions.
15286 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15288 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15290 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15294 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15298 #include <pthread.h>
15303 #if __FreeBSD__ == 4
15304 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15305 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
15306 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
15307 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
15309 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15317 if ac_fn_c_try_compile "$LINENO"; then :
15319 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 if test "$gl_threads_api" = posix; then
15327 # The cast to long int works around a bug in the HP C Compiler
15328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15330 # This bug is HP SR number 8606223364.
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_mutex_t" >&5
15332 $as_echo_n "checking size of pthread_mutex_t... " >&6; }
15333 if ${ac_cv_sizeof_pthread_mutex_t+:} false; then :
15334 $as_echo_n "(cached) " >&6
15336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_mutex_t))" "ac_cv_sizeof_pthread_mutex_t" "$ac_includes_default
15337 #include <pthread.h>
15341 if test "$ac_cv_type_pthread_mutex_t" = yes; then
15342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15344 as_fn_error 77 "cannot compute sizeof (pthread_mutex_t)
15345 See \`config.log' for more details" "$LINENO" 5; }
15347 ac_cv_sizeof_pthread_mutex_t=0
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_mutex_t" >&5
15353 $as_echo "$ac_cv_sizeof_pthread_mutex_t" >&6; }
15357 cat >>confdefs.h <<_ACEOF
15358 #define SIZEOF_PTHREAD_MUTEX_T $ac_cv_sizeof_pthread_mutex_t
15366 # Substitution used for gpg-error-config
15367 GPG_ERROR_CONFIG_LIBS="-lgpg-error"
15368 if test "x$LIBTHREAD" != x; then
15369 GPG_ERROR_CONFIG_LIBS="${GPG_ERROR_CONFIG_LIBS} ${LIBTHREAD}"
15371 if test "x$LIBMULTITHREAD" != x; then
15372 GPG_ERROR_CONFIG_MT_LIBS="${LIBMULTITHREAD}"
15374 GPG_ERROR_CONFIG_MT_LIBS=""
15376 GPG_ERROR_CONFIG_CFLAGS=""
15377 if test "x$THREADLIB_CPPFLAGS" != x; then
15378 GPG_ERROR_CONFIG_MT_CFLAGS="${THREADLIB_CPPFLAGS}"
15380 GPG_ERROR_CONFIG_MT_CFLAGS=""
15382 GPG_ERROR_CONFIG_ISUBDIRAFTER=""
15383 GPG_ERROR_CONFIG_HOST="$host"
15392 # Special defines for certain platforms
15393 if test "$have_w32_system" = yes; then
15395 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
15397 if test "$have_w64_system" = yes; then
15399 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
15402 if test "$have_w32ce_system" = yes; then
15404 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
15406 GPG_ERROR_CONFIG_ISUBDIRAFTER="gpg-extra"
15409 if test "$have_w32_system" = yes; then
15410 HAVE_W32_SYSTEM_TRUE=
15411 HAVE_W32_SYSTEM_FALSE='#'
15413 HAVE_W32_SYSTEM_TRUE='#'
15414 HAVE_W32_SYSTEM_FALSE=
15417 if test "$have_w64_system" = yes; then
15418 HAVE_W64_SYSTEM_TRUE=
15419 HAVE_W64_SYSTEM_FALSE='#'
15421 HAVE_W64_SYSTEM_TRUE='#'
15422 HAVE_W64_SYSTEM_FALSE=
15425 if test "$have_w32ce_system" = yes; then
15426 HAVE_W32CE_SYSTEM_TRUE=
15427 HAVE_W32CE_SYSTEM_FALSE='#'
15429 HAVE_W32CE_SYSTEM_TRUE='#'
15430 HAVE_W32CE_SYSTEM_FALSE=
15433 if test x$cross_compiling = xyes; then
15434 CROSS_COMPILING_TRUE=
15435 CROSS_COMPILING_FALSE='#'
15437 CROSS_COMPILING_TRUE='#'
15438 CROSS_COMPILING_FALSE=
15443 cat >>confdefs.h <<_ACEOF
15444 #define HOST_TRIPLET_STRING "$host"
15450 # Provide information about the build.
15452 BUILD_REVISION="1900266"
15455 cat >>confdefs.h <<_ACEOF
15456 #define BUILD_REVISION "$BUILD_REVISION"
15460 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
15461 BUILD_FILEVERSION="${BUILD_FILEVERSION}0,6400"
15464 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
15467 cat >>confdefs.h <<_ACEOF
15468 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
15474 # Check whether --enable-languages was given.
15475 if test "${enable_languages+set}" = set; then :
15476 enableval=$enable_languages;
15479 if test "x$enable_languages" != xno; then
15480 LANGUAGES_SOME_TRUE=
15481 LANGUAGES_SOME_FALSE='#'
15483 LANGUAGES_SOME_TRUE='#'
15484 LANGUAGES_SOME_FALSE=
15490 ac_config_files="$ac_config_files Makefile"
15492 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile"
15494 ac_config_files="$ac_config_files src/Makefile tests/Makefile"
15496 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd"
15498 ac_config_files="$ac_config_files src/versioninfo.rc"
15500 ac_config_files="$ac_config_files src/gpg-error-config"
15503 cat >confcache <<\_ACEOF
15504 # This file is a shell script that caches the results of configure
15505 # tests run on this system so they can be shared between configure
15506 # scripts and configure runs, see configure's option --config-cache.
15507 # It is not useful on other systems. If it contains results you don't
15508 # want to keep, you may remove or edit it.
15510 # config.status only pays attention to the cache file if you give it
15511 # the --recheck option to rerun configure.
15513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15515 # following values.
15519 # The following way of writing the cache mishandles newlines in values,
15520 # but we know of no workaround that is simple, portable, and efficient.
15521 # So, we kill variables containing newlines.
15522 # Ultrix sh set writes to stderr and can't be redirected directly,
15523 # and sets the high bit in the cache file unless we assign to the vars.
15525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15526 eval ac_val=\$$ac_var
15530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15534 _ | IFS | as_nl) ;; #(
15535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15536 *) { eval $ac_var=; unset $ac_var;} ;;
15542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15543 *${as_nl}ac_space=\ *)
15544 # `set' does not quote correctly, so add quotes: double-quote
15545 # substitution turns \\\\ into \\, and sed turns \\ into \.
15548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15551 # `set' quotes correctly as required by POSIX, so do not add quotes.
15552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15566 if test -w "$cache_file"; then
15567 if test "x$cache_file" != "x/dev/null"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15569 $as_echo "$as_me: updating cache $cache_file" >&6;}
15570 if test ! -f "$cache_file" || test -h "$cache_file"; then
15571 cat confcache >"$cache_file"
15573 case $cache_file in #(
15575 mv -f confcache "$cache_file"$$ &&
15576 mv -f "$cache_file"$$ "$cache_file" ;; #(
15578 mv -f confcache "$cache_file" ;;
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15590 # Let make expand exec_prefix.
15591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15593 DEFS=-DHAVE_CONFIG_H
15598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15599 # 1. Remove the extension, and $U if already installed.
15600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15603 # will be set to the directory where LIBOBJS objects are built.
15604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15607 LIBOBJS=$ac_libobjs
15609 LTLIBOBJS=$ac_ltlibobjs
15612 if test -n "$EXEEXT"; then
15614 am__EXEEXT_FALSE='#'
15616 am__EXEEXT_TRUE='#'
15620 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15621 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15625 as_fn_error $? "conditional \"AMDEP\" was never defined.
15626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15629 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15632 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15633 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15636 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
15637 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
15638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15640 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15641 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15645 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648 if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
15649 as_fn_error $? "conditional \"LANGUAGES_SOME\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653 : "${CONFIG_STATUS=./config.status}"
15655 ac_clean_files_save=$ac_clean_files
15656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15662 # Generated by $as_me.
15663 # Run this file to recreate the current configuration.
15664 # Compiler output produced by configure, useful for debugging
15665 # configure, is in config.log if it exists.
15668 ac_cs_recheck=false
15671 SHELL=\${CONFIG_SHELL-$SHELL}
15674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15675 ## -------------------- ##
15676 ## M4sh Initialization. ##
15677 ## -------------------- ##
15679 # Be more Bourne compatible
15680 DUALCASE=1; export DUALCASE # for MKS sh
15681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15685 # is contrary to our usage. Disable this feature.
15686 alias -g '${1+"$@"}'='"$@"'
15687 setopt NO_GLOB_SUBST
15689 case `(set -o) 2>/dev/null` in #(
15701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15705 # Prefer a ksh shell builtin over an external printf program on Solaris,
15706 # but without wasting forks for bash or zsh.
15707 if test -z "$BASH_VERSION$ZSH_VERSION" \
15708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15709 as_echo='print -r --'
15710 as_echo_n='print -rn --'
15711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='printf %s\n'
15713 as_echo_n='printf %s'
15715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15717 as_echo_n='/usr/ucb/echo -n'
15719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720 as_echo_n_body='eval
15724 expr "X$arg" : "X\\(.*\\)$as_nl";
15725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15729 export as_echo_n_body
15730 as_echo_n='sh -c $as_echo_n_body as_echo'
15732 export as_echo_body
15733 as_echo='sh -c $as_echo_body as_echo'
15736 # The user is always right.
15737 if test "${PATH_SEPARATOR+set}" != set; then
15739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15747 # We need space, tab and new line, in precisely that order. Quoting is
15748 # there to prevent editors from complaining about space-tab.
15749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15750 # splitting by setting IFS to empty value.)
15753 # Find who we are. Look in the path if we contain no directory separator.
15756 *[\\/]* ) as_myself=$0 ;;
15757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15761 test -z "$as_dir" && as_dir=.
15762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15768 # We did not find ourselves, most probably we were run as `sh COMMAND'
15769 # in which case we are not to be found in the path.
15770 if test "x$as_myself" = x; then
15773 if test ! -f "$as_myself"; then
15774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15778 # Unset variables that we do not need and which cause bugs (e.g. in
15779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15780 # suppresses any "Segmentation fault" message there. '((' could
15781 # trigger a bug in pdksh 5.2.14.
15782 for as_var in BASH_ENV ENV MAIL MAILPATH
15783 do eval test x\${$as_var+set} = xset \
15784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15801 # ----------------------------------------
15802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15804 # script with STATUS, using 1 if that was 0.
15807 as_status=$1; test $as_status -eq 0 && as_status=1
15809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15812 $as_echo "$as_me: error: $2" >&2
15813 as_fn_exit $as_status
15817 # as_fn_set_status STATUS
15818 # -----------------------
15819 # Set $? to STATUS, without forking.
15820 as_fn_set_status ()
15823 } # as_fn_set_status
15825 # as_fn_exit STATUS
15826 # -----------------
15827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15831 as_fn_set_status $1
15837 # Portably unset VAR.
15840 { eval $1=; unset $1;}
15842 as_unset=as_fn_unset
15843 # as_fn_append VAR VALUE
15844 # ----------------------
15845 # Append the text in VALUE to the end of the definition contained in VAR. Take
15846 # advantage of any shell optimizations that allow amortized linear growth over
15847 # repeated appends, instead of the typical quadratic growth present in naive
15849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15850 eval 'as_fn_append ()
15861 # as_fn_arith ARG...
15862 # ------------------
15863 # Perform arithmetic evaluation on the ARGs, and store the result in the
15864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15865 # must be portable across $(()) and expr.
15866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15867 eval 'as_fn_arith ()
15874 as_val=`expr "$@" || test $? -eq 1`
15879 if expr a : '\(a\)' >/dev/null 2>&1 &&
15880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15887 as_basename=basename
15892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15898 as_me=`$as_basename -- "$0" ||
15899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15900 X"$0" : 'X\(//\)$' \| \
15901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15903 sed '/^.*\/\([^/][^/]*\)\/*$/{
15917 # Avoid depending upon Character Ranges.
15918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15921 as_cr_digits='0123456789'
15922 as_cr_alnum=$as_cr_Letters$as_cr_digits
15924 ECHO_C= ECHO_N= ECHO_T=
15925 case `echo -n x` in #(((((
15927 case `echo 'xy\c'` in
15928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15937 rm -f conf$$ conf$$.exe conf$$.file
15938 if test -d conf$$.dir; then
15939 rm -f conf$$.dir/conf$$.file
15942 mkdir conf$$.dir 2>/dev/null
15944 if (echo >conf$$.file) 2>/dev/null; then
15945 if ln -s conf$$.file conf$$ 2>/dev/null; then
15947 # ... but there are two gotchas:
15948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15950 # In both cases, we have to default to `cp -pR'.
15951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962 rmdir conf$$.dir 2>/dev/null
15967 # Create "$as_dir" as a directory, including parents if necessary.
15972 -*) as_dir=./$as_dir;;
15974 test -d "$as_dir" || eval $as_mkdir_p || {
15978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979 *) as_qdir=$as_dir;;
15981 as_dirs="'$as_qdir' $as_dirs"
15982 as_dir=`$as_dirname -- "$as_dir" ||
15983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$as_dir" : 'X\(//\)[^/]' \| \
15985 X"$as_dir" : 'X\(//\)$' \| \
15986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987 $as_echo X"$as_dir" |
15988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15992 /^X\(\/\/\)[^/].*/{
16005 test -d "$as_dir" && break
16007 test -z "$as_dirs" || eval "mkdir $as_dirs"
16008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16012 if mkdir -p . 2>/dev/null; then
16013 as_mkdir_p='mkdir -p "$as_dir"'
16015 test -d ./-p && rmdir ./-p
16020 # as_fn_executable_p FILE
16021 # -----------------------
16022 # Test if FILE is an executable regular file.
16023 as_fn_executable_p ()
16025 test -f "$1" && test -x "$1"
16026 } # as_fn_executable_p
16027 as_test_x='test -x'
16028 as_executable_p=as_fn_executable_p
16030 # Sed expression to map a string onto a valid CPP name.
16031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16033 # Sed expression to map a string onto a valid variable name.
16034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16038 ## ----------------------------------- ##
16039 ## Main body of $CONFIG_STATUS script. ##
16040 ## ----------------------------------- ##
16042 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045 # Save the log message, to keep $0 and so on meaningful, and to
16046 # report actual input values of CONFIG_FILES etc. instead of their
16047 # values after options handling.
16049 This file was extended by libgpg-error $as_me 1.13, which was
16050 generated by GNU Autoconf 2.69. Invocation command line was
16052 CONFIG_FILES = $CONFIG_FILES
16053 CONFIG_HEADERS = $CONFIG_HEADERS
16054 CONFIG_LINKS = $CONFIG_LINKS
16055 CONFIG_COMMANDS = $CONFIG_COMMANDS
16058 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16063 case $ac_config_files in *"
16064 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16067 case $ac_config_headers in *"
16068 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 # Files that config.status was made for.
16074 config_files="$ac_config_files"
16075 config_headers="$ac_config_headers"
16076 config_commands="$ac_config_commands"
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082 \`$as_me' instantiates files and other configuration actions
16083 from templates according to the current configuration. Unless the files
16084 and actions are specified as TAGs, all are instantiated by default.
16086 Usage: $0 [OPTION]... [TAG]...
16088 -h, --help print this help, then exit
16089 -V, --version print version number and configuration settings, then exit
16090 --config print configuration, then exit
16091 -q, --quiet, --silent
16092 do not print progress messages
16093 -d, --debug don't remove temporary files
16094 --recheck update $as_me by reconfiguring in the same conditions
16095 --file=FILE[:TEMPLATE]
16096 instantiate the configuration file FILE
16097 --header=FILE[:TEMPLATE]
16098 instantiate the configuration header FILE
16100 Configuration files:
16103 Configuration headers:
16106 Configuration commands:
16109 Report bugs to <http://bugs.gnupg.org>."
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16115 libgpg-error config.status 1.13
16116 configured by $0, generated by GNU Autoconf 2.69,
16117 with options \\"\$ac_cs_config\\"
16119 Copyright (C) 2012 Free Software Foundation, Inc.
16120 This config.status script is free software; the Free Software Foundation
16121 gives unlimited permission to copy, distribute and modify it."
16128 test -n "\$AWK" || AWK=awk
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 # The default lists apply if the user does not specify any file.
16138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16155 # Handling of the options.
16156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16159 $as_echo "$ac_cs_version"; exit ;;
16160 --config | --confi | --conf | --con | --co | --c )
16161 $as_echo "$ac_cs_config"; exit ;;
16162 --debug | --debu | --deb | --de | --d | -d )
16164 --file | --fil | --fi | --f )
16167 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16168 '') as_fn_error $? "missing file argument" ;;
16170 as_fn_append CONFIG_FILES " '$ac_optarg'"
16171 ac_need_defaults=false;;
16172 --header | --heade | --head | --hea )
16175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16177 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16178 ac_need_defaults=false;;
16180 # Conflict between --help and --header
16181 as_fn_error $? "ambiguous option: \`$1'
16182 Try \`$0 --help' for more information.";;
16183 --help | --hel | -h )
16184 $as_echo "$ac_cs_usage"; exit ;;
16185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16186 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16189 # This is an error.
16190 -*) as_fn_error $? "unrecognized option: \`$1'
16191 Try \`$0 --help' for more information." ;;
16193 *) as_fn_append ac_config_targets " $1"
16194 ac_need_defaults=false ;;
16200 ac_configure_extra_args=
16202 if $ac_cs_silent; then
16204 ac_configure_extra_args="$ac_configure_extra_args --silent"
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 if \$ac_cs_recheck; then
16210 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16212 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16213 CONFIG_SHELL='$SHELL'
16214 export CONFIG_SHELL
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16224 ## Running $as_me. ##
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16237 # The HP-UX ksh and POSIX shell print the target directory to stdout
16238 # if CDPATH is set.
16239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16241 sed_quote_subst='$sed_quote_subst'
16242 double_quote_subst='$double_quote_subst'
16243 delay_variable_subst='$delay_variable_subst'
16244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16246 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16247 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16248 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16249 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16250 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16251 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16252 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16253 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16254 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16255 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16256 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16257 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16258 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16259 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16260 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16261 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16262 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16263 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16264 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16265 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16266 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16267 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16268 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16269 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16270 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16271 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16272 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16273 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16274 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16275 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16276 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16277 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16278 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16279 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16280 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16281 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16282 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16283 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16284 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16285 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16286 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16287 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16288 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16289 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16290 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16291 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16292 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16293 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16294 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16295 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16296 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16297 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16299 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16300 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16301 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"`'
16302 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16303 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16304 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16305 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16306 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16307 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16308 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16309 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16310 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16311 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16312 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16313 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16314 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16315 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16316 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16317 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16318 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16319 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16320 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16321 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16322 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16323 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16324 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16325 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16326 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16327 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16328 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16329 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16330 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16331 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16332 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16333 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16334 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16335 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16336 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16337 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16338 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16339 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16340 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16341 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16342 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16343 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16344 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16345 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16346 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16347 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16348 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16349 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16350 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16351 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16352 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16353 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16354 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16355 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16356 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16357 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16358 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16359 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16360 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16361 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16362 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16363 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16364 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16365 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16366 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16367 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16368 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16369 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16370 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16371 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16372 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16373 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16374 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16375 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16376 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16377 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16378 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16379 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16380 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16381 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16382 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16383 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16384 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16385 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16386 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16387 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16388 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16389 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16390 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16391 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16392 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16393 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16394 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16395 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16396 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16397 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16398 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16399 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16400 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16401 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16402 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16403 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16404 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16405 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16406 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16407 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16408 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16409 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16410 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16411 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16412 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16413 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16414 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16415 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16416 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16419 LTCFLAGS='$LTCFLAGS'
16420 compiler='$compiler_DEFAULT'
16422 # A function that is used when there is no print builtin or printf.
16423 func_fallback_echo ()
16425 eval 'cat <<_LTECHO_EOF
16430 # Quote evaled strings.
16447 deplibs_check_method \
16451 sharedlib_from_linklib_cmd \
16454 archiver_list_spec \
16460 lt_cv_sys_global_symbol_pipe \
16461 lt_cv_sys_global_symbol_to_cdecl \
16462 lt_cv_sys_global_symbol_to_c_name_address \
16463 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16464 nm_file_list_spec \
16465 lt_prog_compiler_no_builtin_flag \
16466 lt_prog_compiler_pic \
16467 lt_prog_compiler_wl \
16468 lt_prog_compiler_static \
16469 lt_cv_prog_compiler_c_o \
16478 export_dynamic_flag_spec \
16479 whole_archive_flag_spec \
16480 compiler_needs_object \
16482 allow_undefined_flag \
16483 no_undefined_flag \
16484 hardcode_libdir_flag_spec \
16485 hardcode_libdir_separator \
16489 variables_saved_for_relink \
16491 library_names_spec \
16493 install_override_mode \
16500 lt_prog_compiler_no_builtin_flag_RC \
16501 lt_prog_compiler_pic_RC \
16502 lt_prog_compiler_wl_RC \
16503 lt_prog_compiler_static_RC \
16504 lt_cv_prog_compiler_c_o_RC \
16505 export_dynamic_flag_spec_RC \
16506 whole_archive_flag_spec_RC \
16507 compiler_needs_object_RC \
16509 allow_undefined_flag_RC \
16510 no_undefined_flag_RC \
16511 hardcode_libdir_flag_spec_RC \
16512 hardcode_libdir_separator_RC \
16513 exclude_expsyms_RC \
16514 include_expsyms_RC \
16515 file_list_spec_RC; do
16516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16517 *[\\\\\\\`\\"\\\$]*)
16518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16526 # Double-quote double-evaled strings.
16527 for var in reload_cmds \
16528 old_postinstall_cmds \
16529 old_postuninstall_cmds \
16531 extract_expsyms_cmds \
16532 old_archive_from_new_cmds \
16533 old_archive_from_expsyms_cmds \
16535 archive_expsym_cmds \
16537 module_expsym_cmds \
16538 export_symbols_cmds \
16542 postuninstall_cmds \
16544 sys_lib_search_path_spec \
16545 sys_lib_dlsearch_path_spec \
16547 old_archive_cmds_RC \
16548 old_archive_from_new_cmds_RC \
16549 old_archive_from_expsyms_cmds_RC \
16551 archive_expsym_cmds_RC \
16553 module_expsym_cmds_RC \
16554 export_symbols_cmds_RC \
16556 postlink_cmds_RC; do
16557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16558 *[\\\\\\\`\\"\\\$]*)
16559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16567 ac_aux_dir='$ac_aux_dir'
16568 xsi_shell='$xsi_shell'
16569 lt_shell_append='$lt_shell_append'
16571 # See if we are running on zsh, and set the options which allow our
16572 # commands through without removal of \ escapes INIT.
16573 if test -n "\${ZSH_VERSION+set}" ; then
16574 setopt NO_GLOB_SUBST
16580 TIMESTAMP='$TIMESTAMP'
16588 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16589 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16590 # from automake < 1.5.
16591 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16592 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16593 LINGUAS="${LINGUAS-%UNSET%}"
16598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16600 # Handling of arguments.
16601 for ac_config_target in $ac_config_targets
16603 case $ac_config_target in
16604 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16605 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16606 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16607 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16609 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16610 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16611 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16612 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16613 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
16614 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
16615 "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
16616 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16617 "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
16619 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16624 # If the user did not use the arguments to specify the items to instantiate,
16625 # then the envvar interface is used. Set only those that are not.
16626 # We use the long form for the default assignment because of an extremely
16627 # bizarre bug on SunOS 4.1.3.
16628 if $ac_need_defaults; then
16629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16631 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16634 # Have a temporary directory for convenience. Make it in the build tree
16635 # simply because there is no reason against having it here, and in addition,
16636 # creating and moving files from /tmp can sometimes cause problems.
16637 # Hook for its removal unless debugging.
16638 # Note that there is a small window in which the directory will not be cleaned:
16639 # after its creation but before its name has been assigned to `$tmp'.
16643 trap 'exit_status=$?
16644 : "${ac_tmp:=$tmp}"
16645 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16647 trap 'as_fn_exit 1' 1 2 13 15
16649 # Create a (secure) tmp directory for tmp files.
16652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16656 tmp=./conf$$-$RANDOM
16657 (umask 077 && mkdir "$tmp")
16658 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16661 # Set up the scripts for CONFIG_FILES section.
16662 # No need to generate them if there are no CONFIG_FILES.
16663 # This happens for instance with `./config.status config.h'.
16664 if test -n "$CONFIG_FILES"; then
16667 ac_cr=`echo X | tr X '\015'`
16668 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16669 # But we know of no other shell where ac_cr would be empty at this
16670 # point, so we can use a bashism as a fallback.
16671 if test "x$ac_cr" = x; then
16672 eval ac_cr=\$\'\\r\'
16674 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16675 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16678 ac_cs_awk_cr=$ac_cr
16681 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16686 echo "cat >conf$$subs.awk <<_ACEOF" &&
16687 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16689 } >conf$$subs.sh ||
16690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16691 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16693 for ac_last_try in false false false false false :; do
16694 . ./conf$$subs.sh ||
16695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16697 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16698 if test $ac_delim_n = $ac_delim_num; then
16700 elif $ac_last_try; then
16701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16706 rm -f conf$$subs.sh
16708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16709 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16713 s/^/S["/; s/!.*/"]=/
16723 s/\(.\{148\}\)..*/\1/
16725 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16737 s/\(.\{148\}\)..*/\1/
16739 s/["\\]/\\&/g; s/^/"/; s/$/"/
16743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16748 ' <conf$$subs.awk | sed '
16753 ' >>$CONFIG_STATUS || ac_write_fail=1
16754 rm -f conf$$subs.awk
16755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16757 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16758 for (key in S) S_is_set[key] = 1
16764 nfields = split(line, field, "@")
16766 len = length(field[1])
16767 for (i = 2; i < nfields; i++) {
16769 keylen = length(key)
16770 if (S_is_set[key]) {
16772 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16773 len += length(value) + length(field[++i])
16784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16785 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16786 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16789 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16790 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16793 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16794 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16795 # trailing colons and then remove the whole line if VPATH becomes empty
16796 # (actually we leave an empty line to preserve line numbers).
16797 if test "x$srcdir" = x.; then
16798 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16817 fi # test -n "$CONFIG_FILES"
16819 # Set up the scripts for CONFIG_HEADERS section.
16820 # No need to generate them if there are no CONFIG_HEADERS.
16821 # This happens for instance with `./config.status Makefile'.
16822 if test -n "$CONFIG_HEADERS"; then
16823 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16827 # Transform confdefs.h into an awk script `defines.awk', embedded as
16828 # here-document in config.status, that substitutes the proper values into
16829 # config.h.in to produce config.h.
16831 # Create a delimiter string that does not exist in confdefs.h, to ease
16832 # handling of long lines.
16834 for ac_last_try in false false :; do
16835 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16836 if test -z "$ac_tt"; then
16838 elif $ac_last_try; then
16839 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16845 # For the awk script, D is an array of macro values keyed by name,
16846 # likewise P contains macro parameters if any. Preserve backslash
16847 # newline sequences.
16849 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16851 s/.\{148\}/&'"$ac_delim"'/g
16854 s/^[ ]*#[ ]*define[ ][ ]*/ /
16861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16863 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16868 D["\1"]=" \3\\\\\\n"\\/p
16870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16875 s/.\{148\}/&'"$ac_delim"'/g
16880 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16883 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16885 ' <confdefs.h | sed '
16886 s/'"$ac_delim"'/"\\\
16887 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 for (key in D) D_is_set[key] = 1
16893 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16895 split(line, arg, " ")
16896 if (arg[1] == "#") {
16900 defundef = substr(arg[1], 2)
16903 split(mac1, mac2, "(") #)
16905 prefix = substr(line, 1, index(line, defundef) - 1)
16906 if (D_is_set[macro]) {
16907 # Preserve the white space surrounding the "#".
16908 print prefix "define", macro P[macro] D[macro]
16911 # Replace #undef with comments. This is necessary, for example,
16912 # in the case of _POSIX_SOURCE, which is predefined and required
16913 # on some systems where configure will not decide to define it.
16914 if (defundef == "undef") {
16915 print "/*", prefix defundef, macro, "*/"
16923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16925 fi # test -n "$CONFIG_HEADERS"
16928 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16933 :[FHLC]) ac_mode=$ac_tag; continue;;
16935 case $ac_mode$ac_tag in
16937 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16938 :[FH]-) ac_tag=-:-;;
16939 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16956 -) ac_f="$ac_tmp/stdin";;
16957 *) # Look for the file first in the build tree, then in the source tree
16958 # (if the path is not absolute). The absolute path cannot be DOS-style,
16959 # because $ac_f cannot contain `:'.
16963 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16965 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16967 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16968 as_fn_append ac_file_inputs " '$ac_f'"
16971 # Let's still pretend it is `configure' which instantiates (i.e., don't
16972 # use $as_me), people would be surprised to read:
16973 # /* config.h. Generated by config.status. */
16974 configure_input='Generated from '`
16975 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16977 if test x"$ac_file" != x-; then
16978 configure_input="$ac_file. $configure_input"
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16980 $as_echo "$as_me: creating $ac_file" >&6;}
16982 # Neutralize special characters interpreted by sed in replacement strings.
16983 case $configure_input in #(
16984 *\&* | *\|* | *\\* )
16985 ac_sed_conf_input=`$as_echo "$configure_input" |
16986 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16987 *) ac_sed_conf_input=$configure_input;;
16991 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16997 ac_dir=`$as_dirname -- "$ac_file" ||
16998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999 X"$ac_file" : 'X\(//\)[^/]' \| \
17000 X"$ac_file" : 'X\(//\)$' \| \
17001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17002 $as_echo X"$ac_file" |
17003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17007 /^X\(\/\/\)[^/].*/{
17020 as_dir="$ac_dir"; as_fn_mkdir_p
17024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17026 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17027 # A ".." for each directory in $ac_dir_suffix.
17028 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17029 case $ac_top_builddir_sub in
17030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17034 ac_abs_top_builddir=$ac_pwd
17035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17036 # for backward compatibility:
17037 ac_top_builddir=$ac_top_build_prefix
17040 .) # We are building in place.
17042 ac_top_srcdir=$ac_top_builddir_sub
17043 ac_abs_top_srcdir=$ac_pwd ;;
17044 [\\/]* | ?:[\\/]* ) # Absolute name.
17045 ac_srcdir=$srcdir$ac_dir_suffix;
17046 ac_top_srcdir=$srcdir
17047 ac_abs_top_srcdir=$srcdir ;;
17048 *) # Relative name.
17049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17050 ac_top_srcdir=$ac_top_build_prefix$srcdir
17051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17064 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17066 ac_MKDIR_P=$MKDIR_P
17068 [\\/$]* | ?:[\\/]* ) ;;
17069 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 # If the template does not know about datarootdir, expand it.
17075 # FIXME: This hack should be removed a few years after 2.60.
17076 ac_datarootdir_hack=; ac_datarootdir_seen=
17087 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17088 *datarootdir*) ac_datarootdir_seen=yes;;
17089 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17091 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 ac_datarootdir_hack='
17095 s&@datadir@&$datadir&g
17096 s&@docdir@&$docdir&g
17097 s&@infodir@&$infodir&g
17098 s&@localedir@&$localedir&g
17099 s&@mandir@&$mandir&g
17100 s&\\\${datarootdir}&$datarootdir&g' ;;
17104 # Neutralize VPATH when `$srcdir' = `.'.
17105 # Shell code in configure.ac might set extrasub.
17106 # FIXME: do we really want to maintain this feature?
17107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17108 ac_sed_extra="$ac_vpsub
17111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17114 s|@configure_input@|$ac_sed_conf_input|;t t
17115 s&@top_builddir@&$ac_top_builddir_sub&;t t
17116 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17117 s&@srcdir@&$ac_srcdir&;t t
17118 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17119 s&@top_srcdir@&$ac_top_srcdir&;t t
17120 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17121 s&@builddir@&$ac_builddir&;t t
17122 s&@abs_builddir@&$ac_abs_builddir&;t t
17123 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17124 s&@INSTALL@&$ac_INSTALL&;t t
17125 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17126 $ac_datarootdir_hack
17128 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17129 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17132 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17134 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17136 which seems to be undefined. Please make sure it is defined" >&5
17137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17138 which seems to be undefined. Please make sure it is defined" >&2;}
17140 rm -f "$ac_tmp/stdin"
17142 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17143 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17151 if test x"$ac_file" != x-; then
17153 $as_echo "/* $configure_input */" \
17154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17155 } >"$ac_tmp/config.h" \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17162 mv "$ac_tmp/config.h" "$ac_file" \
17163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17166 $as_echo "/* $configure_input */" \
17167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17168 || as_fn_error $? "could not create -" "$LINENO" 5
17170 # Compute "$ac_file"'s index in $config_headers.
17173 for _am_header in $config_headers :; do
17174 case $_am_header in
17175 $_am_arg | $_am_arg:* )
17178 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17181 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17182 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17183 X"$_am_arg" : 'X\(//\)[^/]' \| \
17184 X"$_am_arg" : 'X\(//\)$' \| \
17185 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17186 $as_echo X"$_am_arg" |
17187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17191 /^X\(\/\/\)[^/].*/{
17203 s/.*/./; q'`/stamp-h$_am_stamp_count
17206 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17207 $as_echo "$as_me: executing $ac_file commands" >&6;}
17212 case $ac_file$ac_mode in
17213 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17214 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17215 # are listed without --file. Let's play safe and only enable the eval
17216 # if we detect the quoting.
17217 case $CONFIG_FILES in
17218 *\'*) eval set x "$CONFIG_FILES" ;;
17219 *) set x $CONFIG_FILES ;;
17224 # Strip MF so we end up with the name of the file.
17225 mf=`echo "$mf" | sed -e 's/:.*$//'`
17226 # Check whether this is an Automake generated Makefile or not.
17227 # We used to match only the files named `Makefile.in', but
17228 # some people rename them; so instead we look at the file content.
17229 # Grep'ing the first line is not enough: some people post-process
17230 # each Makefile.in and add a new line on top of each file to say so.
17231 # Grep'ing the whole file is not good either: AIX grep has a line
17232 # limit of 2048, but all sed's we know have understand at least 4000.
17233 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17234 dirpart=`$as_dirname -- "$mf" ||
17235 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$mf" : 'X\(//\)[^/]' \| \
17237 X"$mf" : 'X\(//\)$' \| \
17238 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 /^X\(\/\/\)[^/].*/{
17260 # Extract the definition of DEPDIR, am__include, and am__quote
17261 # from the Makefile without running `make'.
17262 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17263 test -z "$DEPDIR" && continue
17264 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17265 test -z "am__include" && continue
17266 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17267 # When using ansi2knr, U may be empty or an underscore; expand it
17268 U=`sed -n 's/^U = //p' < "$mf"`
17269 # Find all dependency output files, they are included files with
17270 # $(DEPDIR) in their names. We invoke sed twice because it is the
17271 # simplest approach to changing $(DEPDIR) to its actual value in the
17273 for file in `sed -n "
17274 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17275 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17276 # Make sure the directory exists.
17277 test -f "$dirpart/$file" && continue
17278 fdir=`$as_dirname -- "$file" ||
17279 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$file" : 'X\(//\)[^/]' \| \
17281 X"$file" : 'X\(//\)$' \| \
17282 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17283 $as_echo X"$file" |
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17288 /^X\(\/\/\)[^/].*/{
17301 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17302 # echo "creating $dirpart/$file"
17303 echo '# dummy' > "$dirpart/$file"
17310 # See if we are running on zsh, and set the options which allow our
17311 # commands through without removal of \ escapes.
17312 if test -n "${ZSH_VERSION+set}" ; then
17313 setopt NO_GLOB_SUBST
17316 cfgfile="${ofile}T"
17317 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17320 cat <<_LT_EOF >> "$cfgfile"
17323 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17324 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17328 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17329 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17331 # Written by Gordon Matzigkeit, 1996
17333 # This file is part of GNU Libtool.
17335 # GNU Libtool is free software; you can redistribute it and/or
17336 # modify it under the terms of the GNU General Public License as
17337 # published by the Free Software Foundation; either version 2 of
17338 # the License, or (at your option) any later version.
17340 # As a special exception to the GNU General Public License,
17341 # if you distribute this file as part of a program or library that
17342 # is built using GNU Libtool, you may include this file under the
17343 # same distribution terms that you use for the rest of that program.
17345 # GNU Libtool is distributed in the hope that it will be useful,
17346 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17348 # GNU General Public License for more details.
17350 # You should have received a copy of the GNU General Public License
17351 # along with GNU Libtool; see the file COPYING. If not, a copy
17352 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17353 # obtained by writing to the Free Software Foundation, Inc.,
17354 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17357 # The names of the tagged configurations supported by this script.
17358 available_tags="RC "
17360 # ### BEGIN LIBTOOL CONFIG
17362 # Which release of libtool.m4 was used?
17363 macro_version=$macro_version
17364 macro_revision=$macro_revision
17366 # Assembler program.
17369 # DLL creation program.
17370 DLLTOOL=$lt_DLLTOOL
17372 # Object dumper program.
17373 OBJDUMP=$lt_OBJDUMP
17375 # Whether or not to build static libraries.
17376 build_old_libs=$enable_static
17378 # Whether or not to build shared libraries.
17379 build_libtool_libs=$enable_shared
17381 # What type of objects to build.
17384 # Whether or not to optimize for fast installation.
17385 fast_install=$enable_fast_install
17387 # Shell to use when invoking shell scripts.
17390 # An echo program that protects backslashes.
17393 # The PATH separator for the build system.
17394 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17397 host_alias=$host_alias
17401 # The build system.
17402 build_alias=$build_alias
17406 # A sed program that does not truncate output.
17409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17410 Xsed="\$SED -e 1s/^X//"
17412 # A grep program that handles long lines.
17418 # A literal string matcher.
17421 # A BSD- or MS-compatible name lister.
17424 # Whether we need soft or hard links.
17427 # What is the maximum length of a command?
17428 max_cmd_len=$max_cmd_len
17430 # Object file suffix (normally "o").
17433 # Executable file suffix (normally "").
17436 # whether the shell understands "unset".
17439 # turn spaces into newlines.
17442 # turn newlines into spaces.
17445 # convert \$build file names to \$host format.
17446 to_host_file_cmd=$lt_cv_to_host_file_cmd
17448 # convert \$build files to toolchain format.
17449 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17451 # Method to check whether dependent libraries are shared objects.
17452 deplibs_check_method=$lt_deplibs_check_method
17454 # Command to use when deplibs_check_method = "file_magic".
17455 file_magic_cmd=$lt_file_magic_cmd
17457 # How to find potential files when deplibs_check_method = "file_magic".
17458 file_magic_glob=$lt_file_magic_glob
17460 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17461 want_nocaseglob=$lt_want_nocaseglob
17463 # Command to associate shared and link libraries.
17464 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17469 # Flags to create an archive.
17470 AR_FLAGS=$lt_AR_FLAGS
17472 # How to feed a file listing to the archiver.
17473 archiver_list_spec=$lt_archiver_list_spec
17475 # A symbol stripping program.
17478 # Commands used to install an old-style archive.
17480 old_postinstall_cmds=$lt_old_postinstall_cmds
17481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17483 # Whether to use a lock for old archive extraction.
17484 lock_old_archive_extraction=$lock_old_archive_extraction
17489 # LTCC compiler flags.
17490 LTCFLAGS=$lt_CFLAGS
17492 # Take the output of nm and produce a listing of raw symbols and C names.
17493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17495 # Transform the output of nm in a proper C declaration.
17496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17498 # Transform the output of nm in a C name address pair.
17499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17501 # Transform the output of nm in a C name address pair when lib prefix is needed.
17502 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17504 # Specify filename containing input files for \$NM.
17505 nm_file_list_spec=$lt_nm_file_list_spec
17507 # The root where to search for dependent libraries,and in which our libraries should be installed.
17508 lt_sysroot=$lt_sysroot
17510 # The name of the directory that contains temporary libtool files.
17513 # Used to examine libraries when file_magic_cmd begins with "file".
17514 MAGIC_CMD=$MAGIC_CMD
17516 # Must we lock files when doing compilation?
17517 need_locks=$lt_need_locks
17520 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17522 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17523 DSYMUTIL=$lt_DSYMUTIL
17525 # Tool to change global to local symbols on Mac OS X.
17528 # Tool to manipulate fat objects and archives on Mac OS X.
17531 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17534 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17535 OTOOL64=$lt_OTOOL64
17537 # Old archive suffix (normally "a").
17540 # Shared library suffix (normally ".so").
17541 shrext_cmds=$lt_shrext_cmds
17543 # The commands to extract the exported symbol list from a shared archive.
17544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17546 # Variables whose values should be saved in libtool wrapper scripts and
17547 # restored at link time.
17548 variables_saved_for_relink=$lt_variables_saved_for_relink
17550 # Do we need the "lib" prefix for modules?
17551 need_lib_prefix=$need_lib_prefix
17553 # Do we need a version for libraries?
17554 need_version=$need_version
17556 # Library versioning type.
17557 version_type=$version_type
17559 # Shared library runtime path variable.
17560 runpath_var=$runpath_var
17562 # Shared library path variable.
17563 shlibpath_var=$shlibpath_var
17565 # Is shlibpath searched before the hard-coded library search path?
17566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17568 # Format of library name prefix.
17569 libname_spec=$lt_libname_spec
17571 # List of archive names. First name is the real one, the rest are links.
17572 # The last name is the one that the linker finds with -lNAME
17573 library_names_spec=$lt_library_names_spec
17575 # The coded name of the library, if different from the real name.
17576 soname_spec=$lt_soname_spec
17578 # Permission mode override for installation of shared libraries.
17579 install_override_mode=$lt_install_override_mode
17581 # Command to use after installation of a shared archive.
17582 postinstall_cmds=$lt_postinstall_cmds
17584 # Command to use after uninstallation of a shared archive.
17585 postuninstall_cmds=$lt_postuninstall_cmds
17587 # Commands used to finish a libtool library installation in a directory.
17588 finish_cmds=$lt_finish_cmds
17590 # As "finish_cmds", except a single script fragment to be evaled but
17592 finish_eval=$lt_finish_eval
17594 # Whether we should hardcode library paths into libraries.
17595 hardcode_into_libs=$hardcode_into_libs
17597 # Compile-time system search path for libraries.
17598 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17600 # Run-time system search path for libraries.
17601 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17603 # Whether dlopen is supported.
17604 dlopen_support=$enable_dlopen
17606 # Whether dlopen of programs is supported.
17607 dlopen_self=$enable_dlopen_self
17609 # Whether dlopen of statically linked programs is supported.
17610 dlopen_self_static=$enable_dlopen_self_static
17612 # Commands to strip libraries.
17613 old_striplib=$lt_old_striplib
17614 striplib=$lt_striplib
17617 # The linker used to build libraries.
17620 # How to create reloadable object files.
17621 reload_flag=$lt_reload_flag
17622 reload_cmds=$lt_reload_cmds
17624 # Commands used to build an old-style archive.
17625 old_archive_cmds=$lt_old_archive_cmds
17627 # A language specific compiler.
17630 # Is the compiler the GNU compiler?
17633 # Compiler flag to turn off builtin functions.
17634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17636 # Additional compiler flags for building library objects.
17637 pic_flag=$lt_lt_prog_compiler_pic
17639 # How to pass a linker flag through the compiler.
17640 wl=$lt_lt_prog_compiler_wl
17642 # Compiler flag to prevent dynamic linking.
17643 link_static_flag=$lt_lt_prog_compiler_static
17645 # Does compiler simultaneously support -c and -o options?
17646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17648 # Whether or not to add -lc for building shared libraries.
17649 build_libtool_need_lc=$archive_cmds_need_lc
17651 # Whether or not to disallow shared libs when runtime libs are static.
17652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17654 # Compiler flag to allow reflexive dlopens.
17655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17657 # Compiler flag to generate shared objects directly from archives.
17658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17660 # Whether the compiler copes with passing no objects directly.
17661 compiler_needs_object=$lt_compiler_needs_object
17663 # Create an old-style archive from a shared archive.
17664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17666 # Create a temporary old-style archive to link instead of a shared archive.
17667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17669 # Commands used to build a shared archive.
17670 archive_cmds=$lt_archive_cmds
17671 archive_expsym_cmds=$lt_archive_expsym_cmds
17673 # Commands used to build a loadable module if different from building
17674 # a shared archive.
17675 module_cmds=$lt_module_cmds
17676 module_expsym_cmds=$lt_module_expsym_cmds
17678 # Whether we are building with GNU ld or not.
17679 with_gnu_ld=$lt_with_gnu_ld
17681 # Flag that allows shared libraries with undefined symbols to be built.
17682 allow_undefined_flag=$lt_allow_undefined_flag
17684 # Flag that enforces no undefined symbols.
17685 no_undefined_flag=$lt_no_undefined_flag
17687 # Flag to hardcode \$libdir into a binary during linking.
17688 # This must work even if \$libdir does not exist
17689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17691 # Whether we need a single "-rpath" flag with a separated argument.
17692 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17694 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17695 # DIR into the resulting binary.
17696 hardcode_direct=$hardcode_direct
17698 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17699 # DIR into the resulting binary and the resulting library dependency is
17700 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17701 # library is relocated.
17702 hardcode_direct_absolute=$hardcode_direct_absolute
17704 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17705 # into the resulting binary.
17706 hardcode_minus_L=$hardcode_minus_L
17708 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17709 # into the resulting binary.
17710 hardcode_shlibpath_var=$hardcode_shlibpath_var
17712 # Set to "yes" if building a shared library automatically hardcodes DIR
17713 # into the library and all subsequent libraries and executables linked
17715 hardcode_automatic=$hardcode_automatic
17717 # Set to yes if linker adds runtime paths of dependent libraries
17718 # to runtime path list.
17719 inherit_rpath=$inherit_rpath
17721 # Whether libtool must link a program against all its dependency libraries.
17722 link_all_deplibs=$link_all_deplibs
17724 # Set to "yes" if exported symbols are required.
17725 always_export_symbols=$always_export_symbols
17727 # The commands to list exported symbols.
17728 export_symbols_cmds=$lt_export_symbols_cmds
17730 # Symbols that should not be listed in the preloaded symbols.
17731 exclude_expsyms=$lt_exclude_expsyms
17733 # Symbols that must always be exported.
17734 include_expsyms=$lt_include_expsyms
17736 # Commands necessary for linking programs (against libraries) with templates.
17737 prelink_cmds=$lt_prelink_cmds
17739 # Commands necessary for finishing linking programs.
17740 postlink_cmds=$lt_postlink_cmds
17742 # Specify filename containing input files.
17743 file_list_spec=$lt_file_list_spec
17745 # How to hardcode a shared library path into an executable.
17746 hardcode_action=$hardcode_action
17748 # ### END LIBTOOL CONFIG
17754 cat <<\_LT_EOF >> "$cfgfile"
17755 # AIX sometimes has problems with the GCC collect2 program. For some
17756 # reason, if we set the COLLECT_NAMES environment variable, the problems
17757 # vanish in a puff of smoke.
17758 if test "X${COLLECT_NAMES+set}" != Xset; then
17760 export COLLECT_NAMES
17767 ltmain="$ac_aux_dir/ltmain.sh"
17770 # We use sed instead of cat because bash on DJGPP gets confused if
17771 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17772 # text mode, it properly converts lines to CR/LF. This bash problem
17773 # is reportedly fixed, but why not run on old versions too?
17774 sed '$q' "$ltmain" >> "$cfgfile" \
17775 || (rm -f "$cfgfile"; exit 1)
17777 if test x"$xsi_shell" = xyes; then
17778 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17782 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17783 \ * ) func_dirname_result="${3}" ;;\
17785 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17786 && mv -f "$cfgfile.tmp" "$cfgfile" \
17787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17788 test 0 -eq $? || _lt_function_replace_fail=:
17791 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17794 \ func_basename_result="${1##*/}"\
17795 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17796 && mv -f "$cfgfile.tmp" "$cfgfile" \
17797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17798 test 0 -eq $? || _lt_function_replace_fail=:
17801 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17802 func_dirname_and_basename ()\
17805 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17806 \ * ) func_dirname_result="${3}" ;;\
17808 \ func_basename_result="${1##*/}"\
17809 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17810 && mv -f "$cfgfile.tmp" "$cfgfile" \
17811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17812 test 0 -eq $? || _lt_function_replace_fail=:
17815 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17818 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17819 \ # positional parameters, so assign one to ordinary parameter first.\
17820 \ func_stripname_result=${3}\
17821 \ func_stripname_result=${func_stripname_result#"${1}"}\
17822 \ func_stripname_result=${func_stripname_result%"${2}"}\
17823 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17824 && mv -f "$cfgfile.tmp" "$cfgfile" \
17825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17826 test 0 -eq $? || _lt_function_replace_fail=:
17829 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17830 func_split_long_opt ()\
17832 \ func_split_long_opt_name=${1%%=*}\
17833 \ func_split_long_opt_arg=${1#*=}\
17834 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17835 && mv -f "$cfgfile.tmp" "$cfgfile" \
17836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17837 test 0 -eq $? || _lt_function_replace_fail=:
17840 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17841 func_split_short_opt ()\
17843 \ func_split_short_opt_arg=${1#??}\
17844 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17845 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17846 && mv -f "$cfgfile.tmp" "$cfgfile" \
17847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17848 test 0 -eq $? || _lt_function_replace_fail=:
17851 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17855 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17856 \ *) func_lo2o_result=${1} ;;\
17858 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17859 && mv -f "$cfgfile.tmp" "$cfgfile" \
17860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17861 test 0 -eq $? || _lt_function_replace_fail=:
17864 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17867 func_xform_result=${1%.*}.lo\
17868 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17869 && mv -f "$cfgfile.tmp" "$cfgfile" \
17870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17871 test 0 -eq $? || _lt_function_replace_fail=:
17874 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17877 func_arith_result=$(( $* ))\
17878 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17879 && mv -f "$cfgfile.tmp" "$cfgfile" \
17880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17881 test 0 -eq $? || _lt_function_replace_fail=:
17884 sed -e '/^func_len ()$/,/^} # func_len /c\
17887 func_len_result=${#1}\
17888 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17889 && mv -f "$cfgfile.tmp" "$cfgfile" \
17890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17891 test 0 -eq $? || _lt_function_replace_fail=:
17895 if test x"$lt_shell_append" = xyes; then
17896 sed -e '/^func_append ()$/,/^} # func_append /c\
17899 eval "${1}+=\\${2}"\
17900 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17901 && mv -f "$cfgfile.tmp" "$cfgfile" \
17902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17903 test 0 -eq $? || _lt_function_replace_fail=:
17906 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17907 func_append_quoted ()\
17909 \ func_quote_for_eval "${2}"\
17910 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17911 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17912 && mv -f "$cfgfile.tmp" "$cfgfile" \
17913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17914 test 0 -eq $? || _lt_function_replace_fail=:
17917 # Save a `func_append' function call where possible by direct use of '+='
17918 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17919 && mv -f "$cfgfile.tmp" "$cfgfile" \
17920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921 test 0 -eq $? || _lt_function_replace_fail=:
17923 # Save a `func_append' function call even when '+=' is not available
17924 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17925 && mv -f "$cfgfile.tmp" "$cfgfile" \
17926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17927 test 0 -eq $? || _lt_function_replace_fail=:
17930 if test x"$_lt_function_replace_fail" = x":"; then
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17932 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17936 mv -f "$cfgfile" "$ofile" ||
17937 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17941 cat <<_LT_EOF >> "$ofile"
17943 # ### BEGIN LIBTOOL TAG CONFIG: RC
17945 # The linker used to build libraries.
17948 # How to create reloadable object files.
17949 reload_flag=$lt_reload_flag_RC
17950 reload_cmds=$lt_reload_cmds_RC
17952 # Commands used to build an old-style archive.
17953 old_archive_cmds=$lt_old_archive_cmds_RC
17955 # A language specific compiler.
17958 # Is the compiler the GNU compiler?
17961 # Compiler flag to turn off builtin functions.
17962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17964 # Additional compiler flags for building library objects.
17965 pic_flag=$lt_lt_prog_compiler_pic_RC
17967 # How to pass a linker flag through the compiler.
17968 wl=$lt_lt_prog_compiler_wl_RC
17970 # Compiler flag to prevent dynamic linking.
17971 link_static_flag=$lt_lt_prog_compiler_static_RC
17973 # Does compiler simultaneously support -c and -o options?
17974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17976 # Whether or not to add -lc for building shared libraries.
17977 build_libtool_need_lc=$archive_cmds_need_lc_RC
17979 # Whether or not to disallow shared libs when runtime libs are static.
17980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17982 # Compiler flag to allow reflexive dlopens.
17983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17985 # Compiler flag to generate shared objects directly from archives.
17986 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17988 # Whether the compiler copes with passing no objects directly.
17989 compiler_needs_object=$lt_compiler_needs_object_RC
17991 # Create an old-style archive from a shared archive.
17992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17994 # Create a temporary old-style archive to link instead of a shared archive.
17995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17997 # Commands used to build a shared archive.
17998 archive_cmds=$lt_archive_cmds_RC
17999 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18001 # Commands used to build a loadable module if different from building
18002 # a shared archive.
18003 module_cmds=$lt_module_cmds_RC
18004 module_expsym_cmds=$lt_module_expsym_cmds_RC
18006 # Whether we are building with GNU ld or not.
18007 with_gnu_ld=$lt_with_gnu_ld_RC
18009 # Flag that allows shared libraries with undefined symbols to be built.
18010 allow_undefined_flag=$lt_allow_undefined_flag_RC
18012 # Flag that enforces no undefined symbols.
18013 no_undefined_flag=$lt_no_undefined_flag_RC
18015 # Flag to hardcode \$libdir into a binary during linking.
18016 # This must work even if \$libdir does not exist
18017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18019 # Whether we need a single "-rpath" flag with a separated argument.
18020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18023 # DIR into the resulting binary.
18024 hardcode_direct=$hardcode_direct_RC
18026 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18027 # DIR into the resulting binary and the resulting library dependency is
18028 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18029 # library is relocated.
18030 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18032 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18033 # into the resulting binary.
18034 hardcode_minus_L=$hardcode_minus_L_RC
18036 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18037 # into the resulting binary.
18038 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18040 # Set to "yes" if building a shared library automatically hardcodes DIR
18041 # into the library and all subsequent libraries and executables linked
18043 hardcode_automatic=$hardcode_automatic_RC
18045 # Set to yes if linker adds runtime paths of dependent libraries
18046 # to runtime path list.
18047 inherit_rpath=$inherit_rpath_RC
18049 # Whether libtool must link a program against all its dependency libraries.
18050 link_all_deplibs=$link_all_deplibs_RC
18052 # Set to "yes" if exported symbols are required.
18053 always_export_symbols=$always_export_symbols_RC
18055 # The commands to list exported symbols.
18056 export_symbols_cmds=$lt_export_symbols_cmds_RC
18058 # Symbols that should not be listed in the preloaded symbols.
18059 exclude_expsyms=$lt_exclude_expsyms_RC
18061 # Symbols that must always be exported.
18062 include_expsyms=$lt_include_expsyms_RC
18064 # Commands necessary for linking programs (against libraries) with templates.
18065 prelink_cmds=$lt_prelink_cmds_RC
18067 # Commands necessary for finishing linking programs.
18068 postlink_cmds=$lt_postlink_cmds_RC
18070 # Specify filename containing input files.
18071 file_list_spec=$lt_file_list_spec_RC
18073 # How to hardcode a shared library path into an executable.
18074 hardcode_action=$hardcode_action_RC
18076 # ### END LIBTOOL TAG CONFIG: RC
18080 "po-directories":C)
18081 for ac_file in $CONFIG_FILES; do
18082 # Support "outfile[:infile[:infile...]]"
18084 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18086 # PO directories have a Makefile.in generated from Makefile.in.in.
18087 case "$ac_file" in */Makefile.in)
18088 # Adjust a relative srcdir.
18089 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18090 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18091 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18092 # In autoconf-2.13 it is called $ac_given_srcdir.
18093 # In autoconf-2.50 it is called $srcdir.
18094 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18095 case "$ac_given_srcdir" in
18096 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18097 /*) top_srcdir="$ac_given_srcdir" ;;
18098 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18100 # Treat a directory as a PO directory if and only if it has a
18101 # POTFILES.in file. This allows packages to have multiple PO
18102 # directories under different names or in different locations.
18103 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18104 rm -f "$ac_dir/POTFILES"
18105 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18106 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18107 POMAKEFILEDEPS="POTFILES.in"
18108 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18109 # on $ac_dir but don't depend on user-specified configuration
18111 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18112 # The LINGUAS file contains the set of available languages.
18113 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18114 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18116 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18117 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18118 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18119 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18121 # The set of available languages was given in configure.in.
18122 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18123 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18126 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18127 # Compute UPDATEPOFILES
18128 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18129 # Compute DUMMYPOFILES
18130 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18132 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18133 case "$ac_given_srcdir" in
18135 *) srcdirpre='$(srcdir)/' ;;
18141 for lang in $ALL_LINGUAS; do
18142 POFILES="$POFILES $srcdirpre$lang.po"
18143 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18144 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18145 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18147 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18148 # environment variable.
18150 if test -n "$ALL_LINGUAS"; then
18151 for presentlang in $ALL_LINGUAS; do
18153 if test "%UNSET%" != "$LINGUAS"; then
18154 desiredlanguages="$LINGUAS"
18156 desiredlanguages="$ALL_LINGUAS"
18158 for desiredlang in $desiredlanguages; do
18159 # Use the presentlang catalog if desiredlang is
18160 # a. equal to presentlang, or
18161 # b. a variant of presentlang (because in this case,
18162 # presentlang can be used as a fallback for messages
18163 # which are not translated in the desiredlang catalog).
18164 case "$desiredlang" in
18165 "$presentlang"*) useit=yes;;
18168 if test $useit = yes; then
18169 INST_LINGUAS="$INST_LINGUAS $presentlang"
18174 if test -n "$INST_LINGUAS"; then
18175 for lang in $INST_LINGUAS; do
18176 CATALOGS="$CATALOGS $lang.gmo"
18179 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18180 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18181 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18182 if test -f "$f"; then
18184 *.orig | *.bak | *~) ;;
18185 *) cat "$f" >> "$ac_dir/Makefile" ;;
18193 "src/gpg-error-config":F) chmod +x src/gpg-error-config ;;
18201 ac_clean_files=$ac_clean_files_save
18203 test $ac_write_fail = 0 ||
18204 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18207 # configure is writing to config.log, and then calls config.status.
18208 # config.status does its own redirection, appending to config.log.
18209 # Unfortunately, on DOS this fails, as config.log is still kept open
18210 # by configure, so config.status won't be able to write to it; its
18211 # output is simply discarded. So we exec the FD to /dev/null,
18212 # effectively closing config.log, so it can be properly (re)opened and
18213 # appended to by config.status. When coming back to configure, we
18214 # need to make the FD available again.
18215 if test "$no_create" != yes; then
18217 ac_config_status_args=
18218 test "$silent" = yes &&
18219 ac_config_status_args="$ac_config_status_args --quiet"
18221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18224 # would make configure fail if this is the last instruction.
18225 $ac_cs_success || as_fn_exit 1
18227 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18229 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18234 $PACKAGE_NAME-$PACKAGE_VERSION prepared for make
18236 Revision: 1900266 (6400)